From 8eeb8484835cea9197d146f6c45eefb4c66f2039 Mon Sep 17 00:00:00 2001 From: Webber Takken Date: Sat, 14 Nov 2020 00:57:44 +0100 Subject: [PATCH] add il2cpp support for linux from 2019.3 (#177) --- action/index.js | 2 +- src/model/image-tag.js | 96 ++++++++++++++++++++++++++++-------------- 2 files changed, 65 insertions(+), 33 deletions(-) diff --git a/action/index.js b/action/index.js index f320e7e76..e9ec519a8 100644 --- a/action/index.js +++ b/action/index.js @@ -1 +1 @@ -module.exports=function(e,t){"use strict";var i={};function __webpack_require__(t){if(i[t]){return i[t].exports}var n=i[t]={i:t,l:false,exports:{}};e[t].call(n.exports,n,n.exports,__webpack_require__);n.l=true;return n.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(452)}t(__webpack_require__);return startup()}([function(e){e.exports=(e=>Math.floor(e.getTime()/1e3))},function(e,t,i){"use strict";var n=this&&this.__awaiter||function(e,t,i,n){function adopt(e){return e instanceof i?e:new i(function(t){t(e)})}return new(i||(i=Promise))(function(i,a){function fulfilled(e){try{step(n.next(e))}catch(e){a(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){a(e)}}function step(e){e.done?i(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:true});const a=i(129);const r=i(622);const s=i(669);const o=i(672);const u=s.promisify(a.exec);function cp(e,t,i={}){return n(this,void 0,void 0,function*(){const{force:n,recursive:a}=readCopyOptions(i);const s=(yield o.exists(t))?yield o.stat(t):null;if(s&&s.isFile()&&!n){return}const u=s&&s.isDirectory()?r.join(t,r.basename(e)):t;if(!(yield o.exists(e))){throw new Error(`no such file or directory: ${e}`)}const l=yield o.stat(e);if(l.isDirectory()){if(!a){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,u,0,n)}}else{if(r.relative(e,u)===""){throw new Error(`'${u}' and '${e}' are the same file`)}yield copyFile(e,u,n)}})}t.cp=cp;function mv(e,t,i={}){return n(this,void 0,void 0,function*(){if(yield o.exists(t)){let n=true;if(yield o.isDirectory(t)){t=r.join(t,r.basename(e));n=yield o.exists(t)}if(n){if(i.force==null||i.force){yield rmRF(t)}else{throw new Error("Destination already exists")}}}yield mkdirP(r.dirname(t));yield o.rename(e,t)})}t.mv=mv;function rmRF(e){return n(this,void 0,void 0,function*(){if(o.IS_WINDOWS){try{if(yield o.isDirectory(e,true)){yield u(`rd /s /q "${e}"`)}else{yield u(`del /f /a "${e}"`)}}catch(e){if(e.code!=="ENOENT")throw e}try{yield o.unlink(e)}catch(e){if(e.code!=="ENOENT")throw e}}else{let t=false;try{t=yield o.isDirectory(e)}catch(e){if(e.code!=="ENOENT")throw e;return}if(t){yield u(`rm -rf "${e}"`)}else{yield o.unlink(e)}}})}t.rmRF=rmRF;function mkdirP(e){return n(this,void 0,void 0,function*(){yield o.mkdirP(e)})}t.mkdirP=mkdirP;function which(e,t){return n(this,void 0,void 0,function*(){if(!e){throw new Error("parameter 'tool' is required")}if(t){const t=yield which(e,false);if(!t){if(o.IS_WINDOWS){throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`)}else{throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`)}}}try{const t=[];if(o.IS_WINDOWS&&process.env.PATHEXT){for(const e of process.env.PATHEXT.split(r.delimiter)){if(e){t.push(e)}}}if(o.isRooted(e)){const i=yield o.tryGetExecutablePath(e,t);if(i){return i}return""}if(e.includes("/")||o.IS_WINDOWS&&e.includes("\\")){return""}const i=[];if(process.env.PATH){for(const e of process.env.PATH.split(r.delimiter)){if(e){i.push(e)}}}for(const n of i){const i=yield o.tryGetExecutablePath(n+r.sep+e,t);if(i){return i}}return""}catch(e){throw new Error(`which failed with message ${e.message}`)}})}t.which=which;function readCopyOptions(e){const t=e.force==null?true:e.force;const i=Boolean(e.recursive);return{force:t,recursive:i}}function cpDirRecursive(e,t,i,a){return n(this,void 0,void 0,function*(){if(i>=255)return;i++;yield mkdirP(t);const n=yield o.readdir(e);for(const r of n){const n=`${e}/${r}`;const s=`${t}/${r}`;const u=yield o.lstat(n);if(u.isDirectory()){yield cpDirRecursive(n,s,i,a)}else{yield copyFile(n,s,a)}}yield o.chmod(t,(yield o.stat(e)).mode)})}function copyFile(e,t,i){return n(this,void 0,void 0,function*(){if((yield o.lstat(e)).isSymbolicLink()){try{yield o.lstat(t);yield o.unlink(t)}catch(e){if(e.code==="EPERM"){yield o.chmod(t,"0666");yield o.unlink(t)}}const i=yield o.readlink(e);yield o.symlink(i,t,o.IS_WINDOWS?"junction":null)}else if(!(yield o.exists(t))||i){yield o.copyFile(e,t)}})}},,function(e,t,i){var n=i(49);var a=function(){};var r=function(e){return e.setHeader&&typeof e.abort==="function"};var s=function(e){return e.stdio&&Array.isArray(e.stdio)&&e.stdio.length===3};var o=function(e,t,i){if(typeof t==="function")return o(e,null,t);if(!t)t={};i=n(i||a);var u=e._writableState;var l=e._readableState;var c=t.readable||t.readable!==false&&e.readable;var d=t.writable||t.writable!==false&&e.writable;var p=false;var f=function(){if(!e.writable)h()};var h=function(){d=false;if(!c)i.call(e)};var m=function(){c=false;if(!d)i.call(e)};var b=function(t){i.call(e,t?new Error("exited with error code: "+t):null)};var g=function(t){i.call(e,t)};var y=function(){process.nextTick(S)};var S=function(){if(p)return;if(c&&!(l&&(l.ended&&!l.destroyed)))return i.call(e,new Error("premature close"));if(d&&!(u&&(u.ended&&!u.destroyed)))return i.call(e,new Error("premature close"))};var w=function(){e.req.on("finish",h)};if(r(e)){e.on("complete",h);e.on("abort",y);if(e.req)w();else e.on("request",w)}else if(d&&!u){e.on("end",f);e.on("close",f)}if(s(e))e.on("exit",b);e.on("end",m);e.on("finish",h);if(t.error!==false)e.on("error",g);e.on("close",y);return function(){p=true;e.removeListener("complete",h);e.removeListener("abort",y);e.removeListener("request",w);if(e.req)e.req.removeListener("finish",h);e.removeListener("end",f);e.removeListener("close",f);e.removeListener("finish",h);e.removeListener("exit",b);e.removeListener("end",m);e.removeListener("error",g);e.removeListener("close",y)}};e.exports=o},function(e){"use strict";var t=Object.prototype.hasOwnProperty;var i=Array.isArray;var n=function(){var e=[];for(var t=0;t<256;++t){e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase())}return e}();var a=function compactQueue(e){while(e.length>1){var t=e.pop();var n=t.obj[t.prop];if(i(n)){var a=[];for(var r=0;r=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122){r+=a.charAt(s);continue}if(o<128){r=r+n[o];continue}if(o<2048){r=r+(n[192|o>>6]+n[128|o&63]);continue}if(o<55296||o>=57344){r=r+(n[224|o>>12]+n[128|o>>6&63]+n[128|o&63]);continue}s+=1;o=65536+((o&1023)<<10|a.charCodeAt(s)&1023);r+=n[240|o>>18]+n[128|o>>12&63]+n[128|o>>6&63]+n[128|o&63]}return r};var c=function compact(e){var t=[{obj:{o:e},prop:"o"}];var i=[];for(var n=0;n-1){const e=n.substring(0,a);i(e);n=n.substring(a+r.EOL.length);a=n.indexOf(r.EOL)}t=n}catch(e){this._debug(`error processing line. Failed with error ${e}`)}}_getSpawnFileName(){if(d){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(d){if(this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const i of this.args){t+=" ";t+=e.windowsVerbatimArguments?i:this._windowsQuoteCmdArg(i)}t+='"';return[t]}}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile()){return this._uvQuoteCmdArg(e)}if(!e){return'""'}const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let i=false;for(const n of e){if(t.some(e=>e===n)){i=true;break}}if(!i){return e}let n='"';let a=true;for(let t=e.length;t>0;t--){n+=e[t-1];if(a&&e[t-1]==="\\"){n+="\\"}else if(e[t-1]==='"'){a=true;n+='"'}else{a=false}}n+='"';return n.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e){return'""'}if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"')){return e}if(!e.includes('"')&&!e.includes("\\")){return`"${e}"`}let t='"';let i=true;for(let n=e.length;n>0;n--){t+=e[n-1];if(i&&e[n-1]==="\\"){t+="\\"}else if(e[n-1]==='"'){i=true;t+="\\"}else{i=false}}t+='"';return t.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};const t={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||false,windowsVerbatimArguments:e.windowsVerbatimArguments||false,failOnStdErr:e.failOnStdErr||false,ignoreReturnCode:e.ignoreReturnCode||false,delay:e.delay||1e4};t.outStream=e.outStream||process.stdout;t.errStream=e.errStream||process.stderr;return t}_getSpawnOptions(e,t){e=e||{};const i={};i.cwd=e.cwd;i.env=e.env;i["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){i.argv0=`"${t}"`}return i}exec(){return n(this,void 0,void 0,function*(){if(!c.isRooted(this.toolPath)&&(this.toolPath.includes("/")||d&&this.toolPath.includes("\\"))){this.toolPath=u.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield l.which(this.toolPath,true);return new Promise((e,t)=>{this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const e of this.args){this._debug(` ${e}`)}const i=this._cloneExecOptions(this.options);if(!i.silent&&i.outStream){i.outStream.write(this._getCommandString(i)+r.EOL)}const n=new ExecState(i,this.toolPath);n.on("debug",e=>{this._debug(e)});const a=this._getSpawnFileName();const s=o.spawn(a,this._getSpawnArgs(i),this._getSpawnOptions(this.options,a));const u="";if(s.stdout){s.stdout.on("data",e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!i.silent&&i.outStream){i.outStream.write(e)}this._processLineBuffer(e,u,e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}})})}const l="";if(s.stderr){s.stderr.on("data",e=>{n.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!i.silent&&i.errStream&&i.outStream){const t=i.failOnStdErr?i.errStream:i.outStream;t.write(e)}this._processLineBuffer(e,l,e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}})})}s.on("error",e=>{n.processError=e.message;n.processExited=true;n.processClosed=true;n.CheckComplete()});s.on("exit",e=>{n.processExitCode=e;n.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);n.CheckComplete()});s.on("close",e=>{n.processExitCode=e;n.processExited=true;n.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);n.CheckComplete()});n.on("done",(i,n)=>{if(u.length>0){this.emit("stdline",u)}if(l.length>0){this.emit("errline",l)}s.removeAllListeners();if(i){t(i)}else{e(n)}});if(this.options.input){if(!s.stdin){throw new Error("child process missing stdin")}s.stdin.end(this.options.input)}})})}}t.ToolRunner=ToolRunner;function argStringToArray(e){const t=[];let i=false;let n=false;let a="";function append(e){if(n&&e!=='"'){a+="\\"}a+=e;n=false}for(let r=0;r0){t.push(a);a=""}continue}append(s)}if(a.length>0){t.push(a.trim())}return t}t.argStringToArray=argStringToArray;class ExecState extends s.EventEmitter{constructor(e,t){super();this.processClosed=false;this.processError="";this.processExitCode=0;this.processExited=false;this.processStderr=false;this.delay=1e4;this.done=false;this.timeout=null;if(!t){throw new Error("toolPath must not be empty")}this.options=e;this.toolPath=t;if(e.delay){this.delay=e.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=setTimeout(ExecState.HandleTimeout,this.delay,this)}}_debug(e){this.emit("debug",e)}_setResult(){let e;if(this.processExited){if(this.processError){e=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`)}else if(this.processExitCode!==0&&!this.options.ignoreReturnCode){e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)}}if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.done=true;this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(e.done){return}if(!e.processClosed&&e.processExited){const t=`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;e._debug(t)}e._setResult()}}},function(e,t,i){"use strict";const{randomBytes:n}=i(373);const a=i(301);const{EMPTY_BUFFER:r}=i(799);const{isValidStatusCode:s}=i(562);const{mask:o,toBuffer:u}=i(104);class Sender{constructor(e,t){this._extensions=t||{};this._socket=e;this._firstFragment=true;this._compress=false;this._bufferedBytes=0;this._deflating=false;this._queue=[]}static frame(e,t){const i=t.mask&&t.readOnly;var a=t.mask?6:2;var r=e.length;if(e.length>=65536){a+=8;r=127}else if(e.length>125){a+=2;r=126}const s=Buffer.allocUnsafe(i?e.length+a:a);s[0]=t.fin?t.opcode|128:t.opcode;if(t.rsv1)s[0]|=64;s[1]=r;if(r===126){s.writeUInt16BE(e.length,2)}else if(r===127){s.writeUInt32BE(0,2);s.writeUInt32BE(e.length,6)}if(!t.mask)return[s,e];const u=n(4);s[1]|=128;s[a-4]=u[0];s[a-3]=u[1];s[a-2]=u[2];s[a-1]=u[3];if(i){o(e,u,s,a,e.length);return[s]}o(e,u,e,0,e.length);return[s,e]}close(e,t,i,n){var a;if(e===undefined){a=r}else if(typeof e!=="number"||!s(e)){throw new TypeError("First argument must be a valid error code number")}else if(t===undefined||t===""){a=Buffer.allocUnsafe(2);a.writeUInt16BE(e,0)}else{a=Buffer.allocUnsafe(2+Buffer.byteLength(t));a.writeUInt16BE(e,0);a.write(t,2)}if(this._deflating){this.enqueue([this.doClose,a,i,n])}else{this.doClose(a,i,n)}}doClose(e,t,i){this.sendFrame(Sender.frame(e,{fin:true,rsv1:false,opcode:8,mask:t,readOnly:false}),i)}ping(e,t,i){const n=u(e);if(this._deflating){this.enqueue([this.doPing,n,t,u.readOnly,i])}else{this.doPing(n,t,u.readOnly,i)}}doPing(e,t,i,n){this.sendFrame(Sender.frame(e,{fin:true,rsv1:false,opcode:9,mask:t,readOnly:i}),n)}pong(e,t,i){const n=u(e);if(this._deflating){this.enqueue([this.doPong,n,t,u.readOnly,i])}else{this.doPong(n,t,u.readOnly,i)}}doPong(e,t,i,n){this.sendFrame(Sender.frame(e,{fin:true,rsv1:false,opcode:10,mask:t,readOnly:i}),n)}send(e,t,i){const n=u(e);const r=this._extensions[a.extensionName];var s=t.binary?2:1;var o=t.compress;if(this._firstFragment){this._firstFragment=false;if(o&&r){o=n.length>=r._threshold}this._compress=o}else{o=false;s=0}if(t.fin)this._firstFragment=true;if(r){const e={fin:t.fin,rsv1:o,opcode:s,mask:t.mask,readOnly:u.readOnly};if(this._deflating){this.enqueue([this.dispatch,n,this._compress,e,i])}else{this.dispatch(n,this._compress,e,i)}}else{this.sendFrame(Sender.frame(n,{fin:t.fin,rsv1:false,opcode:s,mask:t.mask,readOnly:u.readOnly}),i)}}dispatch(e,t,i,n){if(!t){this.sendFrame(Sender.frame(e,i),n);return}const r=this._extensions[a.extensionName];this._deflating=true;r.compress(e,i.fin,(e,t)=>{this._deflating=false;i.readOnly=false;this.sendFrame(Sender.frame(t,i),n);this.dequeue()})}dequeue(){while(!this._deflating&&this._queue.length){const e=this._queue.shift();this._bufferedBytes-=e[1].length;e[0].apply(this,e.slice(1))}}enqueue(e){this._bufferedBytes+=e[1].length;this._queue.push(e)}sendFrame(e,t){if(e.length===2){this._socket.cork();this._socket.write(e[0]);this._socket.write(e[1],t);this._socket.uncork()}else{this._socket.write(e[0],t)}}}e.exports=Sender},function(e){e.exports=wrappy;function wrappy(e,t){if(e&&t)return wrappy(e)(t);if(typeof e!=="function")throw new TypeError("need wrapper function");Object.keys(e).forEach(function(t){wrapper[t]=e[t]});return wrapper;function wrapper(){var t=new Array(arguments.length);for(var i=0;i{t=Object.assign({pretty:false},t);return e.replace(/\\/g,"/").split("\n").filter(e=>{const t=e.match(a);if(t===null||!t[1]){return true}const i=t[1];if(i.includes(".app/Contents/Resources/electron.asar")||i.includes(".app/Contents/Resources/default_app.asar")){return false}return!r.test(i)}).filter(e=>e.trim()!=="").map(e=>{if(t.pretty){return e.replace(a,(e,t)=>e.replace(t,t.replace(s,"~")))}return e}).join("\n")})},function(e,t,i){const n=i(65);const a=(e,t,i)=>{const a=new n(e,i);const r=new n(t,i);return a.compare(r)||a.compareBuild(r)};e.exports=a},function(e,t,i){const n=i(490);const a=i(208);let r=i(918);const{JWEInvalid:s,JOSENotSupported:o}=i(466);r=r.bind(undefined,s);e.exports=((e,t,i,u,l)=>{if(typeof e==="string"){try{e=a.JSON.decode(e)}catch(e){throw new s("could not parse JWE protected header")}}let c=[];const d=new Set;if(!n(e,t)||!i.every(({header:i})=>{if(typeof i==="object"){c.push(i.alg);d.add(i.enc)}const a={...t,...i};r(e,a,l);if("zip"in a){throw new s('"zip" Header Parameter MUST be integrity protected')}else if(e&&"zip"in e&&e.zip!=="DEF"){throw new o('only "DEF" compression algorithm is supported')}return n(i,e)&&n(i,t)})){throw new s("JWE Shared Protected, JWE Shared Unprotected and JWE Per-Recipient Header Parameter names must be disjoint")}if(typeof e==="object"){c.push(e.alg);d.add(e.enc)}if(typeof t==="object"){c.push(t.alg);d.add(t.enc)}c=c.filter(Boolean);d.delete(undefined);if(i.length!==1){if(c.includes("dir")||c.includes("ECDH-ES")){throw new s("dir and ECDH-ES alg may only be used with a single recipient")}}if(u){if(c.length!==i.length){throw new s("missing Key Management algorithm")}if(d.size===0){throw new s("missing Content Encryption algorithm")}else if(d.size!==1){throw new s("there must only be one Content Encryption algorithm")}}else{if(d.size>1){throw new s("there must only be one Content Encryption algorithm")}}return[...d][0]})},function(e){e.exports={oct:{decrypt:{},deriveKey:{},encrypt:{},sign:{},unwrapKey:{},verify:{},wrapKey:{}},EC:{decrypt:{},deriveKey:{},encrypt:{},sign:{},unwrapKey:{},verify:{},wrapKey:{}},RSA:{decrypt:{},deriveKey:{},encrypt:{},sign:{},unwrapKey:{},verify:{},wrapKey:{}},OKP:{decrypt:{},deriveKey:{},encrypt:{},sign:{},unwrapKey:{},verify:{},wrapKey:{}}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=i(422);const a=i(191);const r=i(669);const s=i(131);class PortForward{constructor(e,t,i){if(!i){this.handler=new s.WebSocketHandler(e)}else{this.handler=i}this.disconnectOnErr=r.isUndefined(t)?true:t}portForward(e,t,i,r,o,u,l=0){return n.__awaiter(this,void 0,void 0,function*(){if(i.length===0){throw new Error("You must provide at least one port to forward to.")}if(i.length>1){throw new Error("Only one port is currently supported for port-forward")}const n={ports:i[0]};const c=a.stringify(n);const d=[];i.forEach((e,t)=>{d[t*2]=true;d[t*2+1]=true});const p=`/api/v1/namespaces/${e}/pods/${t}/portforward?${c}`;const f=()=>{return this.handler.connect(p,null,(e,t)=>{if(e>=i.length*2){return!this.disconnectOnErr}if(d[e]){t=t.slice(2);d[e]=false}if(e%2===1){if(o){o.write(t)}}else{r.write(t)}return true})};if(l<1){const e=yield f();s.WebSocketHandler.handleStandardInput(e,u,0);return e}return s.WebSocketHandler.restartableHandleStandardInput(f,u,0,l)})}}t.PortForward=PortForward},function(e,t,i){const{EOL:n}=i(87);const a=i(466);const{keyObjectSupported:r}=i(915);const{createPublicKey:s}=i(40);const o=i(208);const u=i(884);const l=i(694);const{OKP_CURVES:c,EC_CURVES:d}=i(962);const p=(e,t)=>`-----BEGIN ${t} KEY-----${n}${(e.match(/.{1,64}/g)||[]).join(n)}${n}-----END ${t} KEY-----`;const f={private(e,t){const i=t.export({type:"pkcs8",format:"der"});const n=u.get("OneAsymmetricKey");const{privateKey:{privateKey:a}}=n.decode(i);return{...f.public(e,s(t)),d:o.encodeBuffer(a)}},public(e,t){const i=t.export({type:"spki",format:"der"});const n=u.get("PublicKeyInfo");const{publicKey:{data:a}}=n.decode(i);return{kty:"OKP",crv:e,x:o.encodeBuffer(a)}}};const h={rsa:{private(e){const t=e.export({type:"pkcs8",format:"der"});const i=u.get("PrivateKeyInfo");const n=u.get("RSAPrivateKey");const{privateKey:r}=i.decode(t);const{version:s,n:l,e:c,d:d,p:p,q:f,dp:h,dq:m,qi:b}=n.decode(r);if(s!=="two-prime"){throw new a.JOSENotSupported("Private RSA keys with more than two primes are not supported")}return{kty:"RSA",n:o.encodeBigInt(l),e:o.encodeBigInt(c),d:o.encodeBigInt(d),p:o.encodeBigInt(p),q:o.encodeBigInt(f),dp:o.encodeBigInt(h),dq:o.encodeBigInt(m),qi:o.encodeBigInt(b)}},public(e){const t=e.export({type:"spki",format:"der"});const i=u.get("PublicKeyInfo");const n=u.get("RSAPublicKey");const{publicKey:{data:a}}=i.decode(t);const{n:r,e:s}=n.decode(a);return{kty:"RSA",n:o.encodeBigInt(r),e:o.encodeBigInt(s)}}},ec:{private(e){const t=e.export({type:"pkcs8",format:"der"});const i=u.get("PrivateKeyInfo");const n=u.get("ECPrivateKey");const{privateKey:l,algorithm:{parameters:{value:c}}}=i.decode(t);const{privateKey:d,publicKey:p}=n.decode(l);if(typeof p==="undefined"){if(r){return{...h.ec.public(s(e)),d:o.encodeBuffer(d)}}throw new a.JOSENotSupported("Private EC keys without the public key embedded are not supported in your Node.js runtime version")}const f=p.data.slice(1,(p.data.length-1)/2+1);const m=p.data.slice((p.data.length-1)/2+1);return{kty:"EC",crv:c,d:o.encodeBuffer(d),x:o.encodeBuffer(f),y:o.encodeBuffer(m)}},public(e){const t=e.export({type:"spki",format:"der"});const i=u.get("PublicKeyInfo");const{publicKey:{data:n},algorithm:{parameters:{value:a}}}=i.decode(t);const r=n.slice(1,(n.length-1)/2+1);const s=n.slice((n.length-1)/2+1);return{kty:"EC",crv:a,x:o.encodeBuffer(r),y:o.encodeBuffer(s)}}},ed25519:{private(e){return f.private("Ed25519",e)},public(e){return f.public("Ed25519",e)}},ed448:{private(e){return f.private("Ed448",e)},public(e){return f.public("Ed448",e)}},x25519:{private(e){return f.private("X25519",e)},public(e){return f.public("X25519",e)}},x448:{private(e){return f.private("X448",e)},public(e){return f.public("X448",e)}}};e.exports.keyObjectToJWK=(e=>{if(e.type==="private"){return h[e.asymmetricKeyType].private(e)}return h[e.asymmetricKeyType].public(e)});const m=(e,t)=>({unused:0,data:Buffer.concat([Buffer.alloc(1,4),o.decodeToBuffer(e),o.decodeToBuffer(t)])});const b={RSA:{private(e,{calculateMissingRSAPrimes:t}){const i=u.get("RSAPrivateKey");if("oth"in e){throw new a.JOSENotSupported("Private RSA keys with more than two primes are not supported")}if(e.p||e.q||e.dp||e.dq||e.qi){if(!(e.p&&e.q&&e.dp&&e.dq&&e.qi)){throw new a.JWKInvalid("all other private key parameters must be present when any one of them is present")}}else if(t){e=l(e)}else if(!t){throw new a.JOSENotSupported("importing private RSA keys without all other private key parameters is not enabled, see documentation and its advisory on how and when its ok to enable it")}return i.encode({version:0,n:BigInt(`0x${o.decodeToBuffer(e.n).toString("hex")}`),e:BigInt(`0x${o.decodeToBuffer(e.e).toString("hex")}`),d:BigInt(`0x${o.decodeToBuffer(e.d).toString("hex")}`),p:BigInt(`0x${o.decodeToBuffer(e.p).toString("hex")}`),q:BigInt(`0x${o.decodeToBuffer(e.q).toString("hex")}`),dp:BigInt(`0x${o.decodeToBuffer(e.dp).toString("hex")}`),dq:BigInt(`0x${o.decodeToBuffer(e.dq).toString("hex")}`),qi:BigInt(`0x${o.decodeToBuffer(e.qi).toString("hex")}`)},"pem",{label:"RSA PRIVATE KEY"})},public(e){const t=u.get("RSAPublicKey");return t.encode({version:0,n:BigInt(`0x${o.decodeToBuffer(e.n).toString("hex")}`),e:BigInt(`0x${o.decodeToBuffer(e.e).toString("hex")}`)},"pem",{label:"RSA PUBLIC KEY"})}},EC:{private(e){const t=u.get("ECPrivateKey");return t.encode({version:1,privateKey:o.decodeToBuffer(e.d),parameters:{type:"namedCurve",value:e.crv},publicKey:m(e.x,e.y)},"pem",{label:"EC PRIVATE KEY"})},public(e){const t=u.get("PublicKeyInfo");return t.encode({algorithm:{algorithm:"ecPublicKey",parameters:{type:"namedCurve",value:e.crv}},publicKey:m(e.x,e.y)},"pem",{label:"PUBLIC KEY"})}},OKP:{private(e){const t=u.get("OneAsymmetricKey");const i=t.encode({version:0,privateKey:{privateKey:o.decodeToBuffer(e.d)},algorithm:{algorithm:e.crv}},"der");i.write("04",12,1,"hex");return p(i.toString("base64"),"PRIVATE")},public(e){const t=u.get("PublicKeyInfo");return t.encode({algorithm:{algorithm:e.crv},publicKey:{unused:0,data:o.decodeToBuffer(e.x)}},"pem",{label:"PUBLIC KEY"})}}};e.exports.jwkToPem=((e,{calculateMissingRSAPrimes:t=false}={})=>{switch(e.kty){case"EC":if(!d.has(e.crv)){throw new a.JOSENotSupported(`unsupported EC key curve: ${e.crv}`)}break;case"OKP":if(!c.has(e.crv)){throw new a.JOSENotSupported(`unsupported OKP key curve: ${e.crv}`)}break;case"RSA":break;default:throw new a.JOSENotSupported(`unsupported key type: ${e.kty}`)}if(e.d){return b[e.kty].private(e,{calculateMissingRSAPrimes:t})}return b[e.kty].public(e)})},function(e,t,i){"use strict";const n=i(614);const a=i(373);const r=i(211);const s=i(363);const o=i(631);const u=i(818);const l=i(835);const c=i(301);const d=i(646);const p=i(330);const f=i(738);const h=i(10);const{BINARY_TYPES:m,EMPTY_BUFFER:b,GUID:g,kStatusCode:y,kWebSocket:S,NOOP:w}=i(799);const v=["CONNECTING","OPEN","CLOSING","CLOSED"];const z=[8,13];const j=30*1e3;class WebSocket extends n{constructor(e,t,i){super();this.readyState=WebSocket.CONNECTING;this.protocol="";this._binaryType=m[0];this._closeFrameReceived=false;this._closeFrameSent=false;this._closeMessage="";this._closeTimer=null;this._closeCode=1006;this._extensions={};this._receiver=null;this._sender=null;this._socket=null;if(e!==null){this._isServer=false;this._redirects=0;if(Array.isArray(t)){t=t.join(", ")}else if(typeof t==="object"&&t!==null){i=t;t=undefined}initAsClient(this,e,t,i)}else{this._isServer=true}}get CONNECTING(){return WebSocket.CONNECTING}get CLOSING(){return WebSocket.CLOSING}get CLOSED(){return WebSocket.CLOSED}get OPEN(){return WebSocket.OPEN}get binaryType(){return this._binaryType}set binaryType(e){if(!m.includes(e))return;this._binaryType=e;if(this._receiver)this._receiver._binaryType=e}get bufferedAmount(){if(!this._socket)return 0;return(this._socket.bufferSize||0)+this._sender._bufferedBytes}get extensions(){return Object.keys(this._extensions).join()}setSocket(e,t,i){const n=new f(this._binaryType,this._extensions,i);this._sender=new h(e,this._extensions);this._receiver=n;this._socket=e;n[S]=this;e[S]=this;n.on("conclude",receiverOnConclude);n.on("drain",receiverOnDrain);n.on("error",receiverOnError);n.on("message",receiverOnMessage);n.on("ping",receiverOnPing);n.on("pong",receiverOnPong);e.setTimeout(0);e.setNoDelay();if(t.length>0)e.unshift(t);e.on("close",socketOnClose);e.on("data",socketOnData);e.on("end",socketOnEnd);e.on("error",socketOnError);this.readyState=WebSocket.OPEN;this.emit("open")}emitClose(){this.readyState=WebSocket.CLOSED;if(!this._socket){this.emit("close",this._closeCode,this._closeMessage);return}if(this._extensions[c.extensionName]){this._extensions[c.extensionName].cleanup()}this._receiver.removeAllListeners();this.emit("close",this._closeCode,this._closeMessage)}close(e,t){if(this.readyState===WebSocket.CLOSED)return;if(this.readyState===WebSocket.CONNECTING){const e="WebSocket was closed before the connection was established";return abortHandshake(this,this._req,e)}if(this.readyState===WebSocket.CLOSING){if(this._closeFrameSent&&this._closeFrameReceived)this._socket.end();return}this.readyState=WebSocket.CLOSING;this._sender.close(e,t,!this._isServer,e=>{if(e)return;this._closeFrameSent=true;if(this._closeFrameReceived)this._socket.end()});this._closeTimer=setTimeout(this._socket.destroy.bind(this._socket),j)}ping(e,t,i){if(typeof e==="function"){i=e;e=t=undefined}else if(typeof t==="function"){i=t;t=undefined}if(this.readyState!==WebSocket.OPEN){const e=new Error(`WebSocket is not open: readyState ${this.readyState} `+`(${v[this.readyState]})`);if(i)return i(e);throw e}if(typeof e==="number")e=e.toString();if(t===undefined)t=!this._isServer;this._sender.ping(e||b,t,i)}pong(e,t,i){if(typeof e==="function"){i=e;e=t=undefined}else if(typeof t==="function"){i=t;t=undefined}if(this.readyState!==WebSocket.OPEN){const e=new Error(`WebSocket is not open: readyState ${this.readyState} `+`(${v[this.readyState]})`);if(i)return i(e);throw e}if(typeof e==="number")e=e.toString();if(t===undefined)t=!this._isServer;this._sender.pong(e||b,t,i)}send(e,t,i){if(typeof t==="function"){i=t;t={}}if(this.readyState!==WebSocket.OPEN){const e=new Error(`WebSocket is not open: readyState ${this.readyState} `+`(${v[this.readyState]})`);if(i)return i(e);throw e}if(typeof e==="number")e=e.toString();const n=Object.assign({binary:typeof e!=="string",mask:!this._isServer,compress:true,fin:true},t);if(!this._extensions[c.extensionName]){n.compress=false}this._sender.send(e||b,n,i)}terminate(){if(this.readyState===WebSocket.CLOSED)return;if(this.readyState===WebSocket.CONNECTING){const e="WebSocket was closed before the connection was established";return abortHandshake(this,this._req,e)}if(this._socket){this.readyState=WebSocket.CLOSING;this._socket.destroy()}}}v.forEach((e,t)=>{WebSocket[e]=t});["open","error","close","message"].forEach(e=>{Object.defineProperty(WebSocket.prototype,`on${e}`,{get(){const t=this.listeners(e);for(var i=0;i{abortHandshake(e,w,"Opening handshake has timed out")})}w.on("error",t=>{if(e._req.aborted)return;w=e._req=null;e.readyState=WebSocket.CLOSING;e.emit("error",t);e.emitClose()});w.on("response",a=>{const r=a.headers.location;const s=a.statusCode;if(r&&o.followRedirects&&s>=300&&s<400){if(++e._redirects>o.maxRedirects){abortHandshake(e,w,"Maximum redirects exceeded");return}w.abort();const a=l.URL?new l.URL(r,t):l.resolve(t,r);initAsClient(e,a,i,n)}else if(!e.emit("unexpected-response",w,a)){abortHandshake(e,w,`Unexpected server response: ${a.statusCode}`)}});w.on("upgrade",(t,n,r)=>{e.emit("upgrade",t);if(e.readyState!==WebSocket.CONNECTING)return;w=e._req=null;const s=a.createHash("sha1").update(m+g).digest("base64");if(t.headers["sec-websocket-accept"]!==s){abortHandshake(e,n,"Invalid Sec-WebSocket-Accept header");return}const u=t.headers["sec-websocket-protocol"];const l=(i||"").split(/, */);var d;if(!i&&u){d="Server sent a subprotocol but none was requested"}else if(i&&!u){d="Server sent no subprotocol"}else if(u&&!l.includes(u)){d="Server sent an invalid subprotocol"}if(d){abortHandshake(e,n,d);return}if(u)e.protocol=u;if(S){try{const i=p.parse(t.headers["sec-websocket-extensions"]);if(i[c.extensionName]){S.accept(i[c.extensionName]);e._extensions[c.extensionName]=S}}catch(t){abortHandshake(e,n,"Invalid Sec-WebSocket-Extensions header");return}}e.setSocket(n,r,o.maxPayload)})}function netConnect(e){if(e.protocolVersion)e.path=e.socketPath;return o.connect(e)}function tlsConnect(e){e.path=undefined;e.servername=e.servername||e.host;return u.connect(e)}function abortHandshake(e,t,i){e.readyState=WebSocket.CLOSING;const n=new Error(i);Error.captureStackTrace(n,abortHandshake);if(t.setHeader){t.abort();t.once("abort",e.emitClose.bind(e));e.emit("error",n)}else{t.destroy(n);t.once("error",e.emit.bind(e,"error"));t.once("close",e.emitClose.bind(e))}}function receiverOnConclude(e,t){const i=this[S];i._socket.removeListener("data",socketOnData);i._socket.resume();i._closeFrameReceived=true;i._closeMessage=t;i._closeCode=e;if(e===1005)i.close();else i.close(e,t)}function receiverOnDrain(){this[S]._socket.resume()}function receiverOnError(e){const t=this[S];t._socket.removeListener("data",socketOnData);t.readyState=WebSocket.CLOSING;t._closeCode=e[y];t.emit("error",e);t._socket.destroy()}function receiverOnFinish(){this[S].emitClose()}function receiverOnMessage(e){this[S].emit("message",e)}function receiverOnPing(e){const t=this[S];t.pong(e,!t._isServer,w);t.emit("ping",e)}function receiverOnPong(e){this[S].emit("pong",e)}function socketOnClose(){const e=this[S];this.removeListener("close",socketOnClose);this.removeListener("end",socketOnEnd);e.readyState=WebSocket.CLOSING;e._socket.read();e._receiver.end();this.removeListener("data",socketOnData);this[S]=undefined;clearTimeout(e._closeTimer);if(e._receiver._writableState.finished||e._receiver._writableState.errorEmitted){e.emitClose()}else{e._receiver.on("error",receiverOnFinish);e._receiver.on("finish",receiverOnFinish)}}function socketOnData(e){if(!this[S]._receiver.write(e)){this.pause()}}function socketOnEnd(){const e=this[S];e.readyState=WebSocket.CLOSING;e._receiver.end();this.end()}function socketOnError(){const e=this[S];this.removeListener("error",socketOnError);this.on("error",w);e.readyState=WebSocket.CLOSING;this.destroy()}},,function(e,t,i){"use strict";var n=i(43);e.exports=new n({include:[i(581)],implicit:[i(809),i(228),i(44),i(417)]})},function(module){module.exports=eval("require")("bufferutil")},,,,function(e){"use strict";e.exports=function generate_comment(e,t,i){var n=" ";var a=e.schema[t];var r=e.errSchemaPath+"/"+t;var s=!e.opts.allErrors;var o=e.util.toQuotedString(a);if(e.opts.$comment===true){n+=" console.log("+o+");"}else if(typeof e.opts.$comment=="function"){n+=" self._opts.$comment("+o+", "+e.util.toQuotedString(r)+", validate.root.schema);"}return n}},,,,function(e,t,i){const{createHash:n}=i(373);const a=i(208);const r=(e,t)=>a.encodeBuffer(n(e).update(Buffer.from(t,"base64")).digest());e.exports.kid=(e=>a.encodeBuffer(n("sha256").update(JSON.stringify(e)).digest()));e.exports.x5t=r.bind(undefined,"sha1");e.exports["x5t#S256"]=r.bind(undefined,"sha256")},,function(e,t,i){const{createSign:n,createVerify:a,constants:r}=i(373);const{KEYOBJECT:s}=i(771);const o=i(165);const{asInput:u}=i(40);const l=(e,{[s]:t},i)=>{const a=u(t,false);return n(e).update(i).sign({key:a,padding:r.RSA_PKCS1_PSS_PADDING,saltLength:r.RSA_PSS_SALTLEN_DIGEST})};const c=(e,{[s]:t},i,n)=>{const o=u(t,true);return a(e).update(i).verify({key:o,padding:r.RSA_PKCS1_PSS_PADDING,saltLength:r.RSA_PSS_SALTLEN_DIGEST},n)};const d={PS256:528,PS384:784,PS512:1040};e.exports=((e,t)=>{["PS256","PS384","PS512"].forEach(i=>{const n=o(i);e.sign.set(i,l.bind(undefined,n));e.verify.set(i,c.bind(undefined,n));t.RSA.sign[i]=(e=>e.private&&t.RSA.verify[i](e));t.RSA.verify[i]=(e=>(e.use==="sig"||e.use===undefined)&&e.length>=d[i])})})},function(e,t,i){"use strict";var n=i(701);var a=n.Cookie;var r=n.CookieJar;t.parse=function(e){if(e&&e.uri){e=e.uri}if(typeof e!=="string"){throw new Error("The cookie function only accepts STRING as param")}return a.parse(e,{loose:true})};function RequestJar(e){var t=this;t._jar=new r(e,{looseMode:true})}RequestJar.prototype.setCookie=function(e,t,i){var n=this;return n._jar.setCookieSync(e,t,i||{})};RequestJar.prototype.getCookieString=function(e){var t=this;return t._jar.getCookieStringSync(e)};RequestJar.prototype.getCookies=function(e){var t=this;return t._jar.getCookiesSync(e)};t.jar=function(e){return new RequestJar(e)}},function(e,t,i){const{createCipheriv:n,createDecipheriv:a,getCiphers:r}=i(373);const{KEYOBJECT:s}=i(771);const{asInput:o}=i(40);const u=e=>{if(e!==undefined&&e.length%8!==0){throw new Error("invalid data length")}};const l=(e,{[s]:t},i)=>{const a=o(t,false);const r=n(e,a,Buffer.alloc(8,"a6","hex"));return{wrapped:Buffer.concat([r.update(i),r.final()])}};const c=(e,{[s]:t},i)=>{const n=o(t,false);u(i);const r=a(e,n,Buffer.alloc(8,"a6","hex"));return Buffer.concat([r.update(i),r.final()])};e.exports=((e,t)=>{["A128KW","A192KW","A256KW"].forEach(i=>{const n=parseInt(i.substr(1,3),10);const a=`aes${n}-wrap`;if(r().includes(a)){e.keyManagementEncrypt.set(i,l.bind(undefined,a));e.keyManagementDecrypt.set(i,c.bind(undefined,a));t.oct.wrapKey[i]=t.oct.unwrapKey[i]=(e=>(e.use==="enc"||e.use===undefined)&&e.length===n)}})})},,function(e){const t=60;const i=t*60;const n=i*24;const a=n*7;const r=n*365.25;const s=/^(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)$/i;e.exports=(e=>{const o=s.exec(e);if(!o){throw new TypeError(`invalid time period format ("${e}")`)}const u=parseFloat(o[1]);const l=o[2].toLowerCase();switch(l){case"sec":case"secs":case"second":case"seconds":case"s":return Math.round(u);case"minute":case"minutes":case"min":case"mins":case"m":return Math.round(u*t);case"hour":case"hours":case"hr":case"hrs":case"h":return Math.round(u*i);case"day":case"days":case"d":return Math.round(u*n);case"week":case"weeks":case"w":return Math.round(u*a);case"year":case"years":case"yr":case"yrs":case"y":return Math.round(u*r)}})},function(e,t,i){const{inspect:n,deprecate:a}=i(669);const r=i(835);const s=i(387);const o=i(101);const u=i(702);const l=i(472);const{RPError:c}=i(572);const d=i(860);const p=i(564);const f=i(88);const h=i(244);const m=i(880);const b=i(204);const{assertIssuerConfiguration:g}=i(770);const{ISSUER_DEFAULTS:y,OIDC_DISCOVERY:S,OAUTH2_DISCOVERY:w,WEBFINGER:v,REL:z,AAD_MULTITENANT_DISCOVERY:j}=i(468);const O=Symbol("AAD_MULTITENANT");class Issuer{constructor(e={}){const t=e[O];delete e[O];["introspection","revocation"].forEach(t=>{if(e[`${t}_endpoint`]&&e[`${t}_endpoint_auth_methods_supported`]===undefined&&e[`${t}_endpoint_auth_signing_alg_values_supported`]===undefined){if(e.token_endpoint_auth_methods_supported){e[`${t}_endpoint_auth_methods_supported`]=e.token_endpoint_auth_methods_supported}if(e.token_endpoint_auth_signing_alg_values_supported){e[`${t}_endpoint_auth_signing_alg_values_supported`]=e.token_endpoint_auth_signing_alg_values_supported}}});Object.entries(e).forEach(([e,t])=>{m(this).get("metadata").set(e,t);if(!this[e]){Object.defineProperty(this,e,{get(){return m(this).get("metadata").get(e)},enumerable:true})}});m(this).set("cache",new u({max:100}));p.set(this.issuer,this);Object.defineProperty(this,"Client",{value:d(this,t)});Object.defineProperty(this,"FAPIClient",{value:class FAPIClient extends this.Client{}})}async keystore(e=false){g(this,"jwks_uri");const t=m(this).get("keystore");const i=m(this).get("cache");if(e||!t){i.reset();const e=await b.call(this,{method:"GET",json:true,url:this.jwks_uri});const t=f(e);const n=s.JWKS.asKeyStore(t,{ignoreErrors:true});i.set("throttle",true,60*1e3);m(this).set("keystore",n);return n}return t}async queryKeyStore({kid:e,kty:t,alg:i,use:n,key_ops:a},{allowMulti:r=false}={}){const o=m(this).get("cache");const u={kid:e,kty:t,alg:i,use:n,key_ops:a};const d=l(u,{algorithm:"sha256",ignoreUnknown:true,unorderedArrays:true,unorderedSets:true});const p=o.get(d)||o.get("throttle");const f=await this.keystore(!p);const h=f.all(u);if(h.length===0){throw new c({printf:["no valid key found in issuer's jwks_uri for key parameters %j",u],jwks:f})}if(!r&&h.length>1&&!e){throw new c({printf:["multiple matching keys found in issuer's jwks_uri for key parameters %j, kid must be provided in this case",u],jwks:f})}o.set(d,true);return new s.JWKS.KeyStore(h)}get metadata(){const e={};m(this).get("metadata").forEach((t,i)=>{e[i]=t});return e}static async webfinger(e){const t=h(e);const{host:i}=r.parse(t);const n=`https://${i}${v}`;const a=await b.call(this,{method:"GET",url:n,json:true,query:{resource:t,rel:z},followRedirect:true});const s=f(a);const o=Array.isArray(s.links)&&s.links.find(e=>typeof e==="object"&&e.rel===z&&e.href);if(!o){throw new c({message:"no issuer found in webfinger response",body:s})}if(typeof o.href!=="string"||!o.href.startsWith("https://")){throw new c({printf:["invalid issuer location %s",o.href],body:s})}const u=o.href;if(p.has(u)){return p.get(u)}const l=await this.discover(u);if(l.issuer!==u){p.delete(l.issuer);throw new c("discovered issuer mismatch, expected %s, got: %s",u,l.issuer)}return l}static async discover(e){const t=r.parse(e);if(t.pathname.includes("/.well-known/")){const t=await b.call(this,{method:"GET",json:true,url:e});const i=f(t);return new Issuer({...y,...i,[O]:!!j.find(t=>e.startsWith(t))})}const i=[];if(t.pathname==="/"){i.push(`${w}`)}else{i.push(`${w}${t.pathname}`)}if(t.pathname.endsWith("/")){i.push(`${t.pathname}${S.substring(1)}`)}else{i.push(`${t.pathname}${S}`)}return o(i.map(async e=>{const i=r.format({...t,pathname:e});const n=await b.call(this,{method:"GET",json:true,url:i});const a=f(n);return new Issuer({...y,...a,[O]:!!j.find(e=>i.startsWith(e))})}))}[n.custom](){return`${this.constructor.name} ${n(this.metadata,{depth:Infinity,colors:process.stdout.isTTY,compact:false,sorted:true})}`}}Issuer.prototype.key=a(async function key({kid:e,kty:t,alg:i,use:n,key_ops:a},r=false){const s=m(this).get("cache");const o={kid:e,kty:t,alg:i,use:n,key_ops:a};const u=l(o,{algorithm:"sha256",ignoreUnknown:true,unorderedArrays:true,unorderedSets:true});const d=s.get(u)||s.get("throttle");const p=await this.keystore(!d);const f=p.all(o);if(f.length===0){throw new c({printf:["no valid key found in issuer's jwks_uri for key parameters %j",o],jwks:p})}if(!r){if(f.length!==1){throw new c({printf:["multiple matching keys found in issuer's jwks_uri for key parameters %j, kid must be provided in this case",o],jwks:p})}s.set(u,true)}return f[0]},"issuer.key is not only a private API, it is also deprecated");e.exports=Issuer},function(e,t,i){const{keyObjectSupported:n}=i(915);let a;let r;let s;let o;let u;if(n){({createPublicKey:a,createPrivateKey:r,createSecretKey:s,KeyObject:o}=i(373));u=(e=>e)}else{const{EOL:e}=i(87);const t=i(466);const n=i(274);const l=i(884);const c=Symbol("toInput");const d=Symbol("namedCurve");u=((e,t)=>{if(e instanceof o){return e[c](t)}return s(e)[c](t)});const p=e=>Buffer.from(e.replace(/(?:-----(?:BEGIN|END)(?: (?:RSA|EC))? (?:PRIVATE|PUBLIC) KEY-----|\s)/g,""),"base64");const f=(t,i)=>`-----BEGIN ${i}-----${e}${(t.toString("base64").match(/.{1,64}/g)||[]).join(e)}${e}-----END ${i}-----`;const h=e=>{const i=typeof e==="string"?e:`OID ${e.join(".")}`;throw new t.JOSENotSupported(`${i} is not supported in your Node.js runtime version`)};o=class KeyObject{export({cipher:e,passphrase:i,type:n,format:a}={}){if(this._type==="secret"){return this._buffer}if(this._type==="public"){if(this.asymmetricKeyType==="rsa"){switch(n){case"pkcs1":if(a==="pem"){return this._pem}return p(this._pem);case"spki":{const e=l.get("PublicKeyInfo");const t=e.encode({algorithm:{algorithm:"rsaEncryption",parameters:{type:"null"}},publicKey:{unused:0,data:p(this._pem)}},"pem",{label:"PUBLIC KEY"});return a==="pem"?t:p(t)}default:throw new TypeError(`The value ${n} is invalid for option "type"`)}}if(this.asymmetricKeyType==="ec"){if(n!=="spki"){throw new TypeError(`The value ${n} is invalid for option "type"`)}if(a==="pem"){return this._pem}return p(this._pem)}}if(this._type==="private"){if(i!==undefined||e!==undefined){throw new t.JOSENotSupported("encrypted private keys are not supported in your Node.js runtime version")}if(n==="pkcs8"){if(this._pkcs8){if(a==="der"&&typeof this._pkcs8==="string"){return p(this._pkcs8)}if(a==="pem"&&Buffer.isBuffer(this._pkcs8)){return f(this._pkcs8,"PRIVATE KEY")}return this._pkcs8}if(this.asymmetricKeyType==="rsa"){const e=this._asn1;const t=l.get("RSAPrivateKey");const i=t.encode(e);const r=l.get("PrivateKeyInfo");const s=r.encode({version:0,privateKey:i,algorithm:{algorithm:"rsaEncryption",parameters:{type:"null"}}});this._pkcs8=s;return this.export({type:n,format:a})}if(this.asymmetricKeyType==="ec"){const e=this._asn1;const t=l.get("ECPrivateKey");const i=t.encode({version:e.version,privateKey:e.privateKey,publicKey:e.publicKey});const r=l.get("PrivateKeyInfo");const s=r.encode({version:0,privateKey:i,algorithm:{algorithm:"ecPublicKey",parameters:this._asn1.parameters}});this._pkcs8=s;return this.export({type:n,format:a})}}if(this.asymmetricKeyType==="rsa"&&n==="pkcs1"){if(a==="pem"){return this._pem}return p(this._pem)}else if(this.asymmetricKeyType==="ec"&&n==="sec1"){if(a==="pem"){return this._pem}return p(this._pem)}else{throw new TypeError(`The value ${n} is invalid for option "type"`)}}}get type(){return this._type}get asymmetricKeyType(){return this._asymmetricKeyType}get symmetricKeySize(){return this._symmetricKeySize}[c](e){switch(this._type){case"secret":return this._buffer;case"public":return this._pem;default:if(e){if(!("_pub"in this)){this._pub=a(this)}return this._pub[c](false)}return this._pem}}};s=(e=>{if(!Buffer.isBuffer(e)||!e.length){throw new TypeError("input must be a non-empty Buffer instance")}const t=new o;t._buffer=Buffer.from(e);t._symmetricKeySize=e.length;t._type="secret";return t});a=(e=>{if(e instanceof o){if(e.type!=="private"){throw new TypeError(`Invalid key object type ${e.type}, expected private.`)}switch(e.asymmetricKeyType){case"ec":{const t=l.get("PublicKeyInfo");const i=t.encode({algorithm:{algorithm:"ecPublicKey",parameters:e._asn1.parameters},publicKey:e._asn1.publicKey});return a({key:i,format:"der",type:"spki"})}case"rsa":{const t=l.get("RSAPublicKey");const i=t.encode(e._asn1);return a({key:i,format:"der",type:"pkcs1"})}}}if(typeof e==="string"||Buffer.isBuffer(e)){e={key:e,format:"pem"}}if(!n(e)){throw new TypeError("input must be a string, Buffer or an object")}const{format:i,passphrase:s}=e;let{key:u,type:c}=e;if(typeof u!=="string"&&!Buffer.isBuffer(u)){throw new TypeError("key must be a string or Buffer")}if(i!=="pem"&&i!=="der"){throw new TypeError('format must be one of "pem" or "der"')}let d;if(i==="pem"){u=u.toString();switch(u.split(/\r?\n/g)[0].toString()){case"-----BEGIN PUBLIC KEY-----":c="spki";d="PUBLIC KEY";break;case"-----BEGIN RSA PUBLIC KEY-----":c="pkcs1";d="RSA PUBLIC KEY";break;case"-----BEGIN CERTIFICATE-----":throw new t.JOSENotSupported("X.509 certificates are not supported in your Node.js runtime version");case"-----BEGIN PRIVATE KEY-----":case"-----BEGIN EC PRIVATE KEY-----":case"-----BEGIN RSA PRIVATE KEY-----":return a(r(u));default:throw new TypeError("unknown/unsupported PEM type")}}switch(c){case"spki":{const e=l.get("PublicKeyInfo");const t=e.decode(u,i,{label:d});let n,r;switch(t.algorithm.algorithm){case"ecPublicKey":{r=new o;r._asn1=t;r._asymmetricKeyType="ec";r._type="public";r._pem=e.encode(t,"pem",{label:"PUBLIC KEY"});break}case"rsaEncryption":{n="pkcs1";r=a({type:n,key:t.publicKey.data,format:"der"});break}default:h(t.algorithm.algorithm)}return r}case"pkcs1":{const e=l.get("RSAPublicKey");const t=e.decode(u,i,{label:d});if(t.n===BigInt(0)){return a(r({key:u,format:i,type:c,passphrase:s}))}const n=new o;n._asn1=t;n._asymmetricKeyType="rsa";n._type="public";n._pem=e.encode(t,"pem",{label:"RSA PUBLIC KEY"});return n}case"pkcs8":case"sec1":return a(r({format:i,key:u,type:c,passphrase:s}));default:throw new TypeError(`The value ${c} is invalid for option "type"`)}});r=((e,i)=>{if(typeof e==="string"||Buffer.isBuffer(e)){e={key:e,format:"pem"}}if(!n(e)){throw new TypeError("input must be a string, Buffer or an object")}const{format:a,passphrase:s}=e;let{key:u,type:c}=e;if(typeof u!=="string"&&!Buffer.isBuffer(u)){throw new TypeError("key must be a string or Buffer")}if(s!==undefined){throw new t.JOSENotSupported("encrypted private keys are not supported in your Node.js runtime version")}if(a!=="pem"&&a!=="der"){throw new TypeError('format must be one of "pem" or "der"')}let p;if(a==="pem"){u=u.toString();switch(u.split(/\r?\n/g)[0].toString()){case"-----BEGIN PRIVATE KEY-----":c="pkcs8";p="PRIVATE KEY";break;case"-----BEGIN EC PRIVATE KEY-----":c="sec1";p="EC PRIVATE KEY";break;case"-----BEGIN RSA PRIVATE KEY-----":c="pkcs1";p="RSA PRIVATE KEY";break;default:throw new TypeError("unknown/unsupported PEM type")}}switch(c){case"pkcs8":{const e=l.get("PrivateKeyInfo");const t=e.decode(u,a,{label:p});let i,n;switch(t.algorithm.algorithm){case"ecPublicKey":{i="sec1";n=r({type:i,key:t.privateKey,format:"der"},{[d]:t.algorithm.parameters.value});break}case"rsaEncryption":{i="pkcs1";n=r({type:i,key:t.privateKey,format:"der"});break}default:h(t.algorithm.algorithm)}n._pkcs8=u;return n}case"pkcs1":{const e=l.get("RSAPrivateKey");const t=e.decode(u,a,{label:p});const i=new o;i._asn1=t;i._asymmetricKeyType="rsa";i._type="private";i._pem=e.encode(t,"pem",{label:"RSA PRIVATE KEY"});return i}case"sec1":{const e=l.get("ECPrivateKey");let t=e.decode(u,a,{label:p});if(!("parameters"in t)&&!i[d]){throw new Error("invalid sec1")}else if(!("parameters"in t)){t={...t,parameters:{type:"namedCurve",value:i[d]}}}const n=new o;n._asn1=t;n._asymmetricKeyType="ec";n._type="private";n._pem=e.encode(t,"pem",{label:"EC PRIVATE KEY"});return n}default:throw new TypeError(`The value ${c} is invalid for option "type"`)}})}e.exports={createPublicKey:a,createPrivateKey:r,createSecretKey:s,KeyObject:o,asInput:u}},function(e){e.exports={$id:"har.json#",$schema:"http://json-schema.org/draft-06/schema#",type:"object",required:["log"],properties:{log:{$ref:"log.json#"}}}},,function(e,t,i){"use strict";var n=i(128);var a=i(556);var r=i(945);function compileList(e,t,i){var n=[];e.include.forEach(function(e){i=compileList(e,t,i)});e[t].forEach(function(e){i.forEach(function(t,i){if(t.tag===e.tag&&t.kind===e.kind){n.push(i)}});i.push(e)});return i.filter(function(e,t){return n.indexOf(t)===-1})}function compileMap(){var e={scalar:{},sequence:{},mapping:{},fallback:{}},t,i;function collectType(t){e[t.kind][t.tag]=e["fallback"][t.tag]=t}for(t=0,i=arguments.length;t=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},function(e,t,i){"use strict";var n=/^[a-z_$][a-z0-9_$-]*$/i;var a=i(187);var r=i(952);e.exports={add:addKeyword,get:getKeyword,remove:removeKeyword,validate:validateKeyword};function addKeyword(e,t){var i=this.RULES;if(i.keywords[e])throw new Error("Keyword "+e+" is already defined");if(!n.test(e))throw new Error("Keyword "+e+" is not a valid identifier");if(t){this.validateKeyword(t,true);var r=t.type;if(Array.isArray(r)){for(var s=0;s{return t.some(t=>t instanceof RegExp?t.test(e):t===e)};const o=(e,{stripHash:t})=>{const i=e.match(/^data:(.*?),(.*?)(?:#(.*))?$/);if(!i){throw new Error(`Invalid URL: ${e}`)}const n=i[1].split(";");const s=i[2];const o=t?"":i[3];let u=false;if(n[n.length-1]==="base64"){n.pop();u=true}const l=(n.shift()||"").toLowerCase();const c=n.map(e=>{let[t,i=""]=e.split("=").map(e=>e.trim());if(t==="charset"){i=i.toLowerCase();if(i===r){return""}}return`${t}${i?`=${i}`:""}`}).filter(Boolean);const d=[...c];if(u){d.push("base64")}if(d.length!==0||l&&l!==a){d.unshift(l)}return`data:${d.join(";")},${u?s.trim():s}${o?`#${o}`:""}`};const u=(e,t)=>{t={defaultProtocol:"http:",normalizeProtocol:true,forceHttp:false,forceHttps:false,stripAuthentication:true,stripHash:false,stripWWW:true,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:true,removeDirectoryIndex:false,sortQueryParameters:true,...t};if(Reflect.has(t,"normalizeHttps")){throw new Error("options.normalizeHttps is renamed to options.forceHttp")}if(Reflect.has(t,"normalizeHttp")){throw new Error("options.normalizeHttp is renamed to options.forceHttps")}if(Reflect.has(t,"stripFragment")){throw new Error("options.stripFragment is renamed to options.stripHash")}e=e.trim();if(/^data:/i.test(e)){return o(e,t)}const i=e.startsWith("//");const a=!i&&/^\.*\//.test(e);if(!a){e=e.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,t.defaultProtocol)}const r=new n(e);if(t.forceHttp&&t.forceHttps){throw new Error("The `forceHttp` and `forceHttps` options cannot be used together")}if(t.forceHttp&&r.protocol==="https:"){r.protocol="http:"}if(t.forceHttps&&r.protocol==="http:"){r.protocol="https:"}if(t.stripAuthentication){r.username="";r.password=""}if(t.stripHash){r.hash=""}if(r.pathname){r.pathname=r.pathname.replace(/((?!:).|^)\/{2,}/g,(e,t)=>{if(/^(?!\/)/g.test(t)){return`${t}/`}return"/"})}if(r.pathname){r.pathname=decodeURI(r.pathname)}if(t.removeDirectoryIndex===true){t.removeDirectoryIndex=[/^index\.[a-z]+$/]}if(Array.isArray(t.removeDirectoryIndex)&&t.removeDirectoryIndex.length>0){let e=r.pathname.split("/");const i=e[e.length-1];if(s(i,t.removeDirectoryIndex)){e=e.slice(0,e.length-1);r.pathname=e.slice(1).join("/")+"/"}}if(r.hostname){r.hostname=r.hostname.replace(/\.$/,"");if(t.stripWWW&&/^www\.([a-z\-\d]{2,63})\.([a-z.]{2,5})$/.test(r.hostname)){r.hostname=r.hostname.replace(/^www\./,"")}}if(Array.isArray(t.removeQueryParameters)){for(const e of[...r.searchParams.keys()]){if(s(e,t.removeQueryParameters)){r.searchParams.delete(e)}}}if(t.sortQueryParameters){r.searchParams.sort()}if(t.removeTrailingSlash){r.pathname=r.pathname.replace(/\/$/,"")}e=r.toString();if((t.removeTrailingSlash||r.pathname==="/")&&r.hash===""){e=e.replace(/\/$/,"")}if(i&&!t.normalizeProtocol){e=e.replace(/^http:\/\//,"//")}if(t.stripProtocol){e=e.replace(/^(?:https?:)?\/\//,"")}return e};e.exports=u;e.exports.default=u},function(e,t){"use strict";function pathMatch(e,t){if(t===e){return true}var i=e.indexOf(t);if(i===0){if(t.substr(-1)==="/"){return true}if(e.substr(t.length,1)==="/"){return true}}return false}t.pathMatch=pathMatch},,,function(e,t,i){"use strict";const n=i(747);const a=i(669);const r=i(534);const s=i(504);e.exports=(async e=>{const{body:t}=e;if(e.headers["content-length"]){return Number(e.headers["content-length"])}if(!t&&!e.stream){return 0}if(r.string(t)){return Buffer.byteLength(t)}if(s(t)){return a.promisify(t.getLength.bind(t))()}if(t instanceof n.ReadStream){const{size:e}=await a.promisify(n.stat)(t.path);return e}return null})},,function(e,t,i){"use strict";e.exports=i(237)},function(e){"use strict";e.exports={BINARY_TYPES:["nodebuffer","arraybuffer","fragments"],GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),EMPTY_BUFFER:Buffer.alloc(0),NOOP:()=>{}}},,function(e,t,i){var n=i(602);var a=i(747);n.register("tail",_tail,{canReceivePipe:true,cmdOptions:{n:"numLines"}});function _tail(e,t){var i=[];var r=n.readFromPipe();if(!t&&!r)n.error("no paths given");var s=1;if(e.numLines===true){s=2;e.numLines=Number(arguments[1])}else if(e.numLines===false){e.numLines=10}e.numLines=-1*Math.abs(e.numLines);t=[].slice.call(arguments,s);if(r){t.unshift("-")}var o=false;t.forEach(function(t){if(t!=="-"){if(!a.existsSync(t)){n.error("no such file or directory: "+t,{continue:true});return}else if(n.statFollowLinks(t).isDirectory()){n.error("error reading '"+t+"': Is a directory",{continue:true});return}}var s=t==="-"?r:a.readFileSync(t,"utf8");var u=s.split("\n");if(u[u.length-1]===""){u.pop();o=true}else{o=false}i=i.concat(u.slice(e.numLines))});if(o){i.push("")}return i.join("\n")}e.exports=_tail},function(e,t,i){var n=i(747);var a=i(622);var r=i(602);var s=i(838);var o=i(688);r.register("mv",_mv,{cmdOptions:{f:"!no_force",n:"no_force"}});function checkRecentCreated(e,t){var i=e[t];return e.slice(0,t).some(function(e){return a.basename(e)===a.basename(i)})}function _mv(e,t,i){if(arguments.length<3){r.error("missing and/or ")}else if(arguments.length>3){t=[].slice.call(arguments,1,arguments.length-1);i=arguments[arguments.length-1]}else if(typeof t==="string"){t=[t]}else{r.error("invalid arguments")}var u=n.existsSync(i);var l=u&&r.statFollowLinks(i);if((!u||!l.isDirectory())&&t.length>1){r.error("dest is not a directory (too many sources)")}if(u&&l.isFile()&&e.no_force){r.error("dest file already exists: "+i)}t.forEach(function(u,l){if(!n.existsSync(u)){r.error("no such file or directory: "+u,{continue:true});return}var c=i;if(n.existsSync(i)&&r.statFollowLinks(i).isDirectory()){c=a.normalize(i+"/"+a.basename(u))}var d=n.existsSync(c);if(d&&checkRecentCreated(t,l)){if(!e.no_force){r.error("will not overwrite just-created '"+c+"' with '"+u+"'",{continue:true})}return}if(n.existsSync(c)&&e.no_force){r.error("dest file already exists: "+c,{continue:true});return}if(a.resolve(u)===a.dirname(a.resolve(c))){r.error("cannot move to self: "+u,{continue:true});return}try{n.renameSync(u,c)}catch(e){if(e.code==="EXDEV"){s("-r",u,c);o("-rf",u)}}});return""}e.exports=_mv},function(e,t,i){var n=i(872);var a=i(373);var r=i(363);var s=i(669);var o=i(650);var u=i(348);var l=i(909);var c=i(669).format;var d=l.HASH_ALGOS;var p=l.PK_ALGOS;var f=l.InvalidAlgorithmError;var h=l.HttpSignatureError;var m=l.validateAlgorithm;var b='Signature keyId="%s",algorithm="%s",headers="%s",signature="%s"';function MissingHeaderError(e){h.call(this,e,MissingHeaderError)}s.inherits(MissingHeaderError,h);function StrictParsingError(e){h.call(this,e,StrictParsingError)}s.inherits(StrictParsingError,h);function RequestSigner(e){n.object(e,"options");var t=[];if(e.algorithm!==undefined){n.string(e.algorithm,"options.algorithm");t=m(e.algorithm)}this.rs_alg=t;if(e.sign!==undefined){n.func(e.sign,"options.sign");this.rs_signFunc=e.sign}else if(t[0]==="hmac"&&e.key!==undefined){n.string(e.keyId,"options.keyId");this.rs_keyId=e.keyId;if(typeof e.key!=="string"&&!Buffer.isBuffer(e.key))throw new TypeError("options.key for HMAC must be a string or Buffer");this.rs_signer=a.createHmac(t[1].toUpperCase(),e.key);this.rs_signer.sign=function(){var e=this.digest("base64");return{hashAlgorithm:t[1],toString:function(){return e}}}}else if(e.key!==undefined){var i=e.key;if(typeof i==="string"||Buffer.isBuffer(i))i=o.parsePrivateKey(i);n.ok(o.PrivateKey.isPrivateKey(i,[1,2]),"options.key must be a sshpk.PrivateKey");this.rs_key=i;n.string(e.keyId,"options.keyId");this.rs_keyId=e.keyId;if(!p[i.type]){throw new f(i.type.toUpperCase()+" type "+"keys are not supported")}if(t[0]!==undefined&&i.type!==t[0]){throw new f("options.key must be a "+t[0].toUpperCase()+" key, was given a "+i.type.toUpperCase()+" key instead")}this.rs_signer=i.createSign(t[1])}else{throw new TypeError("options.sign (func) or options.key is required")}this.rs_headers=[];this.rs_lines=[]}RequestSigner.prototype.writeHeader=function(e,t){n.string(e,"header");e=e.toLowerCase();n.string(t,"value");this.rs_headers.push(e);if(this.rs_signFunc){this.rs_lines.push(e+": "+t)}else{var i=e+": "+t;if(this.rs_headers.length>0)i="\n"+i;this.rs_signer.update(i)}return t};RequestSigner.prototype.writeDateHeader=function(){return this.writeHeader("date",u.rfc1123(new Date))};RequestSigner.prototype.writeTarget=function(e,t){n.string(e,"method");n.string(t,"path");e=e.toLowerCase();this.writeHeader("(request-target)",e+" "+t)};RequestSigner.prototype.sign=function(e){n.func(e,"callback");if(this.rs_headers.length<1)throw new Error("At least one header must be signed");var t,i;if(this.rs_signFunc){var a=this.rs_lines.join("\n");var r=this;this.rs_signFunc(a,function(a,s){if(a){e(a);return}try{n.object(s,"signature");n.string(s.keyId,"signature.keyId");n.string(s.algorithm,"signature.algorithm");n.string(s.signature,"signature.signature");t=m(s.algorithm);i=c(b,s.keyId,s.algorithm,r.rs_headers.join(" "),s.signature)}catch(t){e(t);return}e(null,i)})}else{try{var s=this.rs_signer.sign()}catch(t){e(t);return}t=(this.rs_alg[0]||this.rs_key.type)+"-"+s.hashAlgorithm;var o=s.toString();i=c(b,this.rs_keyId,t,this.rs_headers.join(" "),o);e(null,i)}};e.exports={isSigner:function(e){if(typeof e==="object"&&e instanceof RequestSigner)return true;return false},createSigner:function createSigner(e){return new RequestSigner(e)},signRequest:function signRequest(e,t){n.object(e,"request");n.object(t,"options");n.optionalString(t.algorithm,"options.algorithm");n.string(t.keyId,"options.keyId");n.optionalArrayOfString(t.headers,"options.headers");n.optionalString(t.httpVersion,"options.httpVersion");if(!e.getHeader("Date"))e.setHeader("Date",u.rfc1123(new Date));if(!t.headers)t.headers=["date"];if(!t.httpVersion)t.httpVersion="1.1";var i=[];if(t.algorithm){t.algorithm=t.algorithm.toLowerCase();i=m(t.algorithm)}var r;var s="";for(r=0;ra){throw new TypeError(`version is longer than ${a} characters`)}n("SemVer",e,t);this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;const i=e.trim().match(t.loose?s[o.LOOSE]:s[o.FULL]);if(!i){throw new TypeError(`Invalid Version: ${e}`)}this.raw=e;this.major=+i[1];this.minor=+i[2];this.patch=+i[3];if(this.major>r||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>r||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>r||this.patch<0){throw new TypeError("Invalid patch version")}if(!i[4]){this.prerelease=[]}else{this.prerelease=i[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t=0){if(typeof this.prerelease[e]==="number"){this.prerelease[e]++;e=-2}}if(e===-1){this.prerelease.push(0)}}if(t){if(this.prerelease[0]===t){if(isNaN(this.prerelease[1])){this.prerelease=[t,0]}}else{this.prerelease=[t,0]}}break;default:throw new Error(`invalid increment argument: ${e}`)}this.format();this.raw=this.version;return this}}e.exports=SemVer},,,function(e,t,i){const{createHash:n}=i(373);const a=i(827);const r=(e,t,i)=>{const a=Math.ceil(t/32);let r;for(let t=1;t<=a;t++){const a=Buffer.allocUnsafe(4+e.length+i.length);a.writeUInt32BE(t,0);e.copy(a,4);i.copy(a,4+e.length);if(!r){r=n("sha256").update(a).digest()}else{r=Buffer.concat([r,n("sha256").update(a).digest()])}}return r.slice(0,t)};const s=(e,t=Buffer.allocUnsafe(4))=>{t.writeUInt32BE(e);return t};const o=e=>Buffer.concat([s(e.length),e]);e.exports=((e,t,i,n,{apu:u=Buffer.alloc(0),apv:l=Buffer.alloc(0)}={},c=a)=>{const d=Buffer.concat([o(Buffer.from(e)),o(u),o(l),s(t)]);const p=c(i,n);return r(p,t/8,d)})},function(e){e.exports=(e=>(function(){this.seq().obj(this.key("algorithm").use(e),this.key("publicKey").bitstr())}))},,,,,,,,,function(e,t,i){e.exports={read:read,readSSHPrivate:readSSHPrivate,write:write};var n=i(872);var a=i(325);var r=i(215).Buffer;var s=i(98);var o=i(270);var u=i(373);var l=i(852);var c=i(502);var d=i(268);var p=i(538);var f=i(940);var h=i(753);var m;function read(e,t){return d.read(e,t)}var b="openssh-key-v1";function readSSHPrivate(e,t,a){t=new f({buffer:t});var s=t.readCString();n.strictEqual(s,b,"bad magic string");var l=t.readString();var c=t.readString();var d=t.readBuffer();var g=t.readInt();if(g!==1){throw new Error("OpenSSH-format key file contains "+"multiple keys: this is unsupported.")}var y=t.readBuffer();if(e==="public"){n.ok(t.atEnd(),"excess bytes left after key");return p.read(y)}var S=t.readBuffer();n.ok(t.atEnd(),"excess bytes left after key");var w=new f({buffer:d});switch(c){case"none":if(l!=="none"){throw new Error('OpenSSH-format key uses KDF "none" '+'but specifies a cipher other than "none"')}break;case"bcrypt":var v=w.readBuffer();var z=w.readInt();var j=o.opensshCipherInfo(l);if(m===undefined){m=i(641)}if(typeof a.passphrase==="string"){a.passphrase=r.from(a.passphrase,"utf-8")}if(!r.isBuffer(a.passphrase)){throw new h.KeyEncryptedError(a.filename,"OpenSSH")}var O=new Uint8Array(a.passphrase);var k=new Uint8Array(v);var C=new Uint8Array(j.keySize+j.blockSize);var T=m.pbkdf(O,O.length,k,k.length,C,C.length,z);if(T!==0){throw new Error("bcrypt_pbkdf function returned "+"failure, parameters invalid")}C=r.from(C);var R=C.slice(0,j.keySize);var E=C.slice(j.keySize,j.keySize+j.blockSize);var A=u.createDecipheriv(j.opensslName,R,E);A.setAutoPadding(false);var x,N=[];A.once("error",function(e){if(e.toString().indexOf("bad decrypt")!==-1){throw new Error("Incorrect passphrase "+"supplied, could not decrypt key")}throw e});A.write(S);A.end();while((x=A.read())!==null)N.push(x);S=r.concat(N);break;default:throw new Error('OpenSSH-format key uses unknown KDF "'+c+'"')}t=new f({buffer:S});var V=t.readInt();var P=t.readInt();if(V!==P){throw new Error("Incorrect passphrase supplied, could not "+"decrypt key")}var D={};var I=p.readInternal(D,"private",t.remainder());t.skip(D.consumed);var _=t.readString();I.comment=_;return I}function write(e,t){var a;if(c.isPrivateKey(e))a=e.toPublic();else a=e;var s="none";var l="none";var d=r.alloc(0);var p={blockSize:8};var h;if(t!==undefined){h=t.passphrase;if(typeof h==="string")h=r.from(h,"utf-8");if(h!==undefined){n.buffer(h,"options.passphrase");n.optionalString(t.cipher,"options.cipher");s=t.cipher;if(s===undefined)s="aes128-ctr";p=o.opensshCipherInfo(s);l="bcrypt"}}var g;if(c.isPrivateKey(e)){g=new f({});var y=u.randomBytes(4).readUInt32BE(0);g.writeInt(y);g.writeInt(y);g.write(e.toBuffer("rfc4253"));g.writeString(e.comment||"");var S=1;while(g._offset%p.blockSize!==0)g.writeChar(S++);g=g.toBuffer()}switch(l){case"none":break;case"bcrypt":var w=u.randomBytes(16);var v=16;var z=new f({});z.writeBuffer(w);z.writeInt(v);d=z.toBuffer();if(m===undefined){m=i(641)}var j=new Uint8Array(h);var O=new Uint8Array(w);var k=new Uint8Array(p.keySize+p.blockSize);var C=m.pbkdf(j,j.length,O,O.length,k,k.length,v);if(C!==0){throw new Error("bcrypt_pbkdf function returned "+"failure, parameters invalid")}k=r.from(k);var T=k.slice(0,p.keySize);var R=k.slice(p.keySize,p.keySize+p.blockSize);var E=u.createCipheriv(p.opensslName,T,R);E.setAutoPadding(false);var A,x=[];E.once("error",function(e){throw e});E.write(g);E.end();while((A=E.read())!==null)x.push(A);g=r.concat(x);break;default:throw new Error("Unsupported kdf "+l)}var N=new f({});N.writeCString(b);N.writeString(s);N.writeString(l);N.writeBuffer(d);N.writeInt(1);N.writeBuffer(a.toBuffer("rfc4253"));if(g)N.writeBuffer(g);N=N.toBuffer();var V;if(c.isPrivateKey(e))V="OPENSSH PRIVATE KEY";else V="OPENSSH PUBLIC KEY";var P=N.toString("base64");var D=P.length+P.length/70+18+16+V.length*2+10;N=r.alloc(D);var I=0;I+=N.write("-----BEGIN "+V+"-----\n",I);for(var _=0;_P.length)q=P.length;I+=N.write(P.slice(_,q),I);N[I++]=10;_=q}I+=N.write("-----END "+V+"-----\n",I);return N.slice(0,I)}},,,,function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}t.toCommandValue=toCommandValue},function(e){e.exports=(e=>(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(e),this.key("privateKey").octstr())}))},function(e,t,i){e.exports={der:i(313)}},function(e){"use strict";e.exports=function generate__limitItems(e,t,i){var n=" ";var a=e.level;var r=e.dataLevel;var s=e.schema[t];var o=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var l=!e.opts.allErrors;var c;var d="data"+(r||"");var p=e.opts.$data&&s&&s.$data,f;if(p){n+=" var schema"+a+" = "+e.util.getData(s.$data,r,e.dataPathArr)+"; ";f="schema"+a}else{f=s}if(!(p||typeof s=="number")){throw new Error(t+" must be number")}var h=t=="maxItems"?">":"<";n+="if ( ";if(p){n+=" ("+f+" !== undefined && typeof "+f+" != 'number') || "}n+=" "+d+".length "+h+" "+f+") { ";var c=t;var m=m||[];m.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+(c||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+f+" } ";if(e.opts.messages!==false){n+=" , message: 'should NOT have ";if(t=="maxItems"){n+="more"}else{n+="fewer"}n+=" than ";if(p){n+="' + "+f+" + '"}else{n+=""+s}n+=" items' "}if(e.opts.verbose){n+=" , schema: ";if(p){n+="validate.schema"+o}else{n+=""+s}n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}n+=" } "}else{n+=" {} "}var b=n;n=m.pop();if(!e.compositeRule&&l){if(e.async){n+=" throw new ValidationError(["+b+"]); "}else{n+=" validate.errors = ["+b+"]; return false; "}}else{n+=" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+="} ";if(l){n+=" else { "}return n}},function(e){"use strict";e.exports=function(e){var t={};var i=Object.keys(Object(e));for(var n=0;n{const t={};try{while(s.exec(e.headers["www-authenticate"])!==null){if(RegExp.$1&&RegExp.$2){t[RegExp.$1]=RegExp.$2.slice(1,-1)}}}catch(e){}if(t.error){throw new r(t,e)}};const u=e=>{let t=false;try{let i;if(typeof e.body!=="object"||Buffer.isBuffer(e.body)){i=JSON.parse(e.body)}else{i=e.body}t=typeof i.error==="string"&&i.error.length;if(t)e.body=i}catch(e){}return t};function processResponse(e,{statusCode:t=200,body:i=true,bearer:s=false}={}){if(e.statusCode!==t){if(s){o(e)}if(u(e)){throw new r(e.body,e)}throw new r({error:a("expected %i %s, got: %i %s",t,n[t],e.statusCode,n[e.statusCode])},e)}if(i&&!e.body){throw new r({error:a("expected %i %s with body but no body was returned",t,n[t])},e)}return e.body}e.exports=processResponse},function(e){"use strict";const t=["destroy","setTimeout","socket","headers","trailers","rawHeaders","statusCode","httpVersion","httpVersionMinor","httpVersionMajor","rawTrailers","statusMessage"];e.exports=((e,i)=>{const n=new Set(Object.keys(e).concat(t));for(const t of n){if(t in i){continue}i[t]=typeof e[t]==="function"?e[t].bind(e):e[t]}})},,function(e,t,i){var n=i(892);e.exports=serial;function serial(e,t,i){return n(e,t,null,i)}},,function(e,t,i){"use strict";var n=i(128);function Mark(e,t,i,n,a){this.name=e;this.buffer=t;this.position=i;this.line=n;this.column=a}Mark.prototype.getSnippet=function getSnippet(e,t){var i,a,r,s,o;if(!this.buffer)return null;e=e||4;t=t||75;i="";a=this.position;while(a>0&&"\0\r\n…\u2028\u2029".indexOf(this.buffer.charAt(a-1))===-1){a-=1;if(this.position-a>t/2-1){i=" ... ";a+=5;break}}r="";s=this.position;while(st/2-1){r=" ... ";s-=5;break}}o=this.buffer.slice(a,s);return n.repeat(" ",e)+i+o+r+"\n"+n.repeat(" ",e+this.position-a+i.length)+"^"};Mark.prototype.toString=function toString(e){var t,i="";if(this.name){i+='in "'+this.name+'" '}i+="at line "+(this.line+1)+", column "+(this.column+1);if(!e){t=this.getSnippet();if(t){i+=":\n"+t}}return i};e.exports=Mark},function(e,t,i){const{inherits:n}=i(669);const a=i(720);const r=i(313);function DEREncoder(e){this.enc="der";this.name=e.name;this.entity=e;this.tree=new DERNode;this.tree._init(e.body)}DEREncoder.prototype.encode=function encode(e,t){return this.tree._encode(e,t).join()};function DERNode(e){a.call(this,"der",e)}n(DERNode,a);DERNode.prototype._encodeComposite=function encodeComposite(e,t,i,n){const a=encodeTag(e,t,i,this.reporter);if(n.length<128){const e=Buffer.alloc(2);e[0]=a;e[1]=n.length;return this._createEncoderBuffer([e,n])}let r=1;for(let e=n.length;e>=256;e>>=8){r++}const s=Buffer.alloc(1+1+r);s[0]=a;s[1]=128|r;for(let e=1+r,t=n.length;t>0;e--,t>>=8){s[e]=t&255}return this._createEncoderBuffer([s,n])};DERNode.prototype._encodeStr=function encodeStr(e,t){if(t==="bitstr"){return this._createEncoderBuffer([e.unused|0,e.data])}else if(t==="bmpstr"){const t=Buffer.alloc(e.length*2);for(let i=0;i=40){return this.reporter.error("Second objid identifier OOB")}e.splice(0,2,e[0]*40+e[1])}let n=0;for(let t=0;t=128;i>>=7){n++}}const a=Buffer.alloc(n);let r=a.length-1;for(let t=e.length-1;t>=0;t--){let i=e[t];a[r--]=i&127;while((i>>=7)>0){a[r--]=128|i&127}}return this._createEncoderBuffer(a)};function two(e){if(e<10){return`0${e}`}else{return e}}DERNode.prototype._encodeTime=function encodeTime(e,t){let i;const n=new Date(e);if(t==="gentime"){i=[two(n.getUTCFullYear()),two(n.getUTCMonth()+1),two(n.getUTCDate()),two(n.getUTCHours()),two(n.getUTCMinutes()),two(n.getUTCSeconds()),"Z"].join("")}else if(t==="utctime"){i=[two(n.getUTCFullYear()%100),two(n.getUTCMonth()+1),two(n.getUTCDate()),two(n.getUTCHours()),two(n.getUTCMinutes()),two(n.getUTCSeconds()),"Z"].join("")}else{this.reporter.error(`Encoding ${t} time is not supported yet`)}return this._encodeStr(i,"octstr")};DERNode.prototype._encodeNull=function encodeNull(){return this._createEncoderBuffer("")};function bnToBuf(e){var t=BigInt(e).toString(16);if(t.length%2){t="0"+t}var i=t.length/2;var n=new Uint8Array(i);var a=0;var r=0;while(a=256;t>>=8){i++}const n=new Array(i);for(let t=n.length-1;t>=0;t--){n[t]=e&255;e>>=8}if(n[0]&128){n.unshift(0)}return this._createEncoderBuffer(Buffer.from(n))};DERNode.prototype._encodeBool=function encodeBool(e){return this._createEncoderBuffer(e?255:0)};DERNode.prototype._use=function use(e,t){if(typeof e==="function"){e=e(t)}return e._getEncoder("der").tree};DERNode.prototype._skipDefault=function skipDefault(e,t,i){const n=this._baseState;let a;if(n.default===null){return false}const r=e.join();if(n.defaultBuffer===undefined){n.defaultBuffer=this._encodeValue(n.default,t,i).join()}if(r.length!==n.defaultBuffer.length){return false}for(a=0;a=31){return n.error("Multi-octet tag encoding unsupported")}if(!t){a|=32}a|=r.tagClassByName[i||"universal"]<<6;return a}e.exports=DEREncoder},,function(e,t,i){const{inspect:n}=i(669);const a=i(849);class NoneKey extends a{constructor(){super({type:"unsecured"},{alg:"none"});Object.defineProperties(this,{kid:{value:undefined},kty:{value:undefined},thumbprint:{value:undefined},toJWK:{value:undefined},toPEM:{value:undefined}})}[n.custom](){return"None {}"}algorithms(e){switch(e){case"sign":case"verify":case undefined:return new Set(["none"]);default:return new Set}}}e.exports=new NoneKey},function(e){const t=128;const i=0;const n=32;const a=16;const r=2;const s=a|n|i<<6;const o=r|i<<6;const u=e=>(e/8|0)+(e%8===0?0:1);const l={ES256:u(256),ES256K:u(256),ES384:u(384),ES512:u(521)};const c=(e,i,n)=>{let a=0;while(i+a=t;if(r){--a}return a};e.exports.derToJose=((e,i)=>{if(!Buffer.isBuffer(e)){throw new TypeError("ECDSA signature must be a Buffer")}if(!l[i]){throw new Error(`Unknown algorithm "${i}"`)}const n=l[i];const a=n+1;const r=e.length;let u=0;if(e[u++]!==s){throw new Error('Could not find expected "seq"')}let c=e[u++];if(c===(t|1)){c=e[u++]}if(r-u{if(!Buffer.isBuffer(e)){throw new TypeError("ECDSA signature must be a Buffer")}if(!l[i]){throw new TypeError(`Unknown algorithm "${i}"`)}const n=l[i];const a=e.length;if(a!==n*2){throw new Error(`"${i}" signatures must be "${n*2}" bytes, saw "${a}"`)}const r=c(e,0,n);const u=c(e,n,e.length);const d=n-r;const p=n-u;const f=1+1+d+1+1+p;const h=f{const l=i.export();d(e,r);const c=e/8;const p=l.slice(c);const f=n(`aes-${e}-cbc`,p,r);const h=Buffer.concat([f.update(a),f.final()]);const m=Buffer.concat([o,r,h,s(o.length*8)]);const b=l.slice(0,c);const g=t({[u]:b},m).slice(0,c);return{ciphertext:h,tag:g}};const f=(e,t,{[u]:i},n,{iv:r,tag:l=Buffer.alloc(0),aad:p=Buffer.alloc(0)})=>{d(e,r,l);const f=e/8;const h=i.export();const m=h.slice(f);const b=h.slice(0,f);const g=Buffer.concat([p,r,n,s(p.length*8)]);const y=t({[u]:b},g,l).slice(0,f);const S=o(l,y);let w;try{const t=a(`aes-${e}-cbc`,m,r);w=Buffer.concat([t.update(n),t.final()])}catch(e){}if(!w||!S){throw new c}return w};e.exports=((e,t)=>{["A128CBC-HS256","A192CBC-HS384","A256CBC-HS512"].forEach(i=>{const n=parseInt(i.substr(1,3),10);const a=e.sign.get(`HS${n*2}`);if(r().includes(`aes-${n}-cbc`)){e.encrypt.set(i,p.bind(undefined,n,a));e.decrypt.set(i,f.bind(undefined,n,a));t.oct.encrypt[i]=t.oct.decrypt[i]=(e=>(e.use==="enc"||e.use===undefined)&&e.length/2===n)}})})},function(e,t,i){"use strict";var n=i(945);var a=Object.prototype.hasOwnProperty;function resolveYamlSet(e){if(e===null)return true;var t,i=e;for(t in i){if(a.call(i,t)){if(i[t]!==null)return false}}return true}function constructYamlSet(e){return e!==null?e:{}}e.exports=new n("tag:yaml.org,2002:set",{kind:"mapping",resolve:resolveYamlSet,construct:constructYamlSet})},function(e,t,i){"use strict";const n=i(463);const a=i(557);e.exports=((e,t)=>{const i=n(e,{...t,count:1});return a.fn(async e=>{e(()=>{i.cancel()});const[t]=await i;return t})()});e.exports.AggregateError=n.AggregateError},function(e,t,i){"use strict";var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)if(Object.hasOwnProperty.call(e,i))t[i]=e[i];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const a=n(i(747));const r=n(i(87));const s=i(82);function issueCommand(e,t){const i=process.env[`GITHUB_${e}`];if(!i){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!a.existsSync(i)){throw new Error(`Missing file at path: ${i}`)}a.appendFileSync(i,`${s.toCommandValue(t)}${r.EOL}`,{encoding:"utf8"})}t.issueCommand=issueCommand},,function(e,t,i){"use strict";const{EMPTY_BUFFER:n}=i(799);function concat(e,t){if(e.length===0)return n;if(e.length===1)return e[0];const i=Buffer.allocUnsafe(t);var a=0;for(var r=0;rthis.resize(getTerminalSize(e)))}resize(e){this.push(JSON.stringify(e))}}t.TerminalSizeQueue=TerminalSizeQueue;function isResizable(e){if(e==null){return false}const t="rows"in e;const i="columns"in e;const n=typeof e.on==="function";return t&&i&&n}t.isResizable=isResizable;function getTerminalSize(e){return{height:e.rows,width:e.columns}}},,function(e){"use strict";e.exports=function generate_allOf(e,t,i){var n=" ";var a=e.schema[t];var r=e.schemaPath+e.util.getProperty(t);var s=e.errSchemaPath+"/"+t;var o=!e.opts.allErrors;var u=e.util.copy(e);var l="";u.level++;var c="valid"+u.level;var d=u.baseId,p=true;var f=a;if(f){var h,m=-1,b=f.length-1;while(m0:e.util.schemaHasRules(h,e.RULES.all)){p=false;u.schema=h;u.schemaPath=r+"["+m+"]";u.errSchemaPath=s+"/"+m;n+=" "+e.validate(u)+" ";u.baseId=d;if(o){n+=" if ("+c+") { ";l+="}"}}}}if(o){if(p){n+=" if (true) { "}else{n+=" "+l.slice(0,-1)+" "}}return n}},function(e){e.exports=function pick(e,...t){const i={};for(const n of t){if(e[n]){i[n]=e[n]}}return i}},,function(e,t,i){const n=i(312);class Client{constructor(e){const t=e.backend;if(!t)throw new Error('expected "backend"');const i=new n({splits:[],backend:t,getNames:e.getNames});if(e.spec)i._addSpec(e.spec);return i}}e.exports=Client},,,function(e,t,i){var n=i(373);function sha(e,t,i){return n.createHmac(i,e).update(t).digest("base64")}function rsa(e,t){return n.createSign("RSA-SHA1").update(t).sign(e,"base64")}function rfc3986(e){return encodeURIComponent(e).replace(/!/g,"%21").replace(/\*/g,"%2A").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/'/g,"%27")}function map(e){var t,i,n=[];for(t in e){i=e[t];if(Array.isArray(i))for(var a=0;at?1:e=e.length){if(t)t[s]=e;return i(null,e)}u.lastIndex=d;var n=u.exec(e);h=p;p+=n[0];f=h+n[1];d=u.lastIndex;if(c[f]||t&&t[f]===f){return process.nextTick(LOOP)}if(t&&Object.prototype.hasOwnProperty.call(t,f)){return gotResolvedLink(t[f])}return r.lstat(f,gotStat)}function gotStat(e,n){if(e)return i(e);if(!n.isSymbolicLink()){c[f]=true;if(t)t[f]=f;return process.nextTick(LOOP)}if(!a){var s=n.dev.toString(32)+":"+n.ino.toString(32);if(o.hasOwnProperty(s)){return gotTarget(null,o[s],f)}}r.stat(f,function(e){if(e)return i(e);r.readlink(f,function(e,t){if(!a)o[s]=t;gotTarget(e,t)})})}function gotTarget(e,a,r){if(e)return i(e);var s=n.resolve(h,a);if(t)t[r]=s;gotResolvedLink(s)}function gotResolvedLink(t){e=n.resolve(t,e.slice(d));start()}}},function(e,t,i){"use strict";const{randomFillSync:n}=i(373);const a=i(850);const{EMPTY_BUFFER:r}=i(60);const{isValidStatusCode:s}=i(829);const{mask:o,toBuffer:u}=i(676);const l=Buffer.alloc(4);class Sender{constructor(e,t){this._extensions=t||{};this._socket=e;this._firstFragment=true;this._compress=false;this._bufferedBytes=0;this._deflating=false;this._queue=[]}static frame(e,t){const i=t.mask&&t.readOnly;let a=t.mask?6:2;let r=e.length;if(e.length>=65536){a+=8;r=127}else if(e.length>125){a+=2;r=126}const s=Buffer.allocUnsafe(i?e.length+a:a);s[0]=t.fin?t.opcode|128:t.opcode;if(t.rsv1)s[0]|=64;s[1]=r;if(r===126){s.writeUInt16BE(e.length,2)}else if(r===127){s.writeUInt32BE(0,2);s.writeUInt32BE(e.length,6)}if(!t.mask)return[s,e];n(l,0,4);s[1]|=128;s[a-4]=l[0];s[a-3]=l[1];s[a-2]=l[2];s[a-1]=l[3];if(i){o(e,l,s,a,e.length);return[s]}o(e,l,e,0,e.length);return[s,e]}close(e,t,i,n){let a;if(e===undefined){a=r}else if(typeof e!=="number"||!s(e)){throw new TypeError("First argument must be a valid error code number")}else if(t===undefined||t===""){a=Buffer.allocUnsafe(2);a.writeUInt16BE(e,0)}else{const i=Buffer.byteLength(t);if(i>123){throw new RangeError("The message must not be greater than 123 bytes")}a=Buffer.allocUnsafe(2+i);a.writeUInt16BE(e,0);a.write(t,2)}if(this._deflating){this.enqueue([this.doClose,a,i,n])}else{this.doClose(a,i,n)}}doClose(e,t,i){this.sendFrame(Sender.frame(e,{fin:true,rsv1:false,opcode:8,mask:t,readOnly:false}),i)}ping(e,t,i){const n=u(e);if(n.length>125){throw new RangeError("The data size must not be greater than 125 bytes")}if(this._deflating){this.enqueue([this.doPing,n,t,u.readOnly,i])}else{this.doPing(n,t,u.readOnly,i)}}doPing(e,t,i,n){this.sendFrame(Sender.frame(e,{fin:true,rsv1:false,opcode:9,mask:t,readOnly:i}),n)}pong(e,t,i){const n=u(e);if(n.length>125){throw new RangeError("The data size must not be greater than 125 bytes")}if(this._deflating){this.enqueue([this.doPong,n,t,u.readOnly,i])}else{this.doPong(n,t,u.readOnly,i)}}doPong(e,t,i,n){this.sendFrame(Sender.frame(e,{fin:true,rsv1:false,opcode:10,mask:t,readOnly:i}),n)}send(e,t,i){const n=u(e);const r=this._extensions[a.extensionName];let s=t.binary?2:1;let o=t.compress;if(this._firstFragment){this._firstFragment=false;if(o&&r){o=n.length>=r._threshold}this._compress=o}else{o=false;s=0}if(t.fin)this._firstFragment=true;if(r){const e={fin:t.fin,rsv1:o,opcode:s,mask:t.mask,readOnly:u.readOnly};if(this._deflating){this.enqueue([this.dispatch,n,this._compress,e,i])}else{this.dispatch(n,this._compress,e,i)}}else{this.sendFrame(Sender.frame(n,{fin:t.fin,rsv1:false,opcode:s,mask:t.mask,readOnly:u.readOnly}),i)}}dispatch(e,t,i,n){if(!t){this.sendFrame(Sender.frame(e,i),n);return}const r=this._extensions[a.extensionName];this._bufferedBytes+=e.length;this._deflating=true;r.compress(e,i.fin,(t,a)=>{if(this._socket.destroyed){const e=new Error("The socket was closed while data was being compressed");if(typeof n==="function")n(e);for(let t=0;te.sort((e,i)=>n(e,i,t));e.exports=a},,,,function(e,t,i){class Range{constructor(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof n){this.raw=e.value;this.set=[[e]];this.format();return this}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e;this.set=e.split(/\s*\|\|\s*/).map(e=>this.parseRange(e.trim())).filter(e=>e.length);if(!this.set.length){throw new TypeError(`Invalid SemVer Range: ${e}`)}this.format()}format(){this.range=this.set.map(e=>{return e.join(" ").trim()}).join("||").trim();return this.range}toString(){return this.range}parseRange(e){const t=this.options.loose;e=e.trim();const i=t?s[o.HYPHENRANGELOOSE]:s[o.HYPHENRANGE];e=e.replace(i,z(this.options.includePrerelease));a("hyphen replace",e);e=e.replace(s[o.COMPARATORTRIM],u);a("comparator trim",e,s[o.COMPARATORTRIM]);e=e.replace(s[o.TILDETRIM],l);e=e.replace(s[o.CARETTRIM],c);e=e.split(/\s+/).join(" ");const r=t?s[o.COMPARATORLOOSE]:s[o.COMPARATOR];return e.split(" ").map(e=>p(e,this.options)).join(" ").split(/\s+/).map(e=>v(e,this.options)).filter(this.options.loose?e=>!!e.match(r):()=>true).map(e=>new n(e,this.options))}intersects(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some(i=>{return d(i,t)&&e.set.some(e=>{return d(e,t)&&i.every(i=>{return e.every(e=>{return i.intersects(e,t)})})})})}test(e){if(!e){return false}if(typeof e==="string"){try{e=new r(e,this.options)}catch(e){return false}}for(let t=0;t{let i=true;const n=e.slice();let a=n.pop();while(i&&n.length){i=n.every(e=>{return a.intersects(e,t)});a=n.pop()}return i};const p=(e,t)=>{a("comp",e,t);e=b(e,t);a("caret",e);e=h(e,t);a("tildes",e);e=y(e,t);a("xrange",e);e=w(e,t);a("stars",e);return e};const f=e=>!e||e.toLowerCase()==="x"||e==="*";const h=(e,t)=>e.trim().split(/\s+/).map(e=>{return m(e,t)}).join(" ");const m=(e,t)=>{const i=t.loose?s[o.TILDELOOSE]:s[o.TILDE];return e.replace(i,(t,i,n,r,s)=>{a("tilde",e,t,i,n,r,s);let o;if(f(i)){o=""}else if(f(n)){o=`>=${i}.0.0 <${+i+1}.0.0-0`}else if(f(r)){o=`>=${i}.${n}.0 <${i}.${+n+1}.0-0`}else if(s){a("replaceTilde pr",s);o=`>=${i}.${n}.${r}-${s} <${i}.${+n+1}.0-0`}else{o=`>=${i}.${n}.${r} <${i}.${+n+1}.0-0`}a("tilde return",o);return o})};const b=(e,t)=>e.trim().split(/\s+/).map(e=>{return g(e,t)}).join(" ");const g=(e,t)=>{a("caret",e,t);const i=t.loose?s[o.CARETLOOSE]:s[o.CARET];const n=t.includePrerelease?"-0":"";return e.replace(i,(t,i,r,s,o)=>{a("caret",e,t,i,r,s,o);let u;if(f(i)){u=""}else if(f(r)){u=`>=${i}.0.0${n} <${+i+1}.0.0-0`}else if(f(s)){if(i==="0"){u=`>=${i}.${r}.0${n} <${i}.${+r+1}.0-0`}else{u=`>=${i}.${r}.0${n} <${+i+1}.0.0-0`}}else if(o){a("replaceCaret pr",o);if(i==="0"){if(r==="0"){u=`>=${i}.${r}.${s}-${o} <${i}.${r}.${+s+1}-0`}else{u=`>=${i}.${r}.${s}-${o} <${i}.${+r+1}.0-0`}}else{u=`>=${i}.${r}.${s}-${o} <${+i+1}.0.0-0`}}else{a("no pr");if(i==="0"){if(r==="0"){u=`>=${i}.${r}.${s}${n} <${i}.${r}.${+s+1}-0`}else{u=`>=${i}.${r}.${s}${n} <${i}.${+r+1}.0-0`}}else{u=`>=${i}.${r}.${s} <${+i+1}.0.0-0`}}a("caret return",u);return u})};const y=(e,t)=>{a("replaceXRanges",e,t);return e.split(/\s+/).map(e=>{return S(e,t)}).join(" ")};const S=(e,t)=>{e=e.trim();const i=t.loose?s[o.XRANGELOOSE]:s[o.XRANGE];return e.replace(i,(i,n,r,s,o,u)=>{a("xRange",e,i,n,r,s,o,u);const l=f(r);const c=l||f(s);const d=c||f(o);const p=d;if(n==="="&&p){n=""}u=t.includePrerelease?"-0":"";if(l){if(n===">"||n==="<"){i="<0.0.0-0"}else{i="*"}}else if(n&&p){if(c){s=0}o=0;if(n===">"){n=">=";if(c){r=+r+1;s=0;o=0}else{s=+s+1;o=0}}else if(n==="<="){n="<";if(c){r=+r+1}else{s=+s+1}}if(n==="<")u="-0";i=`${n+r}.${s}.${o}${u}`}else if(c){i=`>=${r}.0.0${u} <${+r+1}.0.0-0`}else if(d){i=`>=${r}.${s}.0${u} <${r}.${+s+1}.0-0`}a("xRange return",i);return i})};const w=(e,t)=>{a("replaceStars",e,t);return e.trim().replace(s[o.STAR],"")};const v=(e,t)=>{a("replaceGTE0",e,t);return e.trim().replace(s[t.includePrerelease?o.GTE0PRE:o.GTE0],"")};const z=e=>(t,i,n,a,r,s,o,u,l,c,d,p,h)=>{if(f(n)){i=""}else if(f(a)){i=`>=${n}.0.0${e?"-0":""}`}else if(f(r)){i=`>=${n}.${a}.0${e?"-0":""}`}else if(s){i=`>=${i}`}else{i=`>=${i}${e?"-0":""}`}if(f(l)){u=""}else if(f(c)){u=`<${+l+1}.0.0-0`}else if(f(d)){u=`<${l}.${+c+1}.0-0`}else if(p){u=`<=${l}.${c}.${d}-${p}`}else if(e){u=`<${l}.${c}.${+d+1}-0`}else{u=`<=${u}`}return`${i} ${u}`.trim()};const j=(e,t,i)=>{for(let i=0;i0){const n=e[i].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch){return true}}}return false}return true}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=i(422);const a=i(191);const r=i(105);const s=i(131);class Attach{constructor(e,t){if(t){this.handler=t}else{this.handler=new s.WebSocketHandler(e)}}attach(e,t,i,o,u,l,c){return n.__awaiter(this,void 0,void 0,function*(){const n={container:i,stderr:u!=null,stdin:l!=null,stdout:o!=null,tty:c};const d=a.stringify(n);const p=`/api/v1/namespaces/${e}/pods/${t}/attach?${d}`;const f=yield this.handler.connect(p,null,(e,t)=>{s.WebSocketHandler.handleStandardStreams(e,t,o,u);return true});if(l!=null){s.WebSocketHandler.handleStandardInput(f,l,s.WebSocketHandler.StdinStream)}if(r.isResizable(o)){this.terminalSizeQueue=new r.TerminalSizeQueue;s.WebSocketHandler.handleStandardInput(f,this.terminalSizeQueue,s.WebSocketHandler.ResizeStream);this.terminalSizeQueue.handleResizes(o)}return f})}}t.Attach=Attach},,,function(e){"use strict";function isNothing(e){return typeof e==="undefined"||e===null}function isObject(e){return typeof e==="object"&&e!==null}function toArray(e){if(Array.isArray(e))return e;else if(isNothing(e))return[];return[e]}function extend(e,t){var i,n,a,r;if(t){r=Object.keys(t);for(i=0,n=r.length;i{const n=Buffer.alloc(t.length+1);n.writeInt8(i,0);if(t instanceof Buffer){t.copy(n,1)}else{n.write(t,1)}e.send(n)});t.on("end",()=>{e.close()});return true}static restartableHandleStandardInput(e,t,i=0,r=3){if(r<0){throw new Error("retryCount can't be lower than 0.")}let s=Promise.resolve();let o;function processData(t){return n.__awaiter(this,void 0,void 0,function*(){const n=Buffer.alloc(t.length+1);n.writeInt8(i,0);if(t instanceof Buffer){t.copy(n,1)}else{n.write(t,1)}let s=0;for(;s=r){throw new Error("can't send data to ws")}})}t.on("data",e=>{s=s.then(()=>processData(e))});t.on("end",()=>{if(o){o.close()}});return()=>o}connect(e,t,i){const n=this.config.getCurrentCluster();if(!n){throw new Error("No cluster is defined.")}const s=n.server;const o=s.startsWith("https://");const u=o?s.substr(8):s.substr(7);const l=o?"wss":"ws";const c=`${l}://${u}${e}`;const d={};this.config.applytoHTTPSOptions(d);return new Promise((e,n)=>{const s=this.socketFactory?this.socketFactory(c,d):new a(c,r,d);let o=false;s.onopen=(()=>{o=true;e(s)});s.onerror=(e=>{if(!o){n(e)}});s.onmessage=(({data:e})=>{if(typeof e==="string"){if(t&&!t(e)){s.close()}}else if(e instanceof Buffer){const t=e.readInt8(0);if(i&&!i(t,e.slice(1))){s.close()}}})})}}WebSocketHandler.StdinStream=0;WebSocketHandler.StdoutStream=1;WebSocketHandler.StderrStream=2;WebSocketHandler.StatusStream=3;WebSocketHandler.ResizeStream=4;t.WebSocketHandler=WebSocketHandler},,function(e){e.exports={$id:"request.json#",$schema:"http://json-schema.org/draft-06/schema#",type:"object",required:["method","url","httpVersion","cookies","headers","queryString","headersSize","bodySize"],properties:{method:{type:"string"},url:{type:"string",format:"uri"},httpVersion:{type:"string"},cookies:{type:"array",items:{$ref:"cookie.json#"}},headers:{type:"array",items:{$ref:"header.json#"}},queryString:{type:"array",items:{$ref:"query.json#"}},postData:{$ref:"postData.json#"},headersSize:{type:"integer"},bodySize:{type:"integer"},comment:{type:"string"}}}},,function(e,t,i){const{inherits:n}=i(669);const a=i(960);const r=i(474);e.exports.define=function define(e,t){return new Entity(e,t)};function Entity(e,t){this.name=e;this.body=t;this.decoders={};this.encoders={}}Entity.prototype._createNamed=function createNamed(e){const t=this.name;function Generated(e){this._initNamed(e,t)}n(Generated,e);Generated.prototype._initNamed=function _initNamed(t,i){e.call(this,t,i)};return new Generated(this)};Entity.prototype._getDecoder=function _getDecoder(e){e=e||"der";if(!Object.prototype.hasOwnProperty.call(this.decoders,e)){this.decoders[e]=this._createNamed(r[e])}return this.decoders[e]};Entity.prototype.decode=function decode(e,t,i){return this._getDecoder(t).decode(e,i)};Entity.prototype._getEncoder=function _getEncoder(e){e=e||"der";if(!Object.prototype.hasOwnProperty.call(this.encoders,e)){this.encoders[e]=this._createNamed(a[e])}return this.encoders[e]};Entity.prototype.encode=function encode(e,t,i){return this._getEncoder(t).encode(e,i)}},,,,function(e,t,i){var n=i(373);e.exports=function nodeRNG(){return n.randomBytes(16)}},function(e){e.exports={$id:"afterRequest.json#",$schema:"http://json-schema.org/draft-06/schema#",type:"object",optional:true,required:["lastAccess","eTag","hitCount"],properties:{expires:{type:"string",pattern:"^(\\d{4})(-)?(\\d\\d)(-)?(\\d\\d)(T)?(\\d\\d)(:)?(\\d\\d)(:)?(\\d\\d)(\\.\\d+)?(Z|([+-])(\\d\\d)(:)?(\\d\\d))?"},lastAccess:{type:"string",pattern:"^(\\d{4})(-)?(\\d\\d)(-)?(\\d\\d)(T)?(\\d\\d)(:)?(\\d\\d)(:)?(\\d\\d)(\\.\\d+)?(Z|([+-])(\\d\\d)(:)?(\\d\\d))?"},eTag:{type:"string"},hitCount:{type:"integer"},comment:{type:"string"}}}},function(e,t,i){"use strict";const n=i(413).Readable;const a=i(86);class Response extends n{constructor(e,t,i,n){if(typeof e!=="number"){throw new TypeError("Argument `statusCode` should be a number")}if(typeof t!=="object"){throw new TypeError("Argument `headers` should be an object")}if(!(i instanceof Buffer)){throw new TypeError("Argument `body` should be a buffer")}if(typeof n!=="string"){throw new TypeError("Argument `url` should be a string")}super();this.statusCode=e;this.headers=a(t);this.body=i;this.url=n}_read(){this.push(this.body);this.push(null)}}e.exports=Response},,,,function(e,t,i){"use strict";const n=i(453);const a=i(158);class MaxBufferError extends Error{constructor(){super("maxBuffer exceeded");this.name="MaxBufferError"}}function getStream(e,t){if(!e){return Promise.reject(new Error("Expected a stream"))}t=Object.assign({maxBuffer:Infinity},t);const{maxBuffer:i}=t;let r;return new Promise((s,o)=>{const u=e=>{if(e){e.bufferedData=r.getBufferedValue()}o(e)};r=n(e,a(t),e=>{if(e){u(e);return}s()});r.on("data",()=>{if(r.getBufferedLength()>i){u(new MaxBufferError)}})}).then(()=>r.getBufferedValue())}e.exports=getStream;e.exports.buffer=((e,t)=>getStream(e,Object.assign({},t,{encoding:"buffer"})));e.exports.array=((e,t)=>getStream(e,Object.assign({},t,{array:true})));e.exports.MaxBufferError=MaxBufferError},,function(e){e.exports=state;function state(e,t){var i=!Array.isArray(e),n={index:0,keyedList:i||t?Object.keys(e):null,jobs:{},results:i?{}:[],size:i?Object.keys(e).length:e.length};if(t){n.keyedList.sort(i?t:function(i,n){return t(e[i],e[n])})}return n}},,,function(e,t,i){const n=i(208);const a=i(466);e.exports=((e,{complete:t=false}={})=>{if(typeof e!=="string"||!e){throw new TypeError("JWT must be a string")}const{0:i,1:r,2:s,length:o}=e.split(".");if(o===5){throw new TypeError("JWTs must be decrypted first")}if(o!==3){throw new a.JWTMalformed("JWTs must have three components")}try{const e={header:n.JSON.decode(i),payload:n.JSON.decode(r),signature:s};return t?e:e.payload}catch(e){throw new a.JWTMalformed("JWT is malformed")}})},,function(e,t,i){var n=i(413).Stream;var a=i(669);e.exports=DelayedStream;function DelayedStream(){this.source=null;this.dataSize=0;this.maxDataSize=1024*1024;this.pauseStream=true;this._maxDataSizeExceeded=false;this._released=false;this._bufferedEvents=[]}a.inherits(DelayedStream,n);DelayedStream.create=function(e,t){var i=new this;t=t||{};for(var n in t){i[n]=t[n]}i.source=e;var a=e.emit;e.emit=function(){i._handleEmit(arguments);return a.apply(e,arguments)};e.on("error",function(){});if(i.pauseStream){e.pause()}return i};Object.defineProperty(DelayedStream.prototype,"readable",{configurable:true,enumerable:true,get:function(){return this.source.readable}});DelayedStream.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};DelayedStream.prototype.resume=function(){if(!this._released){this.release()}this.source.resume()};DelayedStream.prototype.pause=function(){this.source.pause()};DelayedStream.prototype.release=function(){this._released=true;this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this));this._bufferedEvents=[]};DelayedStream.prototype.pipe=function(){var e=n.prototype.pipe.apply(this,arguments);this.resume();return e};DelayedStream.prototype._handleEmit=function(e){if(this._released){this.emit.apply(this,e);return}if(e[0]==="data"){this.dataSize+=e[1].length;this._checkIfMaxDataSizeExceeded()}this._bufferedEvents.push(e)};DelayedStream.prototype._checkIfMaxDataSizeExceeded=function(){if(this._maxDataSizeExceeded){return}if(this.dataSize<=this.maxDataSize){return}this._maxDataSizeExceeded=true;var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(e))}},,function(e){"use strict";e.exports=function generate_contains(e,t,i){var n=" ";var a=e.level;var r=e.dataLevel;var s=e.schema[t];var o=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var l=!e.opts.allErrors;var c="data"+(r||"");var d="valid"+a;var p="errs__"+a;var f=e.util.copy(e);var h="";f.level++;var m="valid"+f.level;var b="i"+a,g=f.dataLevel=e.dataLevel+1,y="data"+g,S=e.baseId,w=e.opts.strictKeywords?typeof s=="object"&&Object.keys(s).length>0:e.util.schemaHasRules(s,e.RULES.all);n+="var "+p+" = errors;var "+d+";";if(w){var v=e.compositeRule;e.compositeRule=f.compositeRule=true;f.schema=s;f.schemaPath=o;f.errSchemaPath=u;n+=" var "+m+" = false; for (var "+b+" = 0; "+b+" < "+c+".length; "+b+"++) { ";f.errorPath=e.util.getPathExpr(e.errorPath,b,e.opts.jsonPointers,true);var z=c+"["+b+"]";f.dataPathArr[g]=b;var j=e.validate(f);f.baseId=S;if(e.util.varOccurences(j,y)<2){n+=" "+e.util.varReplace(j,y,z)+" "}else{n+=" var "+y+" = "+z+"; "+j+" "}n+=" if ("+m+") break; } ";e.compositeRule=f.compositeRule=v;n+=" "+h+" if (!"+m+") {"}else{n+=" if ("+c+".length == 0) {"}var O=O||[];O.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+"contains"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ";if(e.opts.messages!==false){n+=" , message: 'should contain a valid item' "}if(e.opts.verbose){n+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}n+=" } "}else{n+=" {} "}var k=n;n=O.pop();if(!e.compositeRule&&l){if(e.async){n+=" throw new ValidationError(["+k+"]); "}else{n+=" validate.errors = ["+k+"]; return false; "}}else{n+=" var err = "+k+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+=" } else { ";if(w){n+=" errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } "}if(e.opts.allErrors){n+=" } "}return n}},,function(e){"use strict";e.exports=function(e,t){if(!t)t={};if(typeof t==="function")t={cmp:t};var i=typeof t.cycles==="boolean"?t.cycles:false;var n=t.cmp&&function(e){return function(t){return function(i,n){var a={key:i,value:t[i]};var r={key:n,value:t[n]};return e(a,r)}}}(t.cmp);var a=[];return function stringify(e){if(e&&e.toJSON&&typeof e.toJSON==="function"){e=e.toJSON()}if(e===undefined)return;if(typeof e=="number")return isFinite(e)?""+e:"null";if(typeof e!=="object")return JSON.stringify(e);var t,r;if(Array.isArray(e)){r="[";for(t=0;t{e=Object.assign({},e);const{array:t}=e;let{encoding:i}=e;const a=i==="buffer";let r=false;if(t){r=!(i||a)}else{i=i||"utf8"}if(a){i=null}let s=0;const o=[];const u=new n({objectMode:r});if(i){u.setEncoding(i)}u.on("data",e=>{o.push(e);if(r){s=o.length}else{s+=e.length}});u.getBufferedValue=(()=>{if(t){return o}return a?Buffer.concat(o,s):o.join("")});u.getBufferedLength=(()=>s);return u})},,,,function(e){e.exports={$id:"content.json#",$schema:"http://json-schema.org/draft-06/schema#",type:"object",required:["size","mimeType"],properties:{size:{type:"integer"},compression:{type:"integer"},mimeType:{type:"string"},text:{type:"string"},encoding:{type:"string"},comment:{type:"string"}}}},,function(e,t,i){const n=i(65);const a=i(124);const r=i(486);const s=(e,t)=>{e=new a(e,t);let i=new n("0.0.0");if(e.test(i)){return i}i=new n("0.0.0-0");if(e.test(i)){return i}i=null;for(let t=0;t{const t=new n(e.semver.version);switch(e.operator){case">":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!i||r(i,t)){i=t}break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})}if(i&&e.test(i)){return i}return null};e.exports=s},function(e){e.exports=(e=>`sha${e.substr(2,3)}`)},function(e,t,i){const n=i(835);const{format:a}=i(669);const r=i(604);const{RPError:s,OPError:o}=i(572);const{BaseClient:u}=i(860);const{random:l,codeChallenge:c}=i(368);const d=i(108);const{resolveResponseType:p,resolveRedirectUri:f}=i(285);function verified(e,t,i={}){if(e){this.error(e)}else if(!t){this.fail(i)}else{this.success(t,i)}}function OpenIDConnectStrategy({client:e,params:t={},passReqToCallback:i=false,sessionKey:a,usePKCE:s=false}={},o){if(!(e instanceof u)){throw new TypeError("client must be an instance of openid-client Client")}if(typeof o!=="function"){throw new TypeError("verify callback must be a function")}if(!e.issuer||!e.issuer.issuer){throw new TypeError("client must have an issuer with an identifier")}this._client=e;this._issuer=e.issuer;this._verify=o;this._passReqToCallback=i;this._usePKCE=s;this._key=a||`oidc:${n.parse(this._issuer.issuer).hostname}`;this._params=r(t);if(this._usePKCE===true){const e=this._issuer.code_challenge_methods_supported;if(!Array.isArray(e)){throw new TypeError("code_challenge_methods_supported is not properly set on issuer")}if(e.includes("S256")){this._usePKCE="S256"}else if(e.includes("plain")){this._usePKCE="plain"}else{throw new TypeError("neither supported code_challenge_method is supported by the issuer")}}else if(typeof this._usePKCE==="string"&&!["plain","S256"].includes(this._usePKCE)){throw new TypeError(`${this._usePKCE} is not valid/implemented PKCE code_challenge_method`)}this.name=n.parse(e.issuer.issuer).hostname;if(!this._params.response_type)this._params.response_type=p.call(e);if(!this._params.redirect_uri)this._params.redirect_uri=f.call(e);if(!this._params.scope)this._params.scope="openid"}OpenIDConnectStrategy.prototype.authenticate=function authenticate(e,t){(async()=>{const i=this._client;if(!e.session){throw new TypeError("authentication requires session support")}const n=i.callbackParams(e);const r=this._key;if(Object.keys(n).length===0){const n={state:l(),...this._params,...t};if(!n.nonce&&n.response_type.includes("id_token")){n.nonce=l()}e.session[r]=d(n,"nonce","state","max_age","response_type");if(this._usePKCE){const t=l();e.session[r].code_verifier=t;switch(this._usePKCE){case"S256":n.code_challenge=c(t);n.code_challenge_method="S256";break;case"plain":n.code_challenge=t;break}}this.redirect(i.authorizationUrl(n));return}const o=e.session[r];if(Object.keys(o||{}).length===0){throw new Error(a('did not find expected authorization request details in session, req.session["%s"] is %j',r,o))}const{state:u,nonce:p,max_age:f,code_verifier:h,response_type:m}=o;try{delete e.session[r]}catch(e){}const b={redirect_uri:this._params.redirect_uri,...t};const g={state:u,nonce:p,max_age:f,code_verifier:h,response_type:m};const y=await i.callback(b.redirect_uri,n,g);const S=this._passReqToCallback;const w=this._verify.length>(S?3:2)&&i.issuer.userinfo_endpoint;const v=[y,verified.bind(this)];if(w){if(!y.access_token){throw new s({message:"expected access_token to be returned when asking for userinfo in verify callback",tokenset:y})}const e=await i.userinfo(y);v.splice(1,0,e)}if(S){v.unshift(e)}this._verify(...v)})().catch(e=>{if(e instanceof o&&e.error!=="server_error"&&!e.error.startsWith("invalid")||e instanceof s){this.fail(e)}else{this.error(e)}})};e.exports=OpenIDConnectStrategy},function(e,t,i){const n=i(874);const a=(e,t,i)=>n(e,t,i)>=0;e.exports=a},,,function(e,t,i){const n=i(208);const a=i(490);const r=i(274);const s=i(545);const{JWSInvalid:o}=i(466);const{sign:u}=i(179);const l=i(322);const c=i(995);const d=Symbol("PROCESS_RECIPIENT");class Sign{constructor(e){if(typeof e==="string"){e=n.encode(e)}else if(Buffer.isBuffer(e)){e=n.encodeBuffer(e);this._binary=true}else if(r(e)){e=n.JSON.encode(e)}else{throw new TypeError("payload argument must be a Buffer, string or an object")}this._payload=e;this._recipients=[]}recipient(e,t,i){e=l(e);if(t!==undefined&&!r(t)){throw new TypeError("protectedHeader argument must be a plain object when provided")}if(i!==undefined&&!r(i)){throw new TypeError("unprotectedHeader argument must be a plain object when provided")}if(!a(t,i)){throw new o("JWS Protected and JWS Unprotected Header Parameter names must be disjoint")}this._recipients.push({key:e,protectedHeader:t?s(t):undefined,unprotectedHeader:i?s(i):undefined});return this}[d](e,t){const{key:i,protectedHeader:a,unprotectedHeader:r}=e;if(i.use==="enc"){throw new TypeError('a key with "use":"enc" is not usable for signing')}const s={protected:a||{},unprotected:r||{}};let l=s.protected.alg||s.unprotected.alg;if(!l){l=i.alg||[...i.algorithms("sign")][0];if(e.protectedHeader){s.protected.alg=e.protectedHeader.alg=l}else{s.protected=e.protectedHeader={alg:l}}}if(!l){throw new o('could not resolve a usable "alg" for a recipient')}e.header=r;e.protected=Object.keys(s.protected).length?n.JSON.encode(s.protected):"";if(t&&s.protected.crit&&s.protected.crit.includes("b64")&&s.protected.b64===false){if(this._binary){this._payload=n.decodeToBuffer(this._payload)}else{this._payload=n.decode(this._payload)}}const c=Buffer.concat([Buffer.from(e.protected||""),Buffer.from("."),Buffer.from(this._payload)]);e.signature=n.encodeBuffer(u(l,i,c))}sign(e){const t=c[e];if(!t){throw new TypeError('serialization must be one of "compact", "flattened", "general"')}if(!this._recipients.length){throw new o("missing recipients")}t.validate(this,this._recipients);this._recipients.forEach((e,t)=>{this[d](e,t===0)});return t(this._payload,this._recipients)}}e.exports=Sign},,function(e,t,i){var n=i(547);var a=i(669);var r=i(622);var s=i(363);var o=i(211);var u=i(835).parse;var l=i(747);var c=i(779);var d=i(334);var p=i(899);e.exports=FormData;a.inherits(FormData,n);function FormData(e){if(!(this instanceof FormData)){return new FormData}this._overheadLength=0;this._valueLength=0;this._valuesToMeasure=[];n.call(this);e=e||{};for(var t in e){this[t]=e[t]}}FormData.LINE_BREAK="\r\n";FormData.DEFAULT_CONTENT_TYPE="application/octet-stream";FormData.prototype.append=function(e,t,i){i=i||{};if(typeof i=="string"){i={filename:i}}var r=n.prototype.append.bind(this);if(typeof t=="number"){t=""+t}if(a.isArray(t)){this._error(new Error("Arrays are not supported."));return}var s=this._multiPartHeader(e,t,i);var o=this._multiPartFooter();r(s);r(t);r(o);this._trackLength(s,t,i)};FormData.prototype._trackLength=function(e,t,i){var n=0;if(i.knownLength!=null){n+=+i.knownLength}else if(Buffer.isBuffer(t)){n=t.length}else if(typeof t==="string"){n=Buffer.byteLength(t)}this._valueLength+=n;this._overheadLength+=Buffer.byteLength(e)+FormData.LINE_BREAK.length;if(!t||!t.path&&!(t.readable&&t.hasOwnProperty("httpVersion"))){return}if(!i.knownLength){this._valuesToMeasure.push(t)}};FormData.prototype._lengthRetriever=function(e,t){if(e.hasOwnProperty("fd")){if(e.end!=undefined&&e.end!=Infinity&&e.start!=undefined){t(null,e.end+1-(e.start?e.start:0))}else{l.stat(e.path,function(i,n){var a;if(i){t(i);return}a=n.size-(e.start?e.start:0);t(null,a)})}}else if(e.hasOwnProperty("httpVersion")){t(null,+e.headers["content-length"])}else if(e.hasOwnProperty("httpModule")){e.on("response",function(i){e.pause();t(null,+i.headers["content-length"])});e.resume()}else{t("Unknown stream")}};FormData.prototype._multiPartHeader=function(e,t,i){if(typeof i.header=="string"){return i.header}var n=this._getContentDisposition(t,i);var a=this._getContentType(t,i);var r="";var s={"Content-Disposition":["form-data",'name="'+e+'"'].concat(n||[]),"Content-Type":[].concat(a||[])};if(typeof i.header=="object"){p(s,i.header)}var o;for(var u in s){if(!s.hasOwnProperty(u))continue;o=s[u];if(o==null){continue}if(!Array.isArray(o)){o=[o]}if(o.length){r+=u+": "+o.join("; ")+FormData.LINE_BREAK}}return"--"+this.getBoundary()+FormData.LINE_BREAK+r+FormData.LINE_BREAK};FormData.prototype._getContentDisposition=function(e,t){var i,n;if(typeof t.filepath==="string"){i=r.normalize(t.filepath).replace(/\\/g,"/")}else if(t.filename||e.name||e.path){i=r.basename(t.filename||e.name||e.path)}else if(e.readable&&e.hasOwnProperty("httpVersion")){i=r.basename(e.client._httpMessage.path)}if(i){n='filename="'+i+'"'}return n};FormData.prototype._getContentType=function(e,t){var i=t.contentType;if(!i&&e.name){i=c.lookup(e.name)}if(!i&&e.path){i=c.lookup(e.path)}if(!i&&e.readable&&e.hasOwnProperty("httpVersion")){i=e.headers["content-type"]}if(!i&&(t.filepath||t.filename)){i=c.lookup(t.filepath||t.filename)}if(!i&&typeof e=="object"){i=FormData.DEFAULT_CONTENT_TYPE}return i};FormData.prototype._multiPartFooter=function(){return function(e){var t=FormData.LINE_BREAK;var i=this._streams.length===0;if(i){t+=this._lastBoundary()}e(t)}.bind(this)};FormData.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+FormData.LINE_BREAK};FormData.prototype.getHeaders=function(e){var t;var i={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e){if(e.hasOwnProperty(t)){i[t.toLowerCase()]=e[t]}}return i};FormData.prototype.getBoundary=function(){if(!this._boundary){this._generateBoundary()}return this._boundary};FormData.prototype._generateBoundary=function(){var e="--------------------------";for(var t=0;t<24;t++){e+=Math.floor(Math.random()*10).toString(16)}this._boundary=e};FormData.prototype.getLengthSync=function(){var e=this._overheadLength+this._valueLength;if(this._streams.length){e+=this._lastBoundary().length}if(!this.hasKnownLength()){this._error(new Error("Cannot calculate proper length in synchronous way."))}return e};FormData.prototype.hasKnownLength=function(){var e=true;if(this._valuesToMeasure.length){e=false}return e};FormData.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;if(this._streams.length){t+=this._lastBoundary().length}if(!this._valuesToMeasure.length){process.nextTick(e.bind(this,null,t));return}d.parallel(this._valuesToMeasure,this._lengthRetriever,function(i,n){if(i){e(i);return}n.forEach(function(e){t+=e});e(null,t)})};FormData.prototype.submit=function(e,t){var i,n,a={method:"post"};if(typeof e=="string"){e=u(e);n=p({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},a)}else{n=p(e,a);if(!n.port){n.port=n.protocol=="https:"?443:80}}n.headers=this.getHeaders(e.headers);if(n.protocol=="https:"){i=o.request(n)}else{i=s.request(n)}this.getLength(function(e,n){if(e){this._error(e);return}i.setHeader("Content-Length",n);this.pipe(i);if(t){i.on("error",t);i.on("response",t.bind(this,null))}}.bind(this));return i};FormData.prototype._error=function(e){if(!this.error){this.error=e;this.pause();this.emit("error",e)}};FormData.prototype.toString=function(){return"[object FormData]"}},function(e,t,i){"use strict";const n=i(835);const a=i(783);e.exports=((e,t)=>{if(typeof e!=="string"){throw new TypeError(`Expected \`url\` to be of type \`string\`, got \`${typeof e}\` instead.`)}const i=a(e,Object.assign({https:true},t));return n.parse(i)})},function(e,t,i){const n=Symbol("SemVer ANY");class Comparator{static get ANY(){return n}constructor(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}o("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===n){this.value=""}else{this.value=this.operator+this.semver.version}o("comp",this)}parse(e){const t=this.options.loose?a[r.COMPARATORLOOSE]:a[r.COMPARATOR];const i=e.match(t);if(!i){throw new TypeError(`Invalid comparator: ${e}`)}this.operator=i[1]!==undefined?i[1]:"";if(this.operator==="="){this.operator=""}if(!i[2]){this.semver=n}else{this.semver=new u(i[2],this.options.loose)}}toString(){return this.value}test(e){o("Comparator.test",e,this.options.loose);if(this.semver===n||e===n){return true}if(typeof e==="string"){try{e=new u(e,this.options)}catch(e){return false}}return s(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(this.operator===""){if(this.value===""){return true}return new l(e.value,t).test(this.value)}else if(e.operator===""){if(e.value===""){return true}return new l(this.value,t).test(e.semver)}const i=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");const n=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");const a=this.semver.version===e.semver.version;const r=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");const o=s(this.semver,"<",e.semver,t)&&(this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<");const u=s(this.semver,">",e.semver,t)&&(this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">");return i||n||a&&r||o||u}}e.exports=Comparator;const{re:a,t:r}=i(976);const s=i(752);const o=i(548);const u=i(65);const l=i(124)},,function(e,t,i){"use strict";const n=i(861);const a=i(534);const r=i(89);const s=i(365);e.exports=((e,t,i)=>{const o=Number(e.headers["content-length"])||null;const u=s.download(e,i,o);r(e,u);const l=t.decompress===true&&a.function(n)&&t.method!=="HEAD"?n(u):u;if(!t.decompress&&["gzip","deflate"].includes(e.headers["content-encoding"])){t.encoding=null}i.emit("response",l);i.emit("downloadProgress",{percent:0,transferred:0,total:o});e.pipe(u)})},,function(e){e.exports=function(e){return new LruCache(e)};function LruCache(e){this.capacity=e|0;this.map=Object.create(null);this.list=new DoublyLinkedList}LruCache.prototype.get=function(e){var t=this.map[e];if(t==null)return undefined;this.used(t);return t.val};LruCache.prototype.set=function(e,t){var i=this.map[e];if(i!=null){i.val=t}else{if(!this.capacity)this.prune();if(!this.capacity)return false;i=new DoublyLinkedNode(e,t);this.map[e]=i;this.capacity--}this.used(i);return true};LruCache.prototype.used=function(e){this.list.moveToFront(e)};LruCache.prototype.prune=function(){var e=this.list.pop();if(e!=null){delete this.map[e.key];this.capacity++}};function DoublyLinkedList(){this.firstNode=null;this.lastNode=null}DoublyLinkedList.prototype.moveToFront=function(e){if(this.firstNode==e)return;this.remove(e);if(this.firstNode==null){this.firstNode=e;this.lastNode=e;e.prev=null;e.next=null}else{e.prev=null;e.next=this.firstNode;e.next.prev=e;this.firstNode=e}};DoublyLinkedList.prototype.pop=function(){var e=this.lastNode;if(e!=null){this.remove(e)}return e};DoublyLinkedList.prototype.remove=function(e){if(this.firstNode==e){this.firstNode=e.next}else if(e.prev!=null){e.prev.next=e.next}if(this.lastNode==e){this.lastNode=e.prev}else if(e.next!=null){e.next.prev=e.prev}};function DoublyLinkedNode(e,t){this.key=e;this.val=t;this.prev=null;this.next=null}},function(e,t,i){const{JWKKeySupport:n,JOSENotSupported:a}=i(466);const{KEY_MANAGEMENT_ENCRYPT:r,KEY_MANAGEMENT_DECRYPT:s}=i(771);const{JWA:o,JWK:u}=i(962);i(981)(o,u);i(787)(o,u);i(736)(o,u);i(34)(o,u);i(965)(o,u);i(749)(o);i(99)(o,u);i(408)(o,u);i(209)(o,u);i(36)(o,u);i(507)(o,u);i(533)(o,u);i(432)(o,u);i(713)(o,u);const l=(e,t,i)=>{const u=`_${t}_${i}`;let c;let d;if(t==="keyManagementEncrypt"){c="key management (encryption)";d=r}else if(t==="keyManagementDecrypt"){c="key management (decryption)";d=s}if(u in e){if(e[u]){return}throw new n(`the key does not support ${i} ${c||t} algorithm`)}let p=true;if(!o[t].has(i)){throw new a(`unsupported ${c||t} alg: ${i}`)}else if(!e.algorithms(d).has(i)){p=false}Object.defineProperty(e,u,{value:p,enumerable:false});if(!p){return l(e,t,i)}};e.exports={check:l,sign:(e,t,i)=>{l(t,"sign",e);return o.sign.get(e)(t,i)},verify:(e,t,i,n)=>{l(t,"verify",e);return o.verify.get(e)(t,i,n)},keyManagementEncrypt:(e,t,i,n)=>{l(t,"keyManagementEncrypt",e);return o.keyManagementEncrypt.get(e)(t,i,n)},keyManagementDecrypt:(e,t,i,n)=>{l(t,"keyManagementDecrypt",e);return o.keyManagementDecrypt.get(e)(t,i,n)},encrypt:(e,t,i,n)=>{l(t,"encrypt",e);return o.encrypt.get(e)(t,i,n)},decrypt:(e,t,i,n)=>{l(t,"decrypt",e);return o.decrypt.get(e)(t,i,n)}}},,function(e){const t="2.0.0";const i=256;const n=Number.MAX_SAFE_INTEGER||9007199254740991;const a=16;e.exports={SEMVER_SPEC_VERSION:t,MAX_LENGTH:i,MAX_SAFE_INTEGER:n,MAX_SAFE_COMPONENT_LENGTH:a}},,,function(e){e.exports=require("vm")},,function(e,t,i){const{generateKeyPairSync:n,generateKeyPair:a}=i(373);const{promisify:r}=i(669);const{THUMBPRINT_MATERIAL:s,JWK_MEMBERS:o,PUBLIC_MEMBERS:u,PRIVATE_MEMBERS:l,KEY_MANAGEMENT_DECRYPT:c,KEY_MANAGEMENT_ENCRYPT:d}=i(771);const{EC_CURVES:p}=i(962);const{keyObjectSupported:f}=i(915);const{createPublicKey:h,createPrivateKey:m}=i(40);const b=i(466);const{name:g}=i(997);const y=i(849);const S=r(a);const w=new Set(["crv","x","y"]);Object.freeze(w);const v=new Set([...w,"d"]);Object.freeze(v);class ECKey extends y{constructor(...e){super(...e);this[o]();Object.defineProperty(this,"kty",{value:"EC",enumerable:true});if(!p.has(this.crv)){throw new b.JOSENotSupported("unsupported EC key curve")}}static get[u](){return w}static get[l](){return v}[s](){return{crv:this.crv,kty:"EC",x:this.x,y:this.y}}[d](){return this.algorithms("deriveKey")}[c](){if(this.public){return new Set}return this.algorithms("deriveKey")}static async generate(e="P-256",t=true){if(!p.has(e)){throw new b.JOSENotSupported(`unsupported EC key curve: ${e}`)}if(e===g&&e!=="secp256k1"){e="secp256k1"}let i,n;if(f){({privateKey:i,publicKey:n}=await S("ec",{namedCurve:e}));return t?i:n}({privateKey:i,publicKey:n}=await S("ec",{namedCurve:e,publicKeyEncoding:{type:"spki",format:"pem"},privateKeyEncoding:{type:"pkcs8",format:"pem"}}));if(t){return m(i)}else{return h(n)}}static generateSync(e="P-256",t=true){if(!p.has(e)){throw new b.JOSENotSupported(`unsupported EC key curve: ${e}`)}if(e===g&&e!=="secp256k1"){e="secp256k1"}let i,a;if(f){({privateKey:i,publicKey:a}=n("ec",{namedCurve:e}));return t?i:a}({privateKey:i,publicKey:a}=n("ec",{namedCurve:e,publicKeyEncoding:{type:"spki",format:"pem"},privateKeyEncoding:{type:"pkcs8",format:"pem"}}));if(t){return m(i)}else{return h(a)}}}e.exports=ECKey},function(e){"use strict";e.exports=function generate_custom(e,t,i){var n=" ";var a=e.level;var r=e.dataLevel;var s=e.schema[t];var o=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var l=!e.opts.allErrors;var c;var d="data"+(r||"");var p="valid"+a;var f="errs__"+a;var h=e.opts.$data&&s&&s.$data,m;if(h){n+=" var schema"+a+" = "+e.util.getData(s.$data,r,e.dataPathArr)+"; ";m="schema"+a}else{m=s}var b=this,g="definition"+a,y=b.definition,S="";var w,v,z,j,O;if(h&&y.$data){O="keywordValidate"+a;var k=y.validateSchema;n+=" var "+g+" = RULES.custom['"+t+"'].definition; var "+O+" = "+g+".validate;"}else{j=e.useCustomRule(b,s,e.schema,e);if(!j)return;m="validate.schema"+o;O=j.code;w=y.compile;v=y.inline;z=y.macro}var C=O+".errors",T="i"+a,R="ruleErr"+a,E=y.async;if(E&&!e.async)throw new Error("async keyword in sync schema");if(!(v||z)){n+=""+C+" = null;"}n+="var "+f+" = errors;var "+p+";";if(h&&y.$data){S+="}";n+=" if ("+m+" === undefined) { "+p+" = true; } else { ";if(k){S+="}";n+=" "+p+" = "+g+".validateSchema("+m+"); if ("+p+") { "}}if(v){if(y.statements){n+=" "+j.validate+" "}else{n+=" "+p+" = "+j.validate+"; "}}else if(z){var A=e.util.copy(e);var S="";A.level++;var x="valid"+A.level;A.schema=j.validate;A.schemaPath="";var N=e.compositeRule;e.compositeRule=A.compositeRule=true;var V=e.validate(A).replace(/validate\.schema/g,O);e.compositeRule=A.compositeRule=N;n+=" "+V}else{var P=P||[];P.push(n);n="";n+=" "+O+".call( ";if(e.opts.passContext){n+="this"}else{n+="self"}if(w||y.schema===false){n+=" , "+d+" "}else{n+=" , "+m+" , "+d+" , validate.schema"+e.schemaPath+" "}n+=" , (dataPath || '')";if(e.errorPath!='""'){n+=" + "+e.errorPath}var D=r?"data"+(r-1||""):"parentData",I=r?e.dataPathArr[r]:"parentDataProperty";n+=" , "+D+" , "+I+" , rootData ) ";var _=n;n=P.pop();if(y.errors===false){n+=" "+p+" = ";if(E){n+="await "}n+=""+_+"; "}else{if(E){C="customErrors"+a;n+=" var "+C+" = null; try { "+p+" = await "+_+"; } catch (e) { "+p+" = false; if (e instanceof ValidationError) "+C+" = e.errors; else throw e; } "}else{n+=" "+C+" = null; "+p+" = "+_+"; "}}}if(y.modifying){n+=" if ("+D+") "+d+" = "+D+"["+I+"];"}n+=""+S;if(y.valid){if(l){n+=" if (true) { "}}else{n+=" if ( ";if(y.valid===undefined){n+=" !";if(z){n+=""+x}else{n+=""+p}}else{n+=" "+!y.valid+" "}n+=") { ";c=b.keyword;var P=P||[];P.push(n);n="";var P=P||[];P.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+(c||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { keyword: '"+b.keyword+"' } ";if(e.opts.messages!==false){n+=" , message: 'should pass \""+b.keyword+"\" keyword validation' "}if(e.opts.verbose){n+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}n+=" } "}else{n+=" {} "}var q=n;n=P.pop();if(!e.compositeRule&&l){if(e.async){n+=" throw new ValidationError(["+q+"]); "}else{n+=" validate.errors = ["+q+"]; return false; "}}else{n+=" var err = "+q+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}var B=n;n=P.pop();if(v){if(y.errors){if(y.errors!="full"){n+=" for (var "+T+"="+f+"; "+T+">24&255;e[t+1]=i>>16&255;e[t+2]=i>>8&255;e[t+3]=i&255;e[t+4]=n>>24&255;e[t+5]=n>>16&255;e[t+6]=n>>8&255;e[t+7]=n&255}function vn(e,t,i,n,a){var r,s=0;for(r=0;r>>8)-1}function crypto_verify_16(e,t,i,n){return vn(e,t,i,n,16)}function crypto_verify_32(e,t,i,n){return vn(e,t,i,n,32)}function core_salsa20(e,t,i,n){var a=n[0]&255|(n[1]&255)<<8|(n[2]&255)<<16|(n[3]&255)<<24,r=i[0]&255|(i[1]&255)<<8|(i[2]&255)<<16|(i[3]&255)<<24,s=i[4]&255|(i[5]&255)<<8|(i[6]&255)<<16|(i[7]&255)<<24,o=i[8]&255|(i[9]&255)<<8|(i[10]&255)<<16|(i[11]&255)<<24,u=i[12]&255|(i[13]&255)<<8|(i[14]&255)<<16|(i[15]&255)<<24,l=n[4]&255|(n[5]&255)<<8|(n[6]&255)<<16|(n[7]&255)<<24,c=t[0]&255|(t[1]&255)<<8|(t[2]&255)<<16|(t[3]&255)<<24,d=t[4]&255|(t[5]&255)<<8|(t[6]&255)<<16|(t[7]&255)<<24,p=t[8]&255|(t[9]&255)<<8|(t[10]&255)<<16|(t[11]&255)<<24,f=t[12]&255|(t[13]&255)<<8|(t[14]&255)<<16|(t[15]&255)<<24,h=n[8]&255|(n[9]&255)<<8|(n[10]&255)<<16|(n[11]&255)<<24,m=i[16]&255|(i[17]&255)<<8|(i[18]&255)<<16|(i[19]&255)<<24,b=i[20]&255|(i[21]&255)<<8|(i[22]&255)<<16|(i[23]&255)<<24,g=i[24]&255|(i[25]&255)<<8|(i[26]&255)<<16|(i[27]&255)<<24,y=i[28]&255|(i[29]&255)<<8|(i[30]&255)<<16|(i[31]&255)<<24,S=n[12]&255|(n[13]&255)<<8|(n[14]&255)<<16|(n[15]&255)<<24;var w=a,v=r,z=s,j=o,O=u,k=l,C=c,T=d,R=p,E=f,A=h,x=m,N=b,V=g,P=y,D=S,I;for(var _=0;_<20;_+=2){I=w+N|0;O^=I<<7|I>>>32-7;I=O+w|0;R^=I<<9|I>>>32-9;I=R+O|0;N^=I<<13|I>>>32-13;I=N+R|0;w^=I<<18|I>>>32-18;I=k+v|0;E^=I<<7|I>>>32-7;I=E+k|0;V^=I<<9|I>>>32-9;I=V+E|0;v^=I<<13|I>>>32-13;I=v+V|0;k^=I<<18|I>>>32-18;I=A+C|0;P^=I<<7|I>>>32-7;I=P+A|0;z^=I<<9|I>>>32-9;I=z+P|0;C^=I<<13|I>>>32-13;I=C+z|0;A^=I<<18|I>>>32-18;I=D+x|0;j^=I<<7|I>>>32-7;I=j+D|0;T^=I<<9|I>>>32-9;I=T+j|0;x^=I<<13|I>>>32-13;I=x+T|0;D^=I<<18|I>>>32-18;I=w+j|0;v^=I<<7|I>>>32-7;I=v+w|0;z^=I<<9|I>>>32-9;I=z+v|0;j^=I<<13|I>>>32-13;I=j+z|0;w^=I<<18|I>>>32-18;I=k+O|0;C^=I<<7|I>>>32-7;I=C+k|0;T^=I<<9|I>>>32-9;I=T+C|0;O^=I<<13|I>>>32-13;I=O+T|0;k^=I<<18|I>>>32-18;I=A+E|0;x^=I<<7|I>>>32-7;I=x+A|0;R^=I<<9|I>>>32-9;I=R+x|0;E^=I<<13|I>>>32-13;I=E+R|0;A^=I<<18|I>>>32-18;I=D+P|0;N^=I<<7|I>>>32-7;I=N+D|0;V^=I<<9|I>>>32-9;I=V+N|0;P^=I<<13|I>>>32-13;I=P+V|0;D^=I<<18|I>>>32-18}w=w+a|0;v=v+r|0;z=z+s|0;j=j+o|0;O=O+u|0;k=k+l|0;C=C+c|0;T=T+d|0;R=R+p|0;E=E+f|0;A=A+h|0;x=x+m|0;N=N+b|0;V=V+g|0;P=P+y|0;D=D+S|0;e[0]=w>>>0&255;e[1]=w>>>8&255;e[2]=w>>>16&255;e[3]=w>>>24&255;e[4]=v>>>0&255;e[5]=v>>>8&255;e[6]=v>>>16&255;e[7]=v>>>24&255;e[8]=z>>>0&255;e[9]=z>>>8&255;e[10]=z>>>16&255;e[11]=z>>>24&255;e[12]=j>>>0&255;e[13]=j>>>8&255;e[14]=j>>>16&255;e[15]=j>>>24&255;e[16]=O>>>0&255;e[17]=O>>>8&255;e[18]=O>>>16&255;e[19]=O>>>24&255;e[20]=k>>>0&255;e[21]=k>>>8&255;e[22]=k>>>16&255;e[23]=k>>>24&255;e[24]=C>>>0&255;e[25]=C>>>8&255;e[26]=C>>>16&255;e[27]=C>>>24&255;e[28]=T>>>0&255;e[29]=T>>>8&255;e[30]=T>>>16&255;e[31]=T>>>24&255;e[32]=R>>>0&255;e[33]=R>>>8&255;e[34]=R>>>16&255;e[35]=R>>>24&255;e[36]=E>>>0&255;e[37]=E>>>8&255;e[38]=E>>>16&255;e[39]=E>>>24&255;e[40]=A>>>0&255;e[41]=A>>>8&255;e[42]=A>>>16&255;e[43]=A>>>24&255;e[44]=x>>>0&255;e[45]=x>>>8&255;e[46]=x>>>16&255;e[47]=x>>>24&255;e[48]=N>>>0&255;e[49]=N>>>8&255;e[50]=N>>>16&255;e[51]=N>>>24&255;e[52]=V>>>0&255;e[53]=V>>>8&255;e[54]=V>>>16&255;e[55]=V>>>24&255;e[56]=P>>>0&255;e[57]=P>>>8&255;e[58]=P>>>16&255;e[59]=P>>>24&255;e[60]=D>>>0&255;e[61]=D>>>8&255;e[62]=D>>>16&255;e[63]=D>>>24&255}function core_hsalsa20(e,t,i,n){var a=n[0]&255|(n[1]&255)<<8|(n[2]&255)<<16|(n[3]&255)<<24,r=i[0]&255|(i[1]&255)<<8|(i[2]&255)<<16|(i[3]&255)<<24,s=i[4]&255|(i[5]&255)<<8|(i[6]&255)<<16|(i[7]&255)<<24,o=i[8]&255|(i[9]&255)<<8|(i[10]&255)<<16|(i[11]&255)<<24,u=i[12]&255|(i[13]&255)<<8|(i[14]&255)<<16|(i[15]&255)<<24,l=n[4]&255|(n[5]&255)<<8|(n[6]&255)<<16|(n[7]&255)<<24,c=t[0]&255|(t[1]&255)<<8|(t[2]&255)<<16|(t[3]&255)<<24,d=t[4]&255|(t[5]&255)<<8|(t[6]&255)<<16|(t[7]&255)<<24,p=t[8]&255|(t[9]&255)<<8|(t[10]&255)<<16|(t[11]&255)<<24,f=t[12]&255|(t[13]&255)<<8|(t[14]&255)<<16|(t[15]&255)<<24,h=n[8]&255|(n[9]&255)<<8|(n[10]&255)<<16|(n[11]&255)<<24,m=i[16]&255|(i[17]&255)<<8|(i[18]&255)<<16|(i[19]&255)<<24,b=i[20]&255|(i[21]&255)<<8|(i[22]&255)<<16|(i[23]&255)<<24,g=i[24]&255|(i[25]&255)<<8|(i[26]&255)<<16|(i[27]&255)<<24,y=i[28]&255|(i[29]&255)<<8|(i[30]&255)<<16|(i[31]&255)<<24,S=n[12]&255|(n[13]&255)<<8|(n[14]&255)<<16|(n[15]&255)<<24;var w=a,v=r,z=s,j=o,O=u,k=l,C=c,T=d,R=p,E=f,A=h,x=m,N=b,V=g,P=y,D=S,I;for(var _=0;_<20;_+=2){I=w+N|0;O^=I<<7|I>>>32-7;I=O+w|0;R^=I<<9|I>>>32-9;I=R+O|0;N^=I<<13|I>>>32-13;I=N+R|0;w^=I<<18|I>>>32-18;I=k+v|0;E^=I<<7|I>>>32-7;I=E+k|0;V^=I<<9|I>>>32-9;I=V+E|0;v^=I<<13|I>>>32-13;I=v+V|0;k^=I<<18|I>>>32-18;I=A+C|0;P^=I<<7|I>>>32-7;I=P+A|0;z^=I<<9|I>>>32-9;I=z+P|0;C^=I<<13|I>>>32-13;I=C+z|0;A^=I<<18|I>>>32-18;I=D+x|0;j^=I<<7|I>>>32-7;I=j+D|0;T^=I<<9|I>>>32-9;I=T+j|0;x^=I<<13|I>>>32-13;I=x+T|0;D^=I<<18|I>>>32-18;I=w+j|0;v^=I<<7|I>>>32-7;I=v+w|0;z^=I<<9|I>>>32-9;I=z+v|0;j^=I<<13|I>>>32-13;I=j+z|0;w^=I<<18|I>>>32-18;I=k+O|0;C^=I<<7|I>>>32-7;I=C+k|0;T^=I<<9|I>>>32-9;I=T+C|0;O^=I<<13|I>>>32-13;I=O+T|0;k^=I<<18|I>>>32-18;I=A+E|0;x^=I<<7|I>>>32-7;I=x+A|0;R^=I<<9|I>>>32-9;I=R+x|0;E^=I<<13|I>>>32-13;I=E+R|0;A^=I<<18|I>>>32-18;I=D+P|0;N^=I<<7|I>>>32-7;I=N+D|0;V^=I<<9|I>>>32-9;I=V+N|0;P^=I<<13|I>>>32-13;I=P+V|0;D^=I<<18|I>>>32-18}e[0]=w>>>0&255;e[1]=w>>>8&255;e[2]=w>>>16&255;e[3]=w>>>24&255;e[4]=k>>>0&255;e[5]=k>>>8&255;e[6]=k>>>16&255;e[7]=k>>>24&255;e[8]=A>>>0&255;e[9]=A>>>8&255;e[10]=A>>>16&255;e[11]=A>>>24&255;e[12]=D>>>0&255;e[13]=D>>>8&255;e[14]=D>>>16&255;e[15]=D>>>24&255;e[16]=C>>>0&255;e[17]=C>>>8&255;e[18]=C>>>16&255;e[19]=C>>>24&255;e[20]=T>>>0&255;e[21]=T>>>8&255;e[22]=T>>>16&255;e[23]=T>>>24&255;e[24]=R>>>0&255;e[25]=R>>>8&255;e[26]=R>>>16&255;e[27]=R>>>24&255;e[28]=E>>>0&255;e[29]=E>>>8&255;e[30]=E>>>16&255;e[31]=E>>>24&255}function crypto_core_salsa20(e,t,i,n){core_salsa20(e,t,i,n)}function crypto_core_hsalsa20(e,t,i,n){core_hsalsa20(e,t,i,n)}var h=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function crypto_stream_salsa20_xor(e,t,i,n,a,r,s){var o=new Uint8Array(16),u=new Uint8Array(64);var l,c;for(c=0;c<16;c++)o[c]=0;for(c=0;c<8;c++)o[c]=r[c];while(a>=64){crypto_core_salsa20(u,o,s,h);for(c=0;c<64;c++)e[t+c]=i[n+c]^u[c];l=1;for(c=8;c<16;c++){l=l+(o[c]&255)|0;o[c]=l&255;l>>>=8}a-=64;t+=64;n+=64}if(a>0){crypto_core_salsa20(u,o,s,h);for(c=0;c=64){crypto_core_salsa20(s,r,a,h);for(u=0;u<64;u++)e[t+u]=s[u];o=1;for(u=8;u<16;u++){o=o+(r[u]&255)|0;r[u]=o&255;o>>>=8}i-=64;t+=64}if(i>0){crypto_core_salsa20(s,r,a,h);for(u=0;u>>13|i<<3)&8191;n=e[4]&255|(e[5]&255)<<8;this.r[2]=(i>>>10|n<<6)&7939;a=e[6]&255|(e[7]&255)<<8;this.r[3]=(n>>>7|a<<9)&8191;r=e[8]&255|(e[9]&255)<<8;this.r[4]=(a>>>4|r<<12)&255;this.r[5]=r>>>1&8190;s=e[10]&255|(e[11]&255)<<8;this.r[6]=(r>>>14|s<<2)&8191;o=e[12]&255|(e[13]&255)<<8;this.r[7]=(s>>>11|o<<5)&8065;u=e[14]&255|(e[15]&255)<<8;this.r[8]=(o>>>8|u<<8)&8191;this.r[9]=u>>>5&127;this.pad[0]=e[16]&255|(e[17]&255)<<8;this.pad[1]=e[18]&255|(e[19]&255)<<8;this.pad[2]=e[20]&255|(e[21]&255)<<8;this.pad[3]=e[22]&255|(e[23]&255)<<8;this.pad[4]=e[24]&255|(e[25]&255)<<8;this.pad[5]=e[26]&255|(e[27]&255)<<8;this.pad[6]=e[28]&255|(e[29]&255)<<8;this.pad[7]=e[30]&255|(e[31]&255)<<8};m.prototype.blocks=function(e,t,i){var n=this.fin?0:1<<11;var a,r,s,o,u,l,c,d,p;var f,h,m,b,g,y,S,w,v,z;var j=this.h[0],O=this.h[1],k=this.h[2],C=this.h[3],T=this.h[4],R=this.h[5],E=this.h[6],A=this.h[7],x=this.h[8],N=this.h[9];var V=this.r[0],P=this.r[1],D=this.r[2],I=this.r[3],_=this.r[4],q=this.r[5],B=this.r[6],M=this.r[7],U=this.r[8],L=this.r[9];while(i>=16){a=e[t+0]&255|(e[t+1]&255)<<8;j+=a&8191;r=e[t+2]&255|(e[t+3]&255)<<8;O+=(a>>>13|r<<3)&8191;s=e[t+4]&255|(e[t+5]&255)<<8;k+=(r>>>10|s<<6)&8191;o=e[t+6]&255|(e[t+7]&255)<<8;C+=(s>>>7|o<<9)&8191;u=e[t+8]&255|(e[t+9]&255)<<8;T+=(o>>>4|u<<12)&8191;R+=u>>>1&8191;l=e[t+10]&255|(e[t+11]&255)<<8;E+=(u>>>14|l<<2)&8191;c=e[t+12]&255|(e[t+13]&255)<<8;A+=(l>>>11|c<<5)&8191;d=e[t+14]&255|(e[t+15]&255)<<8;x+=(c>>>8|d<<8)&8191;N+=d>>>5|n;p=0;f=p;f+=j*V;f+=O*(5*L);f+=k*(5*U);f+=C*(5*M);f+=T*(5*B);p=f>>>13;f&=8191;f+=R*(5*q);f+=E*(5*_);f+=A*(5*I);f+=x*(5*D);f+=N*(5*P);p+=f>>>13;f&=8191;h=p;h+=j*P;h+=O*V;h+=k*(5*L);h+=C*(5*U);h+=T*(5*M);p=h>>>13;h&=8191;h+=R*(5*B);h+=E*(5*q);h+=A*(5*_);h+=x*(5*I);h+=N*(5*D);p+=h>>>13;h&=8191;m=p;m+=j*D;m+=O*P;m+=k*V;m+=C*(5*L);m+=T*(5*U);p=m>>>13;m&=8191;m+=R*(5*M);m+=E*(5*B);m+=A*(5*q);m+=x*(5*_);m+=N*(5*I);p+=m>>>13;m&=8191;b=p;b+=j*I;b+=O*D;b+=k*P;b+=C*V;b+=T*(5*L);p=b>>>13;b&=8191;b+=R*(5*U);b+=E*(5*M);b+=A*(5*B);b+=x*(5*q);b+=N*(5*_);p+=b>>>13;b&=8191;g=p;g+=j*_;g+=O*I;g+=k*D;g+=C*P;g+=T*V;p=g>>>13;g&=8191;g+=R*(5*L);g+=E*(5*U);g+=A*(5*M);g+=x*(5*B);g+=N*(5*q);p+=g>>>13;g&=8191;y=p;y+=j*q;y+=O*_;y+=k*I;y+=C*D;y+=T*P;p=y>>>13;y&=8191;y+=R*V;y+=E*(5*L);y+=A*(5*U);y+=x*(5*M);y+=N*(5*B);p+=y>>>13;y&=8191;S=p;S+=j*B;S+=O*q;S+=k*_;S+=C*I;S+=T*D;p=S>>>13;S&=8191;S+=R*P;S+=E*V;S+=A*(5*L);S+=x*(5*U);S+=N*(5*M);p+=S>>>13;S&=8191;w=p;w+=j*M;w+=O*B;w+=k*q;w+=C*_;w+=T*I;p=w>>>13;w&=8191;w+=R*D;w+=E*P;w+=A*V;w+=x*(5*L);w+=N*(5*U);p+=w>>>13;w&=8191;v=p;v+=j*U;v+=O*M;v+=k*B;v+=C*q;v+=T*_;p=v>>>13;v&=8191;v+=R*I;v+=E*D;v+=A*P;v+=x*V;v+=N*(5*L);p+=v>>>13;v&=8191;z=p;z+=j*L;z+=O*U;z+=k*M;z+=C*B;z+=T*q;p=z>>>13;z&=8191;z+=R*_;z+=E*I;z+=A*D;z+=x*P;z+=N*V;p+=z>>>13;z&=8191;p=(p<<2)+p|0;p=p+f|0;f=p&8191;p=p>>>13;h+=p;j=f;O=h;k=m;C=b;T=g;R=y;E=S;A=w;x=v;N=z;t+=16;i-=16}this.h[0]=j;this.h[1]=O;this.h[2]=k;this.h[3]=C;this.h[4]=T;this.h[5]=R;this.h[6]=E;this.h[7]=A;this.h[8]=x;this.h[9]=N};m.prototype.finish=function(e,t){var i=new Uint16Array(10);var n,a,r,s;if(this.leftover){s=this.leftover;this.buffer[s++]=1;for(;s<16;s++)this.buffer[s]=0;this.fin=1;this.blocks(this.buffer,0,16)}n=this.h[1]>>>13;this.h[1]&=8191;for(s=2;s<10;s++){this.h[s]+=n;n=this.h[s]>>>13;this.h[s]&=8191}this.h[0]+=n*5;n=this.h[0]>>>13;this.h[0]&=8191;this.h[1]+=n;n=this.h[1]>>>13;this.h[1]&=8191;this.h[2]+=n;i[0]=this.h[0]+5;n=i[0]>>>13;i[0]&=8191;for(s=1;s<10;s++){i[s]=this.h[s]+n;n=i[s]>>>13;i[s]&=8191}i[9]-=1<<13;a=(n^1)-1;for(s=0;s<10;s++)i[s]&=a;a=~a;for(s=0;s<10;s++)this.h[s]=this.h[s]&a|i[s];this.h[0]=(this.h[0]|this.h[1]<<13)&65535;this.h[1]=(this.h[1]>>>3|this.h[2]<<10)&65535;this.h[2]=(this.h[2]>>>6|this.h[3]<<7)&65535;this.h[3]=(this.h[3]>>>9|this.h[4]<<4)&65535;this.h[4]=(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14)&65535;this.h[5]=(this.h[6]>>>2|this.h[7]<<11)&65535;this.h[6]=(this.h[7]>>>5|this.h[8]<<8)&65535;this.h[7]=(this.h[8]>>>8|this.h[9]<<5)&65535;r=this.h[0]+this.pad[0];this.h[0]=r&65535;for(s=1;s<8;s++){r=(this.h[s]+this.pad[s]|0)+(r>>>16)|0;this.h[s]=r&65535}e[t+0]=this.h[0]>>>0&255;e[t+1]=this.h[0]>>>8&255;e[t+2]=this.h[1]>>>0&255;e[t+3]=this.h[1]>>>8&255;e[t+4]=this.h[2]>>>0&255;e[t+5]=this.h[2]>>>8&255;e[t+6]=this.h[3]>>>0&255;e[t+7]=this.h[3]>>>8&255;e[t+8]=this.h[4]>>>0&255;e[t+9]=this.h[4]>>>8&255;e[t+10]=this.h[5]>>>0&255;e[t+11]=this.h[5]>>>8&255;e[t+12]=this.h[6]>>>0&255;e[t+13]=this.h[6]>>>8&255;e[t+14]=this.h[7]>>>0&255;e[t+15]=this.h[7]>>>8&255};m.prototype.update=function(e,t,i){var n,a;if(this.leftover){a=16-this.leftover;if(a>i)a=i;for(n=0;n=16){a=i-i%16;this.blocks(e,t,a);t+=a;i-=a}if(i){for(n=0;n>16&1);s[n-1]&=65535}s[15]=o[15]-32767-(s[14]>>16&1);r=s[15]>>16&1;s[14]&=65535;sel25519(o,s,1-r)}for(n=0;n<16;n++){e[2*n]=o[n]&255;e[2*n+1]=o[n]>>8}}function neq25519(e,t){var i=new Uint8Array(32),n=new Uint8Array(32);pack25519(i,e);pack25519(n,t);return crypto_verify_32(i,0,n,0)}function par25519(e){var t=new Uint8Array(32);pack25519(t,e);return t[0]&1}function unpack25519(e,t){var i;for(i=0;i<16;i++)e[i]=t[2*i]+(t[2*i+1]<<8);e[15]&=32767}function A(e,t,i){for(var n=0;n<16;n++)e[n]=t[n]+i[n]}function Z(e,t,i){for(var n=0;n<16;n++)e[n]=t[n]-i[n]}function M(e,t,i){var n,a,r=0,s=0,o=0,u=0,l=0,c=0,d=0,p=0,f=0,h=0,m=0,b=0,g=0,y=0,S=0,w=0,v=0,z=0,j=0,O=0,k=0,C=0,T=0,R=0,E=0,A=0,x=0,N=0,V=0,P=0,D=0,I=i[0],_=i[1],q=i[2],B=i[3],M=i[4],U=i[5],L=i[6],H=i[7],Q=i[8],W=i[9],G=i[10],K=i[11],J=i[12],F=i[13],Y=i[14],X=i[15];n=t[0];r+=n*I;s+=n*_;o+=n*q;u+=n*B;l+=n*M;c+=n*U;d+=n*L;p+=n*H;f+=n*Q;h+=n*W;m+=n*G;b+=n*K;g+=n*J;y+=n*F;S+=n*Y;w+=n*X;n=t[1];s+=n*I;o+=n*_;u+=n*q;l+=n*B;c+=n*M;d+=n*U;p+=n*L;f+=n*H;h+=n*Q;m+=n*W;b+=n*G;g+=n*K;y+=n*J;S+=n*F;w+=n*Y;v+=n*X;n=t[2];o+=n*I;u+=n*_;l+=n*q;c+=n*B;d+=n*M;p+=n*U;f+=n*L;h+=n*H;m+=n*Q;b+=n*W;g+=n*G;y+=n*K;S+=n*J;w+=n*F;v+=n*Y;z+=n*X;n=t[3];u+=n*I;l+=n*_;c+=n*q;d+=n*B;p+=n*M;f+=n*U;h+=n*L;m+=n*H;b+=n*Q;g+=n*W;y+=n*G;S+=n*K;w+=n*J;v+=n*F;z+=n*Y;j+=n*X;n=t[4];l+=n*I;c+=n*_;d+=n*q;p+=n*B;f+=n*M;h+=n*U;m+=n*L;b+=n*H;g+=n*Q;y+=n*W;S+=n*G;w+=n*K;v+=n*J;z+=n*F;j+=n*Y;O+=n*X;n=t[5];c+=n*I;d+=n*_;p+=n*q;f+=n*B;h+=n*M;m+=n*U;b+=n*L;g+=n*H;y+=n*Q;S+=n*W;w+=n*G;v+=n*K;z+=n*J;j+=n*F;O+=n*Y;k+=n*X;n=t[6];d+=n*I;p+=n*_;f+=n*q;h+=n*B;m+=n*M;b+=n*U;g+=n*L;y+=n*H;S+=n*Q;w+=n*W;v+=n*G;z+=n*K;j+=n*J;O+=n*F;k+=n*Y;C+=n*X;n=t[7];p+=n*I;f+=n*_;h+=n*q;m+=n*B;b+=n*M;g+=n*U;y+=n*L;S+=n*H;w+=n*Q;v+=n*W;z+=n*G;j+=n*K;O+=n*J;k+=n*F;C+=n*Y;T+=n*X;n=t[8];f+=n*I;h+=n*_;m+=n*q;b+=n*B;g+=n*M;y+=n*U;S+=n*L;w+=n*H;v+=n*Q;z+=n*W;j+=n*G;O+=n*K;k+=n*J;C+=n*F;T+=n*Y;R+=n*X;n=t[9];h+=n*I;m+=n*_;b+=n*q;g+=n*B;y+=n*M;S+=n*U;w+=n*L;v+=n*H;z+=n*Q;j+=n*W;O+=n*G;k+=n*K;C+=n*J;T+=n*F;R+=n*Y;E+=n*X;n=t[10];m+=n*I;b+=n*_;g+=n*q;y+=n*B;S+=n*M;w+=n*U;v+=n*L;z+=n*H;j+=n*Q;O+=n*W;k+=n*G;C+=n*K;T+=n*J;R+=n*F;E+=n*Y;A+=n*X;n=t[11];b+=n*I;g+=n*_;y+=n*q;S+=n*B;w+=n*M;v+=n*U;z+=n*L;j+=n*H;O+=n*Q;k+=n*W;C+=n*G;T+=n*K;R+=n*J;E+=n*F;A+=n*Y;x+=n*X;n=t[12];g+=n*I;y+=n*_;S+=n*q;w+=n*B;v+=n*M;z+=n*U;j+=n*L;O+=n*H;k+=n*Q;C+=n*W;T+=n*G;R+=n*K;E+=n*J;A+=n*F;x+=n*Y;N+=n*X;n=t[13];y+=n*I;S+=n*_;w+=n*q;v+=n*B;z+=n*M;j+=n*U;O+=n*L;k+=n*H;C+=n*Q;T+=n*W;R+=n*G;E+=n*K;A+=n*J;x+=n*F;N+=n*Y;V+=n*X;n=t[14];S+=n*I;w+=n*_;v+=n*q;z+=n*B;j+=n*M;O+=n*U;k+=n*L;C+=n*H;T+=n*Q;R+=n*W;E+=n*G;A+=n*K;x+=n*J;N+=n*F;V+=n*Y;P+=n*X;n=t[15];w+=n*I;v+=n*_;z+=n*q;j+=n*B;O+=n*M;k+=n*U;C+=n*L;T+=n*H;R+=n*Q;E+=n*W;A+=n*G;x+=n*K;N+=n*J;V+=n*F;P+=n*Y;D+=n*X;r+=38*v;s+=38*z;o+=38*j;u+=38*O;l+=38*k;c+=38*C;d+=38*T;p+=38*R;f+=38*E;h+=38*A;m+=38*x;b+=38*N;g+=38*V;y+=38*P;S+=38*D;a=1;n=r+a+65535;a=Math.floor(n/65536);r=n-a*65536;n=s+a+65535;a=Math.floor(n/65536);s=n-a*65536;n=o+a+65535;a=Math.floor(n/65536);o=n-a*65536;n=u+a+65535;a=Math.floor(n/65536);u=n-a*65536;n=l+a+65535;a=Math.floor(n/65536);l=n-a*65536;n=c+a+65535;a=Math.floor(n/65536);c=n-a*65536;n=d+a+65535;a=Math.floor(n/65536);d=n-a*65536;n=p+a+65535;a=Math.floor(n/65536);p=n-a*65536;n=f+a+65535;a=Math.floor(n/65536);f=n-a*65536;n=h+a+65535;a=Math.floor(n/65536);h=n-a*65536;n=m+a+65535;a=Math.floor(n/65536);m=n-a*65536;n=b+a+65535;a=Math.floor(n/65536);b=n-a*65536;n=g+a+65535;a=Math.floor(n/65536);g=n-a*65536;n=y+a+65535;a=Math.floor(n/65536);y=n-a*65536;n=S+a+65535;a=Math.floor(n/65536);S=n-a*65536;n=w+a+65535;a=Math.floor(n/65536);w=n-a*65536;r+=a-1+37*(a-1);a=1;n=r+a+65535;a=Math.floor(n/65536);r=n-a*65536;n=s+a+65535;a=Math.floor(n/65536);s=n-a*65536;n=o+a+65535;a=Math.floor(n/65536);o=n-a*65536;n=u+a+65535;a=Math.floor(n/65536);u=n-a*65536;n=l+a+65535;a=Math.floor(n/65536);l=n-a*65536;n=c+a+65535;a=Math.floor(n/65536);c=n-a*65536;n=d+a+65535;a=Math.floor(n/65536);d=n-a*65536;n=p+a+65535;a=Math.floor(n/65536);p=n-a*65536;n=f+a+65535;a=Math.floor(n/65536);f=n-a*65536;n=h+a+65535;a=Math.floor(n/65536);h=n-a*65536;n=m+a+65535;a=Math.floor(n/65536);m=n-a*65536;n=b+a+65535;a=Math.floor(n/65536);b=n-a*65536;n=g+a+65535;a=Math.floor(n/65536);g=n-a*65536;n=y+a+65535;a=Math.floor(n/65536);y=n-a*65536;n=S+a+65535;a=Math.floor(n/65536);S=n-a*65536;n=w+a+65535;a=Math.floor(n/65536);w=n-a*65536;r+=a-1+37*(a-1);e[0]=r;e[1]=s;e[2]=o;e[3]=u;e[4]=l;e[5]=c;e[6]=d;e[7]=p;e[8]=f;e[9]=h;e[10]=m;e[11]=b;e[12]=g;e[13]=y;e[14]=S;e[15]=w}function S(e,t){M(e,t,t)}function inv25519(e,i){var n=t();var a;for(a=0;a<16;a++)n[a]=i[a];for(a=253;a>=0;a--){S(n,n);if(a!==2&&a!==4)M(n,n,i)}for(a=0;a<16;a++)e[a]=n[a]}function pow2523(e,i){var n=t();var a;for(a=0;a<16;a++)n[a]=i[a];for(a=250;a>=0;a--){S(n,n);if(a!==1)M(n,n,i)}for(a=0;a<16;a++)e[a]=n[a]}function crypto_scalarmult(e,i,n){var a=new Uint8Array(32);var r=new Float64Array(80),s,o;var l=t(),c=t(),d=t(),p=t(),f=t(),h=t();for(o=0;o<31;o++)a[o]=i[o];a[31]=i[31]&127|64;a[0]&=248;unpack25519(r,n);for(o=0;o<16;o++){c[o]=r[o];p[o]=l[o]=d[o]=0}l[0]=p[0]=1;for(o=254;o>=0;--o){s=a[o>>>3]>>>(o&7)&1;sel25519(l,c,s);sel25519(d,p,s);A(f,l,d);Z(l,l,d);A(d,c,p);Z(c,c,p);S(p,f);S(h,l);M(l,d,l);M(d,c,f);A(f,l,d);Z(l,l,d);S(c,l);Z(d,p,h);M(l,d,u);A(l,l,p);M(d,d,l);M(l,p,h);M(p,c,r);S(c,f);sel25519(l,c,s);sel25519(d,p,s)}for(o=0;o<16;o++){r[o+16]=l[o];r[o+32]=d[o];r[o+48]=c[o];r[o+64]=p[o]}var m=r.subarray(32);var b=r.subarray(16);inv25519(m,m);M(b,b,m);pack25519(e,b);return 0}function crypto_scalarmult_base(e,t){return crypto_scalarmult(e,t,r)}function crypto_box_keypair(e,t){n(t,32);return crypto_scalarmult_base(e,t)}function crypto_box_beforenm(e,t,i){var n=new Uint8Array(32);crypto_scalarmult(n,i,t);return crypto_core_hsalsa20(e,a,n,h)}var b=crypto_secretbox;var g=crypto_secretbox_open;function crypto_box(e,t,i,n,a,r){var s=new Uint8Array(32);crypto_box_beforenm(s,a,r);return b(e,t,i,n,s)}function crypto_box_open(e,t,i,n,a,r){var s=new Uint8Array(32);crypto_box_beforenm(s,a,r);return g(e,t,i,n,s)}var y=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function crypto_hashblocks_hl(e,t,i,n){var a=new Int32Array(16),r=new Int32Array(16),s,o,u,l,c,d,p,f,h,m,b,g,S,w,v,z,j,O,k,C,T,R,E,A,x,N;var V=e[0],P=e[1],D=e[2],I=e[3],_=e[4],q=e[5],B=e[6],M=e[7],U=t[0],L=t[1],H=t[2],Q=t[3],W=t[4],G=t[5],K=t[6],J=t[7];var F=0;while(n>=128){for(k=0;k<16;k++){C=8*k+F;a[k]=i[C+0]<<24|i[C+1]<<16|i[C+2]<<8|i[C+3];r[k]=i[C+4]<<24|i[C+5]<<16|i[C+6]<<8|i[C+7]}for(k=0;k<80;k++){s=V;o=P;u=D;l=I;c=_;d=q;p=B;f=M;h=U;m=L;b=H;g=Q;S=W;w=G;v=K;z=J;T=M;R=J;E=R&65535;A=R>>>16;x=T&65535;N=T>>>16;T=(_>>>14|W<<32-14)^(_>>>18|W<<32-18)^(W>>>41-32|_<<32-(41-32));R=(W>>>14|_<<32-14)^(W>>>18|_<<32-18)^(_>>>41-32|W<<32-(41-32));E+=R&65535;A+=R>>>16;x+=T&65535;N+=T>>>16;T=_&q^~_&B;R=W&G^~W&K;E+=R&65535;A+=R>>>16;x+=T&65535;N+=T>>>16;T=y[k*2];R=y[k*2+1];E+=R&65535;A+=R>>>16;x+=T&65535;N+=T>>>16;T=a[k%16];R=r[k%16];E+=R&65535;A+=R>>>16;x+=T&65535;N+=T>>>16;A+=E>>>16;x+=A>>>16;N+=x>>>16;j=x&65535|N<<16;O=E&65535|A<<16;T=j;R=O;E=R&65535;A=R>>>16;x=T&65535;N=T>>>16;T=(V>>>28|U<<32-28)^(U>>>34-32|V<<32-(34-32))^(U>>>39-32|V<<32-(39-32));R=(U>>>28|V<<32-28)^(V>>>34-32|U<<32-(34-32))^(V>>>39-32|U<<32-(39-32));E+=R&65535;A+=R>>>16;x+=T&65535;N+=T>>>16;T=V&P^V&D^P&D;R=U&L^U&H^L&H;E+=R&65535;A+=R>>>16;x+=T&65535;N+=T>>>16;A+=E>>>16;x+=A>>>16;N+=x>>>16;f=x&65535|N<<16;z=E&65535|A<<16;T=l;R=g;E=R&65535;A=R>>>16;x=T&65535;N=T>>>16;T=j;R=O;E+=R&65535;A+=R>>>16;x+=T&65535;N+=T>>>16;A+=E>>>16;x+=A>>>16;N+=x>>>16;l=x&65535|N<<16;g=E&65535|A<<16;P=s;D=o;I=u;_=l;q=c;B=d;M=p;V=f;L=h;H=m;Q=b;W=g;G=S;K=w;J=v;U=z;if(k%16===15){for(C=0;C<16;C++){T=a[C];R=r[C];E=R&65535;A=R>>>16;x=T&65535;N=T>>>16;T=a[(C+9)%16];R=r[(C+9)%16];E+=R&65535;A+=R>>>16;x+=T&65535;N+=T>>>16;j=a[(C+1)%16];O=r[(C+1)%16];T=(j>>>1|O<<32-1)^(j>>>8|O<<32-8)^j>>>7;R=(O>>>1|j<<32-1)^(O>>>8|j<<32-8)^(O>>>7|j<<32-7);E+=R&65535;A+=R>>>16;x+=T&65535;N+=T>>>16;j=a[(C+14)%16];O=r[(C+14)%16];T=(j>>>19|O<<32-19)^(O>>>61-32|j<<32-(61-32))^j>>>6;R=(O>>>19|j<<32-19)^(j>>>61-32|O<<32-(61-32))^(O>>>6|j<<32-6);E+=R&65535;A+=R>>>16;x+=T&65535;N+=T>>>16;A+=E>>>16;x+=A>>>16;N+=x>>>16;a[C]=x&65535|N<<16;r[C]=E&65535|A<<16}}}T=V;R=U;E=R&65535;A=R>>>16;x=T&65535;N=T>>>16;T=e[0];R=t[0];E+=R&65535;A+=R>>>16;x+=T&65535;N+=T>>>16;A+=E>>>16;x+=A>>>16;N+=x>>>16;e[0]=V=x&65535|N<<16;t[0]=U=E&65535|A<<16;T=P;R=L;E=R&65535;A=R>>>16;x=T&65535;N=T>>>16;T=e[1];R=t[1];E+=R&65535;A+=R>>>16;x+=T&65535;N+=T>>>16;A+=E>>>16;x+=A>>>16;N+=x>>>16;e[1]=P=x&65535|N<<16;t[1]=L=E&65535|A<<16;T=D;R=H;E=R&65535;A=R>>>16;x=T&65535;N=T>>>16;T=e[2];R=t[2];E+=R&65535;A+=R>>>16;x+=T&65535;N+=T>>>16;A+=E>>>16;x+=A>>>16;N+=x>>>16;e[2]=D=x&65535|N<<16;t[2]=H=E&65535|A<<16;T=I;R=Q;E=R&65535;A=R>>>16;x=T&65535;N=T>>>16;T=e[3];R=t[3];E+=R&65535;A+=R>>>16;x+=T&65535;N+=T>>>16;A+=E>>>16;x+=A>>>16;N+=x>>>16;e[3]=I=x&65535|N<<16;t[3]=Q=E&65535|A<<16;T=_;R=W;E=R&65535;A=R>>>16;x=T&65535;N=T>>>16;T=e[4];R=t[4];E+=R&65535;A+=R>>>16;x+=T&65535;N+=T>>>16;A+=E>>>16;x+=A>>>16;N+=x>>>16;e[4]=_=x&65535|N<<16;t[4]=W=E&65535|A<<16;T=q;R=G;E=R&65535;A=R>>>16;x=T&65535;N=T>>>16;T=e[5];R=t[5];E+=R&65535;A+=R>>>16;x+=T&65535;N+=T>>>16;A+=E>>>16;x+=A>>>16;N+=x>>>16;e[5]=q=x&65535|N<<16;t[5]=G=E&65535|A<<16;T=B;R=K;E=R&65535;A=R>>>16;x=T&65535;N=T>>>16;T=e[6];R=t[6];E+=R&65535;A+=R>>>16;x+=T&65535;N+=T>>>16;A+=E>>>16;x+=A>>>16;N+=x>>>16;e[6]=B=x&65535|N<<16;t[6]=K=E&65535|A<<16;T=M;R=J;E=R&65535;A=R>>>16;x=T&65535;N=T>>>16;T=e[7];R=t[7];E+=R&65535;A+=R>>>16;x+=T&65535;N+=T>>>16;A+=E>>>16;x+=A>>>16;N+=x>>>16;e[7]=M=x&65535|N<<16;t[7]=J=E&65535|A<<16;F+=128;n-=128}return n}function crypto_hash(e,t,i){var n=new Int32Array(8),a=new Int32Array(8),r=new Uint8Array(256),s,o=i;n[0]=1779033703;n[1]=3144134277;n[2]=1013904242;n[3]=2773480762;n[4]=1359893119;n[5]=2600822924;n[6]=528734635;n[7]=1541459225;a[0]=4089235720;a[1]=2227873595;a[2]=4271175723;a[3]=1595750129;a[4]=2917565137;a[5]=725511199;a[6]=4215389547;a[7]=327033209;crypto_hashblocks_hl(n,a,t,i);i%=128;for(s=0;s=0;--a){n=i[a/8|0]>>(a&7)&1;cswap(e,t,n);add(t,e);add(e,e);cswap(e,t,n)}}function scalarbase(e,i){var n=[t(),t(),t(),t()];set25519(n[0],d);set25519(n[1],p);set25519(n[2],o);M(n[3],d,p);scalarmult(e,n,i)}function crypto_sign_keypair(e,i,a){var r=new Uint8Array(64);var s=[t(),t(),t(),t()];var o;if(!a)n(i,32);crypto_hash(r,i,32);r[0]&=248;r[31]&=127;r[31]|=64;scalarbase(s,r);pack(e,s);for(o=0;o<32;o++)i[o+32]=e[o];return 0}var w=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function modL(e,t){var i,n,a,r;for(n=63;n>=32;--n){i=0;for(a=n-32,r=n-12;a>8;t[a]-=i*256}t[a]+=i;t[n]=0}i=0;for(a=0;a<32;a++){t[a]+=i-(t[31]>>4)*w[a];i=t[a]>>8;t[a]&=255}for(a=0;a<32;a++)t[a]-=i*w[a];for(n=0;n<32;n++){t[n+1]+=t[n]>>8;e[n]=t[n]&255}}function reduce(e){var t=new Float64Array(64),i;for(i=0;i<64;i++)t[i]=e[i];for(i=0;i<64;i++)e[i]=0;modL(e,t)}function crypto_sign(e,i,n,a){var r=new Uint8Array(64),s=new Uint8Array(64),o=new Uint8Array(64);var u,l,c=new Float64Array(64);var d=[t(),t(),t(),t()];crypto_hash(r,a,32);r[0]&=248;r[31]&=127;r[31]|=64;var p=n+64;for(u=0;u>7)Z(e[0],s,e[0]);M(e[3],e[0],e[1]);return 0}function crypto_sign_open(e,i,n,a){var r,s;var o=new Uint8Array(32),u=new Uint8Array(64);var l=[t(),t(),t(),t()],c=[t(),t(),t(),t()];s=-1;if(n<64)return-1;if(unpackneg(c,a))return-1;for(r=0;r=0};e.sign.keyPair=function(){var e=new Uint8Array(D);var t=new Uint8Array(I);crypto_sign_keypair(e,t);return{publicKey:e,secretKey:t}};e.sign.keyPair.fromSecretKey=function(e){checkArrayTypes(e);if(e.length!==I)throw new Error("bad secret key size");var t=new Uint8Array(D);for(var i=0;i{const t=r.get(e);if(!t){return new s({type:"secret"})}return new s(a(n(t/8)),{use:"enc",alg:e})})},,function(e,t,i){const n=i(745);e.exports={IdToken:{verify:(e,t,i)=>n(e,t,{...i,profile:"id_token"})},LogoutToken:{verify:(e,t,i)=>n(e,t,{...i,profile:"logout_token"})},AccessToken:{verify:(e,t,i)=>n(e,t,{...i,profile:"at+JWT"})}}},function(e,t,i){const n=i(475);const a=i(493);const{deep:r}=i(358);const s=i(854);const{HTTP_OPTIONS:o}=i(468);let u;let l;const c=e=>{u=r({},e,u);l=n.extend(u)};c({followRedirect:false,headers:{"User-Agent":`${a.name}/${a.version} (${a.homepage})`},retry:0,timeout:2500,throwHttpErrors:false});e.exports=function request(e,{mTLS:t=false}={}){const{url:i}=e;s(i);const n=this[o];let a;if(n){a=n.call(this,r({},e,u))}else{a=e}if(t&&(!a.key||!a.cert)){throw new TypeError("mutual-TLS certificate and key not set")}return l(a)};e.exports.setDefaults=c},function(e,t){t.stringify=function stringify(e){if("undefined"==typeof e)return e;if(e&&Buffer.isBuffer(e))return JSON.stringify(":base64:"+e.toString("base64"));if(e&&e.toJSON)e=e.toJSON();if(e&&"object"===typeof e){var t="";var i=Array.isArray(e);t=i?"[":"{";var n=true;for(var a in e){var r="function"==typeof e[a]||!i&&"undefined"===typeof e[a];if(Object.hasOwnProperty.call(e,a)&&!r){if(!n)t+=",";n=false;if(i){if(e[a]==undefined)t+="null";else t+=stringify(e[a])}else if(e[a]!==void 0){t+=stringify(a)+":"+stringify(e[a])}}}t+=i?"]":"}";return t}else if("string"===typeof e){return JSON.stringify(/^:/.test(e)?":"+e:e)}else if("undefined"===typeof e){return"null"}else return JSON.stringify(e)};t.parse=function(e){return JSON.parse(e,function(e,t){if("string"===typeof t){if(/^:base64:/.test(t))return new Buffer(t.substring(8),"base64");else return/^:/.test(t)?t.substring(1):t}return t})}},,,function(e){const t=e=>{return e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")};const i=(e,i="utf8")=>{return t(Buffer.from(e,i).toString("base64"))};const n=e=>{return t(e.toString("base64"))};const a=e=>{return Buffer.from(e,"base64")};const r=(e,t="utf8")=>{return a(e).toString(t)};const s={encode:e=>{return i(JSON.stringify(e))},decode:(e,t="utf8")=>{return JSON.parse(r(e,t))}};s.decode.try=((e,t="utf8")=>{try{return s.decode(e,t)}catch(i){return r(e,t)}});const o=e=>{let t=BigInt(e).toString(16);if(t.length%2){t=`0${t}`}const i=t.length/2;const n=new Uint8Array(i);let a=0;let r=0;while(an(Buffer.from(o(e)));e.exports.decode=r;e.exports.decodeToBuffer=a;e.exports.encode=i;e.exports.encodeBuffer=n;e.exports.JSON=s;e.exports.encodeBigInt=u},function(e,t,i){const{publicEncrypt:n,privateDecrypt:a,constants:r}=i(373);const{oaepHashSupported:s}=i(915);const{KEYOBJECT:o}=i(771);const{asInput:u}=i(40);const l=e=>{switch(e){case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":return r.RSA_PKCS1_OAEP_PADDING;case"RSA1_5":return r.RSA_PKCS1_PADDING}};const c=e=>{switch(e){case"RSA-OAEP":return"sha1";case"RSA-OAEP-256":return"sha256";case"RSA-OAEP-384":return"sha384";case"RSA-OAEP-512":return"sha512";default:return undefined}};const d=(e,t,{[o]:i},a)=>{const r=u(i,true);return{wrapped:n({key:r,oaepHash:t,padding:e},a)}};const p=(e,t,{[o]:i},n)=>{const r=u(i,false);return a({key:r,oaepHash:t,padding:e},n)};const f={RSA1_5:0,"RSA-OAEP":592,"RSA-OAEP-256":784,"RSA-OAEP-384":1040,"RSA-OAEP-512":1296};e.exports=((e,t)=>{const i=["RSA-OAEP","RSA1_5"];if(s){i.splice(1,0,"RSA-OAEP-256","RSA-OAEP-384","RSA-OAEP-512")}i.forEach(i=>{const n=l(i);const a=c(i);e.keyManagementEncrypt.set(i,d.bind(undefined,n,a));e.keyManagementDecrypt.set(i,p.bind(undefined,n,a));t.RSA.wrapKey[i]=(e=>(e.use==="enc"||e.use===undefined)&&e.length>=f[i]);t.RSA.unwrapKey[i]=(e=>e.private&&(e.use==="enc"||e.use===undefined)&&e.length>=f[i])})})},,function(e){e.exports=require("https")},,function(e){e.exports=require("punycode")},,function(e,t,i){"use strict";var n=i(293);var a=n.Buffer;var r={};var s;for(s in n){if(!n.hasOwnProperty(s))continue;if(s==="SlowBuffer"||s==="Buffer")continue;r[s]=n[s]}var o=r.Buffer={};for(s in a){if(!a.hasOwnProperty(s))continue;if(s==="allocUnsafe"||s==="allocUnsafeSlow")continue;o[s]=a[s]}r.Buffer.prototype=a.prototype;if(!o.from||o.from===Uint8Array.from){o.from=function(e,t,i){if(typeof e==="number"){throw new TypeError('The "value" argument must not be of type number. Received type '+typeof e)}if(e&&typeof e.length==="undefined"){throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}return a(e,t,i)}}if(!o.alloc){o.alloc=function(e,t,i){if(typeof e!=="number"){throw new TypeError('The "size" argument must be of type number. Received type '+typeof e)}if(e<0||e>=2*(1<<30)){throw new RangeError('The value "'+e+'" is invalid for option "size"')}var n=a(e);if(!t||t.length===0){n.fill(0)}else if(typeof i==="string"){n.fill(t,i)}else{n.fill(t)}return n}}if(!r.kStringMaxLength){try{r.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch(e){}}if(!r.constants){r.constants={MAX_LENGTH:r.kMaxLength};if(r.kStringMaxLength){r.constants.MAX_STRING_LENGTH=r.kStringMaxLength}}e.exports=r},function(e,t,i){var n=i(622);var a=i(602);var r=i(705);a.register("find",_find,{});function _find(e,t){if(!t){a.error("no path specified")}else if(typeof t==="string"){t=[].slice.call(arguments,1)}var i=[];function pushFile(e){if(process.platform==="win32"){e=e.replace(/\\/g,"/")}i.push(e)}t.forEach(function(e){var t;try{t=a.statFollowLinks(e)}catch(t){a.error("no such file or directory: "+e)}pushFile(e);if(t.isDirectory()){r({recursive:true,all:true},e).forEach(function(t){pushFile(n.join(e,t))})}});return i}e.exports=_find},,function(e,t,i){"use strict";const n=i(413).PassThrough;const a=i(89);const r=e=>{if(!(e&&e.pipe)){throw new TypeError("Parameter `response` must be a response stream.")}const t=new n;a(e,t);return e.pipe(t)};e.exports=r},function(e,t,i){const n=i(124);const a=(e,t)=>new n(e,t).set.map(e=>e.map(e=>e.value).join(" ").trim().split(" "));e.exports=a},function(e,t,i){"use strict";var n=i(254);var a=i(826);var r=i(810);var s=r.md5;var o=r.toBase64;function Auth(e){this.request=e;this.hasAuth=false;this.sentAuth=false;this.bearerToken=null;this.user=null;this.pass=null}Auth.prototype.basic=function(e,t,i){var n=this;if(typeof e!=="string"||t!==undefined&&typeof t!=="string"){n.request.emit("error",new Error("auth() received invalid user or password"))}n.user=e;n.pass=t;n.hasAuth=true;var a=e+":"+(t||"");if(i||typeof i==="undefined"){var r="Basic "+o(a);n.sentAuth=true;return r}};Auth.prototype.bearer=function(e,t){var i=this;i.bearerToken=e;i.hasAuth=true;if(t||typeof t==="undefined"){if(typeof e==="function"){e=e()}var n="Bearer "+(e||"");i.sentAuth=true;return n}};Auth.prototype.digest=function(e,t,i){var n=this;var r={};var o=/([a-z0-9_-]+)=(?:"([^"]+)"|([a-z0-9_-]+))/gi;while(true){var u=o.exec(i);if(!u){break}r[u[1]]=u[2]||u[3]}var l=function(e,t,i,n,a,r){var o=s(t+":"+i+":"+n);if(e&&e.toLowerCase()==="md5-sess"){return s(o+":"+a+":"+r)}else{return o}};var c=/(^|,)\s*auth\s*($|,)/.test(r.qop)&&"auth";var d=c&&"00000001";var p=c&&a().replace(/-/g,"");var f=l(r.algorithm,n.user,r.realm,n.pass,r.nonce,p);var h=s(e+":"+t);var m=c?s(f+":"+r.nonce+":"+d+":"+p+":"+c+":"+h):s(f+":"+r.nonce+":"+h);var b={username:n.user,realm:r.realm,nonce:r.nonce,uri:t,qop:c,response:m,nc:d,cnonce:p,algorithm:r.algorithm,opaque:r.opaque};i=[];for(var g in b){if(b[g]){if(g==="qop"||g==="nc"||g==="algorithm"){i.push(g+"="+b[g])}else{i.push(g+'="'+b[g]+'"')}}}i="Digest "+i.join(", ");n.sentAuth=true;return i};Auth.prototype.onRequest=function(e,t,i,n){var a=this;var r=a.request;var s;if(n===undefined&&e===undefined){a.request.emit("error",new Error("no auth mechanism defined"))}else if(n!==undefined){s=a.bearer(n,i)}else{s=a.basic(e,t,i)}if(s){r.setHeader("authorization",s)}};Auth.prototype.onResponse=function(e){var t=this;var i=t.request;if(!t.hasAuth||t.sentAuth){return null}var a=n(e.headers);var r=a.get("www-authenticate");var s=r&&r.split(" ")[0].toLowerCase();i.debug("reauth",s);switch(s){case"basic":return t.basic(t.user,t.pass,true);case"bearer":return t.bearer(t.bearerToken,true);case"digest":return t.digest(i.method,i.path,r)}};t.Auth=Auth},,function(e){e.exports={$id:"browser.json#",$schema:"http://json-schema.org/draft-06/schema#",type:"object",required:["name","version"],properties:{name:{type:"string"},version:{type:"string"},comment:{type:"string"}}}},,,,function(e){e.exports={$id:"response.json#",$schema:"http://json-schema.org/draft-06/schema#",type:"object",required:["status","statusText","httpVersion","cookies","headers","content","redirectURL","headersSize","bodySize"],properties:{status:{type:"integer"},statusText:{type:"string"},httpVersion:{type:"string"},cookies:{type:"array",items:{$ref:"cookie.json#"}},headers:{type:"array",items:{$ref:"header.json#"}},content:{$ref:"content.json#"},redirectURL:{type:"string"},headersSize:{type:"integer"},bodySize:{type:"integer"},comment:{type:"string"}}}},,function(e,t,i){"use strict";var n=i(945);function resolveYamlBoolean(e){if(e===null)return false;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function constructYamlBoolean(e){return e==="true"||e==="True"||e==="TRUE"}function isBoolean(e){return Object.prototype.toString.call(e)==="[object Boolean]"}e.exports=new n("tag:yaml.org,2002:bool",{kind:"scalar",resolve:resolveYamlBoolean,construct:constructYamlBoolean,predicate:isBoolean,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})},,function(e){e.exports={$id:"page.json#",$schema:"http://json-schema.org/draft-06/schema#",type:"object",optional:true,required:["startedDateTime","id","title","pageTimings"],properties:{startedDateTime:{type:"string",format:"date-time",pattern:"^(\\d{4})(-)?(\\d\\d)(-)?(\\d\\d)(T)?(\\d\\d)(:)?(\\d\\d)(:)?(\\d\\d)(\\.\\d+)?(Z|([+-])(\\d\\d)(:)?(\\d\\d))"},id:{type:"string",unique:true},title:{type:"string"},pageTimings:{$ref:"pageTimings.json#"},comment:{type:"string"}}}},,function(e){e.exports=(e=>!!e&&e.constructor===Object)},function(e){e.exports=["cat","cd","chmod","cp","dirs","echo","exec","find","grep","head","ln","ls","mkdir","mv","pwd","rm","sed","set","sort","tail","tempdir","test","to","toEnd","touch","uniq","which"]},,function(module){module.exports=eval("require")("utf-8-validate")},,function(e,t,i){"use strict";const n=i(21);n.Server=i(613);n.Receiver=i(738);n.Sender=i(10);e.exports=n},,,function(e,t,i){var n=i(602);var a=i(747);var r=i(622);n.register("toEnd",_toEnd,{pipeOnly:true,wrapOutput:false});function _toEnd(e,t){if(!t)n.error("wrong arguments");if(!a.existsSync(r.dirname(t))){n.error("no such file or directory: "+r.dirname(t))}try{a.appendFileSync(t,this.stdout||this.toString(),"utf8");return this}catch(e){n.error("could not append to file (code "+e.code+"): "+t,{continue:true})}}e.exports=_toEnd},function(e,t,i){e.exports={read:read,write:write};var n=i(872);var a=i(215).Buffer;var r=i(270);var s=i(852);var o=i(502);var u=i(268);var l=i(603);var c=i(538);var d=i(982);var p=i(624);var f="Private-key-format: v1";function read(e,t){if(typeof e==="string"){if(e.trim().match(/^[-]+[ ]*BEGIN/))return u.read(e,t);if(e.match(/^\s*ssh-[a-z]/))return l.read(e,t);if(e.match(/^\s*ecdsa-/))return l.read(e,t);if(e.match(/^putty-user-key-file-2:/i))return p.read(e,t);if(findDNSSECHeader(e))return d.read(e,t);e=a.from(e,"binary")}else{n.buffer(e);if(findPEMHeader(e))return u.read(e,t);if(findSSHHeader(e))return l.read(e,t);if(findPuTTYHeader(e))return p.read(e,t);if(findDNSSECHeader(e))return d.read(e,t)}if(e.readUInt32BE(0)e.length||e.slice(t,t+5).toString("ascii")!=="BEGIN")return false;return true}function findDNSSECHeader(e){if(e.length<=f.length)return false;var t=e.slice(0,f.length);if(t.toString("ascii")===f)return true;if(typeof e!=="string"){e=e.toString("ascii")}var i=e.split("\n");var n=0;while(i[n].match(/^\;/))n++;if(i[n].toString("ascii").match(/\. IN KEY /))return true;if(i[n].toString("ascii").match(/\. IN DNSKEY /))return true;return false}function write(e,t){throw new Error('"auto" format cannot be used for writing')}},function(e,t){(function(){var i;var n=0xdeadbeefcafe;var a=(n&16777215)==15715070;function BigInteger(e,t,i){if(e!=null)if("number"==typeof e)this.fromNumber(e,t,i);else if(t==null&&"string"!=typeof e)this.fromString(e,256);else this.fromString(e,t)}function nbi(){return new BigInteger(null)}function am1(e,t,i,n,a,r){while(--r>=0){var s=t*this[e++]+i[n]+a;a=Math.floor(s/67108864);i[n++]=s&67108863}return a}function am2(e,t,i,n,a,r){var s=t&32767,o=t>>15;while(--r>=0){var u=this[e]&32767;var l=this[e++]>>15;var c=o*u+l*s;u=s*u+((c&32767)<<15)+i[n]+(a&1073741823);a=(u>>>30)+(c>>>15)+o*l+(a>>>30);i[n++]=u&1073741823}return a}function am3(e,t,i,n,a,r){var s=t&16383,o=t>>14;while(--r>=0){var u=this[e]&16383;var l=this[e++]>>14;var c=o*u+l*s;u=s*u+((c&16383)<<14)+i[n]+a;a=(u>>28)+(c>>14)+o*l;i[n++]=u&268435455}return a}var r=typeof navigator!=="undefined";if(r&&a&&navigator.appName=="Microsoft Internet Explorer"){BigInteger.prototype.am=am2;i=30}else if(r&&a&&navigator.appName!="Netscape"){BigInteger.prototype.am=am1;i=26}else{BigInteger.prototype.am=am3;i=28}BigInteger.prototype.DB=i;BigInteger.prototype.DM=(1<=0;--t)e[t]=this[t];e.t=this.t;e.s=this.s}function bnpFromInt(e){this.t=1;this.s=e<0?-1:0;if(e>0)this[0]=e;else if(e<-1)this[0]=e+this.DV;else this.t=0}function nbv(e){var t=nbi();t.fromInt(e);return t}function bnpFromString(e,t){var i;if(t==16)i=4;else if(t==8)i=3;else if(t==256)i=8;else if(t==2)i=1;else if(t==32)i=5;else if(t==4)i=2;else{this.fromRadix(e,t);return}this.t=0;this.s=0;var n=e.length,a=false,r=0;while(--n>=0){var s=i==8?e[n]&255:intAt(e,n);if(s<0){if(e.charAt(n)=="-")a=true;continue}a=false;if(r==0)this[this.t++]=s;else if(r+i>this.DB){this[this.t-1]|=(s&(1<>this.DB-r}else this[this.t-1]|=s<=this.DB)r-=this.DB}if(i==8&&(e[0]&128)!=0){this.s=-1;if(r>0)this[this.t-1]|=(1<0&&this[this.t-1]==e)--this.t}function bnToString(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(e==16)t=4;else if(e==8)t=3;else if(e==2)t=1;else if(e==32)t=5;else if(e==4)t=2;else return this.toRadix(e);var i=(1<0){if(o>o)>0){a=true;r=int2char(n)}while(s>=0){if(o>(o+=this.DB-t)}else{n=this[s]>>(o-=t)&i;if(o<=0){o+=this.DB;--s}}if(n>0)a=true;if(a)r+=int2char(n)}}return a?r:"0"}function bnNegate(){var e=nbi();BigInteger.ZERO.subTo(this,e);return e}function bnAbs(){return this.s<0?this.negate():this}function bnCompareTo(e){var t=this.s-e.s;if(t!=0)return t;var i=this.t;t=i-e.t;if(t!=0)return this.s<0?-t:t;while(--i>=0)if((t=this[i]-e[i])!=0)return t;return 0}function nbits(e){var t=1,i;if((i=e>>>16)!=0){e=i;t+=16}if((i=e>>8)!=0){e=i;t+=8}if((i=e>>4)!=0){e=i;t+=4}if((i=e>>2)!=0){e=i;t+=2}if((i=e>>1)!=0){e=i;t+=1}return t}function bnBitLength(){if(this.t<=0)return 0;return this.DB*(this.t-1)+nbits(this[this.t-1]^this.s&this.DM)}function bnpDLShiftTo(e,t){var i;for(i=this.t-1;i>=0;--i)t[i+e]=this[i];for(i=e-1;i>=0;--i)t[i]=0;t.t=this.t+e;t.s=this.s}function bnpDRShiftTo(e,t){for(var i=e;i=0;--o){t[o+r+1]=this[o]>>n|s;s=(this[o]&a)<=0;--o)t[o]=0;t[r]=s;t.t=this.t+r+1;t.s=this.s;t.clamp()}function bnpRShiftTo(e,t){t.s=this.s;var i=Math.floor(e/this.DB);if(i>=this.t){t.t=0;return}var n=e%this.DB;var a=this.DB-n;var r=(1<>n;for(var s=i+1;s>n}if(n>0)t[this.t-i-1]|=(this.s&r)<>=this.DB}if(e.t>=this.DB}n+=this.s}else{n+=this.s;while(i>=this.DB}n-=e.s}t.s=n<0?-1:0;if(n<-1)t[i++]=this.DV+n;else if(n>0)t[i++]=n;t.t=i;t.clamp()}function bnpMultiplyTo(e,t){var i=this.abs(),n=e.abs();var a=i.t;t.t=a+n.t;while(--a>=0)t[a]=0;for(a=0;a=0)e[i]=0;for(i=0;i=t.DV){e[i+t.t]-=t.DV;e[i+t.t+1]=1}}if(e.t>0)e[e.t-1]+=t.am(i,t[i],e,2*i,0,1);e.s=0;e.clamp()}function bnpDivRemTo(e,t,i){var n=e.abs();if(n.t<=0)return;var a=this.abs();if(a.t0){n.lShiftTo(u,r);a.lShiftTo(u,i)}else{n.copyTo(r);a.copyTo(i)}var l=r.t;var c=r[l-1];if(c==0)return;var d=c*(1<1?r[l-2]>>this.F2:0);var p=this.FV/d,f=(1<=0){i[i.t++]=1;i.subTo(g,i)}BigInteger.ONE.dlShiftTo(l,g);g.subTo(r,r);while(r.t=0){var y=i[--m]==c?this.DM:Math.floor(i[m]*p+(i[m-1]+h)*f);if((i[m]+=r.am(0,y,i,b,0,l))0)i.rShiftTo(u,i);if(s<0)BigInteger.ZERO.subTo(i,i)}function bnMod(e){var t=nbi();this.abs().divRemTo(e,null,t);if(this.s<0&&t.compareTo(BigInteger.ZERO)>0)e.subTo(t,t);return t}function Classic(e){this.m=e}function cConvert(e){if(e.s<0||e.compareTo(this.m)>=0)return e.mod(this.m);else return e}function cRevert(e){return e}function cReduce(e){e.divRemTo(this.m,null,e)}function cMulTo(e,t,i){e.multiplyTo(t,i);this.reduce(i)}function cSqrTo(e,t){e.squareTo(t);this.reduce(t)}Classic.prototype.convert=cConvert;Classic.prototype.revert=cRevert;Classic.prototype.reduce=cReduce;Classic.prototype.mulTo=cMulTo;Classic.prototype.sqrTo=cSqrTo;function bnpInvDigit(){if(this.t<1)return 0;var e=this[0];if((e&1)==0)return 0;var t=e&3;t=t*(2-(e&15)*t)&15;t=t*(2-(e&255)*t)&255;t=t*(2-((e&65535)*t&65535))&65535;t=t*(2-e*t%this.DV)%this.DV;return t>0?this.DV-t:-t}function Montgomery(e){this.m=e;this.mp=e.invDigit();this.mpl=this.mp&32767;this.mph=this.mp>>15;this.um=(1<0)this.m.subTo(t,t);return t}function montRevert(e){var t=nbi();e.copyTo(t);this.reduce(t);return t}function montReduce(e){while(e.t<=this.mt2)e[e.t++]=0;for(var t=0;t>15)*this.mpl&this.um)<<15)&e.DM;i=t+this.m.t;e[i]+=this.m.am(0,n,e,t,0,this.m.t);while(e[i]>=e.DV){e[i]-=e.DV;e[++i]++}}e.clamp();e.drShiftTo(this.m.t,e);if(e.compareTo(this.m)>=0)e.subTo(this.m,e)}function montSqrTo(e,t){e.squareTo(t);this.reduce(t)}function montMulTo(e,t,i){e.multiplyTo(t,i);this.reduce(i)}Montgomery.prototype.convert=montConvert;Montgomery.prototype.revert=montRevert;Montgomery.prototype.reduce=montReduce;Montgomery.prototype.mulTo=montMulTo;Montgomery.prototype.sqrTo=montSqrTo;function bnpIsEven(){return(this.t>0?this[0]&1:this.s)==0}function bnpExp(e,t){if(e>4294967295||e<1)return BigInteger.ONE;var i=nbi(),n=nbi(),a=t.convert(this),r=nbits(e)-1;a.copyTo(i);while(--r>=0){t.sqrTo(i,n);if((e&1<0)t.mulTo(n,a,i);else{var s=i;i=n;n=s}}return t.revert(i)}function bnModPowInt(e,t){var i;if(e<256||t.isEven())i=new Classic(t);else i=new Montgomery(t);return this.exp(e,i)}BigInteger.prototype.copyTo=bnpCopyTo;BigInteger.prototype.fromInt=bnpFromInt;BigInteger.prototype.fromString=bnpFromString;BigInteger.prototype.clamp=bnpClamp;BigInteger.prototype.dlShiftTo=bnpDLShiftTo;BigInteger.prototype.drShiftTo=bnpDRShiftTo;BigInteger.prototype.lShiftTo=bnpLShiftTo;BigInteger.prototype.rShiftTo=bnpRShiftTo;BigInteger.prototype.subTo=bnpSubTo;BigInteger.prototype.multiplyTo=bnpMultiplyTo;BigInteger.prototype.squareTo=bnpSquareTo;BigInteger.prototype.divRemTo=bnpDivRemTo;BigInteger.prototype.invDigit=bnpInvDigit;BigInteger.prototype.isEven=bnpIsEven;BigInteger.prototype.exp=bnpExp;BigInteger.prototype.toString=bnToString;BigInteger.prototype.negate=bnNegate;BigInteger.prototype.abs=bnAbs;BigInteger.prototype.compareTo=bnCompareTo;BigInteger.prototype.bitLength=bnBitLength;BigInteger.prototype.mod=bnMod;BigInteger.prototype.modPowInt=bnModPowInt;BigInteger.ZERO=nbv(0);BigInteger.ONE=nbv(1);function bnClone(){var e=nbi();this.copyTo(e);return e}function bnIntValue(){if(this.s<0){if(this.t==1)return this[0]-this.DV;else if(this.t==0)return-1}else if(this.t==1)return this[0];else if(this.t==0)return 0;return(this[1]&(1<<32-this.DB)-1)<>24}function bnShortValue(){return this.t==0?this.s:this[0]<<16>>16}function bnpChunkSize(e){return Math.floor(Math.LN2*this.DB/Math.log(e))}function bnSigNum(){if(this.s<0)return-1;else if(this.t<=0||this.t==1&&this[0]<=0)return 0;else return 1}function bnpToRadix(e){if(e==null)e=10;if(this.signum()==0||e<2||e>36)return"0";var t=this.chunkSize(e);var i=Math.pow(e,t);var n=nbv(i),a=nbi(),r=nbi(),s="";this.divRemTo(n,a,r);while(a.signum()>0){s=(i+r.intValue()).toString(e).substr(1)+s;a.divRemTo(n,a,r)}return r.intValue().toString(e)+s}function bnpFromRadix(e,t){this.fromInt(0);if(t==null)t=10;var i=this.chunkSize(t);var n=Math.pow(t,i),a=false,r=0,s=0;for(var o=0;o=i){this.dMultiply(n);this.dAddOffset(s,0);r=0;s=0}}if(r>0){this.dMultiply(Math.pow(t,r));this.dAddOffset(s,0)}if(a)BigInteger.ZERO.subTo(this,this)}function bnpFromNumber(e,t,i){if("number"==typeof t){if(e<2)this.fromInt(1);else{this.fromNumber(e,i);if(!this.testBit(e-1))this.bitwiseTo(BigInteger.ONE.shiftLeft(e-1),op_or,this);if(this.isEven())this.dAddOffset(1,0);while(!this.isProbablePrime(t)){this.dAddOffset(2,0);if(this.bitLength()>e)this.subTo(BigInteger.ONE.shiftLeft(e-1),this)}}}else{var n=new Array,a=e&7;n.length=(e>>3)+1;t.nextBytes(n);if(a>0)n[0]&=(1<0){if(i>i)!=(this.s&this.DM)>>i)t[a++]=n|this.s<=0){if(i<8){n=(this[e]&(1<>(i+=this.DB-8)}else{n=this[e]>>(i-=8)&255;if(i<=0){i+=this.DB;--e}}if((n&128)!=0)n|=-256;if(a==0&&(this.s&128)!=(n&128))++a;if(a>0||n!=this.s)t[a++]=n}}return t}function bnEquals(e){return this.compareTo(e)==0}function bnMin(e){return this.compareTo(e)<0?this:e}function bnMax(e){return this.compareTo(e)>0?this:e}function bnpBitwiseTo(e,t,i){var n,a,r=Math.min(e.t,this.t);for(n=0;n>=16;t+=16}if((e&255)==0){e>>=8;t+=8}if((e&15)==0){e>>=4;t+=4}if((e&3)==0){e>>=2;t+=2}if((e&1)==0)++t;return t}function bnGetLowestSetBit(){for(var e=0;e=this.t)return this.s!=0;return(this[t]&1<>=this.DB}if(e.t>=this.DB}n+=this.s}else{n+=this.s;while(i>=this.DB}n+=e.s}t.s=n<0?-1:0;if(n>0)t[i++]=n;else if(n<-1)t[i++]=this.DV+n;t.t=i;t.clamp()}function bnAdd(e){var t=nbi();this.addTo(e,t);return t}function bnSubtract(e){var t=nbi();this.subTo(e,t);return t}function bnMultiply(e){var t=nbi();this.multiplyTo(e,t);return t}function bnSquare(){var e=nbi();this.squareTo(e);return e}function bnDivide(e){var t=nbi();this.divRemTo(e,t,null);return t}function bnRemainder(e){var t=nbi();this.divRemTo(e,null,t);return t}function bnDivideAndRemainder(e){var t=nbi(),i=nbi();this.divRemTo(e,t,i);return new Array(t,i)}function bnpDMultiply(e){this[this.t]=this.am(0,e-1,this,0,0,this.t);++this.t;this.clamp()}function bnpDAddOffset(e,t){if(e==0)return;while(this.t<=t)this[this.t++]=0;this[t]+=e;while(this[t]>=this.DV){this[t]-=this.DV;if(++t>=this.t)this[this.t++]=0;++this[t]}}function NullExp(){}function nNop(e){return e}function nMulTo(e,t,i){e.multiplyTo(t,i)}function nSqrTo(e,t){e.squareTo(t)}NullExp.prototype.convert=nNop;NullExp.prototype.revert=nNop;NullExp.prototype.mulTo=nMulTo;NullExp.prototype.sqrTo=nSqrTo;function bnPow(e){return this.exp(e,new NullExp)}function bnpMultiplyLowerTo(e,t,i){var n=Math.min(this.t+e.t,t);i.s=0;i.t=n;while(n>0)i[--n]=0;var a;for(a=i.t-this.t;n=0)i[n]=0;for(n=Math.max(t-this.t,0);n2*this.m.t)return e.mod(this.m);else if(e.compareTo(this.m)<0)return e;else{var t=nbi();e.copyTo(t);this.reduce(t);return t}}function barrettRevert(e){return e}function barrettReduce(e){e.drShiftTo(this.m.t-1,this.r2);if(e.t>this.m.t+1){e.t=this.m.t+1;e.clamp()}this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3);this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);while(e.compareTo(this.r2)<0)e.dAddOffset(1,this.m.t+1);e.subTo(this.r2,e);while(e.compareTo(this.m)>=0)e.subTo(this.m,e)}function barrettSqrTo(e,t){e.squareTo(t);this.reduce(t)}function barrettMulTo(e,t,i){e.multiplyTo(t,i);this.reduce(i)}Barrett.prototype.convert=barrettConvert;Barrett.prototype.revert=barrettRevert;Barrett.prototype.reduce=barrettReduce;Barrett.prototype.mulTo=barrettMulTo;Barrett.prototype.sqrTo=barrettSqrTo;function bnModPow(e,t){var i=e.bitLength(),n,a=nbv(1),r;if(i<=0)return a;else if(i<18)n=1;else if(i<48)n=3;else if(i<144)n=4;else if(i<768)n=5;else n=6;if(i<8)r=new Classic(t);else if(t.isEven())r=new Barrett(t);else r=new Montgomery(t);var s=new Array,o=3,u=n-1,l=(1<1){var c=nbi();r.sqrTo(s[1],c);while(o<=l){s[o]=nbi();r.mulTo(c,s[o-2],s[o]);o+=2}}var d=e.t-1,p,f=true,h=nbi(),m;i=nbits(e[d])-1;while(d>=0){if(i>=u)p=e[d]>>i-u&l;else{p=(e[d]&(1<0)p|=e[d-1]>>this.DB+i-u}o=n;while((p&1)==0){p>>=1;--o}if((i-=o)<0){i+=this.DB;--d}if(f){s[p].copyTo(a);f=false}else{while(o>1){r.sqrTo(a,h);r.sqrTo(h,a);o-=2}if(o>0)r.sqrTo(a,h);else{m=a;a=h;h=m}r.mulTo(h,s[p],a)}while(d>=0&&(e[d]&1<0){t.rShiftTo(r,t);i.rShiftTo(r,i)}while(t.signum()>0){if((a=t.getLowestSetBit())>0)t.rShiftTo(a,t);if((a=i.getLowestSetBit())>0)i.rShiftTo(a,i);if(t.compareTo(i)>=0){t.subTo(i,t);t.rShiftTo(1,t)}else{i.subTo(t,i);i.rShiftTo(1,i)}}if(r>0)i.lShiftTo(r,i);return i}function bnpModInt(e){if(e<=0)return 0;var t=this.DV%e,i=this.s<0?e-1:0;if(this.t>0)if(t==0)i=this[0]%e;else for(var n=this.t-1;n>=0;--n)i=(t*i+this[n])%e;return i}function bnModInverse(e){var t=e.isEven();if(this.isEven()&&t||e.signum()==0)return BigInteger.ZERO;var i=e.clone(),n=this.clone();var a=nbv(1),r=nbv(0),s=nbv(0),o=nbv(1);while(i.signum()!=0){while(i.isEven()){i.rShiftTo(1,i);if(t){if(!a.isEven()||!r.isEven()){a.addTo(this,a);r.subTo(e,r)}a.rShiftTo(1,a)}else if(!r.isEven())r.subTo(e,r);r.rShiftTo(1,r)}while(n.isEven()){n.rShiftTo(1,n);if(t){if(!s.isEven()||!o.isEven()){s.addTo(this,s);o.subTo(e,o)}s.rShiftTo(1,s)}else if(!o.isEven())o.subTo(e,o);o.rShiftTo(1,o)}if(i.compareTo(n)>=0){i.subTo(n,i);if(t)a.subTo(s,a);r.subTo(o,r)}else{n.subTo(i,n);if(t)s.subTo(a,s);o.subTo(r,o)}}if(n.compareTo(BigInteger.ONE)!=0)return BigInteger.ZERO;if(o.compareTo(e)>=0)return o.subtract(e);if(o.signum()<0)o.addTo(e,o);else return o;if(o.signum()<0)return o.add(e);else return o}var d=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997];var p=(1<<26)/d[d.length-1];function bnIsProbablePrime(e){var t,i=this.abs();if(i.t==1&&i[0]<=d[d.length-1]){for(t=0;t>1;if(e>d.length)e=d.length;var a=nbi();for(var r=0;r>8&255;h[m++]^=e>>16&255;h[m++]^=e>>24&255;if(m>=S)m-=S}function rng_seed_time(){rng_seed_int((new Date).getTime())}if(h==null){h=new Array;m=0;var b;if(typeof window!=="undefined"&&window.crypto){if(window.crypto.getRandomValues){var g=new Uint8Array(32);window.crypto.getRandomValues(g);for(b=0;b<32;++b)h[m++]=g[b]}else if(navigator.appName=="Netscape"&&navigator.appVersion<"5"){var y=window.crypto.random(32);for(b=0;b>>8;h[m++]=b&255}m=0;rng_seed_time()}function rng_get_byte(){if(f==null){rng_seed_time();f=prng_newstate();f.init(h);for(m=0;m=this.maxSockets){i.requests.push({host:t.host,port:t.port,request:e});return}i.createConnection({host:t.host,port:t.port,request:e})};TunnelingAgent.prototype.createConnection=function createConnection(e){var t=this;t.createSocket(e,function(i){i.on("free",onFree);i.on("close",onCloseOrRemove);i.on("agentRemove",onCloseOrRemove);e.request.onSocket(i);function onFree(){t.emit("free",i,e.host,e.port)}function onCloseOrRemove(e){t.removeSocket(i);i.removeListener("free",onFree);i.removeListener("close",onCloseOrRemove);i.removeListener("agentRemove",onCloseOrRemove)}})};TunnelingAgent.prototype.createSocket=function createSocket(e,t){var i=this;var n={};i.sockets.push(n);var a=mergeOptions({},i.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:false});if(a.proxyAuth){a.headers=a.headers||{};a.headers["Proxy-Authorization"]="Basic "+c.from(a.proxyAuth).toString("base64")}d("making CONNECT request");var r=i.request(a);r.useChunkedEncodingByDefault=false;r.once("response",onResponse);r.once("upgrade",onUpgrade);r.once("connect",onConnect);r.once("error",onError);r.end();function onResponse(e){e.upgrade=true}function onUpgrade(e,t,i){process.nextTick(function(){onConnect(e,t,i)})}function onConnect(a,s,o){r.removeAllListeners();s.removeAllListeners();if(a.statusCode===200){u.equal(o.length,0);d("tunneling connection has established");i.sockets[i.sockets.indexOf(n)]=s;t(s)}else{d("tunneling socket could not be established, statusCode=%d",a.statusCode);var l=new Error("tunneling socket could not be established, "+"statusCode="+a.statusCode);l.code="ECONNRESET";e.request.emit("error",l);i.removeSocket(n)}}function onError(t){r.removeAllListeners();d("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var a=new Error("tunneling socket could not be established, "+"cause="+t.message);a.code="ECONNRESET";e.request.emit("error",a);i.removeSocket(n)}};TunnelingAgent.prototype.removeSocket=function removeSocket(e){var t=this.sockets.indexOf(e);if(t===-1)return;this.sockets.splice(t,1);var i=this.requests.shift();if(i){this.createConnection(i)}};function createSecureSocket(e,t){var i=this;TunnelingAgent.prototype.createSocket.call(i,e,function(n){var r=a.connect(0,mergeOptions({},i.options,{servername:e.host,socket:n}));i.sockets[i.sockets.indexOf(n)]=r;t(r)})}function mergeOptions(e){for(var t=1,i=arguments.length;tthis.maxLength)return false;if(!this.stat&&b(this.cache,t)){var a=this.cache[t];if(Array.isArray(a))a="DIR";if(!i||a==="DIR")return a;if(i&&a==="FILE")return false}var r;var s=this.statCache[t];if(!s){var o;try{o=n.lstatSync(t)}catch(e){if(e&&(e.code==="ENOENT"||e.code==="ENOTDIR")){this.statCache[t]=false;return false}}if(o&&o.isSymbolicLink()){try{s=n.statSync(t)}catch(e){s=o}}else{s=o}}this.statCache[t]=s;var a=true;if(s)a=s.isDirectory()?"DIR":"FILE";this.cache[t]=this.cache[t]||a;if(i&&a==="FILE")return false;return a};GlobSync.prototype._mark=function(e){return p.mark(this,e)};GlobSync.prototype._makeAbs=function(e){return p.makeAbs(this,e)}},,,,function(e,t,i){var n=i(584);var a=i(362);var r=i(733);var s=i(998);e.exports={Reader:r,Writer:s};for(var o in a){if(a.hasOwnProperty(o))e.exports[o]=a[o]}for(var u in n){if(n.hasOwnProperty(u))e.exports[u]=n[u]}},,function(e,t,i){"use strict";const n=i(48).Issuer;e.exports={refresh:function(e){return new Promise((t,i)=>{n.discover(e["idp-issuer-url"]).then(function(t){const i=new t.Client({client_id:e["client-id"],client_secret:e["client-secret"]});return i.refresh(e["refresh-token"])}).then(e=>{return t(e.id_token)}).catch(i)})}}},function(e){e.exports=function(){this.seq().obj(this.key("n").int(),this.key("e").int())}},function(e){"use strict";e.exports=function generate_anyOf(e,t,i){var n=" ";var a=e.level;var r=e.dataLevel;var s=e.schema[t];var o=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var l=!e.opts.allErrors;var c="data"+(r||"");var d="valid"+a;var p="errs__"+a;var f=e.util.copy(e);var h="";f.level++;var m="valid"+f.level;var b=s.every(function(t){return e.opts.strictKeywords?typeof t=="object"&&Object.keys(t).length>0:e.util.schemaHasRules(t,e.RULES.all)});if(b){var g=f.baseId;n+=" var "+p+" = errors; var "+d+" = false; ";var y=e.compositeRule;e.compositeRule=f.compositeRule=true;var S=s;if(S){var w,v=-1,z=S.length-1;while(v{e=new n(e,i);t=new n(t,i);return e.intersects(t)};e.exports=a},,,function(e,t,i){var n=i(669),a=i(413).Transform;e.exports=function(e){return new r(e)};var r=e.exports.JSONStream=function(e){e=e||{};a.call(this,e);this._writableState.objectMode=false;this._readableState.objectMode=true;this._async=e.async||false};n.inherits(r,a);r.prototype._transform=function(e,t,i){if(!Buffer.isBuffer(e))e=new Buffer(e);if(this._buffer){e=Buffer.concat([this._buffer,e])}var n=0,a=0;while(++n<=e.length){if(e[n]===10||n===e.length){var r;try{r=JSON.parse(e.slice(a,n))}catch(e){}if(r){this.push(r);r=null}if(e[n]===10)a=++n}}this._buffer=e.slice(a);return this._async?void setImmediate(i):void i()}},,function(e,t,i){"use strict";const n=i(418)("kubernetes-client");const a=i(747);const r=i(622);const s=i(414);const o=i(867);const u=process.env.KUBERNETES_CLIENT_SERVICEACCOUNT_ROOT||"/var/run/secrets/kubernetes.io/serviceaccount/";const l=r.join(u,"ca.crt");const c=r.join(u,"token");const d=r.join(u,"namespace");function convertKubeconfig(e){const t=e.getCurrentContext();const i=e.getCurrentCluster();const n=e.getCurrentUser();const s=t.namespace;let o;let u=false;if(i){if(i.caFile){o=a.readFileSync(r.normalize(i.caFile))}else if(i.caData){o=Buffer.from(i.caData,"base64").toString()}u=i.skipTLSVerify}let l;let c;let d={};if(n){if(n.certFile){l=a.readFileSync(r.normalize(n.certFile))}else if(n.certData){l=Buffer.from(n.certData,"base64").toString()}if(n.keyFile){c=a.readFileSync(r.normalize(n.keyFile))}else if(n.keyData){c=Buffer.from(n.keyData,"base64").toString()}if(n.token){d.bearer=n.token}if(n.authProvider){const e=n.authProvider.config;let t=null;let i=null;if(e["cmd-path"]){t="cmd";i=e["access-token"]}else if(e["idp-issuer-url"]){t="openid";i=e["id-token"]}if(e["access-token"]&&!t){i=e["access-token"]}d={request:{bearer:i},provider:{config:e,type:t}}}if(n.exec){const e={};if(n.exec.env){n.exec.env.forEach(t=>{e[t.name]=t.value})}let t="";if(n.exec.args){t=n.exec.args.join(" ")}d={provider:{type:"cmd",config:{"cmd-args":t,"cmd-path":n.exec.command,"token-key":"status.token","cmd-env":e}}}}if(n.username)d.user=n.username;if(n.password)d.pass=n.password}return{url:i.server,auth:Object.keys(d).length?d:null,ca:o,insecureSkipTlsVerify:u,namespace:s,cert:l,key:c}}e.exports.convertKubeconfig=convertKubeconfig;function defaultConfigPaths(){if(process.env.KUBECONFIG){const e=process.platform==="win32"?";":":";return process.env.KUBECONFIG.split(e)}const e=process.env[process.platform==="win32"?"USERPROFILE":"HOME"];return[r.join(e,".kube","config")]}function getInCluster(){const e=process.env.KUBERNETES_SERVICE_HOST;const t=process.env.KUBERNETES_SERVICE_PORT;if(!e||!t){throw new TypeError("Unable to load in-cluster configuration, KUBERNETES_SERVICE_HOST"+" and KUBERNETES_SERVICE_PORT must be defined")}const i=a.readFileSync(l,"utf8");const n=a.readFileSync(c,"utf8");const r=a.readFileSync(d,"utf8");return{url:`https://${e}:${t}`,ca:i,auth:{bearer:n},namespace:r}}e.exports.getInCluster=n.function(getInCluster,"getInCluster see https://github.com/godaddy/kubernetes-client/blob/master/merging-with-kubernetes.md#request-kubeconfig-");function fromKubeconfig(e,t){if(!e)e=loadKubeconfig();if(typeof e==="string"||Array.isArray(e)){e=loadKubeconfig(e)}t=t||e["current-context"];const i=e.contexts.find(e=>e.name===t).context;const n=e.clusters.find(e=>e.name===i.cluster).cluster;const s=e.users.find(e=>e.name===i.user);const o=s?s.user:null;const u=i.namespace;let l;let c=false;if(n){if(n["certificate-authority"]){l=a.readFileSync(r.normalize(n["certificate-authority"]))}else if(n["certificate-authority-data"]){l=Buffer.from(n["certificate-authority-data"],"base64").toString()}if(n["insecure-skip-tls-verify"]){c=n["insecure-skip-tls-verify"]}}let d;let p;let f={};if(o){if(o["client-certificate"]){d=a.readFileSync(r.normalize(o["client-certificate"]))}else if(o["client-certificate-data"]){d=Buffer.from(o["client-certificate-data"],"base64").toString()}if(o["client-key"]){p=a.readFileSync(r.normalize(o["client-key"]))}else if(o["client-key-data"]){p=Buffer.from(o["client-key-data"],"base64").toString()}if(o.token){f.bearer=o.token}if(o["auth-provider"]){const e=o["auth-provider"].config;let t=null;let i=null;if(e["cmd-path"]){t="cmd";i=e["access-token"]}else if(e["idp-issuer-url"]){t="openid";i=e["id-token"]}if(e["access-token"]&&!t){i=e["access-token"]}f={request:{bearer:i},provider:{config:e,type:t}}}if(o.exec){const e={};if(o.exec.env){o.exec.env.forEach(t=>{e[t.name]=t.value})}let t="";if(o.exec.args){t=o.exec.args.join(" ")}f={provider:{type:"cmd",config:{"cmd-args":t,"cmd-path":o.exec.command,"token-key":"status.token","cmd-env":e}}}}if(o.username)f.user=o.username;if(o.password)f.pass=o.password}return{url:n.server,namespace:u,auth:Object.keys(f).length?f:null,ca:l,insecureSkipTlsVerify:c,key:p,cert:d}}e.exports.fromKubeconfig=n.function(fromKubeconfig,"fromKubeconfig see https://github.com/godaddy/kubernetes-client/blob/master/merging-with-kubernetes.md#request-kubeconfig-");function mapCertificates(e,t){const i=r.dirname(e);if(t.clusters){t.clusters.filter(e=>e.cluster["certificate-authority"]).forEach(e=>{e.cluster["certificate-authority"]=r.resolve(i,e.cluster["certificate-authority"])})}if(t.users){t.users.filter(e=>e.user["client-certificate"]).forEach(e=>{e.user["client-certificate"]=r.resolve(i,e.user["client-certificate"])});t.users.filter(e=>e.user["client-key"]).forEach(e=>{e.user["client-key"]=r.resolve(i,e.user["client-key"])})}return t}function loadKubeconfig(e){let t;if(!e){t=defaultConfigPaths()}else if(Array.isArray(e)){t=e}else{t=[e]}const i=t.map(e=>{const t=s.safeLoad(a.readFileSync(e));return mapCertificates(e,t)});return o.all(i)}e.exports.loadKubeconfig=n.function(loadKubeconfig,"loadKubeconfig see https://github.com/godaddy/kubernetes-client/blob/master/merging-with-kubernetes.md#request-kubeconfig-")},function(e,t,i){const{inherits:n}=i(669);const a=i(94);function PEMEncoder(e){a.call(this,e);this.enc="pem"}n(PEMEncoder,a);PEMEncoder.prototype.encode=function encode(e,t){const i=a.prototype.encode.call(this,e);const n=i.toString("base64");const r=[`-----BEGIN ${t.label}-----`];for(let e=0;e=0;--a){var r;var s=e[a];if(s==="[]"){r=[];r=r.concat(n)}else{r=i.plainObjects?Object.create(null):{};var o=s.charAt(0)==="["&&s.charAt(s.length-1)==="]"?s.slice(1,-1):s;var u=parseInt(o,10);if(!isNaN(u)&&s!==o&&String(u)===o&&u>=0&&(i.parseArrays&&u<=i.arrayLimit)){r=[];r[u]=n}else{r[o]=n}}n=r}return n};var u=function parseQueryStringKeys(e,t,i){if(!e){return}var n=i.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;var r=/(\[[^[\]]*])/;var s=/(\[[^[\]]*])/g;var u=r.exec(n);var l=u?n.slice(0,u.index):n;var c=[];if(l){if(!i.plainObjects&&a.call(Object.prototype,l)){if(!i.allowPrototypes){return}}c.push(l)}var d=0;while((u=s.exec(n))!==null&&d0){v=l[--z].match(/[-]+[ ]*END ([A-Z0-9][A-Za-z0-9]+ )?(PUBLIC|PRIVATE) KEY[ ]*[-]+/)}n.ok(v,"invalid PEM footer");n.equal(c[2],v[2]);var j=c[2].toLowerCase();var O;if(c[1]){n.equal(c[1],v[1],"PEM header and footer mismatch");O=c[1].trim()}l=l.slice(S,z+1);var k={};while(true){l=l.slice(1);c=l[0].match(/^([A-Za-z0-9-]+): (.+)$/);if(!c)break;k[c[1].toLowerCase()]=c[2]}l=l.slice(0,-1).join("");e=s.from(l,"base64");var C,T,R;if(k["proc-type"]){var E=k["proc-type"].split(",");if(E[0]==="4"&&E[1]==="ENCRYPTED"){if(typeof t.passphrase==="string"){t.passphrase=s.from(t.passphrase,"utf-8")}if(!s.isBuffer(t.passphrase)){throw new m.KeyEncryptedError(t.filename,"PEM")}else{E=k["dek-info"].split(",");n.ok(E.length===2);C=E[0].toLowerCase();R=s.from(E[1],"hex");T=u.opensslKeyDeriv(C,R,t.passphrase,1).key}}}if(O&&O.toLowerCase()==="encrypted"){var A=new a.BerReader(e);var x;A.readSequence();A.readSequence();x=A.offset+A.length;var N=A.readOID();if(N!==b){throw new Error("Unsupported PEM/PKCS8 encryption "+"scheme: "+N)}A.readSequence();A.readSequence();var V=A.offset+A.length;var P=A.readOID();if(P!==g)throw new Error("Unsupported PBES2 KDF: "+P);A.readSequence();var D=A.readString(a.Ber.OctetString,true);var I=A.readInt();var _="sha1";if(A.offsetf.length)y=f.length;b+=m.write(f.slice(g,y),b);m[b++]=10;g=y}b+=m.write("-----END "+o+"-----\n",b);return m.slice(0,b)}},,function(e,t,i){e.exports={bufferSplit:bufferSplit,addRSAMissing:addRSAMissing,calculateDSAPublic:calculateDSAPublic,calculateED25519Public:calculateED25519Public,calculateX25519Public:calculateX25519Public,mpNormalize:mpNormalize,mpDenormalize:mpDenormalize,ecNormalize:ecNormalize,countZeros:countZeros,assertCompatible:assertCompatible,isCompatible:isCompatible,opensslKeyDeriv:opensslKeyDeriv,opensshCipherInfo:opensshCipherInfo,publicFromPrivateECDSA:publicFromPrivateECDSA,zeroPadToLength:zeroPadToLength,writeBitString:writeBitString,readBitString:readBitString,pbkdf2:pbkdf2};var n=i(872);var a=i(215).Buffer;var r=i(502);var s=i(852);var o=i(373);var u=i(98);var l=i(325);var c=i(729);var d=i(242).BigInteger;var p=i(196);var f=3;function isCompatible(e,t,i){if(e===null||typeof e!=="object")return false;if(i===undefined)i=t.prototype._sshpkApiVersion;if(e instanceof t&&t.prototype._sshpkApiVersion[0]==i[0])return true;var n=Object.getPrototypeOf(e);var a=0;while(n.constructor.name!==t.name){n=Object.getPrototypeOf(n);if(!n||++a>f)return false}if(n.constructor.name!==t.name)return false;var r=n._sshpkApiVersion;if(r===undefined)r=t._oldVersionDetect(e);if(r[0]!=i[0]||r[1]=i[1],a+" must be compatible with "+t.name+" klass "+"version "+i[0]+"."+i[1])}var h={"des-ede3-cbc":{key:24,iv:8},"aes-128-cbc":{key:16,iv:16},"aes-256-cbc":{key:32,iv:16}};var m=8;function opensslKeyDeriv(e,t,i,r){n.buffer(t,"salt");n.buffer(i,"passphrase");n.number(r,"iteration count");var s=h[e];n.object(s,"supported cipher");t=t.slice(0,m);var u,l,c;var d=a.alloc(0);while(d.length=t.length){var o=s+1;i.push(e.slice(a,o-r));a=o;r=0}}if(a<=e.length)i.push(e.slice(a,e.length));return i}function ecNormalize(e,t){n.buffer(e);if(e[0]===0&&e[1]===4){if(t)return e;return e.slice(1)}else if(e[0]===4){if(!t)return e}else{while(e[0]===0)e=e.slice(1);if(e[0]===2||e[0]===3)throw new Error("Compressed elliptic curve points "+"are not supported");if(e[0]!==4)throw new Error("Not a valid elliptic curve point");if(!t)return e}var i=a.alloc(e.length+1);i[0]=0;e.copy(i,1);return i}function readBitString(e,t){if(t===undefined)t=l.Ber.BitString;var i=e.readString(t,true);n.strictEqual(i[0],0,"bit strings with unused bits are "+"not supported (0x"+i[0].toString(16)+")");return i.slice(1)}function writeBitString(e,t,i){if(i===undefined)i=l.Ber.BitString;var n=a.alloc(t.length+1);n[0]=0;t.copy(n,1);e.writeBuffer(n,i)}function mpNormalize(e){n.buffer(e);while(e.length>1&&e[0]===0&&(e[1]&128)===0)e=e.slice(1);if((e[0]&128)===128){var t=a.alloc(e.length+1);t[0]=0;e.copy(t,1);e=t}return e}function mpDenormalize(e){n.buffer(e);while(e.length>1&&e[0]===0)e=e.slice(1);return e}function zeroPadToLength(e,t){n.buffer(e);n.number(t);while(e.length>t){n.equal(e[0],0);e=e.slice(1)}while(e.length{let i=e[t];if(!Array.isArray(i))i=[i];return i.map(e=>{return[t].concat(Object.keys(e).map(t=>{let i=e[t];if(!Array.isArray(i))i=[i];return i.map(e=>e===true?t:`${t}=${e}`).join("; ")})).join("; ")}).join(", ")}).join(", ")}e.exports={format:format,parse:parse}},function(e,t,i){const n=i(110);const a=i(312);e.exports={Client:n,Component:a}},function(e,t,i){"use strict";const n=i(321);const a=i(15);const r=e=>e.replace(/\s+at .*aggregate-error\/index.js:\d+:\d+\)?/g,"");class AggregateError extends Error{constructor(e){if(!Array.isArray(e)){throw new TypeError(`Expected input to be an Array, got ${typeof e}`)}e=[...e].map(e=>{if(e instanceof Error){return e}if(e!==null&&typeof e==="object"){return Object.assign(new Error(e.message),e)}return new Error(e)});let t=e.map(e=>{return typeof e.stack==="string"?r(a(e.stack)):String(e)}).join("\n");t="\n"+n(t,4);super(t);this.name="AggregateError";Object.defineProperty(this,"_errors",{value:e})}*[Symbol.iterator](){for(const e of this._errors){yield e}}}e.exports=AggregateError},function(e){e.exports=(e=>!!e&&e.constructor===Object)},,,,,,,function(e){"use strict";e.exports=function generate_enum(e,t,i){var n=" ";var a=e.level;var r=e.dataLevel;var s=e.schema[t];var o=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var l=!e.opts.allErrors;var c="data"+(r||"");var d="valid"+a;var p=e.opts.$data&&s&&s.$data,f;if(p){n+=" var schema"+a+" = "+e.util.getData(s.$data,r,e.dataPathArr)+"; ";f="schema"+a}else{f=s}var h="i"+a,m="schema"+a;if(!p){n+=" var "+m+" = validate.schema"+o+";"}n+="var "+d+";";if(p){n+=" if (schema"+a+" === undefined) "+d+" = true; else if (!Array.isArray(schema"+a+")) "+d+" = false; else {"}n+=""+d+" = false;for (var "+h+"=0; "+h+"<"+m+".length; "+h+"++) if (equal("+c+", "+m+"["+h+"])) { "+d+" = true; break; }";if(p){n+=" } "}n+=" if (!"+d+") { ";var b=b||[];b.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+"enum"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { allowedValues: schema"+a+" } ";if(e.opts.messages!==false){n+=" , message: 'should be equal to one of the allowed values' "}if(e.opts.verbose){n+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}n+=" } "}else{n+=" {} "}var g=n;n=b.pop();if(!e.compositeRule&&l){if(e.async){n+=" throw new ValidationError(["+g+"]); "}else{n+=" validate.errors = ["+g+"]; return false; "}}else{n+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+=" }";if(l){n+=" else { "}return n}},,function(e,t,i){const n=i(874);const a=(e,t)=>n(e,t,true);e.exports=a},function(e,t,i){var n=i(602);var a=i(747);n.register("test",_test,{cmdOptions:{b:"block",c:"character",d:"directory",e:"exists",f:"file",L:"link",p:"pipe",S:"socket"},wrapOutput:false,allowGlobbing:false});function _test(e,t){if(!t)n.error("no path given");var i=false;Object.keys(e).forEach(function(t){if(e[t]===true){i=true}});if(!i)n.error("could not interpret expression");if(e.link){try{return n.statNoFollowLinks(t).isSymbolicLink()}catch(e){return false}}if(!a.existsSync(t))return false;if(e.exists)return true;var r=n.statFollowLinks(t);if(e.block)return r.isBlockDevice();if(e.character)return r.isCharacterDevice();if(e.directory)return r.isDirectory();if(e.file)return r.isFile();if(e.pipe)return r.isFIFO();if(e.socket)return r.isSocket();return false}e.exports=_test},function(e,t,i){const n=i(387);const{assertIssuerConfiguration:a}=i(770);const{random:r}=i(368);const s=i(295);const o=i(204);const u=i(880);const l=i(403);const c=e=>encodeURIComponent(e).replace(/%20/g,"+");async function clientAssertion(e,t){let i=this[`${e}_endpoint_auth_signing_alg`];if(!i){a(this.issuer,`${e}_endpoint_auth_signing_alg_values_supported`)}if(this[`${e}_endpoint_auth_method`]==="client_secret_jwt"){const a=await this.joseSecret();if(!i){const t=this.issuer[`${e}_endpoint_auth_signing_alg_values_supported`];i=Array.isArray(t)&&t.find(e=>a.algorithms("sign").has(e))}return n.JWS.sign(t,a,{alg:i,typ:"JWT"})}const r=u(this).get("keystore");if(!r){throw new TypeError("no client jwks provided for signing a client assertion with")}if(!i){const t=new Set;r.all().forEach(e=>{e.algorithms("sign").forEach(Set.prototype.add.bind(t))});const n=this.issuer[`${e}_endpoint_auth_signing_alg_values_supported`];i=Array.isArray(n)&&n.find(e=>t.has(e))}const s=r.get({alg:i,use:"sig"});if(!s){throw new TypeError(`no key found in client jwks to sign a client assertion with using alg ${i}`)}return n.JWS.sign(t,s,{alg:i,typ:"JWT",kid:s.kid})}async function authFor(e,{clientAssertionPayload:t}={}){const i=this[`${e}_endpoint_auth_method`];switch(i){case"self_signed_tls_client_auth":case"tls_client_auth":case"none":return{body:{client_id:this.client_id}};case"client_secret_post":if(!this.client_secret){throw new TypeError("client_secret_post client authentication method requires a client_secret")}return{body:{client_id:this.client_id,client_secret:this.client_secret}};case"private_key_jwt":case"client_secret_jwt":{const i=s();const n=await clientAssertion.call(this,e,{iat:i,exp:i+60,jti:r(),iss:this.client_id,sub:this.client_id,aud:this.issuer[`${e}_endpoint`],...t});return{body:{client_id:this.client_id,client_assertion:n,client_assertion_type:"urn:ietf:params:oauth:client-assertion-type:jwt-bearer"}}}default:{if(!this.client_secret){throw new TypeError("client_secret_basic client authentication method requires a client_secret")}const e=`${c(this.client_id)}:${c(this.client_secret)}`;const t=Buffer.from(e).toString("base64");return{headers:{Authorization:`Basic ${t}`}}}}}function resolveResponseType(){const{length:e,0:t}=this.response_types;if(e===1){return t}return undefined}function resolveRedirectUri(){const{length:e,0:t}=this.redirect_uris||[];if(e===1){return t}return undefined}async function authenticatedPost(e,t,{clientAssertionPayload:i,endpointAuthMethod:n=e}={}){const a=await authFor.call(this,n,{clientAssertionPayload:i});const r=l(t,a,{form:true});const s=this[`${n}_endpoint_auth_method`].includes("tls_client_auth")||e==="token"&&this.tls_client_certificate_bound_access_tokens;let u;if(s&&this.issuer.mtls_endpoint_aliases){u=this.issuer.mtls_endpoint_aliases[`${e}_endpoint`]}u=u||this.issuer[`${e}_endpoint`];if("body"in r){for(const[e,t]of Object.entries(r.body)){if(typeof t==="undefined"){delete r.body[e]}}}return o.call(this,{...r,method:"POST",url:u},{mTLS:s})}e.exports={resolveResponseType:resolveResponseType,resolveRedirectUri:resolveRedirectUri,authFor:authFor,authenticatedPost:authenticatedPost}},function(e,t){function isArray(e){if(Array.isArray){return Array.isArray(e)}return objectToString(e)==="[object Array]"}t.isArray=isArray;function isBoolean(e){return typeof e==="boolean"}t.isBoolean=isBoolean;function isNull(e){return e===null}t.isNull=isNull;function isNullOrUndefined(e){return e==null}t.isNullOrUndefined=isNullOrUndefined;function isNumber(e){return typeof e==="number"}t.isNumber=isNumber;function isString(e){return typeof e==="string"}t.isString=isString;function isSymbol(e){return typeof e==="symbol"}t.isSymbol=isSymbol;function isUndefined(e){return e===void 0}t.isUndefined=isUndefined;function isRegExp(e){return objectToString(e)==="[object RegExp]"}t.isRegExp=isRegExp;function isObject(e){return typeof e==="object"&&e!==null}t.isObject=isObject;function isDate(e){return objectToString(e)==="[object Date]"}t.isDate=isDate;function isError(e){return objectToString(e)==="[object Error]"||e instanceof Error}t.isError=isError;function isFunction(e){return typeof e==="function"}t.isFunction=isFunction;function isPrimitive(e){return e===null||typeof e==="boolean"||typeof e==="number"||typeof e==="string"||typeof e==="symbol"||typeof e==="undefined"}t.isPrimitive=isPrimitive;t.isBuffer=Buffer.isBuffer;function objectToString(e){return Object.prototype.toString.call(e)}},function(e,t,i){"use strict";var n=i(835);var a=i(623);var r=i(254);var s=i(826);var o=i(113);var u=i(373);var l=i(727).Buffer;function OAuth(e){this.request=e;this.params=null}OAuth.prototype.buildParams=function(e,t,i,n,a,r){var u={};for(var l in e){u["oauth_"+l]=e[l]}if(!u.oauth_version){u.oauth_version="1.0"}if(!u.oauth_timestamp){u.oauth_timestamp=Math.floor(Date.now()/1e3).toString()}if(!u.oauth_nonce){u.oauth_nonce=s().replace(/-/g,"")}if(!u.oauth_signature_method){u.oauth_signature_method="HMAC-SHA1"}var c=u.oauth_consumer_secret||u.oauth_private_key;delete u.oauth_consumer_secret;delete u.oauth_private_key;var d=u.oauth_token_secret;delete u.oauth_token_secret;var p=u.oauth_realm;delete u.oauth_realm;delete u.oauth_transport_method;var f=t.protocol+"//"+t.host+t.pathname;var h=r.parse([].concat(n,a,r.stringify(u)).join("&"));u.oauth_signature=o.sign(u.oauth_signature_method,i,f,h,c,d);if(p){u.realm=p}return u};OAuth.prototype.buildBodyHash=function(e,t){if(["HMAC-SHA1","RSA-SHA1"].indexOf(e.signature_method||"HMAC-SHA1")<0){this.request.emit("error",new Error("oauth: "+e.signature_method+" signature_method not supported with body_hash signing."))}var i=u.createHash("sha1");i.update(t||"");var n=i.digest("hex");return l.from(n,"hex").toString("base64")};OAuth.prototype.concatParams=function(e,t,i){i=i||"";var n=Object.keys(e).filter(function(e){return e!=="realm"&&e!=="oauth_signature"}).sort();if(e.realm){n.splice(0,0,"realm")}n.push("oauth_signature");return n.map(function(t){return t+"="+i+o.rfc3986(e[t])+i}).join(t)};OAuth.prototype.onRequest=function(e){var t=this;t.params=e;var i=t.request.uri||{};var s=t.request.method||"";var o=r(t.request.headers);var u=t.request.body||"";var l=t.request.qsLib||a;var c;var d;var p=o.get("content-type")||"";var f="application/x-www-form-urlencoded";var h=e.transport_method||"header";if(p.slice(0,f.length)===f){p=f;c=u}if(i.query){d=i.query}if(h==="body"&&(s!=="POST"||p!==f)){t.request.emit("error",new Error("oauth: transport_method of body requires POST "+"and content-type "+f))}if(!c&&typeof e.body_hash==="boolean"){e.body_hash=t.buildBodyHash(e,t.request.body.toString())}var m=t.buildParams(e,i,s,d,c,l);switch(h){case"header":t.request.setHeader("Authorization","OAuth "+t.concatParams(m,",",'"'));break;case"query":var b=t.request.uri.href+=(d?"&":"?")+t.concatParams(m,"&");t.request.uri=n.parse(b);t.request.path=t.request.uri.path;break;case"body":t.request.body=(c?c+"&":"")+t.concatParams(m,"&");break;default:t.request.emit("error",new Error("oauth: transport_method invalid"))}};t.OAuth=OAuth},,,function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=i(878);let a="https://localhost";let r=["string","boolean","double","integer","long","float","number","any"];class ObjectSerializer{static findCorrectType(e,t){if(e==undefined){return t}else if(r.indexOf(t.toLowerCase())!==-1){return t}else if(t==="Date"){return t}else{if(s[t]){return t}if(!o[t]){return t}let i=o[t].discriminator;if(i==null){return t}else{if(e[i]){return e[i]}else{return t}}}}static serialize(e,t){if(e==undefined){return e}else if(r.indexOf(t.toLowerCase())!==-1){return e}else if(t.lastIndexOf("Array<",0)===0){let i=t.replace("Array<","");i=i.substring(0,i.length-1);let n=[];for(let t in e){let a=e[t];n.push(ObjectSerializer.serialize(a,i))}return n}else if(t==="Date"){return e.toString()}else{if(s[t]){return e}if(!o[t]){return e}let i=o[t].getAttributeTypeMap();let n={};for(let t in i){let a=i[t];n[a.baseName]=ObjectSerializer.serialize(e[a.name],a.type)}return n}}static deserialize(e,t){t=ObjectSerializer.findCorrectType(e,t);if(e==undefined){return e}else if(r.indexOf(t.toLowerCase())!==-1){return e}else if(t.lastIndexOf("Array<",0)===0){let i=t.replace("Array<","");i=i.substring(0,i.length-1);let n=[];for(let t in e){let a=e[t];n.push(ObjectSerializer.deserialize(a,i))}return n}else if(t==="Date"){return new Date(e)}else{if(s[t]){return e}if(!o[t]){return e}let i=new o[t];let n=o[t].getAttributeTypeMap();for(let t in n){let a=n[t];i[a.name]=ObjectSerializer.deserialize(e[a.baseName],a.type)}return i}}}class AdmissionregistrationV1beta1ServiceReference{static getAttributeTypeMap(){return AdmissionregistrationV1beta1ServiceReference.attributeTypeMap}}AdmissionregistrationV1beta1ServiceReference.discriminator=undefined;AdmissionregistrationV1beta1ServiceReference.attributeTypeMap=[{name:"name",baseName:"name",type:"string"},{name:"namespace",baseName:"namespace",type:"string"},{name:"path",baseName:"path",type:"string"}];t.AdmissionregistrationV1beta1ServiceReference=AdmissionregistrationV1beta1ServiceReference;class AdmissionregistrationV1beta1WebhookClientConfig{static getAttributeTypeMap(){return AdmissionregistrationV1beta1WebhookClientConfig.attributeTypeMap}}AdmissionregistrationV1beta1WebhookClientConfig.discriminator=undefined;AdmissionregistrationV1beta1WebhookClientConfig.attributeTypeMap=[{name:"caBundle",baseName:"caBundle",type:"string"},{name:"service",baseName:"service",type:"AdmissionregistrationV1beta1ServiceReference"},{name:"url",baseName:"url",type:"string"}];t.AdmissionregistrationV1beta1WebhookClientConfig=AdmissionregistrationV1beta1WebhookClientConfig;class ApiextensionsV1beta1ServiceReference{static getAttributeTypeMap(){return ApiextensionsV1beta1ServiceReference.attributeTypeMap}}ApiextensionsV1beta1ServiceReference.discriminator=undefined;ApiextensionsV1beta1ServiceReference.attributeTypeMap=[{name:"name",baseName:"name",type:"string"},{name:"namespace",baseName:"namespace",type:"string"},{name:"path",baseName:"path",type:"string"}];t.ApiextensionsV1beta1ServiceReference=ApiextensionsV1beta1ServiceReference;class ApiextensionsV1beta1WebhookClientConfig{static getAttributeTypeMap(){return ApiextensionsV1beta1WebhookClientConfig.attributeTypeMap}}ApiextensionsV1beta1WebhookClientConfig.discriminator=undefined;ApiextensionsV1beta1WebhookClientConfig.attributeTypeMap=[{name:"caBundle",baseName:"caBundle",type:"string"},{name:"service",baseName:"service",type:"ApiextensionsV1beta1ServiceReference"},{name:"url",baseName:"url",type:"string"}];t.ApiextensionsV1beta1WebhookClientConfig=ApiextensionsV1beta1WebhookClientConfig;class ApiregistrationV1beta1ServiceReference{static getAttributeTypeMap(){return ApiregistrationV1beta1ServiceReference.attributeTypeMap}}ApiregistrationV1beta1ServiceReference.discriminator=undefined;ApiregistrationV1beta1ServiceReference.attributeTypeMap=[{name:"name",baseName:"name",type:"string"},{name:"namespace",baseName:"namespace",type:"string"}];t.ApiregistrationV1beta1ServiceReference=ApiregistrationV1beta1ServiceReference;class AppsV1beta1Deployment{static getAttributeTypeMap(){return AppsV1beta1Deployment.attributeTypeMap}}AppsV1beta1Deployment.discriminator=undefined;AppsV1beta1Deployment.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"AppsV1beta1DeploymentSpec"},{name:"status",baseName:"status",type:"AppsV1beta1DeploymentStatus"}];t.AppsV1beta1Deployment=AppsV1beta1Deployment;class AppsV1beta1DeploymentCondition{static getAttributeTypeMap(){return AppsV1beta1DeploymentCondition.attributeTypeMap}}AppsV1beta1DeploymentCondition.discriminator=undefined;AppsV1beta1DeploymentCondition.attributeTypeMap=[{name:"lastTransitionTime",baseName:"lastTransitionTime",type:"Date"},{name:"lastUpdateTime",baseName:"lastUpdateTime",type:"Date"},{name:"message",baseName:"message",type:"string"},{name:"reason",baseName:"reason",type:"string"},{name:"status",baseName:"status",type:"string"},{name:"type",baseName:"type",type:"string"}];t.AppsV1beta1DeploymentCondition=AppsV1beta1DeploymentCondition;class AppsV1beta1DeploymentList{static getAttributeTypeMap(){return AppsV1beta1DeploymentList.attributeTypeMap}}AppsV1beta1DeploymentList.discriminator=undefined;AppsV1beta1DeploymentList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.AppsV1beta1DeploymentList=AppsV1beta1DeploymentList;class AppsV1beta1DeploymentRollback{static getAttributeTypeMap(){return AppsV1beta1DeploymentRollback.attributeTypeMap}}AppsV1beta1DeploymentRollback.discriminator=undefined;AppsV1beta1DeploymentRollback.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"name",baseName:"name",type:"string"},{name:"rollbackTo",baseName:"rollbackTo",type:"AppsV1beta1RollbackConfig"},{name:"updatedAnnotations",baseName:"updatedAnnotations",type:"{ [key: string]: string; }"}];t.AppsV1beta1DeploymentRollback=AppsV1beta1DeploymentRollback;class AppsV1beta1DeploymentSpec{static getAttributeTypeMap(){return AppsV1beta1DeploymentSpec.attributeTypeMap}}AppsV1beta1DeploymentSpec.discriminator=undefined;AppsV1beta1DeploymentSpec.attributeTypeMap=[{name:"minReadySeconds",baseName:"minReadySeconds",type:"number"},{name:"paused",baseName:"paused",type:"boolean"},{name:"progressDeadlineSeconds",baseName:"progressDeadlineSeconds",type:"number"},{name:"replicas",baseName:"replicas",type:"number"},{name:"revisionHistoryLimit",baseName:"revisionHistoryLimit",type:"number"},{name:"rollbackTo",baseName:"rollbackTo",type:"AppsV1beta1RollbackConfig"},{name:"selector",baseName:"selector",type:"V1LabelSelector"},{name:"strategy",baseName:"strategy",type:"AppsV1beta1DeploymentStrategy"},{name:"template",baseName:"template",type:"V1PodTemplateSpec"}];t.AppsV1beta1DeploymentSpec=AppsV1beta1DeploymentSpec;class AppsV1beta1DeploymentStatus{static getAttributeTypeMap(){return AppsV1beta1DeploymentStatus.attributeTypeMap}}AppsV1beta1DeploymentStatus.discriminator=undefined;AppsV1beta1DeploymentStatus.attributeTypeMap=[{name:"availableReplicas",baseName:"availableReplicas",type:"number"},{name:"collisionCount",baseName:"collisionCount",type:"number"},{name:"conditions",baseName:"conditions",type:"Array"},{name:"observedGeneration",baseName:"observedGeneration",type:"number"},{name:"readyReplicas",baseName:"readyReplicas",type:"number"},{name:"replicas",baseName:"replicas",type:"number"},{name:"unavailableReplicas",baseName:"unavailableReplicas",type:"number"},{name:"updatedReplicas",baseName:"updatedReplicas",type:"number"}];t.AppsV1beta1DeploymentStatus=AppsV1beta1DeploymentStatus;class AppsV1beta1DeploymentStrategy{static getAttributeTypeMap(){return AppsV1beta1DeploymentStrategy.attributeTypeMap}}AppsV1beta1DeploymentStrategy.discriminator=undefined;AppsV1beta1DeploymentStrategy.attributeTypeMap=[{name:"rollingUpdate",baseName:"rollingUpdate",type:"AppsV1beta1RollingUpdateDeployment"},{name:"type",baseName:"type",type:"string"}];t.AppsV1beta1DeploymentStrategy=AppsV1beta1DeploymentStrategy;class AppsV1beta1RollbackConfig{static getAttributeTypeMap(){return AppsV1beta1RollbackConfig.attributeTypeMap}}AppsV1beta1RollbackConfig.discriminator=undefined;AppsV1beta1RollbackConfig.attributeTypeMap=[{name:"revision",baseName:"revision",type:"number"}];t.AppsV1beta1RollbackConfig=AppsV1beta1RollbackConfig;class AppsV1beta1RollingUpdateDeployment{static getAttributeTypeMap(){return AppsV1beta1RollingUpdateDeployment.attributeTypeMap}}AppsV1beta1RollingUpdateDeployment.discriminator=undefined;AppsV1beta1RollingUpdateDeployment.attributeTypeMap=[{name:"maxSurge",baseName:"maxSurge",type:"any"},{name:"maxUnavailable",baseName:"maxUnavailable",type:"any"}];t.AppsV1beta1RollingUpdateDeployment=AppsV1beta1RollingUpdateDeployment;class AppsV1beta1Scale{static getAttributeTypeMap(){return AppsV1beta1Scale.attributeTypeMap}}AppsV1beta1Scale.discriminator=undefined;AppsV1beta1Scale.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"AppsV1beta1ScaleSpec"},{name:"status",baseName:"status",type:"AppsV1beta1ScaleStatus"}];t.AppsV1beta1Scale=AppsV1beta1Scale;class AppsV1beta1ScaleSpec{static getAttributeTypeMap(){return AppsV1beta1ScaleSpec.attributeTypeMap}}AppsV1beta1ScaleSpec.discriminator=undefined;AppsV1beta1ScaleSpec.attributeTypeMap=[{name:"replicas",baseName:"replicas",type:"number"}];t.AppsV1beta1ScaleSpec=AppsV1beta1ScaleSpec;class AppsV1beta1ScaleStatus{static getAttributeTypeMap(){return AppsV1beta1ScaleStatus.attributeTypeMap}}AppsV1beta1ScaleStatus.discriminator=undefined;AppsV1beta1ScaleStatus.attributeTypeMap=[{name:"replicas",baseName:"replicas",type:"number"},{name:"selector",baseName:"selector",type:"{ [key: string]: string; }"},{name:"targetSelector",baseName:"targetSelector",type:"string"}];t.AppsV1beta1ScaleStatus=AppsV1beta1ScaleStatus;class ExtensionsV1beta1AllowedFlexVolume{static getAttributeTypeMap(){return ExtensionsV1beta1AllowedFlexVolume.attributeTypeMap}}ExtensionsV1beta1AllowedFlexVolume.discriminator=undefined;ExtensionsV1beta1AllowedFlexVolume.attributeTypeMap=[{name:"driver",baseName:"driver",type:"string"}];t.ExtensionsV1beta1AllowedFlexVolume=ExtensionsV1beta1AllowedFlexVolume;class ExtensionsV1beta1AllowedHostPath{static getAttributeTypeMap(){return ExtensionsV1beta1AllowedHostPath.attributeTypeMap}}ExtensionsV1beta1AllowedHostPath.discriminator=undefined;ExtensionsV1beta1AllowedHostPath.attributeTypeMap=[{name:"pathPrefix",baseName:"pathPrefix",type:"string"},{name:"readOnly",baseName:"readOnly",type:"boolean"}];t.ExtensionsV1beta1AllowedHostPath=ExtensionsV1beta1AllowedHostPath;class ExtensionsV1beta1Deployment{static getAttributeTypeMap(){return ExtensionsV1beta1Deployment.attributeTypeMap}}ExtensionsV1beta1Deployment.discriminator=undefined;ExtensionsV1beta1Deployment.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"ExtensionsV1beta1DeploymentSpec"},{name:"status",baseName:"status",type:"ExtensionsV1beta1DeploymentStatus"}];t.ExtensionsV1beta1Deployment=ExtensionsV1beta1Deployment;class ExtensionsV1beta1DeploymentCondition{static getAttributeTypeMap(){return ExtensionsV1beta1DeploymentCondition.attributeTypeMap}}ExtensionsV1beta1DeploymentCondition.discriminator=undefined;ExtensionsV1beta1DeploymentCondition.attributeTypeMap=[{name:"lastTransitionTime",baseName:"lastTransitionTime",type:"Date"},{name:"lastUpdateTime",baseName:"lastUpdateTime",type:"Date"},{name:"message",baseName:"message",type:"string"},{name:"reason",baseName:"reason",type:"string"},{name:"status",baseName:"status",type:"string"},{name:"type",baseName:"type",type:"string"}];t.ExtensionsV1beta1DeploymentCondition=ExtensionsV1beta1DeploymentCondition;class ExtensionsV1beta1DeploymentList{static getAttributeTypeMap(){return ExtensionsV1beta1DeploymentList.attributeTypeMap}}ExtensionsV1beta1DeploymentList.discriminator=undefined;ExtensionsV1beta1DeploymentList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.ExtensionsV1beta1DeploymentList=ExtensionsV1beta1DeploymentList;class ExtensionsV1beta1DeploymentRollback{static getAttributeTypeMap(){return ExtensionsV1beta1DeploymentRollback.attributeTypeMap}}ExtensionsV1beta1DeploymentRollback.discriminator=undefined;ExtensionsV1beta1DeploymentRollback.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"name",baseName:"name",type:"string"},{name:"rollbackTo",baseName:"rollbackTo",type:"ExtensionsV1beta1RollbackConfig"},{name:"updatedAnnotations",baseName:"updatedAnnotations",type:"{ [key: string]: string; }"}];t.ExtensionsV1beta1DeploymentRollback=ExtensionsV1beta1DeploymentRollback;class ExtensionsV1beta1DeploymentSpec{static getAttributeTypeMap(){return ExtensionsV1beta1DeploymentSpec.attributeTypeMap}}ExtensionsV1beta1DeploymentSpec.discriminator=undefined;ExtensionsV1beta1DeploymentSpec.attributeTypeMap=[{name:"minReadySeconds",baseName:"minReadySeconds",type:"number"},{name:"paused",baseName:"paused",type:"boolean"},{name:"progressDeadlineSeconds",baseName:"progressDeadlineSeconds",type:"number"},{name:"replicas",baseName:"replicas",type:"number"},{name:"revisionHistoryLimit",baseName:"revisionHistoryLimit",type:"number"},{name:"rollbackTo",baseName:"rollbackTo",type:"ExtensionsV1beta1RollbackConfig"},{name:"selector",baseName:"selector",type:"V1LabelSelector"},{name:"strategy",baseName:"strategy",type:"ExtensionsV1beta1DeploymentStrategy"},{name:"template",baseName:"template",type:"V1PodTemplateSpec"}];t.ExtensionsV1beta1DeploymentSpec=ExtensionsV1beta1DeploymentSpec;class ExtensionsV1beta1DeploymentStatus{static getAttributeTypeMap(){return ExtensionsV1beta1DeploymentStatus.attributeTypeMap}}ExtensionsV1beta1DeploymentStatus.discriminator=undefined;ExtensionsV1beta1DeploymentStatus.attributeTypeMap=[{name:"availableReplicas",baseName:"availableReplicas",type:"number"},{name:"collisionCount",baseName:"collisionCount",type:"number"},{name:"conditions",baseName:"conditions",type:"Array"},{name:"observedGeneration",baseName:"observedGeneration",type:"number"},{name:"readyReplicas",baseName:"readyReplicas",type:"number"},{name:"replicas",baseName:"replicas",type:"number"},{name:"unavailableReplicas",baseName:"unavailableReplicas",type:"number"},{name:"updatedReplicas",baseName:"updatedReplicas",type:"number"}];t.ExtensionsV1beta1DeploymentStatus=ExtensionsV1beta1DeploymentStatus;class ExtensionsV1beta1DeploymentStrategy{static getAttributeTypeMap(){return ExtensionsV1beta1DeploymentStrategy.attributeTypeMap}}ExtensionsV1beta1DeploymentStrategy.discriminator=undefined;ExtensionsV1beta1DeploymentStrategy.attributeTypeMap=[{name:"rollingUpdate",baseName:"rollingUpdate",type:"ExtensionsV1beta1RollingUpdateDeployment"},{name:"type",baseName:"type",type:"string"}];t.ExtensionsV1beta1DeploymentStrategy=ExtensionsV1beta1DeploymentStrategy;class ExtensionsV1beta1FSGroupStrategyOptions{static getAttributeTypeMap(){return ExtensionsV1beta1FSGroupStrategyOptions.attributeTypeMap}}ExtensionsV1beta1FSGroupStrategyOptions.discriminator=undefined;ExtensionsV1beta1FSGroupStrategyOptions.attributeTypeMap=[{name:"ranges",baseName:"ranges",type:"Array"},{name:"rule",baseName:"rule",type:"string"}];t.ExtensionsV1beta1FSGroupStrategyOptions=ExtensionsV1beta1FSGroupStrategyOptions;class ExtensionsV1beta1HostPortRange{static getAttributeTypeMap(){return ExtensionsV1beta1HostPortRange.attributeTypeMap}}ExtensionsV1beta1HostPortRange.discriminator=undefined;ExtensionsV1beta1HostPortRange.attributeTypeMap=[{name:"max",baseName:"max",type:"number"},{name:"min",baseName:"min",type:"number"}];t.ExtensionsV1beta1HostPortRange=ExtensionsV1beta1HostPortRange;class ExtensionsV1beta1IDRange{static getAttributeTypeMap(){return ExtensionsV1beta1IDRange.attributeTypeMap}}ExtensionsV1beta1IDRange.discriminator=undefined;ExtensionsV1beta1IDRange.attributeTypeMap=[{name:"max",baseName:"max",type:"number"},{name:"min",baseName:"min",type:"number"}];t.ExtensionsV1beta1IDRange=ExtensionsV1beta1IDRange;class ExtensionsV1beta1PodSecurityPolicy{static getAttributeTypeMap(){return ExtensionsV1beta1PodSecurityPolicy.attributeTypeMap}}ExtensionsV1beta1PodSecurityPolicy.discriminator=undefined;ExtensionsV1beta1PodSecurityPolicy.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"ExtensionsV1beta1PodSecurityPolicySpec"}];t.ExtensionsV1beta1PodSecurityPolicy=ExtensionsV1beta1PodSecurityPolicy;class ExtensionsV1beta1PodSecurityPolicyList{static getAttributeTypeMap(){return ExtensionsV1beta1PodSecurityPolicyList.attributeTypeMap}}ExtensionsV1beta1PodSecurityPolicyList.discriminator=undefined;ExtensionsV1beta1PodSecurityPolicyList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.ExtensionsV1beta1PodSecurityPolicyList=ExtensionsV1beta1PodSecurityPolicyList;class ExtensionsV1beta1PodSecurityPolicySpec{static getAttributeTypeMap(){return ExtensionsV1beta1PodSecurityPolicySpec.attributeTypeMap}}ExtensionsV1beta1PodSecurityPolicySpec.discriminator=undefined;ExtensionsV1beta1PodSecurityPolicySpec.attributeTypeMap=[{name:"allowPrivilegeEscalation",baseName:"allowPrivilegeEscalation",type:"boolean"},{name:"allowedCapabilities",baseName:"allowedCapabilities",type:"Array"},{name:"allowedFlexVolumes",baseName:"allowedFlexVolumes",type:"Array"},{name:"allowedHostPaths",baseName:"allowedHostPaths",type:"Array"},{name:"allowedProcMountTypes",baseName:"allowedProcMountTypes",type:"Array"},{name:"allowedUnsafeSysctls",baseName:"allowedUnsafeSysctls",type:"Array"},{name:"defaultAddCapabilities",baseName:"defaultAddCapabilities",type:"Array"},{name:"defaultAllowPrivilegeEscalation",baseName:"defaultAllowPrivilegeEscalation",type:"boolean"},{name:"forbiddenSysctls",baseName:"forbiddenSysctls",type:"Array"},{name:"fsGroup",baseName:"fsGroup",type:"ExtensionsV1beta1FSGroupStrategyOptions"},{name:"hostIPC",baseName:"hostIPC",type:"boolean"},{name:"hostNetwork",baseName:"hostNetwork",type:"boolean"},{name:"hostPID",baseName:"hostPID",type:"boolean"},{name:"hostPorts",baseName:"hostPorts",type:"Array"},{name:"privileged",baseName:"privileged",type:"boolean"},{name:"readOnlyRootFilesystem",baseName:"readOnlyRootFilesystem",type:"boolean"},{name:"requiredDropCapabilities",baseName:"requiredDropCapabilities",type:"Array"},{name:"runAsGroup",baseName:"runAsGroup",type:"ExtensionsV1beta1RunAsGroupStrategyOptions"},{name:"runAsUser",baseName:"runAsUser",type:"ExtensionsV1beta1RunAsUserStrategyOptions"},{name:"seLinux",baseName:"seLinux",type:"ExtensionsV1beta1SELinuxStrategyOptions"},{name:"supplementalGroups",baseName:"supplementalGroups",type:"ExtensionsV1beta1SupplementalGroupsStrategyOptions"},{name:"volumes",baseName:"volumes",type:"Array"}];t.ExtensionsV1beta1PodSecurityPolicySpec=ExtensionsV1beta1PodSecurityPolicySpec;class ExtensionsV1beta1RollbackConfig{static getAttributeTypeMap(){return ExtensionsV1beta1RollbackConfig.attributeTypeMap}}ExtensionsV1beta1RollbackConfig.discriminator=undefined;ExtensionsV1beta1RollbackConfig.attributeTypeMap=[{name:"revision",baseName:"revision",type:"number"}];t.ExtensionsV1beta1RollbackConfig=ExtensionsV1beta1RollbackConfig;class ExtensionsV1beta1RollingUpdateDeployment{static getAttributeTypeMap(){return ExtensionsV1beta1RollingUpdateDeployment.attributeTypeMap}}ExtensionsV1beta1RollingUpdateDeployment.discriminator=undefined;ExtensionsV1beta1RollingUpdateDeployment.attributeTypeMap=[{name:"maxSurge",baseName:"maxSurge",type:"any"},{name:"maxUnavailable",baseName:"maxUnavailable",type:"any"}];t.ExtensionsV1beta1RollingUpdateDeployment=ExtensionsV1beta1RollingUpdateDeployment;class ExtensionsV1beta1RunAsGroupStrategyOptions{static getAttributeTypeMap(){return ExtensionsV1beta1RunAsGroupStrategyOptions.attributeTypeMap}}ExtensionsV1beta1RunAsGroupStrategyOptions.discriminator=undefined;ExtensionsV1beta1RunAsGroupStrategyOptions.attributeTypeMap=[{name:"ranges",baseName:"ranges",type:"Array"},{name:"rule",baseName:"rule",type:"string"}];t.ExtensionsV1beta1RunAsGroupStrategyOptions=ExtensionsV1beta1RunAsGroupStrategyOptions;class ExtensionsV1beta1RunAsUserStrategyOptions{static getAttributeTypeMap(){return ExtensionsV1beta1RunAsUserStrategyOptions.attributeTypeMap}}ExtensionsV1beta1RunAsUserStrategyOptions.discriminator=undefined;ExtensionsV1beta1RunAsUserStrategyOptions.attributeTypeMap=[{name:"ranges",baseName:"ranges",type:"Array"},{name:"rule",baseName:"rule",type:"string"}];t.ExtensionsV1beta1RunAsUserStrategyOptions=ExtensionsV1beta1RunAsUserStrategyOptions;class ExtensionsV1beta1SELinuxStrategyOptions{static getAttributeTypeMap(){return ExtensionsV1beta1SELinuxStrategyOptions.attributeTypeMap}}ExtensionsV1beta1SELinuxStrategyOptions.discriminator=undefined;ExtensionsV1beta1SELinuxStrategyOptions.attributeTypeMap=[{name:"rule",baseName:"rule",type:"string"},{name:"seLinuxOptions",baseName:"seLinuxOptions",type:"V1SELinuxOptions"}];t.ExtensionsV1beta1SELinuxStrategyOptions=ExtensionsV1beta1SELinuxStrategyOptions;class ExtensionsV1beta1Scale{static getAttributeTypeMap(){return ExtensionsV1beta1Scale.attributeTypeMap}}ExtensionsV1beta1Scale.discriminator=undefined;ExtensionsV1beta1Scale.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"ExtensionsV1beta1ScaleSpec"},{name:"status",baseName:"status",type:"ExtensionsV1beta1ScaleStatus"}];t.ExtensionsV1beta1Scale=ExtensionsV1beta1Scale;class ExtensionsV1beta1ScaleSpec{static getAttributeTypeMap(){return ExtensionsV1beta1ScaleSpec.attributeTypeMap}}ExtensionsV1beta1ScaleSpec.discriminator=undefined;ExtensionsV1beta1ScaleSpec.attributeTypeMap=[{name:"replicas",baseName:"replicas",type:"number"}];t.ExtensionsV1beta1ScaleSpec=ExtensionsV1beta1ScaleSpec;class ExtensionsV1beta1ScaleStatus{static getAttributeTypeMap(){return ExtensionsV1beta1ScaleStatus.attributeTypeMap}}ExtensionsV1beta1ScaleStatus.discriminator=undefined;ExtensionsV1beta1ScaleStatus.attributeTypeMap=[{name:"replicas",baseName:"replicas",type:"number"},{name:"selector",baseName:"selector",type:"{ [key: string]: string; }"},{name:"targetSelector",baseName:"targetSelector",type:"string"}];t.ExtensionsV1beta1ScaleStatus=ExtensionsV1beta1ScaleStatus;class ExtensionsV1beta1SupplementalGroupsStrategyOptions{static getAttributeTypeMap(){return ExtensionsV1beta1SupplementalGroupsStrategyOptions.attributeTypeMap}}ExtensionsV1beta1SupplementalGroupsStrategyOptions.discriminator=undefined;ExtensionsV1beta1SupplementalGroupsStrategyOptions.attributeTypeMap=[{name:"ranges",baseName:"ranges",type:"Array"},{name:"rule",baseName:"rule",type:"string"}];t.ExtensionsV1beta1SupplementalGroupsStrategyOptions=ExtensionsV1beta1SupplementalGroupsStrategyOptions;class PolicyV1beta1AllowedFlexVolume{static getAttributeTypeMap(){return PolicyV1beta1AllowedFlexVolume.attributeTypeMap}}PolicyV1beta1AllowedFlexVolume.discriminator=undefined;PolicyV1beta1AllowedFlexVolume.attributeTypeMap=[{name:"driver",baseName:"driver",type:"string"}];t.PolicyV1beta1AllowedFlexVolume=PolicyV1beta1AllowedFlexVolume;class PolicyV1beta1AllowedHostPath{static getAttributeTypeMap(){return PolicyV1beta1AllowedHostPath.attributeTypeMap}}PolicyV1beta1AllowedHostPath.discriminator=undefined;PolicyV1beta1AllowedHostPath.attributeTypeMap=[{name:"pathPrefix",baseName:"pathPrefix",type:"string"},{name:"readOnly",baseName:"readOnly",type:"boolean"}];t.PolicyV1beta1AllowedHostPath=PolicyV1beta1AllowedHostPath;class PolicyV1beta1FSGroupStrategyOptions{static getAttributeTypeMap(){return PolicyV1beta1FSGroupStrategyOptions.attributeTypeMap}}PolicyV1beta1FSGroupStrategyOptions.discriminator=undefined;PolicyV1beta1FSGroupStrategyOptions.attributeTypeMap=[{name:"ranges",baseName:"ranges",type:"Array"},{name:"rule",baseName:"rule",type:"string"}];t.PolicyV1beta1FSGroupStrategyOptions=PolicyV1beta1FSGroupStrategyOptions;class PolicyV1beta1HostPortRange{static getAttributeTypeMap(){return PolicyV1beta1HostPortRange.attributeTypeMap}}PolicyV1beta1HostPortRange.discriminator=undefined;PolicyV1beta1HostPortRange.attributeTypeMap=[{name:"max",baseName:"max",type:"number"},{name:"min",baseName:"min",type:"number"}];t.PolicyV1beta1HostPortRange=PolicyV1beta1HostPortRange;class PolicyV1beta1IDRange{static getAttributeTypeMap(){return PolicyV1beta1IDRange.attributeTypeMap}}PolicyV1beta1IDRange.discriminator=undefined;PolicyV1beta1IDRange.attributeTypeMap=[{name:"max",baseName:"max",type:"number"},{name:"min",baseName:"min",type:"number"}];t.PolicyV1beta1IDRange=PolicyV1beta1IDRange;class PolicyV1beta1PodSecurityPolicy{static getAttributeTypeMap(){return PolicyV1beta1PodSecurityPolicy.attributeTypeMap}}PolicyV1beta1PodSecurityPolicy.discriminator=undefined;PolicyV1beta1PodSecurityPolicy.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"PolicyV1beta1PodSecurityPolicySpec"}];t.PolicyV1beta1PodSecurityPolicy=PolicyV1beta1PodSecurityPolicy;class PolicyV1beta1PodSecurityPolicyList{static getAttributeTypeMap(){return PolicyV1beta1PodSecurityPolicyList.attributeTypeMap}}PolicyV1beta1PodSecurityPolicyList.discriminator=undefined;PolicyV1beta1PodSecurityPolicyList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.PolicyV1beta1PodSecurityPolicyList=PolicyV1beta1PodSecurityPolicyList;class PolicyV1beta1PodSecurityPolicySpec{static getAttributeTypeMap(){return PolicyV1beta1PodSecurityPolicySpec.attributeTypeMap}}PolicyV1beta1PodSecurityPolicySpec.discriminator=undefined;PolicyV1beta1PodSecurityPolicySpec.attributeTypeMap=[{name:"allowPrivilegeEscalation",baseName:"allowPrivilegeEscalation",type:"boolean"},{name:"allowedCapabilities",baseName:"allowedCapabilities",type:"Array"},{name:"allowedFlexVolumes",baseName:"allowedFlexVolumes",type:"Array"},{name:"allowedHostPaths",baseName:"allowedHostPaths",type:"Array"},{name:"allowedProcMountTypes",baseName:"allowedProcMountTypes",type:"Array"},{name:"allowedUnsafeSysctls",baseName:"allowedUnsafeSysctls",type:"Array"},{name:"defaultAddCapabilities",baseName:"defaultAddCapabilities",type:"Array"},{name:"defaultAllowPrivilegeEscalation",baseName:"defaultAllowPrivilegeEscalation",type:"boolean"},{name:"forbiddenSysctls",baseName:"forbiddenSysctls",type:"Array"},{name:"fsGroup",baseName:"fsGroup",type:"PolicyV1beta1FSGroupStrategyOptions"},{name:"hostIPC",baseName:"hostIPC",type:"boolean"},{name:"hostNetwork",baseName:"hostNetwork",type:"boolean"},{name:"hostPID",baseName:"hostPID",type:"boolean"},{name:"hostPorts",baseName:"hostPorts",type:"Array"},{name:"privileged",baseName:"privileged",type:"boolean"},{name:"readOnlyRootFilesystem",baseName:"readOnlyRootFilesystem",type:"boolean"},{name:"requiredDropCapabilities",baseName:"requiredDropCapabilities",type:"Array"},{name:"runAsGroup",baseName:"runAsGroup",type:"PolicyV1beta1RunAsGroupStrategyOptions"},{name:"runAsUser",baseName:"runAsUser",type:"PolicyV1beta1RunAsUserStrategyOptions"},{name:"seLinux",baseName:"seLinux",type:"PolicyV1beta1SELinuxStrategyOptions"},{name:"supplementalGroups",baseName:"supplementalGroups",type:"PolicyV1beta1SupplementalGroupsStrategyOptions"},{name:"volumes",baseName:"volumes",type:"Array"}];t.PolicyV1beta1PodSecurityPolicySpec=PolicyV1beta1PodSecurityPolicySpec;class PolicyV1beta1RunAsGroupStrategyOptions{static getAttributeTypeMap(){return PolicyV1beta1RunAsGroupStrategyOptions.attributeTypeMap}}PolicyV1beta1RunAsGroupStrategyOptions.discriminator=undefined;PolicyV1beta1RunAsGroupStrategyOptions.attributeTypeMap=[{name:"ranges",baseName:"ranges",type:"Array"},{name:"rule",baseName:"rule",type:"string"}];t.PolicyV1beta1RunAsGroupStrategyOptions=PolicyV1beta1RunAsGroupStrategyOptions;class PolicyV1beta1RunAsUserStrategyOptions{static getAttributeTypeMap(){return PolicyV1beta1RunAsUserStrategyOptions.attributeTypeMap}}PolicyV1beta1RunAsUserStrategyOptions.discriminator=undefined;PolicyV1beta1RunAsUserStrategyOptions.attributeTypeMap=[{name:"ranges",baseName:"ranges",type:"Array"},{name:"rule",baseName:"rule",type:"string"}];t.PolicyV1beta1RunAsUserStrategyOptions=PolicyV1beta1RunAsUserStrategyOptions;class PolicyV1beta1SELinuxStrategyOptions{static getAttributeTypeMap(){return PolicyV1beta1SELinuxStrategyOptions.attributeTypeMap}}PolicyV1beta1SELinuxStrategyOptions.discriminator=undefined;PolicyV1beta1SELinuxStrategyOptions.attributeTypeMap=[{name:"rule",baseName:"rule",type:"string"},{name:"seLinuxOptions",baseName:"seLinuxOptions",type:"V1SELinuxOptions"}];t.PolicyV1beta1SELinuxStrategyOptions=PolicyV1beta1SELinuxStrategyOptions;class PolicyV1beta1SupplementalGroupsStrategyOptions{static getAttributeTypeMap(){return PolicyV1beta1SupplementalGroupsStrategyOptions.attributeTypeMap}}PolicyV1beta1SupplementalGroupsStrategyOptions.discriminator=undefined;PolicyV1beta1SupplementalGroupsStrategyOptions.attributeTypeMap=[{name:"ranges",baseName:"ranges",type:"Array"},{name:"rule",baseName:"rule",type:"string"}];t.PolicyV1beta1SupplementalGroupsStrategyOptions=PolicyV1beta1SupplementalGroupsStrategyOptions;class RuntimeRawExtension{static getAttributeTypeMap(){return RuntimeRawExtension.attributeTypeMap}}RuntimeRawExtension.discriminator=undefined;RuntimeRawExtension.attributeTypeMap=[{name:"raw",baseName:"Raw",type:"string"}];t.RuntimeRawExtension=RuntimeRawExtension;class V1APIGroup{static getAttributeTypeMap(){return V1APIGroup.attributeTypeMap}}V1APIGroup.discriminator=undefined;V1APIGroup.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"name",baseName:"name",type:"string"},{name:"preferredVersion",baseName:"preferredVersion",type:"V1GroupVersionForDiscovery"},{name:"serverAddressByClientCIDRs",baseName:"serverAddressByClientCIDRs",type:"Array"},{name:"versions",baseName:"versions",type:"Array"}];t.V1APIGroup=V1APIGroup;class V1APIGroupList{static getAttributeTypeMap(){return V1APIGroupList.attributeTypeMap}}V1APIGroupList.discriminator=undefined;V1APIGroupList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"groups",baseName:"groups",type:"Array"},{name:"kind",baseName:"kind",type:"string"}];t.V1APIGroupList=V1APIGroupList;class V1APIResource{static getAttributeTypeMap(){return V1APIResource.attributeTypeMap}}V1APIResource.discriminator=undefined;V1APIResource.attributeTypeMap=[{name:"categories",baseName:"categories",type:"Array"},{name:"group",baseName:"group",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"name",baseName:"name",type:"string"},{name:"namespaced",baseName:"namespaced",type:"boolean"},{name:"shortNames",baseName:"shortNames",type:"Array"},{name:"singularName",baseName:"singularName",type:"string"},{name:"verbs",baseName:"verbs",type:"Array"},{name:"version",baseName:"version",type:"string"}];t.V1APIResource=V1APIResource;class V1APIResourceList{static getAttributeTypeMap(){return V1APIResourceList.attributeTypeMap}}V1APIResourceList.discriminator=undefined;V1APIResourceList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"groupVersion",baseName:"groupVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"resources",baseName:"resources",type:"Array"}];t.V1APIResourceList=V1APIResourceList;class V1APIService{static getAttributeTypeMap(){return V1APIService.attributeTypeMap}}V1APIService.discriminator=undefined;V1APIService.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1APIServiceSpec"},{name:"status",baseName:"status",type:"V1APIServiceStatus"}];t.V1APIService=V1APIService;class V1APIServiceCondition{static getAttributeTypeMap(){return V1APIServiceCondition.attributeTypeMap}}V1APIServiceCondition.discriminator=undefined;V1APIServiceCondition.attributeTypeMap=[{name:"lastTransitionTime",baseName:"lastTransitionTime",type:"Date"},{name:"message",baseName:"message",type:"string"},{name:"reason",baseName:"reason",type:"string"},{name:"status",baseName:"status",type:"string"},{name:"type",baseName:"type",type:"string"}];t.V1APIServiceCondition=V1APIServiceCondition;class V1APIServiceList{static getAttributeTypeMap(){return V1APIServiceList.attributeTypeMap}}V1APIServiceList.discriminator=undefined;V1APIServiceList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1APIServiceList=V1APIServiceList;class V1APIServiceSpec{static getAttributeTypeMap(){return V1APIServiceSpec.attributeTypeMap}}V1APIServiceSpec.discriminator=undefined;V1APIServiceSpec.attributeTypeMap=[{name:"caBundle",baseName:"caBundle",type:"string"},{name:"group",baseName:"group",type:"string"},{name:"groupPriorityMinimum",baseName:"groupPriorityMinimum",type:"number"},{name:"insecureSkipTLSVerify",baseName:"insecureSkipTLSVerify",type:"boolean"},{name:"service",baseName:"service",type:"V1ServiceReference"},{name:"version",baseName:"version",type:"string"},{name:"versionPriority",baseName:"versionPriority",type:"number"}];t.V1APIServiceSpec=V1APIServiceSpec;class V1APIServiceStatus{static getAttributeTypeMap(){return V1APIServiceStatus.attributeTypeMap}}V1APIServiceStatus.discriminator=undefined;V1APIServiceStatus.attributeTypeMap=[{name:"conditions",baseName:"conditions",type:"Array"}];t.V1APIServiceStatus=V1APIServiceStatus;class V1APIVersions{static getAttributeTypeMap(){return V1APIVersions.attributeTypeMap}}V1APIVersions.discriminator=undefined;V1APIVersions.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"serverAddressByClientCIDRs",baseName:"serverAddressByClientCIDRs",type:"Array"},{name:"versions",baseName:"versions",type:"Array"}];t.V1APIVersions=V1APIVersions;class V1AWSElasticBlockStoreVolumeSource{static getAttributeTypeMap(){return V1AWSElasticBlockStoreVolumeSource.attributeTypeMap}}V1AWSElasticBlockStoreVolumeSource.discriminator=undefined;V1AWSElasticBlockStoreVolumeSource.attributeTypeMap=[{name:"fsType",baseName:"fsType",type:"string"},{name:"partition",baseName:"partition",type:"number"},{name:"readOnly",baseName:"readOnly",type:"boolean"},{name:"volumeID",baseName:"volumeID",type:"string"}];t.V1AWSElasticBlockStoreVolumeSource=V1AWSElasticBlockStoreVolumeSource;class V1Affinity{static getAttributeTypeMap(){return V1Affinity.attributeTypeMap}}V1Affinity.discriminator=undefined;V1Affinity.attributeTypeMap=[{name:"nodeAffinity",baseName:"nodeAffinity",type:"V1NodeAffinity"},{name:"podAffinity",baseName:"podAffinity",type:"V1PodAffinity"},{name:"podAntiAffinity",baseName:"podAntiAffinity",type:"V1PodAntiAffinity"}];t.V1Affinity=V1Affinity;class V1AggregationRule{static getAttributeTypeMap(){return V1AggregationRule.attributeTypeMap}}V1AggregationRule.discriminator=undefined;V1AggregationRule.attributeTypeMap=[{name:"clusterRoleSelectors",baseName:"clusterRoleSelectors",type:"Array"}];t.V1AggregationRule=V1AggregationRule;class V1AttachedVolume{static getAttributeTypeMap(){return V1AttachedVolume.attributeTypeMap}}V1AttachedVolume.discriminator=undefined;V1AttachedVolume.attributeTypeMap=[{name:"devicePath",baseName:"devicePath",type:"string"},{name:"name",baseName:"name",type:"string"}];t.V1AttachedVolume=V1AttachedVolume;class V1AzureDiskVolumeSource{static getAttributeTypeMap(){return V1AzureDiskVolumeSource.attributeTypeMap}}V1AzureDiskVolumeSource.discriminator=undefined;V1AzureDiskVolumeSource.attributeTypeMap=[{name:"cachingMode",baseName:"cachingMode",type:"string"},{name:"diskName",baseName:"diskName",type:"string"},{name:"diskURI",baseName:"diskURI",type:"string"},{name:"fsType",baseName:"fsType",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"readOnly",baseName:"readOnly",type:"boolean"}];t.V1AzureDiskVolumeSource=V1AzureDiskVolumeSource;class V1AzureFilePersistentVolumeSource{static getAttributeTypeMap(){return V1AzureFilePersistentVolumeSource.attributeTypeMap}}V1AzureFilePersistentVolumeSource.discriminator=undefined;V1AzureFilePersistentVolumeSource.attributeTypeMap=[{name:"readOnly",baseName:"readOnly",type:"boolean"},{name:"secretName",baseName:"secretName",type:"string"},{name:"secretNamespace",baseName:"secretNamespace",type:"string"},{name:"shareName",baseName:"shareName",type:"string"}];t.V1AzureFilePersistentVolumeSource=V1AzureFilePersistentVolumeSource;class V1AzureFileVolumeSource{static getAttributeTypeMap(){return V1AzureFileVolumeSource.attributeTypeMap}}V1AzureFileVolumeSource.discriminator=undefined;V1AzureFileVolumeSource.attributeTypeMap=[{name:"readOnly",baseName:"readOnly",type:"boolean"},{name:"secretName",baseName:"secretName",type:"string"},{name:"shareName",baseName:"shareName",type:"string"}];t.V1AzureFileVolumeSource=V1AzureFileVolumeSource;class V1Binding{static getAttributeTypeMap(){return V1Binding.attributeTypeMap}}V1Binding.discriminator=undefined;V1Binding.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"target",baseName:"target",type:"V1ObjectReference"}];t.V1Binding=V1Binding;class V1CSIPersistentVolumeSource{static getAttributeTypeMap(){return V1CSIPersistentVolumeSource.attributeTypeMap}}V1CSIPersistentVolumeSource.discriminator=undefined;V1CSIPersistentVolumeSource.attributeTypeMap=[{name:"controllerPublishSecretRef",baseName:"controllerPublishSecretRef",type:"V1SecretReference"},{name:"driver",baseName:"driver",type:"string"},{name:"fsType",baseName:"fsType",type:"string"},{name:"nodePublishSecretRef",baseName:"nodePublishSecretRef",type:"V1SecretReference"},{name:"nodeStageSecretRef",baseName:"nodeStageSecretRef",type:"V1SecretReference"},{name:"readOnly",baseName:"readOnly",type:"boolean"},{name:"volumeAttributes",baseName:"volumeAttributes",type:"{ [key: string]: string; }"},{name:"volumeHandle",baseName:"volumeHandle",type:"string"}];t.V1CSIPersistentVolumeSource=V1CSIPersistentVolumeSource;class V1Capabilities{static getAttributeTypeMap(){return V1Capabilities.attributeTypeMap}}V1Capabilities.discriminator=undefined;V1Capabilities.attributeTypeMap=[{name:"add",baseName:"add",type:"Array"},{name:"drop",baseName:"drop",type:"Array"}];t.V1Capabilities=V1Capabilities;class V1CephFSPersistentVolumeSource{static getAttributeTypeMap(){return V1CephFSPersistentVolumeSource.attributeTypeMap}}V1CephFSPersistentVolumeSource.discriminator=undefined;V1CephFSPersistentVolumeSource.attributeTypeMap=[{name:"monitors",baseName:"monitors",type:"Array"},{name:"path",baseName:"path",type:"string"},{name:"readOnly",baseName:"readOnly",type:"boolean"},{name:"secretFile",baseName:"secretFile",type:"string"},{name:"secretRef",baseName:"secretRef",type:"V1SecretReference"},{name:"user",baseName:"user",type:"string"}];t.V1CephFSPersistentVolumeSource=V1CephFSPersistentVolumeSource;class V1CephFSVolumeSource{static getAttributeTypeMap(){return V1CephFSVolumeSource.attributeTypeMap}}V1CephFSVolumeSource.discriminator=undefined;V1CephFSVolumeSource.attributeTypeMap=[{name:"monitors",baseName:"monitors",type:"Array"},{name:"path",baseName:"path",type:"string"},{name:"readOnly",baseName:"readOnly",type:"boolean"},{name:"secretFile",baseName:"secretFile",type:"string"},{name:"secretRef",baseName:"secretRef",type:"V1LocalObjectReference"},{name:"user",baseName:"user",type:"string"}];t.V1CephFSVolumeSource=V1CephFSVolumeSource;class V1CinderPersistentVolumeSource{static getAttributeTypeMap(){return V1CinderPersistentVolumeSource.attributeTypeMap}}V1CinderPersistentVolumeSource.discriminator=undefined;V1CinderPersistentVolumeSource.attributeTypeMap=[{name:"fsType",baseName:"fsType",type:"string"},{name:"readOnly",baseName:"readOnly",type:"boolean"},{name:"secretRef",baseName:"secretRef",type:"V1SecretReference"},{name:"volumeID",baseName:"volumeID",type:"string"}];t.V1CinderPersistentVolumeSource=V1CinderPersistentVolumeSource;class V1CinderVolumeSource{static getAttributeTypeMap(){return V1CinderVolumeSource.attributeTypeMap}}V1CinderVolumeSource.discriminator=undefined;V1CinderVolumeSource.attributeTypeMap=[{name:"fsType",baseName:"fsType",type:"string"},{name:"readOnly",baseName:"readOnly",type:"boolean"},{name:"secretRef",baseName:"secretRef",type:"V1LocalObjectReference"},{name:"volumeID",baseName:"volumeID",type:"string"}];t.V1CinderVolumeSource=V1CinderVolumeSource;class V1ClientIPConfig{static getAttributeTypeMap(){return V1ClientIPConfig.attributeTypeMap}}V1ClientIPConfig.discriminator=undefined;V1ClientIPConfig.attributeTypeMap=[{name:"timeoutSeconds",baseName:"timeoutSeconds",type:"number"}];t.V1ClientIPConfig=V1ClientIPConfig;class V1ClusterRole{static getAttributeTypeMap(){return V1ClusterRole.attributeTypeMap}}V1ClusterRole.discriminator=undefined;V1ClusterRole.attributeTypeMap=[{name:"aggregationRule",baseName:"aggregationRule",type:"V1AggregationRule"},{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"rules",baseName:"rules",type:"Array"}];t.V1ClusterRole=V1ClusterRole;class V1ClusterRoleBinding{static getAttributeTypeMap(){return V1ClusterRoleBinding.attributeTypeMap}}V1ClusterRoleBinding.discriminator=undefined;V1ClusterRoleBinding.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"roleRef",baseName:"roleRef",type:"V1RoleRef"},{name:"subjects",baseName:"subjects",type:"Array"}];t.V1ClusterRoleBinding=V1ClusterRoleBinding;class V1ClusterRoleBindingList{static getAttributeTypeMap(){return V1ClusterRoleBindingList.attributeTypeMap}}V1ClusterRoleBindingList.discriminator=undefined;V1ClusterRoleBindingList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1ClusterRoleBindingList=V1ClusterRoleBindingList;class V1ClusterRoleList{static getAttributeTypeMap(){return V1ClusterRoleList.attributeTypeMap}}V1ClusterRoleList.discriminator=undefined;V1ClusterRoleList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1ClusterRoleList=V1ClusterRoleList;class V1ComponentCondition{static getAttributeTypeMap(){return V1ComponentCondition.attributeTypeMap}}V1ComponentCondition.discriminator=undefined;V1ComponentCondition.attributeTypeMap=[{name:"error",baseName:"error",type:"string"},{name:"message",baseName:"message",type:"string"},{name:"status",baseName:"status",type:"string"},{name:"type",baseName:"type",type:"string"}];t.V1ComponentCondition=V1ComponentCondition;class V1ComponentStatus{static getAttributeTypeMap(){return V1ComponentStatus.attributeTypeMap}}V1ComponentStatus.discriminator=undefined;V1ComponentStatus.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"conditions",baseName:"conditions",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"}];t.V1ComponentStatus=V1ComponentStatus;class V1ComponentStatusList{static getAttributeTypeMap(){return V1ComponentStatusList.attributeTypeMap}}V1ComponentStatusList.discriminator=undefined;V1ComponentStatusList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1ComponentStatusList=V1ComponentStatusList;class V1ConfigMap{static getAttributeTypeMap(){return V1ConfigMap.attributeTypeMap}}V1ConfigMap.discriminator=undefined;V1ConfigMap.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"binaryData",baseName:"binaryData",type:"{ [key: string]: string; }"},{name:"data",baseName:"data",type:"{ [key: string]: string; }"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"}];t.V1ConfigMap=V1ConfigMap;class V1ConfigMapEnvSource{static getAttributeTypeMap(){return V1ConfigMapEnvSource.attributeTypeMap}}V1ConfigMapEnvSource.discriminator=undefined;V1ConfigMapEnvSource.attributeTypeMap=[{name:"name",baseName:"name",type:"string"},{name:"optional",baseName:"optional",type:"boolean"}];t.V1ConfigMapEnvSource=V1ConfigMapEnvSource;class V1ConfigMapKeySelector{static getAttributeTypeMap(){return V1ConfigMapKeySelector.attributeTypeMap}}V1ConfigMapKeySelector.discriminator=undefined;V1ConfigMapKeySelector.attributeTypeMap=[{name:"key",baseName:"key",type:"string"},{name:"name",baseName:"name",type:"string"},{name:"optional",baseName:"optional",type:"boolean"}];t.V1ConfigMapKeySelector=V1ConfigMapKeySelector;class V1ConfigMapList{static getAttributeTypeMap(){return V1ConfigMapList.attributeTypeMap}}V1ConfigMapList.discriminator=undefined;V1ConfigMapList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1ConfigMapList=V1ConfigMapList;class V1ConfigMapNodeConfigSource{static getAttributeTypeMap(){return V1ConfigMapNodeConfigSource.attributeTypeMap}}V1ConfigMapNodeConfigSource.discriminator=undefined;V1ConfigMapNodeConfigSource.attributeTypeMap=[{name:"kubeletConfigKey",baseName:"kubeletConfigKey",type:"string"},{name:"name",baseName:"name",type:"string"},{name:"namespace",baseName:"namespace",type:"string"},{name:"resourceVersion",baseName:"resourceVersion",type:"string"},{name:"uid",baseName:"uid",type:"string"}];t.V1ConfigMapNodeConfigSource=V1ConfigMapNodeConfigSource;class V1ConfigMapProjection{static getAttributeTypeMap(){return V1ConfigMapProjection.attributeTypeMap}}V1ConfigMapProjection.discriminator=undefined;V1ConfigMapProjection.attributeTypeMap=[{name:"items",baseName:"items",type:"Array"},{name:"name",baseName:"name",type:"string"},{name:"optional",baseName:"optional",type:"boolean"}];t.V1ConfigMapProjection=V1ConfigMapProjection;class V1ConfigMapVolumeSource{static getAttributeTypeMap(){return V1ConfigMapVolumeSource.attributeTypeMap}}V1ConfigMapVolumeSource.discriminator=undefined;V1ConfigMapVolumeSource.attributeTypeMap=[{name:"defaultMode",baseName:"defaultMode",type:"number"},{name:"items",baseName:"items",type:"Array"},{name:"name",baseName:"name",type:"string"},{name:"optional",baseName:"optional",type:"boolean"}];t.V1ConfigMapVolumeSource=V1ConfigMapVolumeSource;class V1Container{static getAttributeTypeMap(){return V1Container.attributeTypeMap}}V1Container.discriminator=undefined;V1Container.attributeTypeMap=[{name:"args",baseName:"args",type:"Array"},{name:"command",baseName:"command",type:"Array"},{name:"env",baseName:"env",type:"Array"},{name:"envFrom",baseName:"envFrom",type:"Array"},{name:"image",baseName:"image",type:"string"},{name:"imagePullPolicy",baseName:"imagePullPolicy",type:"string"},{name:"lifecycle",baseName:"lifecycle",type:"V1Lifecycle"},{name:"livenessProbe",baseName:"livenessProbe",type:"V1Probe"},{name:"name",baseName:"name",type:"string"},{name:"ports",baseName:"ports",type:"Array"},{name:"readinessProbe",baseName:"readinessProbe",type:"V1Probe"},{name:"resources",baseName:"resources",type:"V1ResourceRequirements"},{name:"securityContext",baseName:"securityContext",type:"V1SecurityContext"},{name:"stdin",baseName:"stdin",type:"boolean"},{name:"stdinOnce",baseName:"stdinOnce",type:"boolean"},{name:"terminationMessagePath",baseName:"terminationMessagePath",type:"string"},{name:"terminationMessagePolicy",baseName:"terminationMessagePolicy",type:"string"},{name:"tty",baseName:"tty",type:"boolean"},{name:"volumeDevices",baseName:"volumeDevices",type:"Array"},{name:"volumeMounts",baseName:"volumeMounts",type:"Array"},{name:"workingDir",baseName:"workingDir",type:"string"}];t.V1Container=V1Container;class V1ContainerImage{static getAttributeTypeMap(){return V1ContainerImage.attributeTypeMap}}V1ContainerImage.discriminator=undefined;V1ContainerImage.attributeTypeMap=[{name:"names",baseName:"names",type:"Array"},{name:"sizeBytes",baseName:"sizeBytes",type:"number"}];t.V1ContainerImage=V1ContainerImage;class V1ContainerPort{static getAttributeTypeMap(){return V1ContainerPort.attributeTypeMap}}V1ContainerPort.discriminator=undefined;V1ContainerPort.attributeTypeMap=[{name:"containerPort",baseName:"containerPort",type:"number"},{name:"hostIP",baseName:"hostIP",type:"string"},{name:"hostPort",baseName:"hostPort",type:"number"},{name:"name",baseName:"name",type:"string"},{name:"protocol",baseName:"protocol",type:"string"}];t.V1ContainerPort=V1ContainerPort;class V1ContainerState{static getAttributeTypeMap(){return V1ContainerState.attributeTypeMap}}V1ContainerState.discriminator=undefined;V1ContainerState.attributeTypeMap=[{name:"running",baseName:"running",type:"V1ContainerStateRunning"},{name:"terminated",baseName:"terminated",type:"V1ContainerStateTerminated"},{name:"waiting",baseName:"waiting",type:"V1ContainerStateWaiting"}];t.V1ContainerState=V1ContainerState;class V1ContainerStateRunning{static getAttributeTypeMap(){return V1ContainerStateRunning.attributeTypeMap}}V1ContainerStateRunning.discriminator=undefined;V1ContainerStateRunning.attributeTypeMap=[{name:"startedAt",baseName:"startedAt",type:"Date"}];t.V1ContainerStateRunning=V1ContainerStateRunning;class V1ContainerStateTerminated{static getAttributeTypeMap(){return V1ContainerStateTerminated.attributeTypeMap}}V1ContainerStateTerminated.discriminator=undefined;V1ContainerStateTerminated.attributeTypeMap=[{name:"containerID",baseName:"containerID",type:"string"},{name:"exitCode",baseName:"exitCode",type:"number"},{name:"finishedAt",baseName:"finishedAt",type:"Date"},{name:"message",baseName:"message",type:"string"},{name:"reason",baseName:"reason",type:"string"},{name:"signal",baseName:"signal",type:"number"},{name:"startedAt",baseName:"startedAt",type:"Date"}];t.V1ContainerStateTerminated=V1ContainerStateTerminated;class V1ContainerStateWaiting{static getAttributeTypeMap(){return V1ContainerStateWaiting.attributeTypeMap}}V1ContainerStateWaiting.discriminator=undefined;V1ContainerStateWaiting.attributeTypeMap=[{name:"message",baseName:"message",type:"string"},{name:"reason",baseName:"reason",type:"string"}];t.V1ContainerStateWaiting=V1ContainerStateWaiting;class V1ContainerStatus{static getAttributeTypeMap(){return V1ContainerStatus.attributeTypeMap}}V1ContainerStatus.discriminator=undefined;V1ContainerStatus.attributeTypeMap=[{name:"containerID",baseName:"containerID",type:"string"},{name:"image",baseName:"image",type:"string"},{name:"imageID",baseName:"imageID",type:"string"},{name:"lastState",baseName:"lastState",type:"V1ContainerState"},{name:"name",baseName:"name",type:"string"},{name:"ready",baseName:"ready",type:"boolean"},{name:"restartCount",baseName:"restartCount",type:"number"},{name:"state",baseName:"state",type:"V1ContainerState"}];t.V1ContainerStatus=V1ContainerStatus;class V1ControllerRevision{static getAttributeTypeMap(){return V1ControllerRevision.attributeTypeMap}}V1ControllerRevision.discriminator=undefined;V1ControllerRevision.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"data",baseName:"data",type:"RuntimeRawExtension"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"revision",baseName:"revision",type:"number"}];t.V1ControllerRevision=V1ControllerRevision;class V1ControllerRevisionList{static getAttributeTypeMap(){return V1ControllerRevisionList.attributeTypeMap}}V1ControllerRevisionList.discriminator=undefined;V1ControllerRevisionList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1ControllerRevisionList=V1ControllerRevisionList;class V1CrossVersionObjectReference{static getAttributeTypeMap(){return V1CrossVersionObjectReference.attributeTypeMap}}V1CrossVersionObjectReference.discriminator=undefined;V1CrossVersionObjectReference.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"name",baseName:"name",type:"string"}];t.V1CrossVersionObjectReference=V1CrossVersionObjectReference;class V1DaemonEndpoint{static getAttributeTypeMap(){return V1DaemonEndpoint.attributeTypeMap}}V1DaemonEndpoint.discriminator=undefined;V1DaemonEndpoint.attributeTypeMap=[{name:"port",baseName:"Port",type:"number"}];t.V1DaemonEndpoint=V1DaemonEndpoint;class V1DaemonSet{static getAttributeTypeMap(){return V1DaemonSet.attributeTypeMap}}V1DaemonSet.discriminator=undefined;V1DaemonSet.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1DaemonSetSpec"},{name:"status",baseName:"status",type:"V1DaemonSetStatus"}];t.V1DaemonSet=V1DaemonSet;class V1DaemonSetCondition{static getAttributeTypeMap(){return V1DaemonSetCondition.attributeTypeMap}}V1DaemonSetCondition.discriminator=undefined;V1DaemonSetCondition.attributeTypeMap=[{name:"lastTransitionTime",baseName:"lastTransitionTime",type:"Date"},{name:"message",baseName:"message",type:"string"},{name:"reason",baseName:"reason",type:"string"},{name:"status",baseName:"status",type:"string"},{name:"type",baseName:"type",type:"string"}];t.V1DaemonSetCondition=V1DaemonSetCondition;class V1DaemonSetList{static getAttributeTypeMap(){return V1DaemonSetList.attributeTypeMap}}V1DaemonSetList.discriminator=undefined;V1DaemonSetList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1DaemonSetList=V1DaemonSetList;class V1DaemonSetSpec{static getAttributeTypeMap(){return V1DaemonSetSpec.attributeTypeMap}}V1DaemonSetSpec.discriminator=undefined;V1DaemonSetSpec.attributeTypeMap=[{name:"minReadySeconds",baseName:"minReadySeconds",type:"number"},{name:"revisionHistoryLimit",baseName:"revisionHistoryLimit",type:"number"},{name:"selector",baseName:"selector",type:"V1LabelSelector"},{name:"template",baseName:"template",type:"V1PodTemplateSpec"},{name:"updateStrategy",baseName:"updateStrategy",type:"V1DaemonSetUpdateStrategy"}];t.V1DaemonSetSpec=V1DaemonSetSpec;class V1DaemonSetStatus{static getAttributeTypeMap(){return V1DaemonSetStatus.attributeTypeMap}}V1DaemonSetStatus.discriminator=undefined;V1DaemonSetStatus.attributeTypeMap=[{name:"collisionCount",baseName:"collisionCount",type:"number"},{name:"conditions",baseName:"conditions",type:"Array"},{name:"currentNumberScheduled",baseName:"currentNumberScheduled",type:"number"},{name:"desiredNumberScheduled",baseName:"desiredNumberScheduled",type:"number"},{name:"numberAvailable",baseName:"numberAvailable",type:"number"},{name:"numberMisscheduled",baseName:"numberMisscheduled",type:"number"},{name:"numberReady",baseName:"numberReady",type:"number"},{name:"numberUnavailable",baseName:"numberUnavailable",type:"number"},{name:"observedGeneration",baseName:"observedGeneration",type:"number"},{name:"updatedNumberScheduled",baseName:"updatedNumberScheduled",type:"number"}];t.V1DaemonSetStatus=V1DaemonSetStatus;class V1DaemonSetUpdateStrategy{static getAttributeTypeMap(){return V1DaemonSetUpdateStrategy.attributeTypeMap}}V1DaemonSetUpdateStrategy.discriminator=undefined;V1DaemonSetUpdateStrategy.attributeTypeMap=[{name:"rollingUpdate",baseName:"rollingUpdate",type:"V1RollingUpdateDaemonSet"},{name:"type",baseName:"type",type:"string"}];t.V1DaemonSetUpdateStrategy=V1DaemonSetUpdateStrategy;class V1DeleteOptions{static getAttributeTypeMap(){return V1DeleteOptions.attributeTypeMap}}V1DeleteOptions.discriminator=undefined;V1DeleteOptions.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"dryRun",baseName:"dryRun",type:"Array"},{name:"gracePeriodSeconds",baseName:"gracePeriodSeconds",type:"number"},{name:"kind",baseName:"kind",type:"string"},{name:"orphanDependents",baseName:"orphanDependents",type:"boolean"},{name:"preconditions",baseName:"preconditions",type:"V1Preconditions"},{name:"propagationPolicy",baseName:"propagationPolicy",type:"string"}];t.V1DeleteOptions=V1DeleteOptions;class V1Deployment{static getAttributeTypeMap(){return V1Deployment.attributeTypeMap}}V1Deployment.discriminator=undefined;V1Deployment.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1DeploymentSpec"},{name:"status",baseName:"status",type:"V1DeploymentStatus"}];t.V1Deployment=V1Deployment;class V1DeploymentCondition{static getAttributeTypeMap(){return V1DeploymentCondition.attributeTypeMap}}V1DeploymentCondition.discriminator=undefined;V1DeploymentCondition.attributeTypeMap=[{name:"lastTransitionTime",baseName:"lastTransitionTime",type:"Date"},{name:"lastUpdateTime",baseName:"lastUpdateTime",type:"Date"},{name:"message",baseName:"message",type:"string"},{name:"reason",baseName:"reason",type:"string"},{name:"status",baseName:"status",type:"string"},{name:"type",baseName:"type",type:"string"}];t.V1DeploymentCondition=V1DeploymentCondition;class V1DeploymentList{static getAttributeTypeMap(){return V1DeploymentList.attributeTypeMap}}V1DeploymentList.discriminator=undefined;V1DeploymentList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1DeploymentList=V1DeploymentList;class V1DeploymentSpec{static getAttributeTypeMap(){return V1DeploymentSpec.attributeTypeMap}}V1DeploymentSpec.discriminator=undefined;V1DeploymentSpec.attributeTypeMap=[{name:"minReadySeconds",baseName:"minReadySeconds",type:"number"},{name:"paused",baseName:"paused",type:"boolean"},{name:"progressDeadlineSeconds",baseName:"progressDeadlineSeconds",type:"number"},{name:"replicas",baseName:"replicas",type:"number"},{name:"revisionHistoryLimit",baseName:"revisionHistoryLimit",type:"number"},{name:"selector",baseName:"selector",type:"V1LabelSelector"},{name:"strategy",baseName:"strategy",type:"V1DeploymentStrategy"},{name:"template",baseName:"template",type:"V1PodTemplateSpec"}];t.V1DeploymentSpec=V1DeploymentSpec;class V1DeploymentStatus{static getAttributeTypeMap(){return V1DeploymentStatus.attributeTypeMap}}V1DeploymentStatus.discriminator=undefined;V1DeploymentStatus.attributeTypeMap=[{name:"availableReplicas",baseName:"availableReplicas",type:"number"},{name:"collisionCount",baseName:"collisionCount",type:"number"},{name:"conditions",baseName:"conditions",type:"Array"},{name:"observedGeneration",baseName:"observedGeneration",type:"number"},{name:"readyReplicas",baseName:"readyReplicas",type:"number"},{name:"replicas",baseName:"replicas",type:"number"},{name:"unavailableReplicas",baseName:"unavailableReplicas",type:"number"},{name:"updatedReplicas",baseName:"updatedReplicas",type:"number"}];t.V1DeploymentStatus=V1DeploymentStatus;class V1DeploymentStrategy{static getAttributeTypeMap(){return V1DeploymentStrategy.attributeTypeMap}}V1DeploymentStrategy.discriminator=undefined;V1DeploymentStrategy.attributeTypeMap=[{name:"rollingUpdate",baseName:"rollingUpdate",type:"V1RollingUpdateDeployment"},{name:"type",baseName:"type",type:"string"}];t.V1DeploymentStrategy=V1DeploymentStrategy;class V1DownwardAPIProjection{static getAttributeTypeMap(){return V1DownwardAPIProjection.attributeTypeMap}}V1DownwardAPIProjection.discriminator=undefined;V1DownwardAPIProjection.attributeTypeMap=[{name:"items",baseName:"items",type:"Array"}];t.V1DownwardAPIProjection=V1DownwardAPIProjection;class V1DownwardAPIVolumeFile{static getAttributeTypeMap(){return V1DownwardAPIVolumeFile.attributeTypeMap}}V1DownwardAPIVolumeFile.discriminator=undefined;V1DownwardAPIVolumeFile.attributeTypeMap=[{name:"fieldRef",baseName:"fieldRef",type:"V1ObjectFieldSelector"},{name:"mode",baseName:"mode",type:"number"},{name:"path",baseName:"path",type:"string"},{name:"resourceFieldRef",baseName:"resourceFieldRef",type:"V1ResourceFieldSelector"}];t.V1DownwardAPIVolumeFile=V1DownwardAPIVolumeFile;class V1DownwardAPIVolumeSource{static getAttributeTypeMap(){return V1DownwardAPIVolumeSource.attributeTypeMap}}V1DownwardAPIVolumeSource.discriminator=undefined;V1DownwardAPIVolumeSource.attributeTypeMap=[{name:"defaultMode",baseName:"defaultMode",type:"number"},{name:"items",baseName:"items",type:"Array"}];t.V1DownwardAPIVolumeSource=V1DownwardAPIVolumeSource;class V1EmptyDirVolumeSource{static getAttributeTypeMap(){return V1EmptyDirVolumeSource.attributeTypeMap}}V1EmptyDirVolumeSource.discriminator=undefined;V1EmptyDirVolumeSource.attributeTypeMap=[{name:"medium",baseName:"medium",type:"string"},{name:"sizeLimit",baseName:"sizeLimit",type:"string"}];t.V1EmptyDirVolumeSource=V1EmptyDirVolumeSource;class V1EndpointAddress{static getAttributeTypeMap(){return V1EndpointAddress.attributeTypeMap}}V1EndpointAddress.discriminator=undefined;V1EndpointAddress.attributeTypeMap=[{name:"hostname",baseName:"hostname",type:"string"},{name:"ip",baseName:"ip",type:"string"},{name:"nodeName",baseName:"nodeName",type:"string"},{name:"targetRef",baseName:"targetRef",type:"V1ObjectReference"}];t.V1EndpointAddress=V1EndpointAddress;class V1EndpointPort{static getAttributeTypeMap(){return V1EndpointPort.attributeTypeMap}}V1EndpointPort.discriminator=undefined;V1EndpointPort.attributeTypeMap=[{name:"name",baseName:"name",type:"string"},{name:"port",baseName:"port",type:"number"},{name:"protocol",baseName:"protocol",type:"string"}];t.V1EndpointPort=V1EndpointPort;class V1EndpointSubset{static getAttributeTypeMap(){return V1EndpointSubset.attributeTypeMap}}V1EndpointSubset.discriminator=undefined;V1EndpointSubset.attributeTypeMap=[{name:"addresses",baseName:"addresses",type:"Array"},{name:"notReadyAddresses",baseName:"notReadyAddresses",type:"Array"},{name:"ports",baseName:"ports",type:"Array"}];t.V1EndpointSubset=V1EndpointSubset;class V1Endpoints{static getAttributeTypeMap(){return V1Endpoints.attributeTypeMap}}V1Endpoints.discriminator=undefined;V1Endpoints.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"subsets",baseName:"subsets",type:"Array"}];t.V1Endpoints=V1Endpoints;class V1EndpointsList{static getAttributeTypeMap(){return V1EndpointsList.attributeTypeMap}}V1EndpointsList.discriminator=undefined;V1EndpointsList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1EndpointsList=V1EndpointsList;class V1EnvFromSource{static getAttributeTypeMap(){return V1EnvFromSource.attributeTypeMap}}V1EnvFromSource.discriminator=undefined;V1EnvFromSource.attributeTypeMap=[{name:"configMapRef",baseName:"configMapRef",type:"V1ConfigMapEnvSource"},{name:"prefix",baseName:"prefix",type:"string"},{name:"secretRef",baseName:"secretRef",type:"V1SecretEnvSource"}];t.V1EnvFromSource=V1EnvFromSource;class V1EnvVar{static getAttributeTypeMap(){return V1EnvVar.attributeTypeMap}}V1EnvVar.discriminator=undefined;V1EnvVar.attributeTypeMap=[{name:"name",baseName:"name",type:"string"},{name:"value",baseName:"value",type:"string"},{name:"valueFrom",baseName:"valueFrom",type:"V1EnvVarSource"}];t.V1EnvVar=V1EnvVar;class V1EnvVarSource{static getAttributeTypeMap(){return V1EnvVarSource.attributeTypeMap}}V1EnvVarSource.discriminator=undefined;V1EnvVarSource.attributeTypeMap=[{name:"configMapKeyRef",baseName:"configMapKeyRef",type:"V1ConfigMapKeySelector"},{name:"fieldRef",baseName:"fieldRef",type:"V1ObjectFieldSelector"},{name:"resourceFieldRef",baseName:"resourceFieldRef",type:"V1ResourceFieldSelector"},{name:"secretKeyRef",baseName:"secretKeyRef",type:"V1SecretKeySelector"}];t.V1EnvVarSource=V1EnvVarSource;class V1Event{static getAttributeTypeMap(){return V1Event.attributeTypeMap}}V1Event.discriminator=undefined;V1Event.attributeTypeMap=[{name:"action",baseName:"action",type:"string"},{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"count",baseName:"count",type:"number"},{name:"eventTime",baseName:"eventTime",type:"Date"},{name:"firstTimestamp",baseName:"firstTimestamp",type:"Date"},{name:"involvedObject",baseName:"involvedObject",type:"V1ObjectReference"},{name:"kind",baseName:"kind",type:"string"},{name:"lastTimestamp",baseName:"lastTimestamp",type:"Date"},{name:"message",baseName:"message",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"reason",baseName:"reason",type:"string"},{name:"related",baseName:"related",type:"V1ObjectReference"},{name:"reportingComponent",baseName:"reportingComponent",type:"string"},{name:"reportingInstance",baseName:"reportingInstance",type:"string"},{name:"series",baseName:"series",type:"V1EventSeries"},{name:"source",baseName:"source",type:"V1EventSource"},{name:"type",baseName:"type",type:"string"}];t.V1Event=V1Event;class V1EventList{static getAttributeTypeMap(){return V1EventList.attributeTypeMap}}V1EventList.discriminator=undefined;V1EventList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1EventList=V1EventList;class V1EventSeries{static getAttributeTypeMap(){return V1EventSeries.attributeTypeMap}}V1EventSeries.discriminator=undefined;V1EventSeries.attributeTypeMap=[{name:"count",baseName:"count",type:"number"},{name:"lastObservedTime",baseName:"lastObservedTime",type:"Date"},{name:"state",baseName:"state",type:"string"}];t.V1EventSeries=V1EventSeries;class V1EventSource{static getAttributeTypeMap(){return V1EventSource.attributeTypeMap}}V1EventSource.discriminator=undefined;V1EventSource.attributeTypeMap=[{name:"component",baseName:"component",type:"string"},{name:"host",baseName:"host",type:"string"}];t.V1EventSource=V1EventSource;class V1ExecAction{static getAttributeTypeMap(){return V1ExecAction.attributeTypeMap}}V1ExecAction.discriminator=undefined;V1ExecAction.attributeTypeMap=[{name:"command",baseName:"command",type:"Array"}];t.V1ExecAction=V1ExecAction;class V1FCVolumeSource{static getAttributeTypeMap(){return V1FCVolumeSource.attributeTypeMap}}V1FCVolumeSource.discriminator=undefined;V1FCVolumeSource.attributeTypeMap=[{name:"fsType",baseName:"fsType",type:"string"},{name:"lun",baseName:"lun",type:"number"},{name:"readOnly",baseName:"readOnly",type:"boolean"},{name:"targetWWNs",baseName:"targetWWNs",type:"Array"},{name:"wwids",baseName:"wwids",type:"Array"}];t.V1FCVolumeSource=V1FCVolumeSource;class V1FlexPersistentVolumeSource{static getAttributeTypeMap(){return V1FlexPersistentVolumeSource.attributeTypeMap}}V1FlexPersistentVolumeSource.discriminator=undefined;V1FlexPersistentVolumeSource.attributeTypeMap=[{name:"driver",baseName:"driver",type:"string"},{name:"fsType",baseName:"fsType",type:"string"},{name:"options",baseName:"options",type:"{ [key: string]: string; }"},{name:"readOnly",baseName:"readOnly",type:"boolean"},{name:"secretRef",baseName:"secretRef",type:"V1SecretReference"}];t.V1FlexPersistentVolumeSource=V1FlexPersistentVolumeSource;class V1FlexVolumeSource{static getAttributeTypeMap(){return V1FlexVolumeSource.attributeTypeMap}}V1FlexVolumeSource.discriminator=undefined;V1FlexVolumeSource.attributeTypeMap=[{name:"driver",baseName:"driver",type:"string"},{name:"fsType",baseName:"fsType",type:"string"},{name:"options",baseName:"options",type:"{ [key: string]: string; }"},{name:"readOnly",baseName:"readOnly",type:"boolean"},{name:"secretRef",baseName:"secretRef",type:"V1LocalObjectReference"}];t.V1FlexVolumeSource=V1FlexVolumeSource;class V1FlockerVolumeSource{static getAttributeTypeMap(){return V1FlockerVolumeSource.attributeTypeMap}}V1FlockerVolumeSource.discriminator=undefined;V1FlockerVolumeSource.attributeTypeMap=[{name:"datasetName",baseName:"datasetName",type:"string"},{name:"datasetUUID",baseName:"datasetUUID",type:"string"}];t.V1FlockerVolumeSource=V1FlockerVolumeSource;class V1GCEPersistentDiskVolumeSource{static getAttributeTypeMap(){return V1GCEPersistentDiskVolumeSource.attributeTypeMap}}V1GCEPersistentDiskVolumeSource.discriminator=undefined;V1GCEPersistentDiskVolumeSource.attributeTypeMap=[{name:"fsType",baseName:"fsType",type:"string"},{name:"partition",baseName:"partition",type:"number"},{name:"pdName",baseName:"pdName",type:"string"},{name:"readOnly",baseName:"readOnly",type:"boolean"}];t.V1GCEPersistentDiskVolumeSource=V1GCEPersistentDiskVolumeSource;class V1GitRepoVolumeSource{static getAttributeTypeMap(){return V1GitRepoVolumeSource.attributeTypeMap}}V1GitRepoVolumeSource.discriminator=undefined;V1GitRepoVolumeSource.attributeTypeMap=[{name:"directory",baseName:"directory",type:"string"},{name:"repository",baseName:"repository",type:"string"},{name:"revision",baseName:"revision",type:"string"}];t.V1GitRepoVolumeSource=V1GitRepoVolumeSource;class V1GlusterfsPersistentVolumeSource{static getAttributeTypeMap(){return V1GlusterfsPersistentVolumeSource.attributeTypeMap}}V1GlusterfsPersistentVolumeSource.discriminator=undefined;V1GlusterfsPersistentVolumeSource.attributeTypeMap=[{name:"endpoints",baseName:"endpoints",type:"string"},{name:"endpointsNamespace",baseName:"endpointsNamespace",type:"string"},{name:"path",baseName:"path",type:"string"},{name:"readOnly",baseName:"readOnly",type:"boolean"}];t.V1GlusterfsPersistentVolumeSource=V1GlusterfsPersistentVolumeSource;class V1GlusterfsVolumeSource{static getAttributeTypeMap(){return V1GlusterfsVolumeSource.attributeTypeMap}}V1GlusterfsVolumeSource.discriminator=undefined;V1GlusterfsVolumeSource.attributeTypeMap=[{name:"endpoints",baseName:"endpoints",type:"string"},{name:"path",baseName:"path",type:"string"},{name:"readOnly",baseName:"readOnly",type:"boolean"}];t.V1GlusterfsVolumeSource=V1GlusterfsVolumeSource;class V1GroupVersionForDiscovery{static getAttributeTypeMap(){return V1GroupVersionForDiscovery.attributeTypeMap}}V1GroupVersionForDiscovery.discriminator=undefined;V1GroupVersionForDiscovery.attributeTypeMap=[{name:"groupVersion",baseName:"groupVersion",type:"string"},{name:"version",baseName:"version",type:"string"}];t.V1GroupVersionForDiscovery=V1GroupVersionForDiscovery;class V1HTTPGetAction{static getAttributeTypeMap(){return V1HTTPGetAction.attributeTypeMap}}V1HTTPGetAction.discriminator=undefined;V1HTTPGetAction.attributeTypeMap=[{name:"host",baseName:"host",type:"string"},{name:"httpHeaders",baseName:"httpHeaders",type:"Array"},{name:"path",baseName:"path",type:"string"},{name:"port",baseName:"port",type:"any"},{name:"scheme",baseName:"scheme",type:"string"}];t.V1HTTPGetAction=V1HTTPGetAction;class V1HTTPHeader{static getAttributeTypeMap(){return V1HTTPHeader.attributeTypeMap}}V1HTTPHeader.discriminator=undefined;V1HTTPHeader.attributeTypeMap=[{name:"name",baseName:"name",type:"string"},{name:"value",baseName:"value",type:"string"}];t.V1HTTPHeader=V1HTTPHeader;class V1Handler{static getAttributeTypeMap(){return V1Handler.attributeTypeMap}}V1Handler.discriminator=undefined;V1Handler.attributeTypeMap=[{name:"exec",baseName:"exec",type:"V1ExecAction"},{name:"httpGet",baseName:"httpGet",type:"V1HTTPGetAction"},{name:"tcpSocket",baseName:"tcpSocket",type:"V1TCPSocketAction"}];t.V1Handler=V1Handler;class V1HorizontalPodAutoscaler{static getAttributeTypeMap(){return V1HorizontalPodAutoscaler.attributeTypeMap}}V1HorizontalPodAutoscaler.discriminator=undefined;V1HorizontalPodAutoscaler.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1HorizontalPodAutoscalerSpec"},{name:"status",baseName:"status",type:"V1HorizontalPodAutoscalerStatus"}];t.V1HorizontalPodAutoscaler=V1HorizontalPodAutoscaler;class V1HorizontalPodAutoscalerList{static getAttributeTypeMap(){return V1HorizontalPodAutoscalerList.attributeTypeMap}}V1HorizontalPodAutoscalerList.discriminator=undefined;V1HorizontalPodAutoscalerList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1HorizontalPodAutoscalerList=V1HorizontalPodAutoscalerList;class V1HorizontalPodAutoscalerSpec{static getAttributeTypeMap(){return V1HorizontalPodAutoscalerSpec.attributeTypeMap}}V1HorizontalPodAutoscalerSpec.discriminator=undefined;V1HorizontalPodAutoscalerSpec.attributeTypeMap=[{name:"maxReplicas",baseName:"maxReplicas",type:"number"},{name:"minReplicas",baseName:"minReplicas",type:"number"},{name:"scaleTargetRef",baseName:"scaleTargetRef",type:"V1CrossVersionObjectReference"},{name:"targetCPUUtilizationPercentage",baseName:"targetCPUUtilizationPercentage",type:"number"}];t.V1HorizontalPodAutoscalerSpec=V1HorizontalPodAutoscalerSpec;class V1HorizontalPodAutoscalerStatus{static getAttributeTypeMap(){return V1HorizontalPodAutoscalerStatus.attributeTypeMap}}V1HorizontalPodAutoscalerStatus.discriminator=undefined;V1HorizontalPodAutoscalerStatus.attributeTypeMap=[{name:"currentCPUUtilizationPercentage",baseName:"currentCPUUtilizationPercentage",type:"number"},{name:"currentReplicas",baseName:"currentReplicas",type:"number"},{name:"desiredReplicas",baseName:"desiredReplicas",type:"number"},{name:"lastScaleTime",baseName:"lastScaleTime",type:"Date"},{name:"observedGeneration",baseName:"observedGeneration",type:"number"}];t.V1HorizontalPodAutoscalerStatus=V1HorizontalPodAutoscalerStatus;class V1HostAlias{static getAttributeTypeMap(){return V1HostAlias.attributeTypeMap}}V1HostAlias.discriminator=undefined;V1HostAlias.attributeTypeMap=[{name:"hostnames",baseName:"hostnames",type:"Array"},{name:"ip",baseName:"ip",type:"string"}];t.V1HostAlias=V1HostAlias;class V1HostPathVolumeSource{static getAttributeTypeMap(){return V1HostPathVolumeSource.attributeTypeMap}}V1HostPathVolumeSource.discriminator=undefined;V1HostPathVolumeSource.attributeTypeMap=[{name:"path",baseName:"path",type:"string"},{name:"type",baseName:"type",type:"string"}];t.V1HostPathVolumeSource=V1HostPathVolumeSource;class V1IPBlock{static getAttributeTypeMap(){return V1IPBlock.attributeTypeMap}}V1IPBlock.discriminator=undefined;V1IPBlock.attributeTypeMap=[{name:"cidr",baseName:"cidr",type:"string"},{name:"except",baseName:"except",type:"Array"}];t.V1IPBlock=V1IPBlock;class V1ISCSIPersistentVolumeSource{static getAttributeTypeMap(){return V1ISCSIPersistentVolumeSource.attributeTypeMap}}V1ISCSIPersistentVolumeSource.discriminator=undefined;V1ISCSIPersistentVolumeSource.attributeTypeMap=[{name:"chapAuthDiscovery",baseName:"chapAuthDiscovery",type:"boolean"},{name:"chapAuthSession",baseName:"chapAuthSession",type:"boolean"},{name:"fsType",baseName:"fsType",type:"string"},{name:"initiatorName",baseName:"initiatorName",type:"string"},{name:"iqn",baseName:"iqn",type:"string"},{name:"iscsiInterface",baseName:"iscsiInterface",type:"string"},{name:"lun",baseName:"lun",type:"number"},{name:"portals",baseName:"portals",type:"Array"},{name:"readOnly",baseName:"readOnly",type:"boolean"},{name:"secretRef",baseName:"secretRef",type:"V1SecretReference"},{name:"targetPortal",baseName:"targetPortal",type:"string"}];t.V1ISCSIPersistentVolumeSource=V1ISCSIPersistentVolumeSource;class V1ISCSIVolumeSource{static getAttributeTypeMap(){return V1ISCSIVolumeSource.attributeTypeMap}}V1ISCSIVolumeSource.discriminator=undefined;V1ISCSIVolumeSource.attributeTypeMap=[{name:"chapAuthDiscovery",baseName:"chapAuthDiscovery",type:"boolean"},{name:"chapAuthSession",baseName:"chapAuthSession",type:"boolean"},{name:"fsType",baseName:"fsType",type:"string"},{name:"initiatorName",baseName:"initiatorName",type:"string"},{name:"iqn",baseName:"iqn",type:"string"},{name:"iscsiInterface",baseName:"iscsiInterface",type:"string"},{name:"lun",baseName:"lun",type:"number"},{name:"portals",baseName:"portals",type:"Array"},{name:"readOnly",baseName:"readOnly",type:"boolean"},{name:"secretRef",baseName:"secretRef",type:"V1LocalObjectReference"},{name:"targetPortal",baseName:"targetPortal",type:"string"}];t.V1ISCSIVolumeSource=V1ISCSIVolumeSource;class V1Initializer{static getAttributeTypeMap(){return V1Initializer.attributeTypeMap}}V1Initializer.discriminator=undefined;V1Initializer.attributeTypeMap=[{name:"name",baseName:"name",type:"string"}];t.V1Initializer=V1Initializer;class V1Initializers{static getAttributeTypeMap(){return V1Initializers.attributeTypeMap}}V1Initializers.discriminator=undefined;V1Initializers.attributeTypeMap=[{name:"pending",baseName:"pending",type:"Array"},{name:"result",baseName:"result",type:"V1Status"}];t.V1Initializers=V1Initializers;class V1Job{static getAttributeTypeMap(){return V1Job.attributeTypeMap}}V1Job.discriminator=undefined;V1Job.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1JobSpec"},{name:"status",baseName:"status",type:"V1JobStatus"}];t.V1Job=V1Job;class V1JobCondition{static getAttributeTypeMap(){return V1JobCondition.attributeTypeMap}}V1JobCondition.discriminator=undefined;V1JobCondition.attributeTypeMap=[{name:"lastProbeTime",baseName:"lastProbeTime",type:"Date"},{name:"lastTransitionTime",baseName:"lastTransitionTime",type:"Date"},{name:"message",baseName:"message",type:"string"},{name:"reason",baseName:"reason",type:"string"},{name:"status",baseName:"status",type:"string"},{name:"type",baseName:"type",type:"string"}];t.V1JobCondition=V1JobCondition;class V1JobList{static getAttributeTypeMap(){return V1JobList.attributeTypeMap}}V1JobList.discriminator=undefined;V1JobList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1JobList=V1JobList;class V1JobSpec{static getAttributeTypeMap(){return V1JobSpec.attributeTypeMap}}V1JobSpec.discriminator=undefined;V1JobSpec.attributeTypeMap=[{name:"activeDeadlineSeconds",baseName:"activeDeadlineSeconds",type:"number"},{name:"backoffLimit",baseName:"backoffLimit",type:"number"},{name:"completions",baseName:"completions",type:"number"},{name:"manualSelector",baseName:"manualSelector",type:"boolean"},{name:"parallelism",baseName:"parallelism",type:"number"},{name:"selector",baseName:"selector",type:"V1LabelSelector"},{name:"template",baseName:"template",type:"V1PodTemplateSpec"},{name:"ttlSecondsAfterFinished",baseName:"ttlSecondsAfterFinished",type:"number"}];t.V1JobSpec=V1JobSpec;class V1JobStatus{static getAttributeTypeMap(){return V1JobStatus.attributeTypeMap}}V1JobStatus.discriminator=undefined;V1JobStatus.attributeTypeMap=[{name:"active",baseName:"active",type:"number"},{name:"completionTime",baseName:"completionTime",type:"Date"},{name:"conditions",baseName:"conditions",type:"Array"},{name:"failed",baseName:"failed",type:"number"},{name:"startTime",baseName:"startTime",type:"Date"},{name:"succeeded",baseName:"succeeded",type:"number"}];t.V1JobStatus=V1JobStatus;class V1KeyToPath{static getAttributeTypeMap(){return V1KeyToPath.attributeTypeMap}}V1KeyToPath.discriminator=undefined;V1KeyToPath.attributeTypeMap=[{name:"key",baseName:"key",type:"string"},{name:"mode",baseName:"mode",type:"number"},{name:"path",baseName:"path",type:"string"}];t.V1KeyToPath=V1KeyToPath;class V1LabelSelector{static getAttributeTypeMap(){return V1LabelSelector.attributeTypeMap}}V1LabelSelector.discriminator=undefined;V1LabelSelector.attributeTypeMap=[{name:"matchExpressions",baseName:"matchExpressions",type:"Array"},{name:"matchLabels",baseName:"matchLabels",type:"{ [key: string]: string; }"}];t.V1LabelSelector=V1LabelSelector;class V1LabelSelectorRequirement{static getAttributeTypeMap(){return V1LabelSelectorRequirement.attributeTypeMap}}V1LabelSelectorRequirement.discriminator=undefined;V1LabelSelectorRequirement.attributeTypeMap=[{name:"key",baseName:"key",type:"string"},{name:"operator",baseName:"operator",type:"string"},{name:"values",baseName:"values",type:"Array"}];t.V1LabelSelectorRequirement=V1LabelSelectorRequirement;class V1Lifecycle{static getAttributeTypeMap(){return V1Lifecycle.attributeTypeMap}}V1Lifecycle.discriminator=undefined;V1Lifecycle.attributeTypeMap=[{name:"postStart",baseName:"postStart",type:"V1Handler"},{name:"preStop",baseName:"preStop",type:"V1Handler"}];t.V1Lifecycle=V1Lifecycle;class V1LimitRange{static getAttributeTypeMap(){return V1LimitRange.attributeTypeMap}}V1LimitRange.discriminator=undefined;V1LimitRange.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1LimitRangeSpec"}];t.V1LimitRange=V1LimitRange;class V1LimitRangeItem{static getAttributeTypeMap(){return V1LimitRangeItem.attributeTypeMap}}V1LimitRangeItem.discriminator=undefined;V1LimitRangeItem.attributeTypeMap=[{name:"_default",baseName:"default",type:"{ [key: string]: string; }"},{name:"defaultRequest",baseName:"defaultRequest",type:"{ [key: string]: string; }"},{name:"max",baseName:"max",type:"{ [key: string]: string; }"},{name:"maxLimitRequestRatio",baseName:"maxLimitRequestRatio",type:"{ [key: string]: string; }"},{name:"min",baseName:"min",type:"{ [key: string]: string; }"},{name:"type",baseName:"type",type:"string"}];t.V1LimitRangeItem=V1LimitRangeItem;class V1LimitRangeList{static getAttributeTypeMap(){return V1LimitRangeList.attributeTypeMap}}V1LimitRangeList.discriminator=undefined;V1LimitRangeList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1LimitRangeList=V1LimitRangeList;class V1LimitRangeSpec{static getAttributeTypeMap(){return V1LimitRangeSpec.attributeTypeMap}}V1LimitRangeSpec.discriminator=undefined;V1LimitRangeSpec.attributeTypeMap=[{name:"limits",baseName:"limits",type:"Array"}];t.V1LimitRangeSpec=V1LimitRangeSpec;class V1ListMeta{static getAttributeTypeMap(){return V1ListMeta.attributeTypeMap}}V1ListMeta.discriminator=undefined;V1ListMeta.attributeTypeMap=[{name:"_continue",baseName:"continue",type:"string"},{name:"resourceVersion",baseName:"resourceVersion",type:"string"},{name:"selfLink",baseName:"selfLink",type:"string"}];t.V1ListMeta=V1ListMeta;class V1LoadBalancerIngress{static getAttributeTypeMap(){return V1LoadBalancerIngress.attributeTypeMap}}V1LoadBalancerIngress.discriminator=undefined;V1LoadBalancerIngress.attributeTypeMap=[{name:"hostname",baseName:"hostname",type:"string"},{name:"ip",baseName:"ip",type:"string"}];t.V1LoadBalancerIngress=V1LoadBalancerIngress;class V1LoadBalancerStatus{static getAttributeTypeMap(){return V1LoadBalancerStatus.attributeTypeMap}}V1LoadBalancerStatus.discriminator=undefined;V1LoadBalancerStatus.attributeTypeMap=[{name:"ingress",baseName:"ingress",type:"Array"}];t.V1LoadBalancerStatus=V1LoadBalancerStatus;class V1LocalObjectReference{static getAttributeTypeMap(){return V1LocalObjectReference.attributeTypeMap}}V1LocalObjectReference.discriminator=undefined;V1LocalObjectReference.attributeTypeMap=[{name:"name",baseName:"name",type:"string"}];t.V1LocalObjectReference=V1LocalObjectReference;class V1LocalSubjectAccessReview{static getAttributeTypeMap(){return V1LocalSubjectAccessReview.attributeTypeMap}}V1LocalSubjectAccessReview.discriminator=undefined;V1LocalSubjectAccessReview.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1SubjectAccessReviewSpec"},{name:"status",baseName:"status",type:"V1SubjectAccessReviewStatus"}];t.V1LocalSubjectAccessReview=V1LocalSubjectAccessReview;class V1LocalVolumeSource{static getAttributeTypeMap(){return V1LocalVolumeSource.attributeTypeMap}}V1LocalVolumeSource.discriminator=undefined;V1LocalVolumeSource.attributeTypeMap=[{name:"fsType",baseName:"fsType",type:"string"},{name:"path",baseName:"path",type:"string"}];t.V1LocalVolumeSource=V1LocalVolumeSource;class V1NFSVolumeSource{static getAttributeTypeMap(){return V1NFSVolumeSource.attributeTypeMap}}V1NFSVolumeSource.discriminator=undefined;V1NFSVolumeSource.attributeTypeMap=[{name:"path",baseName:"path",type:"string"},{name:"readOnly",baseName:"readOnly",type:"boolean"},{name:"server",baseName:"server",type:"string"}];t.V1NFSVolumeSource=V1NFSVolumeSource;class V1Namespace{static getAttributeTypeMap(){return V1Namespace.attributeTypeMap}}V1Namespace.discriminator=undefined;V1Namespace.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1NamespaceSpec"},{name:"status",baseName:"status",type:"V1NamespaceStatus"}];t.V1Namespace=V1Namespace;class V1NamespaceList{static getAttributeTypeMap(){return V1NamespaceList.attributeTypeMap}}V1NamespaceList.discriminator=undefined;V1NamespaceList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1NamespaceList=V1NamespaceList;class V1NamespaceSpec{static getAttributeTypeMap(){return V1NamespaceSpec.attributeTypeMap}}V1NamespaceSpec.discriminator=undefined;V1NamespaceSpec.attributeTypeMap=[{name:"finalizers",baseName:"finalizers",type:"Array"}];t.V1NamespaceSpec=V1NamespaceSpec;class V1NamespaceStatus{static getAttributeTypeMap(){return V1NamespaceStatus.attributeTypeMap}}V1NamespaceStatus.discriminator=undefined;V1NamespaceStatus.attributeTypeMap=[{name:"phase",baseName:"phase",type:"string"}];t.V1NamespaceStatus=V1NamespaceStatus;class V1NetworkPolicy{static getAttributeTypeMap(){return V1NetworkPolicy.attributeTypeMap}}V1NetworkPolicy.discriminator=undefined;V1NetworkPolicy.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1NetworkPolicySpec"}];t.V1NetworkPolicy=V1NetworkPolicy;class V1NetworkPolicyEgressRule{static getAttributeTypeMap(){return V1NetworkPolicyEgressRule.attributeTypeMap}}V1NetworkPolicyEgressRule.discriminator=undefined;V1NetworkPolicyEgressRule.attributeTypeMap=[{name:"ports",baseName:"ports",type:"Array"},{name:"to",baseName:"to",type:"Array"}];t.V1NetworkPolicyEgressRule=V1NetworkPolicyEgressRule;class V1NetworkPolicyIngressRule{static getAttributeTypeMap(){return V1NetworkPolicyIngressRule.attributeTypeMap}}V1NetworkPolicyIngressRule.discriminator=undefined;V1NetworkPolicyIngressRule.attributeTypeMap=[{name:"from",baseName:"from",type:"Array"},{name:"ports",baseName:"ports",type:"Array"}];t.V1NetworkPolicyIngressRule=V1NetworkPolicyIngressRule;class V1NetworkPolicyList{static getAttributeTypeMap(){return V1NetworkPolicyList.attributeTypeMap}}V1NetworkPolicyList.discriminator=undefined;V1NetworkPolicyList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1NetworkPolicyList=V1NetworkPolicyList;class V1NetworkPolicyPeer{static getAttributeTypeMap(){return V1NetworkPolicyPeer.attributeTypeMap}}V1NetworkPolicyPeer.discriminator=undefined;V1NetworkPolicyPeer.attributeTypeMap=[{name:"ipBlock",baseName:"ipBlock",type:"V1IPBlock"},{name:"namespaceSelector",baseName:"namespaceSelector",type:"V1LabelSelector"},{name:"podSelector",baseName:"podSelector",type:"V1LabelSelector"}];t.V1NetworkPolicyPeer=V1NetworkPolicyPeer;class V1NetworkPolicyPort{static getAttributeTypeMap(){return V1NetworkPolicyPort.attributeTypeMap}}V1NetworkPolicyPort.discriminator=undefined;V1NetworkPolicyPort.attributeTypeMap=[{name:"port",baseName:"port",type:"any"},{name:"protocol",baseName:"protocol",type:"string"}];t.V1NetworkPolicyPort=V1NetworkPolicyPort;class V1NetworkPolicySpec{static getAttributeTypeMap(){return V1NetworkPolicySpec.attributeTypeMap}}V1NetworkPolicySpec.discriminator=undefined;V1NetworkPolicySpec.attributeTypeMap=[{name:"egress",baseName:"egress",type:"Array"},{name:"ingress",baseName:"ingress",type:"Array"},{name:"podSelector",baseName:"podSelector",type:"V1LabelSelector"},{name:"policyTypes",baseName:"policyTypes",type:"Array"}];t.V1NetworkPolicySpec=V1NetworkPolicySpec;class V1Node{static getAttributeTypeMap(){return V1Node.attributeTypeMap}}V1Node.discriminator=undefined;V1Node.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1NodeSpec"},{name:"status",baseName:"status",type:"V1NodeStatus"}];t.V1Node=V1Node;class V1NodeAddress{static getAttributeTypeMap(){return V1NodeAddress.attributeTypeMap}}V1NodeAddress.discriminator=undefined;V1NodeAddress.attributeTypeMap=[{name:"address",baseName:"address",type:"string"},{name:"type",baseName:"type",type:"string"}];t.V1NodeAddress=V1NodeAddress;class V1NodeAffinity{static getAttributeTypeMap(){return V1NodeAffinity.attributeTypeMap}}V1NodeAffinity.discriminator=undefined;V1NodeAffinity.attributeTypeMap=[{name:"preferredDuringSchedulingIgnoredDuringExecution",baseName:"preferredDuringSchedulingIgnoredDuringExecution",type:"Array"},{name:"requiredDuringSchedulingIgnoredDuringExecution",baseName:"requiredDuringSchedulingIgnoredDuringExecution",type:"V1NodeSelector"}];t.V1NodeAffinity=V1NodeAffinity;class V1NodeCondition{static getAttributeTypeMap(){return V1NodeCondition.attributeTypeMap}}V1NodeCondition.discriminator=undefined;V1NodeCondition.attributeTypeMap=[{name:"lastHeartbeatTime",baseName:"lastHeartbeatTime",type:"Date"},{name:"lastTransitionTime",baseName:"lastTransitionTime",type:"Date"},{name:"message",baseName:"message",type:"string"},{name:"reason",baseName:"reason",type:"string"},{name:"status",baseName:"status",type:"string"},{name:"type",baseName:"type",type:"string"}];t.V1NodeCondition=V1NodeCondition;class V1NodeConfigSource{static getAttributeTypeMap(){return V1NodeConfigSource.attributeTypeMap}}V1NodeConfigSource.discriminator=undefined;V1NodeConfigSource.attributeTypeMap=[{name:"configMap",baseName:"configMap",type:"V1ConfigMapNodeConfigSource"}];t.V1NodeConfigSource=V1NodeConfigSource;class V1NodeConfigStatus{static getAttributeTypeMap(){return V1NodeConfigStatus.attributeTypeMap}}V1NodeConfigStatus.discriminator=undefined;V1NodeConfigStatus.attributeTypeMap=[{name:"active",baseName:"active",type:"V1NodeConfigSource"},{name:"assigned",baseName:"assigned",type:"V1NodeConfigSource"},{name:"error",baseName:"error",type:"string"},{name:"lastKnownGood",baseName:"lastKnownGood",type:"V1NodeConfigSource"}];t.V1NodeConfigStatus=V1NodeConfigStatus;class V1NodeDaemonEndpoints{static getAttributeTypeMap(){return V1NodeDaemonEndpoints.attributeTypeMap}}V1NodeDaemonEndpoints.discriminator=undefined;V1NodeDaemonEndpoints.attributeTypeMap=[{name:"kubeletEndpoint",baseName:"kubeletEndpoint",type:"V1DaemonEndpoint"}];t.V1NodeDaemonEndpoints=V1NodeDaemonEndpoints;class V1NodeList{static getAttributeTypeMap(){return V1NodeList.attributeTypeMap}}V1NodeList.discriminator=undefined;V1NodeList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1NodeList=V1NodeList;class V1NodeSelector{static getAttributeTypeMap(){return V1NodeSelector.attributeTypeMap}}V1NodeSelector.discriminator=undefined;V1NodeSelector.attributeTypeMap=[{name:"nodeSelectorTerms",baseName:"nodeSelectorTerms",type:"Array"}];t.V1NodeSelector=V1NodeSelector;class V1NodeSelectorRequirement{static getAttributeTypeMap(){return V1NodeSelectorRequirement.attributeTypeMap}}V1NodeSelectorRequirement.discriminator=undefined;V1NodeSelectorRequirement.attributeTypeMap=[{name:"key",baseName:"key",type:"string"},{name:"operator",baseName:"operator",type:"string"},{name:"values",baseName:"values",type:"Array"}];t.V1NodeSelectorRequirement=V1NodeSelectorRequirement;class V1NodeSelectorTerm{static getAttributeTypeMap(){return V1NodeSelectorTerm.attributeTypeMap}}V1NodeSelectorTerm.discriminator=undefined;V1NodeSelectorTerm.attributeTypeMap=[{name:"matchExpressions",baseName:"matchExpressions",type:"Array"},{name:"matchFields",baseName:"matchFields",type:"Array"}];t.V1NodeSelectorTerm=V1NodeSelectorTerm;class V1NodeSpec{static getAttributeTypeMap(){return V1NodeSpec.attributeTypeMap}}V1NodeSpec.discriminator=undefined;V1NodeSpec.attributeTypeMap=[{name:"configSource",baseName:"configSource",type:"V1NodeConfigSource"},{name:"externalID",baseName:"externalID",type:"string"},{name:"podCIDR",baseName:"podCIDR",type:"string"},{name:"providerID",baseName:"providerID",type:"string"},{name:"taints",baseName:"taints",type:"Array"},{name:"unschedulable",baseName:"unschedulable",type:"boolean"}];t.V1NodeSpec=V1NodeSpec;class V1NodeStatus{static getAttributeTypeMap(){return V1NodeStatus.attributeTypeMap}}V1NodeStatus.discriminator=undefined;V1NodeStatus.attributeTypeMap=[{name:"addresses",baseName:"addresses",type:"Array"},{name:"allocatable",baseName:"allocatable",type:"{ [key: string]: string; }"},{name:"capacity",baseName:"capacity",type:"{ [key: string]: string; }"},{name:"conditions",baseName:"conditions",type:"Array"},{name:"config",baseName:"config",type:"V1NodeConfigStatus"},{name:"daemonEndpoints",baseName:"daemonEndpoints",type:"V1NodeDaemonEndpoints"},{name:"images",baseName:"images",type:"Array"},{name:"nodeInfo",baseName:"nodeInfo",type:"V1NodeSystemInfo"},{name:"phase",baseName:"phase",type:"string"},{name:"volumesAttached",baseName:"volumesAttached",type:"Array"},{name:"volumesInUse",baseName:"volumesInUse",type:"Array"}];t.V1NodeStatus=V1NodeStatus;class V1NodeSystemInfo{static getAttributeTypeMap(){return V1NodeSystemInfo.attributeTypeMap}}V1NodeSystemInfo.discriminator=undefined;V1NodeSystemInfo.attributeTypeMap=[{name:"architecture",baseName:"architecture",type:"string"},{name:"bootID",baseName:"bootID",type:"string"},{name:"containerRuntimeVersion",baseName:"containerRuntimeVersion",type:"string"},{name:"kernelVersion",baseName:"kernelVersion",type:"string"},{name:"kubeProxyVersion",baseName:"kubeProxyVersion",type:"string"},{name:"kubeletVersion",baseName:"kubeletVersion",type:"string"},{name:"machineID",baseName:"machineID",type:"string"},{name:"operatingSystem",baseName:"operatingSystem",type:"string"},{name:"osImage",baseName:"osImage",type:"string"},{name:"systemUUID",baseName:"systemUUID",type:"string"}];t.V1NodeSystemInfo=V1NodeSystemInfo;class V1NonResourceAttributes{static getAttributeTypeMap(){return V1NonResourceAttributes.attributeTypeMap}}V1NonResourceAttributes.discriminator=undefined;V1NonResourceAttributes.attributeTypeMap=[{name:"path",baseName:"path",type:"string"},{name:"verb",baseName:"verb",type:"string"}];t.V1NonResourceAttributes=V1NonResourceAttributes;class V1NonResourceRule{static getAttributeTypeMap(){return V1NonResourceRule.attributeTypeMap}}V1NonResourceRule.discriminator=undefined;V1NonResourceRule.attributeTypeMap=[{name:"nonResourceURLs",baseName:"nonResourceURLs",type:"Array"},{name:"verbs",baseName:"verbs",type:"Array"}];t.V1NonResourceRule=V1NonResourceRule;class V1ObjectFieldSelector{static getAttributeTypeMap(){return V1ObjectFieldSelector.attributeTypeMap}}V1ObjectFieldSelector.discriminator=undefined;V1ObjectFieldSelector.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"fieldPath",baseName:"fieldPath",type:"string"}];t.V1ObjectFieldSelector=V1ObjectFieldSelector;class V1ObjectMeta{static getAttributeTypeMap(){return V1ObjectMeta.attributeTypeMap}}V1ObjectMeta.discriminator=undefined;V1ObjectMeta.attributeTypeMap=[{name:"annotations",baseName:"annotations",type:"{ [key: string]: string; }"},{name:"clusterName",baseName:"clusterName",type:"string"},{name:"creationTimestamp",baseName:"creationTimestamp",type:"Date"},{name:"deletionGracePeriodSeconds",baseName:"deletionGracePeriodSeconds",type:"number"},{name:"deletionTimestamp",baseName:"deletionTimestamp",type:"Date"},{name:"finalizers",baseName:"finalizers",type:"Array"},{name:"generateName",baseName:"generateName",type:"string"},{name:"generation",baseName:"generation",type:"number"},{name:"initializers",baseName:"initializers",type:"V1Initializers"},{name:"labels",baseName:"labels",type:"{ [key: string]: string; }"},{name:"name",baseName:"name",type:"string"},{name:"namespace",baseName:"namespace",type:"string"},{name:"ownerReferences",baseName:"ownerReferences",type:"Array"},{name:"resourceVersion",baseName:"resourceVersion",type:"string"},{name:"selfLink",baseName:"selfLink",type:"string"},{name:"uid",baseName:"uid",type:"string"}];t.V1ObjectMeta=V1ObjectMeta;class V1ObjectReference{static getAttributeTypeMap(){return V1ObjectReference.attributeTypeMap}}V1ObjectReference.discriminator=undefined;V1ObjectReference.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"fieldPath",baseName:"fieldPath",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"name",baseName:"name",type:"string"},{name:"namespace",baseName:"namespace",type:"string"},{name:"resourceVersion",baseName:"resourceVersion",type:"string"},{name:"uid",baseName:"uid",type:"string"}];t.V1ObjectReference=V1ObjectReference;class V1OwnerReference{static getAttributeTypeMap(){return V1OwnerReference.attributeTypeMap}}V1OwnerReference.discriminator=undefined;V1OwnerReference.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"blockOwnerDeletion",baseName:"blockOwnerDeletion",type:"boolean"},{name:"controller",baseName:"controller",type:"boolean"},{name:"kind",baseName:"kind",type:"string"},{name:"name",baseName:"name",type:"string"},{name:"uid",baseName:"uid",type:"string"}];t.V1OwnerReference=V1OwnerReference;class V1PersistentVolume{static getAttributeTypeMap(){return V1PersistentVolume.attributeTypeMap}}V1PersistentVolume.discriminator=undefined;V1PersistentVolume.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1PersistentVolumeSpec"},{name:"status",baseName:"status",type:"V1PersistentVolumeStatus"}];t.V1PersistentVolume=V1PersistentVolume;class V1PersistentVolumeClaim{static getAttributeTypeMap(){return V1PersistentVolumeClaim.attributeTypeMap}}V1PersistentVolumeClaim.discriminator=undefined;V1PersistentVolumeClaim.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1PersistentVolumeClaimSpec"},{name:"status",baseName:"status",type:"V1PersistentVolumeClaimStatus"}];t.V1PersistentVolumeClaim=V1PersistentVolumeClaim;class V1PersistentVolumeClaimCondition{static getAttributeTypeMap(){return V1PersistentVolumeClaimCondition.attributeTypeMap}}V1PersistentVolumeClaimCondition.discriminator=undefined;V1PersistentVolumeClaimCondition.attributeTypeMap=[{name:"lastProbeTime",baseName:"lastProbeTime",type:"Date"},{name:"lastTransitionTime",baseName:"lastTransitionTime",type:"Date"},{name:"message",baseName:"message",type:"string"},{name:"reason",baseName:"reason",type:"string"},{name:"status",baseName:"status",type:"string"},{name:"type",baseName:"type",type:"string"}];t.V1PersistentVolumeClaimCondition=V1PersistentVolumeClaimCondition;class V1PersistentVolumeClaimList{static getAttributeTypeMap(){return V1PersistentVolumeClaimList.attributeTypeMap}}V1PersistentVolumeClaimList.discriminator=undefined;V1PersistentVolumeClaimList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1PersistentVolumeClaimList=V1PersistentVolumeClaimList;class V1PersistentVolumeClaimSpec{static getAttributeTypeMap(){return V1PersistentVolumeClaimSpec.attributeTypeMap}}V1PersistentVolumeClaimSpec.discriminator=undefined;V1PersistentVolumeClaimSpec.attributeTypeMap=[{name:"accessModes",baseName:"accessModes",type:"Array"},{name:"dataSource",baseName:"dataSource",type:"V1TypedLocalObjectReference"},{name:"resources",baseName:"resources",type:"V1ResourceRequirements"},{name:"selector",baseName:"selector",type:"V1LabelSelector"},{name:"storageClassName",baseName:"storageClassName",type:"string"},{name:"volumeMode",baseName:"volumeMode",type:"string"},{name:"volumeName",baseName:"volumeName",type:"string"}];t.V1PersistentVolumeClaimSpec=V1PersistentVolumeClaimSpec;class V1PersistentVolumeClaimStatus{static getAttributeTypeMap(){return V1PersistentVolumeClaimStatus.attributeTypeMap}}V1PersistentVolumeClaimStatus.discriminator=undefined;V1PersistentVolumeClaimStatus.attributeTypeMap=[{name:"accessModes",baseName:"accessModes",type:"Array"},{name:"capacity",baseName:"capacity",type:"{ [key: string]: string; }"},{name:"conditions",baseName:"conditions",type:"Array"},{name:"phase",baseName:"phase",type:"string"}];t.V1PersistentVolumeClaimStatus=V1PersistentVolumeClaimStatus;class V1PersistentVolumeClaimVolumeSource{static getAttributeTypeMap(){return V1PersistentVolumeClaimVolumeSource.attributeTypeMap}}V1PersistentVolumeClaimVolumeSource.discriminator=undefined;V1PersistentVolumeClaimVolumeSource.attributeTypeMap=[{name:"claimName",baseName:"claimName",type:"string"},{name:"readOnly",baseName:"readOnly",type:"boolean"}];t.V1PersistentVolumeClaimVolumeSource=V1PersistentVolumeClaimVolumeSource;class V1PersistentVolumeList{static getAttributeTypeMap(){return V1PersistentVolumeList.attributeTypeMap}}V1PersistentVolumeList.discriminator=undefined;V1PersistentVolumeList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1PersistentVolumeList=V1PersistentVolumeList;class V1PersistentVolumeSpec{static getAttributeTypeMap(){return V1PersistentVolumeSpec.attributeTypeMap}}V1PersistentVolumeSpec.discriminator=undefined;V1PersistentVolumeSpec.attributeTypeMap=[{name:"accessModes",baseName:"accessModes",type:"Array"},{name:"awsElasticBlockStore",baseName:"awsElasticBlockStore",type:"V1AWSElasticBlockStoreVolumeSource"},{name:"azureDisk",baseName:"azureDisk",type:"V1AzureDiskVolumeSource"},{name:"azureFile",baseName:"azureFile",type:"V1AzureFilePersistentVolumeSource"},{name:"capacity",baseName:"capacity",type:"{ [key: string]: string; }"},{name:"cephfs",baseName:"cephfs",type:"V1CephFSPersistentVolumeSource"},{name:"cinder",baseName:"cinder",type:"V1CinderPersistentVolumeSource"},{name:"claimRef",baseName:"claimRef",type:"V1ObjectReference"},{name:"csi",baseName:"csi",type:"V1CSIPersistentVolumeSource"},{name:"fc",baseName:"fc",type:"V1FCVolumeSource"},{name:"flexVolume",baseName:"flexVolume",type:"V1FlexPersistentVolumeSource"},{name:"flocker",baseName:"flocker",type:"V1FlockerVolumeSource"},{name:"gcePersistentDisk",baseName:"gcePersistentDisk",type:"V1GCEPersistentDiskVolumeSource"},{name:"glusterfs",baseName:"glusterfs",type:"V1GlusterfsPersistentVolumeSource"},{name:"hostPath",baseName:"hostPath",type:"V1HostPathVolumeSource"},{name:"iscsi",baseName:"iscsi",type:"V1ISCSIPersistentVolumeSource"},{name:"local",baseName:"local",type:"V1LocalVolumeSource"},{name:"mountOptions",baseName:"mountOptions",type:"Array"},{name:"nfs",baseName:"nfs",type:"V1NFSVolumeSource"},{name:"nodeAffinity",baseName:"nodeAffinity",type:"V1VolumeNodeAffinity"},{name:"persistentVolumeReclaimPolicy",baseName:"persistentVolumeReclaimPolicy",type:"string"},{name:"photonPersistentDisk",baseName:"photonPersistentDisk",type:"V1PhotonPersistentDiskVolumeSource"},{name:"portworxVolume",baseName:"portworxVolume",type:"V1PortworxVolumeSource"},{name:"quobyte",baseName:"quobyte",type:"V1QuobyteVolumeSource"},{name:"rbd",baseName:"rbd",type:"V1RBDPersistentVolumeSource"},{name:"scaleIO",baseName:"scaleIO",type:"V1ScaleIOPersistentVolumeSource"},{name:"storageClassName",baseName:"storageClassName",type:"string"},{name:"storageos",baseName:"storageos",type:"V1StorageOSPersistentVolumeSource"},{name:"volumeMode",baseName:"volumeMode",type:"string"},{name:"vsphereVolume",baseName:"vsphereVolume",type:"V1VsphereVirtualDiskVolumeSource"}];t.V1PersistentVolumeSpec=V1PersistentVolumeSpec;class V1PersistentVolumeStatus{static getAttributeTypeMap(){return V1PersistentVolumeStatus.attributeTypeMap}}V1PersistentVolumeStatus.discriminator=undefined;V1PersistentVolumeStatus.attributeTypeMap=[{name:"message",baseName:"message",type:"string"},{name:"phase",baseName:"phase",type:"string"},{name:"reason",baseName:"reason",type:"string"}];t.V1PersistentVolumeStatus=V1PersistentVolumeStatus;class V1PhotonPersistentDiskVolumeSource{static getAttributeTypeMap(){return V1PhotonPersistentDiskVolumeSource.attributeTypeMap}}V1PhotonPersistentDiskVolumeSource.discriminator=undefined;V1PhotonPersistentDiskVolumeSource.attributeTypeMap=[{name:"fsType",baseName:"fsType",type:"string"},{name:"pdID",baseName:"pdID",type:"string"}];t.V1PhotonPersistentDiskVolumeSource=V1PhotonPersistentDiskVolumeSource;class V1Pod{static getAttributeTypeMap(){return V1Pod.attributeTypeMap}}V1Pod.discriminator=undefined;V1Pod.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1PodSpec"},{name:"status",baseName:"status",type:"V1PodStatus"}];t.V1Pod=V1Pod;class V1PodAffinity{static getAttributeTypeMap(){return V1PodAffinity.attributeTypeMap}}V1PodAffinity.discriminator=undefined;V1PodAffinity.attributeTypeMap=[{name:"preferredDuringSchedulingIgnoredDuringExecution",baseName:"preferredDuringSchedulingIgnoredDuringExecution",type:"Array"},{name:"requiredDuringSchedulingIgnoredDuringExecution",baseName:"requiredDuringSchedulingIgnoredDuringExecution",type:"Array"}];t.V1PodAffinity=V1PodAffinity;class V1PodAffinityTerm{static getAttributeTypeMap(){return V1PodAffinityTerm.attributeTypeMap}}V1PodAffinityTerm.discriminator=undefined;V1PodAffinityTerm.attributeTypeMap=[{name:"labelSelector",baseName:"labelSelector",type:"V1LabelSelector"},{name:"namespaces",baseName:"namespaces",type:"Array"},{name:"topologyKey",baseName:"topologyKey",type:"string"}];t.V1PodAffinityTerm=V1PodAffinityTerm;class V1PodAntiAffinity{static getAttributeTypeMap(){return V1PodAntiAffinity.attributeTypeMap}}V1PodAntiAffinity.discriminator=undefined;V1PodAntiAffinity.attributeTypeMap=[{name:"preferredDuringSchedulingIgnoredDuringExecution",baseName:"preferredDuringSchedulingIgnoredDuringExecution",type:"Array"},{name:"requiredDuringSchedulingIgnoredDuringExecution",baseName:"requiredDuringSchedulingIgnoredDuringExecution",type:"Array"}];t.V1PodAntiAffinity=V1PodAntiAffinity;class V1PodCondition{static getAttributeTypeMap(){return V1PodCondition.attributeTypeMap}}V1PodCondition.discriminator=undefined;V1PodCondition.attributeTypeMap=[{name:"lastProbeTime",baseName:"lastProbeTime",type:"Date"},{name:"lastTransitionTime",baseName:"lastTransitionTime",type:"Date"},{name:"message",baseName:"message",type:"string"},{name:"reason",baseName:"reason",type:"string"},{name:"status",baseName:"status",type:"string"},{name:"type",baseName:"type",type:"string"}];t.V1PodCondition=V1PodCondition;class V1PodDNSConfig{static getAttributeTypeMap(){return V1PodDNSConfig.attributeTypeMap}}V1PodDNSConfig.discriminator=undefined;V1PodDNSConfig.attributeTypeMap=[{name:"nameservers",baseName:"nameservers",type:"Array"},{name:"options",baseName:"options",type:"Array"},{name:"searches",baseName:"searches",type:"Array"}];t.V1PodDNSConfig=V1PodDNSConfig;class V1PodDNSConfigOption{static getAttributeTypeMap(){return V1PodDNSConfigOption.attributeTypeMap}}V1PodDNSConfigOption.discriminator=undefined;V1PodDNSConfigOption.attributeTypeMap=[{name:"name",baseName:"name",type:"string"},{name:"value",baseName:"value",type:"string"}];t.V1PodDNSConfigOption=V1PodDNSConfigOption;class V1PodList{static getAttributeTypeMap(){return V1PodList.attributeTypeMap}}V1PodList.discriminator=undefined;V1PodList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1PodList=V1PodList;class V1PodReadinessGate{static getAttributeTypeMap(){return V1PodReadinessGate.attributeTypeMap}}V1PodReadinessGate.discriminator=undefined;V1PodReadinessGate.attributeTypeMap=[{name:"conditionType",baseName:"conditionType",type:"string"}];t.V1PodReadinessGate=V1PodReadinessGate;class V1PodSecurityContext{static getAttributeTypeMap(){return V1PodSecurityContext.attributeTypeMap}}V1PodSecurityContext.discriminator=undefined;V1PodSecurityContext.attributeTypeMap=[{name:"fsGroup",baseName:"fsGroup",type:"number"},{name:"runAsGroup",baseName:"runAsGroup",type:"number"},{name:"runAsNonRoot",baseName:"runAsNonRoot",type:"boolean"},{name:"runAsUser",baseName:"runAsUser",type:"number"},{name:"seLinuxOptions",baseName:"seLinuxOptions",type:"V1SELinuxOptions"},{name:"supplementalGroups",baseName:"supplementalGroups",type:"Array"},{name:"sysctls",baseName:"sysctls",type:"Array"}];t.V1PodSecurityContext=V1PodSecurityContext;class V1PodSpec{static getAttributeTypeMap(){return V1PodSpec.attributeTypeMap}}V1PodSpec.discriminator=undefined;V1PodSpec.attributeTypeMap=[{name:"activeDeadlineSeconds",baseName:"activeDeadlineSeconds",type:"number"},{name:"affinity",baseName:"affinity",type:"V1Affinity"},{name:"automountServiceAccountToken",baseName:"automountServiceAccountToken",type:"boolean"},{name:"containers",baseName:"containers",type:"Array"},{name:"dnsConfig",baseName:"dnsConfig",type:"V1PodDNSConfig"},{name:"dnsPolicy",baseName:"dnsPolicy",type:"string"},{name:"enableServiceLinks",baseName:"enableServiceLinks",type:"boolean"},{name:"hostAliases",baseName:"hostAliases",type:"Array"},{name:"hostIPC",baseName:"hostIPC",type:"boolean"},{name:"hostNetwork",baseName:"hostNetwork",type:"boolean"},{name:"hostPID",baseName:"hostPID",type:"boolean"},{name:"hostname",baseName:"hostname",type:"string"},{name:"imagePullSecrets",baseName:"imagePullSecrets",type:"Array"},{name:"initContainers",baseName:"initContainers",type:"Array"},{name:"nodeName",baseName:"nodeName",type:"string"},{name:"nodeSelector",baseName:"nodeSelector",type:"{ [key: string]: string; }"},{name:"priority",baseName:"priority",type:"number"},{name:"priorityClassName",baseName:"priorityClassName",type:"string"},{name:"readinessGates",baseName:"readinessGates",type:"Array"},{name:"restartPolicy",baseName:"restartPolicy",type:"string"},{name:"runtimeClassName",baseName:"runtimeClassName",type:"string"},{name:"schedulerName",baseName:"schedulerName",type:"string"},{name:"securityContext",baseName:"securityContext",type:"V1PodSecurityContext"},{name:"serviceAccount",baseName:"serviceAccount",type:"string"},{name:"serviceAccountName",baseName:"serviceAccountName",type:"string"},{name:"shareProcessNamespace",baseName:"shareProcessNamespace",type:"boolean"},{name:"subdomain",baseName:"subdomain",type:"string"},{name:"terminationGracePeriodSeconds",baseName:"terminationGracePeriodSeconds",type:"number"},{name:"tolerations",baseName:"tolerations",type:"Array"},{name:"volumes",baseName:"volumes",type:"Array"}];t.V1PodSpec=V1PodSpec;class V1PodStatus{static getAttributeTypeMap(){return V1PodStatus.attributeTypeMap}}V1PodStatus.discriminator=undefined;V1PodStatus.attributeTypeMap=[{name:"conditions",baseName:"conditions",type:"Array"},{name:"containerStatuses",baseName:"containerStatuses",type:"Array"},{name:"hostIP",baseName:"hostIP",type:"string"},{name:"initContainerStatuses",baseName:"initContainerStatuses",type:"Array"},{name:"message",baseName:"message",type:"string"},{name:"nominatedNodeName",baseName:"nominatedNodeName",type:"string"},{name:"phase",baseName:"phase",type:"string"},{name:"podIP",baseName:"podIP",type:"string"},{name:"qosClass",baseName:"qosClass",type:"string"},{name:"reason",baseName:"reason",type:"string"},{name:"startTime",baseName:"startTime",type:"Date"}];t.V1PodStatus=V1PodStatus;class V1PodTemplate{static getAttributeTypeMap(){return V1PodTemplate.attributeTypeMap}}V1PodTemplate.discriminator=undefined;V1PodTemplate.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"template",baseName:"template",type:"V1PodTemplateSpec"}];t.V1PodTemplate=V1PodTemplate;class V1PodTemplateList{static getAttributeTypeMap(){return V1PodTemplateList.attributeTypeMap}}V1PodTemplateList.discriminator=undefined;V1PodTemplateList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1PodTemplateList=V1PodTemplateList;class V1PodTemplateSpec{static getAttributeTypeMap(){return V1PodTemplateSpec.attributeTypeMap}}V1PodTemplateSpec.discriminator=undefined;V1PodTemplateSpec.attributeTypeMap=[{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1PodSpec"}];t.V1PodTemplateSpec=V1PodTemplateSpec;class V1PolicyRule{static getAttributeTypeMap(){return V1PolicyRule.attributeTypeMap}}V1PolicyRule.discriminator=undefined;V1PolicyRule.attributeTypeMap=[{name:"apiGroups",baseName:"apiGroups",type:"Array"},{name:"nonResourceURLs",baseName:"nonResourceURLs",type:"Array"},{name:"resourceNames",baseName:"resourceNames",type:"Array"},{name:"resources",baseName:"resources",type:"Array"},{name:"verbs",baseName:"verbs",type:"Array"}];t.V1PolicyRule=V1PolicyRule;class V1PortworxVolumeSource{static getAttributeTypeMap(){return V1PortworxVolumeSource.attributeTypeMap}}V1PortworxVolumeSource.discriminator=undefined;V1PortworxVolumeSource.attributeTypeMap=[{name:"fsType",baseName:"fsType",type:"string"},{name:"readOnly",baseName:"readOnly",type:"boolean"},{name:"volumeID",baseName:"volumeID",type:"string"}];t.V1PortworxVolumeSource=V1PortworxVolumeSource;class V1Preconditions{static getAttributeTypeMap(){return V1Preconditions.attributeTypeMap}}V1Preconditions.discriminator=undefined;V1Preconditions.attributeTypeMap=[{name:"uid",baseName:"uid",type:"string"}];t.V1Preconditions=V1Preconditions;class V1PreferredSchedulingTerm{static getAttributeTypeMap(){return V1PreferredSchedulingTerm.attributeTypeMap}}V1PreferredSchedulingTerm.discriminator=undefined;V1PreferredSchedulingTerm.attributeTypeMap=[{name:"preference",baseName:"preference",type:"V1NodeSelectorTerm"},{name:"weight",baseName:"weight",type:"number"}];t.V1PreferredSchedulingTerm=V1PreferredSchedulingTerm;class V1Probe{static getAttributeTypeMap(){return V1Probe.attributeTypeMap}}V1Probe.discriminator=undefined;V1Probe.attributeTypeMap=[{name:"exec",baseName:"exec",type:"V1ExecAction"},{name:"failureThreshold",baseName:"failureThreshold",type:"number"},{name:"httpGet",baseName:"httpGet",type:"V1HTTPGetAction"},{name:"initialDelaySeconds",baseName:"initialDelaySeconds",type:"number"},{name:"periodSeconds",baseName:"periodSeconds",type:"number"},{name:"successThreshold",baseName:"successThreshold",type:"number"},{name:"tcpSocket",baseName:"tcpSocket",type:"V1TCPSocketAction"},{name:"timeoutSeconds",baseName:"timeoutSeconds",type:"number"}];t.V1Probe=V1Probe;class V1ProjectedVolumeSource{static getAttributeTypeMap(){return V1ProjectedVolumeSource.attributeTypeMap}}V1ProjectedVolumeSource.discriminator=undefined;V1ProjectedVolumeSource.attributeTypeMap=[{name:"defaultMode",baseName:"defaultMode",type:"number"},{name:"sources",baseName:"sources",type:"Array"}];t.V1ProjectedVolumeSource=V1ProjectedVolumeSource;class V1QuobyteVolumeSource{static getAttributeTypeMap(){return V1QuobyteVolumeSource.attributeTypeMap}}V1QuobyteVolumeSource.discriminator=undefined;V1QuobyteVolumeSource.attributeTypeMap=[{name:"group",baseName:"group",type:"string"},{name:"readOnly",baseName:"readOnly",type:"boolean"},{name:"registry",baseName:"registry",type:"string"},{name:"user",baseName:"user",type:"string"},{name:"volume",baseName:"volume",type:"string"}];t.V1QuobyteVolumeSource=V1QuobyteVolumeSource;class V1RBDPersistentVolumeSource{static getAttributeTypeMap(){return V1RBDPersistentVolumeSource.attributeTypeMap}}V1RBDPersistentVolumeSource.discriminator=undefined;V1RBDPersistentVolumeSource.attributeTypeMap=[{name:"fsType",baseName:"fsType",type:"string"},{name:"image",baseName:"image",type:"string"},{name:"keyring",baseName:"keyring",type:"string"},{name:"monitors",baseName:"monitors",type:"Array"},{name:"pool",baseName:"pool",type:"string"},{name:"readOnly",baseName:"readOnly",type:"boolean"},{name:"secretRef",baseName:"secretRef",type:"V1SecretReference"},{name:"user",baseName:"user",type:"string"}];t.V1RBDPersistentVolumeSource=V1RBDPersistentVolumeSource;class V1RBDVolumeSource{static getAttributeTypeMap(){return V1RBDVolumeSource.attributeTypeMap}}V1RBDVolumeSource.discriminator=undefined;V1RBDVolumeSource.attributeTypeMap=[{name:"fsType",baseName:"fsType",type:"string"},{name:"image",baseName:"image",type:"string"},{name:"keyring",baseName:"keyring",type:"string"},{name:"monitors",baseName:"monitors",type:"Array"},{name:"pool",baseName:"pool",type:"string"},{name:"readOnly",baseName:"readOnly",type:"boolean"},{name:"secretRef",baseName:"secretRef",type:"V1LocalObjectReference"},{name:"user",baseName:"user",type:"string"}];t.V1RBDVolumeSource=V1RBDVolumeSource;class V1ReplicaSet{static getAttributeTypeMap(){return V1ReplicaSet.attributeTypeMap}}V1ReplicaSet.discriminator=undefined;V1ReplicaSet.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1ReplicaSetSpec"},{name:"status",baseName:"status",type:"V1ReplicaSetStatus"}];t.V1ReplicaSet=V1ReplicaSet;class V1ReplicaSetCondition{static getAttributeTypeMap(){return V1ReplicaSetCondition.attributeTypeMap}}V1ReplicaSetCondition.discriminator=undefined;V1ReplicaSetCondition.attributeTypeMap=[{name:"lastTransitionTime",baseName:"lastTransitionTime",type:"Date"},{name:"message",baseName:"message",type:"string"},{name:"reason",baseName:"reason",type:"string"},{name:"status",baseName:"status",type:"string"},{name:"type",baseName:"type",type:"string"}];t.V1ReplicaSetCondition=V1ReplicaSetCondition;class V1ReplicaSetList{static getAttributeTypeMap(){return V1ReplicaSetList.attributeTypeMap}}V1ReplicaSetList.discriminator=undefined;V1ReplicaSetList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1ReplicaSetList=V1ReplicaSetList;class V1ReplicaSetSpec{static getAttributeTypeMap(){return V1ReplicaSetSpec.attributeTypeMap}}V1ReplicaSetSpec.discriminator=undefined;V1ReplicaSetSpec.attributeTypeMap=[{name:"minReadySeconds",baseName:"minReadySeconds",type:"number"},{name:"replicas",baseName:"replicas",type:"number"},{name:"selector",baseName:"selector",type:"V1LabelSelector"},{name:"template",baseName:"template",type:"V1PodTemplateSpec"}];t.V1ReplicaSetSpec=V1ReplicaSetSpec;class V1ReplicaSetStatus{static getAttributeTypeMap(){return V1ReplicaSetStatus.attributeTypeMap}}V1ReplicaSetStatus.discriminator=undefined;V1ReplicaSetStatus.attributeTypeMap=[{name:"availableReplicas",baseName:"availableReplicas",type:"number"},{name:"conditions",baseName:"conditions",type:"Array"},{name:"fullyLabeledReplicas",baseName:"fullyLabeledReplicas",type:"number"},{name:"observedGeneration",baseName:"observedGeneration",type:"number"},{name:"readyReplicas",baseName:"readyReplicas",type:"number"},{name:"replicas",baseName:"replicas",type:"number"}];t.V1ReplicaSetStatus=V1ReplicaSetStatus;class V1ReplicationController{static getAttributeTypeMap(){return V1ReplicationController.attributeTypeMap}}V1ReplicationController.discriminator=undefined;V1ReplicationController.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1ReplicationControllerSpec"},{name:"status",baseName:"status",type:"V1ReplicationControllerStatus"}];t.V1ReplicationController=V1ReplicationController;class V1ReplicationControllerCondition{static getAttributeTypeMap(){return V1ReplicationControllerCondition.attributeTypeMap}}V1ReplicationControllerCondition.discriminator=undefined;V1ReplicationControllerCondition.attributeTypeMap=[{name:"lastTransitionTime",baseName:"lastTransitionTime",type:"Date"},{name:"message",baseName:"message",type:"string"},{name:"reason",baseName:"reason",type:"string"},{name:"status",baseName:"status",type:"string"},{name:"type",baseName:"type",type:"string"}];t.V1ReplicationControllerCondition=V1ReplicationControllerCondition;class V1ReplicationControllerList{static getAttributeTypeMap(){return V1ReplicationControllerList.attributeTypeMap}}V1ReplicationControllerList.discriminator=undefined;V1ReplicationControllerList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1ReplicationControllerList=V1ReplicationControllerList;class V1ReplicationControllerSpec{static getAttributeTypeMap(){return V1ReplicationControllerSpec.attributeTypeMap}}V1ReplicationControllerSpec.discriminator=undefined;V1ReplicationControllerSpec.attributeTypeMap=[{name:"minReadySeconds",baseName:"minReadySeconds",type:"number"},{name:"replicas",baseName:"replicas",type:"number"},{name:"selector",baseName:"selector",type:"{ [key: string]: string; }"},{name:"template",baseName:"template",type:"V1PodTemplateSpec"}];t.V1ReplicationControllerSpec=V1ReplicationControllerSpec;class V1ReplicationControllerStatus{static getAttributeTypeMap(){return V1ReplicationControllerStatus.attributeTypeMap}}V1ReplicationControllerStatus.discriminator=undefined;V1ReplicationControllerStatus.attributeTypeMap=[{name:"availableReplicas",baseName:"availableReplicas",type:"number"},{name:"conditions",baseName:"conditions",type:"Array"},{name:"fullyLabeledReplicas",baseName:"fullyLabeledReplicas",type:"number"},{name:"observedGeneration",baseName:"observedGeneration",type:"number"},{name:"readyReplicas",baseName:"readyReplicas",type:"number"},{name:"replicas",baseName:"replicas",type:"number"}];t.V1ReplicationControllerStatus=V1ReplicationControllerStatus;class V1ResourceAttributes{static getAttributeTypeMap(){return V1ResourceAttributes.attributeTypeMap}}V1ResourceAttributes.discriminator=undefined;V1ResourceAttributes.attributeTypeMap=[{name:"group",baseName:"group",type:"string"},{name:"name",baseName:"name",type:"string"},{name:"namespace",baseName:"namespace",type:"string"},{name:"resource",baseName:"resource",type:"string"},{name:"subresource",baseName:"subresource",type:"string"},{name:"verb",baseName:"verb",type:"string"},{name:"version",baseName:"version",type:"string"}];t.V1ResourceAttributes=V1ResourceAttributes;class V1ResourceFieldSelector{static getAttributeTypeMap(){return V1ResourceFieldSelector.attributeTypeMap}}V1ResourceFieldSelector.discriminator=undefined;V1ResourceFieldSelector.attributeTypeMap=[{name:"containerName",baseName:"containerName",type:"string"},{name:"divisor",baseName:"divisor",type:"string"},{name:"resource",baseName:"resource",type:"string"}];t.V1ResourceFieldSelector=V1ResourceFieldSelector;class V1ResourceQuota{static getAttributeTypeMap(){return V1ResourceQuota.attributeTypeMap}}V1ResourceQuota.discriminator=undefined;V1ResourceQuota.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1ResourceQuotaSpec"},{name:"status",baseName:"status",type:"V1ResourceQuotaStatus"}];t.V1ResourceQuota=V1ResourceQuota;class V1ResourceQuotaList{static getAttributeTypeMap(){return V1ResourceQuotaList.attributeTypeMap}}V1ResourceQuotaList.discriminator=undefined;V1ResourceQuotaList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1ResourceQuotaList=V1ResourceQuotaList;class V1ResourceQuotaSpec{static getAttributeTypeMap(){return V1ResourceQuotaSpec.attributeTypeMap}}V1ResourceQuotaSpec.discriminator=undefined;V1ResourceQuotaSpec.attributeTypeMap=[{name:"hard",baseName:"hard",type:"{ [key: string]: string; }"},{name:"scopeSelector",baseName:"scopeSelector",type:"V1ScopeSelector"},{name:"scopes",baseName:"scopes",type:"Array"}];t.V1ResourceQuotaSpec=V1ResourceQuotaSpec;class V1ResourceQuotaStatus{static getAttributeTypeMap(){return V1ResourceQuotaStatus.attributeTypeMap}}V1ResourceQuotaStatus.discriminator=undefined;V1ResourceQuotaStatus.attributeTypeMap=[{name:"hard",baseName:"hard",type:"{ [key: string]: string; }"},{name:"used",baseName:"used",type:"{ [key: string]: string; }"}];t.V1ResourceQuotaStatus=V1ResourceQuotaStatus;class V1ResourceRequirements{static getAttributeTypeMap(){return V1ResourceRequirements.attributeTypeMap}}V1ResourceRequirements.discriminator=undefined;V1ResourceRequirements.attributeTypeMap=[{name:"limits",baseName:"limits",type:"{ [key: string]: string; }"},{name:"requests",baseName:"requests",type:"{ [key: string]: string; }"}];t.V1ResourceRequirements=V1ResourceRequirements;class V1ResourceRule{static getAttributeTypeMap(){return V1ResourceRule.attributeTypeMap}}V1ResourceRule.discriminator=undefined;V1ResourceRule.attributeTypeMap=[{name:"apiGroups",baseName:"apiGroups",type:"Array"},{name:"resourceNames",baseName:"resourceNames",type:"Array"},{name:"resources",baseName:"resources",type:"Array"},{name:"verbs",baseName:"verbs",type:"Array"}];t.V1ResourceRule=V1ResourceRule;class V1Role{static getAttributeTypeMap(){return V1Role.attributeTypeMap}}V1Role.discriminator=undefined;V1Role.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"rules",baseName:"rules",type:"Array"}];t.V1Role=V1Role;class V1RoleBinding{static getAttributeTypeMap(){return V1RoleBinding.attributeTypeMap}}V1RoleBinding.discriminator=undefined;V1RoleBinding.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"roleRef",baseName:"roleRef",type:"V1RoleRef"},{name:"subjects",baseName:"subjects",type:"Array"}];t.V1RoleBinding=V1RoleBinding;class V1RoleBindingList{static getAttributeTypeMap(){return V1RoleBindingList.attributeTypeMap}}V1RoleBindingList.discriminator=undefined;V1RoleBindingList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1RoleBindingList=V1RoleBindingList;class V1RoleList{static getAttributeTypeMap(){return V1RoleList.attributeTypeMap}}V1RoleList.discriminator=undefined;V1RoleList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1RoleList=V1RoleList;class V1RoleRef{static getAttributeTypeMap(){return V1RoleRef.attributeTypeMap}}V1RoleRef.discriminator=undefined;V1RoleRef.attributeTypeMap=[{name:"apiGroup",baseName:"apiGroup",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"name",baseName:"name",type:"string"}];t.V1RoleRef=V1RoleRef;class V1RollingUpdateDaemonSet{static getAttributeTypeMap(){return V1RollingUpdateDaemonSet.attributeTypeMap}}V1RollingUpdateDaemonSet.discriminator=undefined;V1RollingUpdateDaemonSet.attributeTypeMap=[{name:"maxUnavailable",baseName:"maxUnavailable",type:"any"}];t.V1RollingUpdateDaemonSet=V1RollingUpdateDaemonSet;class V1RollingUpdateDeployment{static getAttributeTypeMap(){return V1RollingUpdateDeployment.attributeTypeMap}}V1RollingUpdateDeployment.discriminator=undefined;V1RollingUpdateDeployment.attributeTypeMap=[{name:"maxSurge",baseName:"maxSurge",type:"any"},{name:"maxUnavailable",baseName:"maxUnavailable",type:"any"}];t.V1RollingUpdateDeployment=V1RollingUpdateDeployment;class V1RollingUpdateStatefulSetStrategy{static getAttributeTypeMap(){return V1RollingUpdateStatefulSetStrategy.attributeTypeMap}}V1RollingUpdateStatefulSetStrategy.discriminator=undefined;V1RollingUpdateStatefulSetStrategy.attributeTypeMap=[{name:"partition",baseName:"partition",type:"number"}];t.V1RollingUpdateStatefulSetStrategy=V1RollingUpdateStatefulSetStrategy;class V1SELinuxOptions{static getAttributeTypeMap(){return V1SELinuxOptions.attributeTypeMap}}V1SELinuxOptions.discriminator=undefined;V1SELinuxOptions.attributeTypeMap=[{name:"level",baseName:"level",type:"string"},{name:"role",baseName:"role",type:"string"},{name:"type",baseName:"type",type:"string"},{name:"user",baseName:"user",type:"string"}];t.V1SELinuxOptions=V1SELinuxOptions;class V1Scale{static getAttributeTypeMap(){return V1Scale.attributeTypeMap}}V1Scale.discriminator=undefined;V1Scale.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1ScaleSpec"},{name:"status",baseName:"status",type:"V1ScaleStatus"}];t.V1Scale=V1Scale;class V1ScaleIOPersistentVolumeSource{static getAttributeTypeMap(){return V1ScaleIOPersistentVolumeSource.attributeTypeMap}}V1ScaleIOPersistentVolumeSource.discriminator=undefined;V1ScaleIOPersistentVolumeSource.attributeTypeMap=[{name:"fsType",baseName:"fsType",type:"string"},{name:"gateway",baseName:"gateway",type:"string"},{name:"protectionDomain",baseName:"protectionDomain",type:"string"},{name:"readOnly",baseName:"readOnly",type:"boolean"},{name:"secretRef",baseName:"secretRef",type:"V1SecretReference"},{name:"sslEnabled",baseName:"sslEnabled",type:"boolean"},{name:"storageMode",baseName:"storageMode",type:"string"},{name:"storagePool",baseName:"storagePool",type:"string"},{name:"system",baseName:"system",type:"string"},{name:"volumeName",baseName:"volumeName",type:"string"}];t.V1ScaleIOPersistentVolumeSource=V1ScaleIOPersistentVolumeSource;class V1ScaleIOVolumeSource{static getAttributeTypeMap(){return V1ScaleIOVolumeSource.attributeTypeMap}}V1ScaleIOVolumeSource.discriminator=undefined;V1ScaleIOVolumeSource.attributeTypeMap=[{name:"fsType",baseName:"fsType",type:"string"},{name:"gateway",baseName:"gateway",type:"string"},{name:"protectionDomain",baseName:"protectionDomain",type:"string"},{name:"readOnly",baseName:"readOnly",type:"boolean"},{name:"secretRef",baseName:"secretRef",type:"V1LocalObjectReference"},{name:"sslEnabled",baseName:"sslEnabled",type:"boolean"},{name:"storageMode",baseName:"storageMode",type:"string"},{name:"storagePool",baseName:"storagePool",type:"string"},{name:"system",baseName:"system",type:"string"},{name:"volumeName",baseName:"volumeName",type:"string"}];t.V1ScaleIOVolumeSource=V1ScaleIOVolumeSource;class V1ScaleSpec{static getAttributeTypeMap(){return V1ScaleSpec.attributeTypeMap}}V1ScaleSpec.discriminator=undefined;V1ScaleSpec.attributeTypeMap=[{name:"replicas",baseName:"replicas",type:"number"}];t.V1ScaleSpec=V1ScaleSpec;class V1ScaleStatus{static getAttributeTypeMap(){return V1ScaleStatus.attributeTypeMap}}V1ScaleStatus.discriminator=undefined;V1ScaleStatus.attributeTypeMap=[{name:"replicas",baseName:"replicas",type:"number"},{name:"selector",baseName:"selector",type:"string"}];t.V1ScaleStatus=V1ScaleStatus;class V1ScopeSelector{static getAttributeTypeMap(){return V1ScopeSelector.attributeTypeMap}}V1ScopeSelector.discriminator=undefined;V1ScopeSelector.attributeTypeMap=[{name:"matchExpressions",baseName:"matchExpressions",type:"Array"}];t.V1ScopeSelector=V1ScopeSelector;class V1ScopedResourceSelectorRequirement{static getAttributeTypeMap(){return V1ScopedResourceSelectorRequirement.attributeTypeMap}}V1ScopedResourceSelectorRequirement.discriminator=undefined;V1ScopedResourceSelectorRequirement.attributeTypeMap=[{name:"operator",baseName:"operator",type:"string"},{name:"scopeName",baseName:"scopeName",type:"string"},{name:"values",baseName:"values",type:"Array"}];t.V1ScopedResourceSelectorRequirement=V1ScopedResourceSelectorRequirement;class V1Secret{static getAttributeTypeMap(){return V1Secret.attributeTypeMap}}V1Secret.discriminator=undefined;V1Secret.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"data",baseName:"data",type:"{ [key: string]: string; }"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"stringData",baseName:"stringData",type:"{ [key: string]: string; }"},{name:"type",baseName:"type",type:"string"}];t.V1Secret=V1Secret;class V1SecretEnvSource{static getAttributeTypeMap(){return V1SecretEnvSource.attributeTypeMap}}V1SecretEnvSource.discriminator=undefined;V1SecretEnvSource.attributeTypeMap=[{name:"name",baseName:"name",type:"string"},{name:"optional",baseName:"optional",type:"boolean"}];t.V1SecretEnvSource=V1SecretEnvSource;class V1SecretKeySelector{static getAttributeTypeMap(){return V1SecretKeySelector.attributeTypeMap}}V1SecretKeySelector.discriminator=undefined;V1SecretKeySelector.attributeTypeMap=[{name:"key",baseName:"key",type:"string"},{name:"name",baseName:"name",type:"string"},{name:"optional",baseName:"optional",type:"boolean"}];t.V1SecretKeySelector=V1SecretKeySelector;class V1SecretList{static getAttributeTypeMap(){return V1SecretList.attributeTypeMap}}V1SecretList.discriminator=undefined;V1SecretList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1SecretList=V1SecretList;class V1SecretProjection{static getAttributeTypeMap(){return V1SecretProjection.attributeTypeMap}}V1SecretProjection.discriminator=undefined;V1SecretProjection.attributeTypeMap=[{name:"items",baseName:"items",type:"Array"},{name:"name",baseName:"name",type:"string"},{name:"optional",baseName:"optional",type:"boolean"}];t.V1SecretProjection=V1SecretProjection;class V1SecretReference{static getAttributeTypeMap(){return V1SecretReference.attributeTypeMap}}V1SecretReference.discriminator=undefined;V1SecretReference.attributeTypeMap=[{name:"name",baseName:"name",type:"string"},{name:"namespace",baseName:"namespace",type:"string"}];t.V1SecretReference=V1SecretReference;class V1SecretVolumeSource{static getAttributeTypeMap(){return V1SecretVolumeSource.attributeTypeMap}}V1SecretVolumeSource.discriminator=undefined;V1SecretVolumeSource.attributeTypeMap=[{name:"defaultMode",baseName:"defaultMode",type:"number"},{name:"items",baseName:"items",type:"Array"},{name:"optional",baseName:"optional",type:"boolean"},{name:"secretName",baseName:"secretName",type:"string"}];t.V1SecretVolumeSource=V1SecretVolumeSource;class V1SecurityContext{static getAttributeTypeMap(){return V1SecurityContext.attributeTypeMap}}V1SecurityContext.discriminator=undefined;V1SecurityContext.attributeTypeMap=[{name:"allowPrivilegeEscalation",baseName:"allowPrivilegeEscalation",type:"boolean"},{name:"capabilities",baseName:"capabilities",type:"V1Capabilities"},{name:"privileged",baseName:"privileged",type:"boolean"},{name:"procMount",baseName:"procMount",type:"string"},{name:"readOnlyRootFilesystem",baseName:"readOnlyRootFilesystem",type:"boolean"},{name:"runAsGroup",baseName:"runAsGroup",type:"number"},{name:"runAsNonRoot",baseName:"runAsNonRoot",type:"boolean"},{name:"runAsUser",baseName:"runAsUser",type:"number"},{name:"seLinuxOptions",baseName:"seLinuxOptions",type:"V1SELinuxOptions"}];t.V1SecurityContext=V1SecurityContext;class V1SelfSubjectAccessReview{static getAttributeTypeMap(){return V1SelfSubjectAccessReview.attributeTypeMap}}V1SelfSubjectAccessReview.discriminator=undefined;V1SelfSubjectAccessReview.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1SelfSubjectAccessReviewSpec"},{name:"status",baseName:"status",type:"V1SubjectAccessReviewStatus"}];t.V1SelfSubjectAccessReview=V1SelfSubjectAccessReview;class V1SelfSubjectAccessReviewSpec{static getAttributeTypeMap(){return V1SelfSubjectAccessReviewSpec.attributeTypeMap}}V1SelfSubjectAccessReviewSpec.discriminator=undefined;V1SelfSubjectAccessReviewSpec.attributeTypeMap=[{name:"nonResourceAttributes",baseName:"nonResourceAttributes",type:"V1NonResourceAttributes"},{name:"resourceAttributes",baseName:"resourceAttributes",type:"V1ResourceAttributes"}];t.V1SelfSubjectAccessReviewSpec=V1SelfSubjectAccessReviewSpec;class V1SelfSubjectRulesReview{static getAttributeTypeMap(){return V1SelfSubjectRulesReview.attributeTypeMap}}V1SelfSubjectRulesReview.discriminator=undefined;V1SelfSubjectRulesReview.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1SelfSubjectRulesReviewSpec"},{name:"status",baseName:"status",type:"V1SubjectRulesReviewStatus"}];t.V1SelfSubjectRulesReview=V1SelfSubjectRulesReview;class V1SelfSubjectRulesReviewSpec{static getAttributeTypeMap(){return V1SelfSubjectRulesReviewSpec.attributeTypeMap}}V1SelfSubjectRulesReviewSpec.discriminator=undefined;V1SelfSubjectRulesReviewSpec.attributeTypeMap=[{name:"namespace",baseName:"namespace",type:"string"}];t.V1SelfSubjectRulesReviewSpec=V1SelfSubjectRulesReviewSpec;class V1ServerAddressByClientCIDR{static getAttributeTypeMap(){return V1ServerAddressByClientCIDR.attributeTypeMap}}V1ServerAddressByClientCIDR.discriminator=undefined;V1ServerAddressByClientCIDR.attributeTypeMap=[{name:"clientCIDR",baseName:"clientCIDR",type:"string"},{name:"serverAddress",baseName:"serverAddress",type:"string"}];t.V1ServerAddressByClientCIDR=V1ServerAddressByClientCIDR;class V1Service{static getAttributeTypeMap(){return V1Service.attributeTypeMap}}V1Service.discriminator=undefined;V1Service.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1ServiceSpec"},{name:"status",baseName:"status",type:"V1ServiceStatus"}];t.V1Service=V1Service;class V1ServiceAccount{static getAttributeTypeMap(){return V1ServiceAccount.attributeTypeMap}}V1ServiceAccount.discriminator=undefined;V1ServiceAccount.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"automountServiceAccountToken",baseName:"automountServiceAccountToken",type:"boolean"},{name:"imagePullSecrets",baseName:"imagePullSecrets",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"secrets",baseName:"secrets",type:"Array"}];t.V1ServiceAccount=V1ServiceAccount;class V1ServiceAccountList{static getAttributeTypeMap(){return V1ServiceAccountList.attributeTypeMap}}V1ServiceAccountList.discriminator=undefined;V1ServiceAccountList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1ServiceAccountList=V1ServiceAccountList;class V1ServiceAccountTokenProjection{static getAttributeTypeMap(){return V1ServiceAccountTokenProjection.attributeTypeMap}}V1ServiceAccountTokenProjection.discriminator=undefined;V1ServiceAccountTokenProjection.attributeTypeMap=[{name:"audience",baseName:"audience",type:"string"},{name:"expirationSeconds",baseName:"expirationSeconds",type:"number"},{name:"path",baseName:"path",type:"string"}];t.V1ServiceAccountTokenProjection=V1ServiceAccountTokenProjection;class V1ServiceList{static getAttributeTypeMap(){return V1ServiceList.attributeTypeMap}}V1ServiceList.discriminator=undefined;V1ServiceList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1ServiceList=V1ServiceList;class V1ServicePort{static getAttributeTypeMap(){return V1ServicePort.attributeTypeMap}}V1ServicePort.discriminator=undefined;V1ServicePort.attributeTypeMap=[{name:"name",baseName:"name",type:"string"},{name:"nodePort",baseName:"nodePort",type:"number"},{name:"port",baseName:"port",type:"number"},{name:"protocol",baseName:"protocol",type:"string"},{name:"targetPort",baseName:"targetPort",type:"any"}];t.V1ServicePort=V1ServicePort;class V1ServiceReference{static getAttributeTypeMap(){return V1ServiceReference.attributeTypeMap}}V1ServiceReference.discriminator=undefined;V1ServiceReference.attributeTypeMap=[{name:"name",baseName:"name",type:"string"},{name:"namespace",baseName:"namespace",type:"string"}];t.V1ServiceReference=V1ServiceReference;class V1ServiceSpec{static getAttributeTypeMap(){return V1ServiceSpec.attributeTypeMap}}V1ServiceSpec.discriminator=undefined;V1ServiceSpec.attributeTypeMap=[{name:"clusterIP",baseName:"clusterIP",type:"string"},{name:"externalIPs",baseName:"externalIPs",type:"Array"},{name:"externalName",baseName:"externalName",type:"string"},{name:"externalTrafficPolicy",baseName:"externalTrafficPolicy",type:"string"},{name:"healthCheckNodePort",baseName:"healthCheckNodePort",type:"number"},{name:"loadBalancerIP",baseName:"loadBalancerIP",type:"string"},{name:"loadBalancerSourceRanges",baseName:"loadBalancerSourceRanges",type:"Array"},{name:"ports",baseName:"ports",type:"Array"},{name:"publishNotReadyAddresses",baseName:"publishNotReadyAddresses",type:"boolean"},{name:"selector",baseName:"selector",type:"{ [key: string]: string; }"},{name:"sessionAffinity",baseName:"sessionAffinity",type:"string"},{name:"sessionAffinityConfig",baseName:"sessionAffinityConfig",type:"V1SessionAffinityConfig"},{name:"type",baseName:"type",type:"string"}];t.V1ServiceSpec=V1ServiceSpec;class V1ServiceStatus{static getAttributeTypeMap(){return V1ServiceStatus.attributeTypeMap}}V1ServiceStatus.discriminator=undefined;V1ServiceStatus.attributeTypeMap=[{name:"loadBalancer",baseName:"loadBalancer",type:"V1LoadBalancerStatus"}];t.V1ServiceStatus=V1ServiceStatus;class V1SessionAffinityConfig{static getAttributeTypeMap(){return V1SessionAffinityConfig.attributeTypeMap}}V1SessionAffinityConfig.discriminator=undefined;V1SessionAffinityConfig.attributeTypeMap=[{name:"clientIP",baseName:"clientIP",type:"V1ClientIPConfig"}];t.V1SessionAffinityConfig=V1SessionAffinityConfig;class V1StatefulSet{static getAttributeTypeMap(){return V1StatefulSet.attributeTypeMap}}V1StatefulSet.discriminator=undefined;V1StatefulSet.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1StatefulSetSpec"},{name:"status",baseName:"status",type:"V1StatefulSetStatus"}];t.V1StatefulSet=V1StatefulSet;class V1StatefulSetCondition{static getAttributeTypeMap(){return V1StatefulSetCondition.attributeTypeMap}}V1StatefulSetCondition.discriminator=undefined;V1StatefulSetCondition.attributeTypeMap=[{name:"lastTransitionTime",baseName:"lastTransitionTime",type:"Date"},{name:"message",baseName:"message",type:"string"},{name:"reason",baseName:"reason",type:"string"},{name:"status",baseName:"status",type:"string"},{name:"type",baseName:"type",type:"string"}];t.V1StatefulSetCondition=V1StatefulSetCondition;class V1StatefulSetList{static getAttributeTypeMap(){return V1StatefulSetList.attributeTypeMap}}V1StatefulSetList.discriminator=undefined;V1StatefulSetList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1StatefulSetList=V1StatefulSetList;class V1StatefulSetSpec{static getAttributeTypeMap(){return V1StatefulSetSpec.attributeTypeMap}}V1StatefulSetSpec.discriminator=undefined;V1StatefulSetSpec.attributeTypeMap=[{name:"podManagementPolicy",baseName:"podManagementPolicy",type:"string"},{name:"replicas",baseName:"replicas",type:"number"},{name:"revisionHistoryLimit",baseName:"revisionHistoryLimit",type:"number"},{name:"selector",baseName:"selector",type:"V1LabelSelector"},{name:"serviceName",baseName:"serviceName",type:"string"},{name:"template",baseName:"template",type:"V1PodTemplateSpec"},{name:"updateStrategy",baseName:"updateStrategy",type:"V1StatefulSetUpdateStrategy"},{name:"volumeClaimTemplates",baseName:"volumeClaimTemplates",type:"Array"}];t.V1StatefulSetSpec=V1StatefulSetSpec;class V1StatefulSetStatus{static getAttributeTypeMap(){return V1StatefulSetStatus.attributeTypeMap}}V1StatefulSetStatus.discriminator=undefined;V1StatefulSetStatus.attributeTypeMap=[{name:"collisionCount",baseName:"collisionCount",type:"number"},{name:"conditions",baseName:"conditions",type:"Array"},{name:"currentReplicas",baseName:"currentReplicas",type:"number"},{name:"currentRevision",baseName:"currentRevision",type:"string"},{name:"observedGeneration",baseName:"observedGeneration",type:"number"},{name:"readyReplicas",baseName:"readyReplicas",type:"number"},{name:"replicas",baseName:"replicas",type:"number"},{name:"updateRevision",baseName:"updateRevision",type:"string"},{name:"updatedReplicas",baseName:"updatedReplicas",type:"number"}];t.V1StatefulSetStatus=V1StatefulSetStatus;class V1StatefulSetUpdateStrategy{static getAttributeTypeMap(){return V1StatefulSetUpdateStrategy.attributeTypeMap}}V1StatefulSetUpdateStrategy.discriminator=undefined;V1StatefulSetUpdateStrategy.attributeTypeMap=[{name:"rollingUpdate",baseName:"rollingUpdate",type:"V1RollingUpdateStatefulSetStrategy"},{name:"type",baseName:"type",type:"string"}];t.V1StatefulSetUpdateStrategy=V1StatefulSetUpdateStrategy;class V1Status{static getAttributeTypeMap(){return V1Status.attributeTypeMap}}V1Status.discriminator=undefined;V1Status.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"code",baseName:"code",type:"number"},{name:"details",baseName:"details",type:"V1StatusDetails"},{name:"kind",baseName:"kind",type:"string"},{name:"message",baseName:"message",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"},{name:"reason",baseName:"reason",type:"string"},{name:"status",baseName:"status",type:"string"}];t.V1Status=V1Status;class V1StatusCause{static getAttributeTypeMap(){return V1StatusCause.attributeTypeMap}}V1StatusCause.discriminator=undefined;V1StatusCause.attributeTypeMap=[{name:"field",baseName:"field",type:"string"},{name:"message",baseName:"message",type:"string"},{name:"reason",baseName:"reason",type:"string"}];t.V1StatusCause=V1StatusCause;class V1StatusDetails{static getAttributeTypeMap(){return V1StatusDetails.attributeTypeMap}}V1StatusDetails.discriminator=undefined;V1StatusDetails.attributeTypeMap=[{name:"causes",baseName:"causes",type:"Array"},{name:"group",baseName:"group",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"name",baseName:"name",type:"string"},{name:"retryAfterSeconds",baseName:"retryAfterSeconds",type:"number"},{name:"uid",baseName:"uid",type:"string"}];t.V1StatusDetails=V1StatusDetails;class V1StorageClass{static getAttributeTypeMap(){return V1StorageClass.attributeTypeMap}}V1StorageClass.discriminator=undefined;V1StorageClass.attributeTypeMap=[{name:"allowVolumeExpansion",baseName:"allowVolumeExpansion",type:"boolean"},{name:"allowedTopologies",baseName:"allowedTopologies",type:"Array"},{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"mountOptions",baseName:"mountOptions",type:"Array"},{name:"parameters",baseName:"parameters",type:"{ [key: string]: string; }"},{name:"provisioner",baseName:"provisioner",type:"string"},{name:"reclaimPolicy",baseName:"reclaimPolicy",type:"string"},{name:"volumeBindingMode",baseName:"volumeBindingMode",type:"string"}];t.V1StorageClass=V1StorageClass;class V1StorageClassList{static getAttributeTypeMap(){return V1StorageClassList.attributeTypeMap}}V1StorageClassList.discriminator=undefined;V1StorageClassList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1StorageClassList=V1StorageClassList;class V1StorageOSPersistentVolumeSource{static getAttributeTypeMap(){return V1StorageOSPersistentVolumeSource.attributeTypeMap}}V1StorageOSPersistentVolumeSource.discriminator=undefined;V1StorageOSPersistentVolumeSource.attributeTypeMap=[{name:"fsType",baseName:"fsType",type:"string"},{name:"readOnly",baseName:"readOnly",type:"boolean"},{name:"secretRef",baseName:"secretRef",type:"V1ObjectReference"},{name:"volumeName",baseName:"volumeName",type:"string"},{name:"volumeNamespace",baseName:"volumeNamespace",type:"string"}];t.V1StorageOSPersistentVolumeSource=V1StorageOSPersistentVolumeSource;class V1StorageOSVolumeSource{static getAttributeTypeMap(){return V1StorageOSVolumeSource.attributeTypeMap}}V1StorageOSVolumeSource.discriminator=undefined;V1StorageOSVolumeSource.attributeTypeMap=[{name:"fsType",baseName:"fsType",type:"string"},{name:"readOnly",baseName:"readOnly",type:"boolean"},{name:"secretRef",baseName:"secretRef",type:"V1LocalObjectReference"},{name:"volumeName",baseName:"volumeName",type:"string"},{name:"volumeNamespace",baseName:"volumeNamespace",type:"string"}];t.V1StorageOSVolumeSource=V1StorageOSVolumeSource;class V1Subject{static getAttributeTypeMap(){return V1Subject.attributeTypeMap}}V1Subject.discriminator=undefined;V1Subject.attributeTypeMap=[{name:"apiGroup",baseName:"apiGroup",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"name",baseName:"name",type:"string"},{name:"namespace",baseName:"namespace",type:"string"}];t.V1Subject=V1Subject;class V1SubjectAccessReview{static getAttributeTypeMap(){return V1SubjectAccessReview.attributeTypeMap}}V1SubjectAccessReview.discriminator=undefined;V1SubjectAccessReview.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1SubjectAccessReviewSpec"},{name:"status",baseName:"status",type:"V1SubjectAccessReviewStatus"}];t.V1SubjectAccessReview=V1SubjectAccessReview;class V1SubjectAccessReviewSpec{static getAttributeTypeMap(){return V1SubjectAccessReviewSpec.attributeTypeMap}}V1SubjectAccessReviewSpec.discriminator=undefined;V1SubjectAccessReviewSpec.attributeTypeMap=[{name:"extra",baseName:"extra",type:"{ [key: string]: Array; }"},{name:"groups",baseName:"groups",type:"Array"},{name:"nonResourceAttributes",baseName:"nonResourceAttributes",type:"V1NonResourceAttributes"},{name:"resourceAttributes",baseName:"resourceAttributes",type:"V1ResourceAttributes"},{name:"uid",baseName:"uid",type:"string"},{name:"user",baseName:"user",type:"string"}];t.V1SubjectAccessReviewSpec=V1SubjectAccessReviewSpec;class V1SubjectAccessReviewStatus{static getAttributeTypeMap(){return V1SubjectAccessReviewStatus.attributeTypeMap}}V1SubjectAccessReviewStatus.discriminator=undefined;V1SubjectAccessReviewStatus.attributeTypeMap=[{name:"allowed",baseName:"allowed",type:"boolean"},{name:"denied",baseName:"denied",type:"boolean"},{name:"evaluationError",baseName:"evaluationError",type:"string"},{name:"reason",baseName:"reason",type:"string"}];t.V1SubjectAccessReviewStatus=V1SubjectAccessReviewStatus;class V1SubjectRulesReviewStatus{static getAttributeTypeMap(){return V1SubjectRulesReviewStatus.attributeTypeMap}}V1SubjectRulesReviewStatus.discriminator=undefined;V1SubjectRulesReviewStatus.attributeTypeMap=[{name:"evaluationError",baseName:"evaluationError",type:"string"},{name:"incomplete",baseName:"incomplete",type:"boolean"},{name:"nonResourceRules",baseName:"nonResourceRules",type:"Array"},{name:"resourceRules",baseName:"resourceRules",type:"Array"}];t.V1SubjectRulesReviewStatus=V1SubjectRulesReviewStatus;class V1Sysctl{static getAttributeTypeMap(){return V1Sysctl.attributeTypeMap}}V1Sysctl.discriminator=undefined;V1Sysctl.attributeTypeMap=[{name:"name",baseName:"name",type:"string"},{name:"value",baseName:"value",type:"string"}];t.V1Sysctl=V1Sysctl;class V1TCPSocketAction{static getAttributeTypeMap(){return V1TCPSocketAction.attributeTypeMap}}V1TCPSocketAction.discriminator=undefined;V1TCPSocketAction.attributeTypeMap=[{name:"host",baseName:"host",type:"string"},{name:"port",baseName:"port",type:"any"}];t.V1TCPSocketAction=V1TCPSocketAction;class V1Taint{static getAttributeTypeMap(){return V1Taint.attributeTypeMap}}V1Taint.discriminator=undefined;V1Taint.attributeTypeMap=[{name:"effect",baseName:"effect",type:"string"},{name:"key",baseName:"key",type:"string"},{name:"timeAdded",baseName:"timeAdded",type:"Date"},{name:"value",baseName:"value",type:"string"}];t.V1Taint=V1Taint;class V1TokenReview{static getAttributeTypeMap(){return V1TokenReview.attributeTypeMap}}V1TokenReview.discriminator=undefined;V1TokenReview.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1TokenReviewSpec"},{name:"status",baseName:"status",type:"V1TokenReviewStatus"}];t.V1TokenReview=V1TokenReview;class V1TokenReviewSpec{static getAttributeTypeMap(){return V1TokenReviewSpec.attributeTypeMap}}V1TokenReviewSpec.discriminator=undefined;V1TokenReviewSpec.attributeTypeMap=[{name:"audiences",baseName:"audiences",type:"Array"},{name:"token",baseName:"token",type:"string"}];t.V1TokenReviewSpec=V1TokenReviewSpec;class V1TokenReviewStatus{static getAttributeTypeMap(){return V1TokenReviewStatus.attributeTypeMap}}V1TokenReviewStatus.discriminator=undefined;V1TokenReviewStatus.attributeTypeMap=[{name:"audiences",baseName:"audiences",type:"Array"},{name:"authenticated",baseName:"authenticated",type:"boolean"},{name:"error",baseName:"error",type:"string"},{name:"user",baseName:"user",type:"V1UserInfo"}];t.V1TokenReviewStatus=V1TokenReviewStatus;class V1Toleration{static getAttributeTypeMap(){return V1Toleration.attributeTypeMap}}V1Toleration.discriminator=undefined;V1Toleration.attributeTypeMap=[{name:"effect",baseName:"effect",type:"string"},{name:"key",baseName:"key",type:"string"},{name:"operator",baseName:"operator",type:"string"},{name:"tolerationSeconds",baseName:"tolerationSeconds",type:"number"},{name:"value",baseName:"value",type:"string"}];t.V1Toleration=V1Toleration;class V1TopologySelectorLabelRequirement{static getAttributeTypeMap(){return V1TopologySelectorLabelRequirement.attributeTypeMap}}V1TopologySelectorLabelRequirement.discriminator=undefined;V1TopologySelectorLabelRequirement.attributeTypeMap=[{name:"key",baseName:"key",type:"string"},{name:"values",baseName:"values",type:"Array"}];t.V1TopologySelectorLabelRequirement=V1TopologySelectorLabelRequirement;class V1TopologySelectorTerm{static getAttributeTypeMap(){return V1TopologySelectorTerm.attributeTypeMap}}V1TopologySelectorTerm.discriminator=undefined;V1TopologySelectorTerm.attributeTypeMap=[{name:"matchLabelExpressions",baseName:"matchLabelExpressions",type:"Array"}];t.V1TopologySelectorTerm=V1TopologySelectorTerm;class V1TypedLocalObjectReference{static getAttributeTypeMap(){return V1TypedLocalObjectReference.attributeTypeMap}}V1TypedLocalObjectReference.discriminator=undefined;V1TypedLocalObjectReference.attributeTypeMap=[{name:"apiGroup",baseName:"apiGroup",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"name",baseName:"name",type:"string"}];t.V1TypedLocalObjectReference=V1TypedLocalObjectReference;class V1UserInfo{static getAttributeTypeMap(){return V1UserInfo.attributeTypeMap}}V1UserInfo.discriminator=undefined;V1UserInfo.attributeTypeMap=[{name:"extra",baseName:"extra",type:"{ [key: string]: Array; }"},{name:"groups",baseName:"groups",type:"Array"},{name:"uid",baseName:"uid",type:"string"},{name:"username",baseName:"username",type:"string"}];t.V1UserInfo=V1UserInfo;class V1Volume{static getAttributeTypeMap(){return V1Volume.attributeTypeMap}}V1Volume.discriminator=undefined;V1Volume.attributeTypeMap=[{name:"awsElasticBlockStore",baseName:"awsElasticBlockStore",type:"V1AWSElasticBlockStoreVolumeSource"},{name:"azureDisk",baseName:"azureDisk",type:"V1AzureDiskVolumeSource"},{name:"azureFile",baseName:"azureFile",type:"V1AzureFileVolumeSource"},{name:"cephfs",baseName:"cephfs",type:"V1CephFSVolumeSource"},{name:"cinder",baseName:"cinder",type:"V1CinderVolumeSource"},{name:"configMap",baseName:"configMap",type:"V1ConfigMapVolumeSource"},{name:"downwardAPI",baseName:"downwardAPI",type:"V1DownwardAPIVolumeSource"},{name:"emptyDir",baseName:"emptyDir",type:"V1EmptyDirVolumeSource"},{name:"fc",baseName:"fc",type:"V1FCVolumeSource"},{name:"flexVolume",baseName:"flexVolume",type:"V1FlexVolumeSource"},{name:"flocker",baseName:"flocker",type:"V1FlockerVolumeSource"},{name:"gcePersistentDisk",baseName:"gcePersistentDisk",type:"V1GCEPersistentDiskVolumeSource"},{name:"gitRepo",baseName:"gitRepo",type:"V1GitRepoVolumeSource"},{name:"glusterfs",baseName:"glusterfs",type:"V1GlusterfsVolumeSource"},{name:"hostPath",baseName:"hostPath",type:"V1HostPathVolumeSource"},{name:"iscsi",baseName:"iscsi",type:"V1ISCSIVolumeSource"},{name:"name",baseName:"name",type:"string"},{name:"nfs",baseName:"nfs",type:"V1NFSVolumeSource"},{name:"persistentVolumeClaim",baseName:"persistentVolumeClaim",type:"V1PersistentVolumeClaimVolumeSource"},{name:"photonPersistentDisk",baseName:"photonPersistentDisk",type:"V1PhotonPersistentDiskVolumeSource"},{name:"portworxVolume",baseName:"portworxVolume",type:"V1PortworxVolumeSource"},{name:"projected",baseName:"projected",type:"V1ProjectedVolumeSource"},{name:"quobyte",baseName:"quobyte",type:"V1QuobyteVolumeSource"},{name:"rbd",baseName:"rbd",type:"V1RBDVolumeSource"},{name:"scaleIO",baseName:"scaleIO",type:"V1ScaleIOVolumeSource"},{name:"secret",baseName:"secret",type:"V1SecretVolumeSource"},{name:"storageos",baseName:"storageos",type:"V1StorageOSVolumeSource"},{name:"vsphereVolume",baseName:"vsphereVolume",type:"V1VsphereVirtualDiskVolumeSource"}];t.V1Volume=V1Volume;class V1VolumeAttachment{static getAttributeTypeMap(){return V1VolumeAttachment.attributeTypeMap}}V1VolumeAttachment.discriminator=undefined;V1VolumeAttachment.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1VolumeAttachmentSpec"},{name:"status",baseName:"status",type:"V1VolumeAttachmentStatus"}];t.V1VolumeAttachment=V1VolumeAttachment;class V1VolumeAttachmentList{static getAttributeTypeMap(){return V1VolumeAttachmentList.attributeTypeMap}}V1VolumeAttachmentList.discriminator=undefined;V1VolumeAttachmentList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1VolumeAttachmentList=V1VolumeAttachmentList;class V1VolumeAttachmentSource{static getAttributeTypeMap(){return V1VolumeAttachmentSource.attributeTypeMap}}V1VolumeAttachmentSource.discriminator=undefined;V1VolumeAttachmentSource.attributeTypeMap=[{name:"persistentVolumeName",baseName:"persistentVolumeName",type:"string"}];t.V1VolumeAttachmentSource=V1VolumeAttachmentSource;class V1VolumeAttachmentSpec{static getAttributeTypeMap(){return V1VolumeAttachmentSpec.attributeTypeMap}}V1VolumeAttachmentSpec.discriminator=undefined;V1VolumeAttachmentSpec.attributeTypeMap=[{name:"attacher",baseName:"attacher",type:"string"},{name:"nodeName",baseName:"nodeName",type:"string"},{name:"source",baseName:"source",type:"V1VolumeAttachmentSource"}];t.V1VolumeAttachmentSpec=V1VolumeAttachmentSpec;class V1VolumeAttachmentStatus{static getAttributeTypeMap(){return V1VolumeAttachmentStatus.attributeTypeMap}}V1VolumeAttachmentStatus.discriminator=undefined;V1VolumeAttachmentStatus.attributeTypeMap=[{name:"attachError",baseName:"attachError",type:"V1VolumeError"},{name:"attached",baseName:"attached",type:"boolean"},{name:"attachmentMetadata",baseName:"attachmentMetadata",type:"{ [key: string]: string; }"},{name:"detachError",baseName:"detachError",type:"V1VolumeError"}];t.V1VolumeAttachmentStatus=V1VolumeAttachmentStatus;class V1VolumeDevice{static getAttributeTypeMap(){return V1VolumeDevice.attributeTypeMap}}V1VolumeDevice.discriminator=undefined;V1VolumeDevice.attributeTypeMap=[{name:"devicePath",baseName:"devicePath",type:"string"},{name:"name",baseName:"name",type:"string"}];t.V1VolumeDevice=V1VolumeDevice;class V1VolumeError{static getAttributeTypeMap(){return V1VolumeError.attributeTypeMap}}V1VolumeError.discriminator=undefined;V1VolumeError.attributeTypeMap=[{name:"message",baseName:"message",type:"string"},{name:"time",baseName:"time",type:"Date"}];t.V1VolumeError=V1VolumeError;class V1VolumeMount{static getAttributeTypeMap(){return V1VolumeMount.attributeTypeMap}}V1VolumeMount.discriminator=undefined;V1VolumeMount.attributeTypeMap=[{name:"mountPath",baseName:"mountPath",type:"string"},{name:"mountPropagation",baseName:"mountPropagation",type:"string"},{name:"name",baseName:"name",type:"string"},{name:"readOnly",baseName:"readOnly",type:"boolean"},{name:"subPath",baseName:"subPath",type:"string"}];t.V1VolumeMount=V1VolumeMount;class V1VolumeNodeAffinity{static getAttributeTypeMap(){return V1VolumeNodeAffinity.attributeTypeMap}}V1VolumeNodeAffinity.discriminator=undefined;V1VolumeNodeAffinity.attributeTypeMap=[{name:"required",baseName:"required",type:"V1NodeSelector"}];t.V1VolumeNodeAffinity=V1VolumeNodeAffinity;class V1VolumeProjection{static getAttributeTypeMap(){return V1VolumeProjection.attributeTypeMap}}V1VolumeProjection.discriminator=undefined;V1VolumeProjection.attributeTypeMap=[{name:"configMap",baseName:"configMap",type:"V1ConfigMapProjection"},{name:"downwardAPI",baseName:"downwardAPI",type:"V1DownwardAPIProjection"},{name:"secret",baseName:"secret",type:"V1SecretProjection"},{name:"serviceAccountToken",baseName:"serviceAccountToken",type:"V1ServiceAccountTokenProjection"}];t.V1VolumeProjection=V1VolumeProjection;class V1VsphereVirtualDiskVolumeSource{static getAttributeTypeMap(){return V1VsphereVirtualDiskVolumeSource.attributeTypeMap}}V1VsphereVirtualDiskVolumeSource.discriminator=undefined;V1VsphereVirtualDiskVolumeSource.attributeTypeMap=[{name:"fsType",baseName:"fsType",type:"string"},{name:"storagePolicyID",baseName:"storagePolicyID",type:"string"},{name:"storagePolicyName",baseName:"storagePolicyName",type:"string"},{name:"volumePath",baseName:"volumePath",type:"string"}];t.V1VsphereVirtualDiskVolumeSource=V1VsphereVirtualDiskVolumeSource;class V1WatchEvent{static getAttributeTypeMap(){return V1WatchEvent.attributeTypeMap}}V1WatchEvent.discriminator=undefined;V1WatchEvent.attributeTypeMap=[{name:"object",baseName:"object",type:"RuntimeRawExtension"},{name:"type",baseName:"type",type:"string"}];t.V1WatchEvent=V1WatchEvent;class V1WeightedPodAffinityTerm{static getAttributeTypeMap(){return V1WeightedPodAffinityTerm.attributeTypeMap}}V1WeightedPodAffinityTerm.discriminator=undefined;V1WeightedPodAffinityTerm.attributeTypeMap=[{name:"podAffinityTerm",baseName:"podAffinityTerm",type:"V1PodAffinityTerm"},{name:"weight",baseName:"weight",type:"number"}];t.V1WeightedPodAffinityTerm=V1WeightedPodAffinityTerm;class V1alpha1AggregationRule{static getAttributeTypeMap(){return V1alpha1AggregationRule.attributeTypeMap}}V1alpha1AggregationRule.discriminator=undefined;V1alpha1AggregationRule.attributeTypeMap=[{name:"clusterRoleSelectors",baseName:"clusterRoleSelectors",type:"Array"}];t.V1alpha1AggregationRule=V1alpha1AggregationRule;class V1alpha1AuditSink{static getAttributeTypeMap(){return V1alpha1AuditSink.attributeTypeMap}}V1alpha1AuditSink.discriminator=undefined;V1alpha1AuditSink.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1alpha1AuditSinkSpec"}];t.V1alpha1AuditSink=V1alpha1AuditSink;class V1alpha1AuditSinkList{static getAttributeTypeMap(){return V1alpha1AuditSinkList.attributeTypeMap}}V1alpha1AuditSinkList.discriminator=undefined;V1alpha1AuditSinkList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1alpha1AuditSinkList=V1alpha1AuditSinkList;class V1alpha1AuditSinkSpec{static getAttributeTypeMap(){return V1alpha1AuditSinkSpec.attributeTypeMap}}V1alpha1AuditSinkSpec.discriminator=undefined;V1alpha1AuditSinkSpec.attributeTypeMap=[{name:"policy",baseName:"policy",type:"V1alpha1Policy"},{name:"webhook",baseName:"webhook",type:"V1alpha1Webhook"}];t.V1alpha1AuditSinkSpec=V1alpha1AuditSinkSpec;class V1alpha1ClusterRole{static getAttributeTypeMap(){return V1alpha1ClusterRole.attributeTypeMap}}V1alpha1ClusterRole.discriminator=undefined;V1alpha1ClusterRole.attributeTypeMap=[{name:"aggregationRule",baseName:"aggregationRule",type:"V1alpha1AggregationRule"},{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"rules",baseName:"rules",type:"Array"}];t.V1alpha1ClusterRole=V1alpha1ClusterRole;class V1alpha1ClusterRoleBinding{static getAttributeTypeMap(){return V1alpha1ClusterRoleBinding.attributeTypeMap}}V1alpha1ClusterRoleBinding.discriminator=undefined;V1alpha1ClusterRoleBinding.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"roleRef",baseName:"roleRef",type:"V1alpha1RoleRef"},{name:"subjects",baseName:"subjects",type:"Array"}];t.V1alpha1ClusterRoleBinding=V1alpha1ClusterRoleBinding;class V1alpha1ClusterRoleBindingList{static getAttributeTypeMap(){return V1alpha1ClusterRoleBindingList.attributeTypeMap}}V1alpha1ClusterRoleBindingList.discriminator=undefined;V1alpha1ClusterRoleBindingList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1alpha1ClusterRoleBindingList=V1alpha1ClusterRoleBindingList;class V1alpha1ClusterRoleList{static getAttributeTypeMap(){return V1alpha1ClusterRoleList.attributeTypeMap}}V1alpha1ClusterRoleList.discriminator=undefined;V1alpha1ClusterRoleList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1alpha1ClusterRoleList=V1alpha1ClusterRoleList;class V1alpha1Initializer{static getAttributeTypeMap(){return V1alpha1Initializer.attributeTypeMap}}V1alpha1Initializer.discriminator=undefined;V1alpha1Initializer.attributeTypeMap=[{name:"name",baseName:"name",type:"string"},{name:"rules",baseName:"rules",type:"Array"}];t.V1alpha1Initializer=V1alpha1Initializer;class V1alpha1InitializerConfiguration{static getAttributeTypeMap(){return V1alpha1InitializerConfiguration.attributeTypeMap}}V1alpha1InitializerConfiguration.discriminator=undefined;V1alpha1InitializerConfiguration.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"initializers",baseName:"initializers",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"}];t.V1alpha1InitializerConfiguration=V1alpha1InitializerConfiguration;class V1alpha1InitializerConfigurationList{static getAttributeTypeMap(){return V1alpha1InitializerConfigurationList.attributeTypeMap}}V1alpha1InitializerConfigurationList.discriminator=undefined;V1alpha1InitializerConfigurationList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1alpha1InitializerConfigurationList=V1alpha1InitializerConfigurationList;class V1alpha1PodPreset{static getAttributeTypeMap(){return V1alpha1PodPreset.attributeTypeMap}}V1alpha1PodPreset.discriminator=undefined;V1alpha1PodPreset.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1alpha1PodPresetSpec"}];t.V1alpha1PodPreset=V1alpha1PodPreset;class V1alpha1PodPresetList{static getAttributeTypeMap(){return V1alpha1PodPresetList.attributeTypeMap}}V1alpha1PodPresetList.discriminator=undefined;V1alpha1PodPresetList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1alpha1PodPresetList=V1alpha1PodPresetList;class V1alpha1PodPresetSpec{static getAttributeTypeMap(){return V1alpha1PodPresetSpec.attributeTypeMap}}V1alpha1PodPresetSpec.discriminator=undefined;V1alpha1PodPresetSpec.attributeTypeMap=[{name:"env",baseName:"env",type:"Array"},{name:"envFrom",baseName:"envFrom",type:"Array"},{name:"selector",baseName:"selector",type:"V1LabelSelector"},{name:"volumeMounts",baseName:"volumeMounts",type:"Array"},{name:"volumes",baseName:"volumes",type:"Array"}];t.V1alpha1PodPresetSpec=V1alpha1PodPresetSpec;class V1alpha1Policy{static getAttributeTypeMap(){return V1alpha1Policy.attributeTypeMap}}V1alpha1Policy.discriminator=undefined;V1alpha1Policy.attributeTypeMap=[{name:"level",baseName:"level",type:"string"},{name:"stages",baseName:"stages",type:"Array"}];t.V1alpha1Policy=V1alpha1Policy;class V1alpha1PolicyRule{static getAttributeTypeMap(){return V1alpha1PolicyRule.attributeTypeMap}}V1alpha1PolicyRule.discriminator=undefined;V1alpha1PolicyRule.attributeTypeMap=[{name:"apiGroups",baseName:"apiGroups",type:"Array"},{name:"nonResourceURLs",baseName:"nonResourceURLs",type:"Array"},{name:"resourceNames",baseName:"resourceNames",type:"Array"},{name:"resources",baseName:"resources",type:"Array"},{name:"verbs",baseName:"verbs",type:"Array"}];t.V1alpha1PolicyRule=V1alpha1PolicyRule;class V1alpha1PriorityClass{static getAttributeTypeMap(){return V1alpha1PriorityClass.attributeTypeMap}}V1alpha1PriorityClass.discriminator=undefined;V1alpha1PriorityClass.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"description",baseName:"description",type:"string"},{name:"globalDefault",baseName:"globalDefault",type:"boolean"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"value",baseName:"value",type:"number"}];t.V1alpha1PriorityClass=V1alpha1PriorityClass;class V1alpha1PriorityClassList{static getAttributeTypeMap(){return V1alpha1PriorityClassList.attributeTypeMap}}V1alpha1PriorityClassList.discriminator=undefined;V1alpha1PriorityClassList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1alpha1PriorityClassList=V1alpha1PriorityClassList;class V1alpha1Role{static getAttributeTypeMap(){return V1alpha1Role.attributeTypeMap}}V1alpha1Role.discriminator=undefined;V1alpha1Role.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"rules",baseName:"rules",type:"Array"}];t.V1alpha1Role=V1alpha1Role;class V1alpha1RoleBinding{static getAttributeTypeMap(){return V1alpha1RoleBinding.attributeTypeMap}}V1alpha1RoleBinding.discriminator=undefined;V1alpha1RoleBinding.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"roleRef",baseName:"roleRef",type:"V1alpha1RoleRef"},{name:"subjects",baseName:"subjects",type:"Array"}];t.V1alpha1RoleBinding=V1alpha1RoleBinding;class V1alpha1RoleBindingList{static getAttributeTypeMap(){return V1alpha1RoleBindingList.attributeTypeMap}}V1alpha1RoleBindingList.discriminator=undefined;V1alpha1RoleBindingList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1alpha1RoleBindingList=V1alpha1RoleBindingList;class V1alpha1RoleList{static getAttributeTypeMap(){return V1alpha1RoleList.attributeTypeMap}}V1alpha1RoleList.discriminator=undefined;V1alpha1RoleList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1alpha1RoleList=V1alpha1RoleList;class V1alpha1RoleRef{static getAttributeTypeMap(){return V1alpha1RoleRef.attributeTypeMap}}V1alpha1RoleRef.discriminator=undefined;V1alpha1RoleRef.attributeTypeMap=[{name:"apiGroup",baseName:"apiGroup",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"name",baseName:"name",type:"string"}];t.V1alpha1RoleRef=V1alpha1RoleRef;class V1alpha1Rule{static getAttributeTypeMap(){return V1alpha1Rule.attributeTypeMap}}V1alpha1Rule.discriminator=undefined;V1alpha1Rule.attributeTypeMap=[{name:"apiGroups",baseName:"apiGroups",type:"Array"},{name:"apiVersions",baseName:"apiVersions",type:"Array"},{name:"resources",baseName:"resources",type:"Array"}];t.V1alpha1Rule=V1alpha1Rule;class V1alpha1ServiceReference{static getAttributeTypeMap(){return V1alpha1ServiceReference.attributeTypeMap}}V1alpha1ServiceReference.discriminator=undefined;V1alpha1ServiceReference.attributeTypeMap=[{name:"name",baseName:"name",type:"string"},{name:"namespace",baseName:"namespace",type:"string"},{name:"path",baseName:"path",type:"string"}];t.V1alpha1ServiceReference=V1alpha1ServiceReference;class V1alpha1Subject{static getAttributeTypeMap(){return V1alpha1Subject.attributeTypeMap}}V1alpha1Subject.discriminator=undefined;V1alpha1Subject.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"name",baseName:"name",type:"string"},{name:"namespace",baseName:"namespace",type:"string"}];t.V1alpha1Subject=V1alpha1Subject;class V1alpha1VolumeAttachment{static getAttributeTypeMap(){return V1alpha1VolumeAttachment.attributeTypeMap}}V1alpha1VolumeAttachment.discriminator=undefined;V1alpha1VolumeAttachment.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1alpha1VolumeAttachmentSpec"},{name:"status",baseName:"status",type:"V1alpha1VolumeAttachmentStatus"}];t.V1alpha1VolumeAttachment=V1alpha1VolumeAttachment;class V1alpha1VolumeAttachmentList{static getAttributeTypeMap(){return V1alpha1VolumeAttachmentList.attributeTypeMap}}V1alpha1VolumeAttachmentList.discriminator=undefined;V1alpha1VolumeAttachmentList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1alpha1VolumeAttachmentList=V1alpha1VolumeAttachmentList;class V1alpha1VolumeAttachmentSource{static getAttributeTypeMap(){return V1alpha1VolumeAttachmentSource.attributeTypeMap}}V1alpha1VolumeAttachmentSource.discriminator=undefined;V1alpha1VolumeAttachmentSource.attributeTypeMap=[{name:"persistentVolumeName",baseName:"persistentVolumeName",type:"string"}];t.V1alpha1VolumeAttachmentSource=V1alpha1VolumeAttachmentSource;class V1alpha1VolumeAttachmentSpec{static getAttributeTypeMap(){return V1alpha1VolumeAttachmentSpec.attributeTypeMap}}V1alpha1VolumeAttachmentSpec.discriminator=undefined;V1alpha1VolumeAttachmentSpec.attributeTypeMap=[{name:"attacher",baseName:"attacher",type:"string"},{name:"nodeName",baseName:"nodeName",type:"string"},{name:"source",baseName:"source",type:"V1alpha1VolumeAttachmentSource"}];t.V1alpha1VolumeAttachmentSpec=V1alpha1VolumeAttachmentSpec;class V1alpha1VolumeAttachmentStatus{static getAttributeTypeMap(){return V1alpha1VolumeAttachmentStatus.attributeTypeMap}}V1alpha1VolumeAttachmentStatus.discriminator=undefined;V1alpha1VolumeAttachmentStatus.attributeTypeMap=[{name:"attachError",baseName:"attachError",type:"V1alpha1VolumeError"},{name:"attached",baseName:"attached",type:"boolean"},{name:"attachmentMetadata",baseName:"attachmentMetadata",type:"{ [key: string]: string; }"},{name:"detachError",baseName:"detachError",type:"V1alpha1VolumeError"}];t.V1alpha1VolumeAttachmentStatus=V1alpha1VolumeAttachmentStatus;class V1alpha1VolumeError{static getAttributeTypeMap(){return V1alpha1VolumeError.attributeTypeMap}}V1alpha1VolumeError.discriminator=undefined;V1alpha1VolumeError.attributeTypeMap=[{name:"message",baseName:"message",type:"string"},{name:"time",baseName:"time",type:"Date"}];t.V1alpha1VolumeError=V1alpha1VolumeError;class V1alpha1Webhook{static getAttributeTypeMap(){return V1alpha1Webhook.attributeTypeMap}}V1alpha1Webhook.discriminator=undefined;V1alpha1Webhook.attributeTypeMap=[{name:"clientConfig",baseName:"clientConfig",type:"V1alpha1WebhookClientConfig"},{name:"throttle",baseName:"throttle",type:"V1alpha1WebhookThrottleConfig"}];t.V1alpha1Webhook=V1alpha1Webhook;class V1alpha1WebhookClientConfig{static getAttributeTypeMap(){return V1alpha1WebhookClientConfig.attributeTypeMap}}V1alpha1WebhookClientConfig.discriminator=undefined;V1alpha1WebhookClientConfig.attributeTypeMap=[{name:"caBundle",baseName:"caBundle",type:"string"},{name:"service",baseName:"service",type:"V1alpha1ServiceReference"},{name:"url",baseName:"url",type:"string"}];t.V1alpha1WebhookClientConfig=V1alpha1WebhookClientConfig;class V1alpha1WebhookThrottleConfig{static getAttributeTypeMap(){return V1alpha1WebhookThrottleConfig.attributeTypeMap}}V1alpha1WebhookThrottleConfig.discriminator=undefined;V1alpha1WebhookThrottleConfig.attributeTypeMap=[{name:"burst",baseName:"burst",type:"number"},{name:"qps",baseName:"qps",type:"number"}];t.V1alpha1WebhookThrottleConfig=V1alpha1WebhookThrottleConfig;class V1beta1APIService{static getAttributeTypeMap(){return V1beta1APIService.attributeTypeMap}}V1beta1APIService.discriminator=undefined;V1beta1APIService.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1beta1APIServiceSpec"},{name:"status",baseName:"status",type:"V1beta1APIServiceStatus"}];t.V1beta1APIService=V1beta1APIService;class V1beta1APIServiceCondition{static getAttributeTypeMap(){return V1beta1APIServiceCondition.attributeTypeMap}}V1beta1APIServiceCondition.discriminator=undefined;V1beta1APIServiceCondition.attributeTypeMap=[{name:"lastTransitionTime",baseName:"lastTransitionTime",type:"Date"},{name:"message",baseName:"message",type:"string"},{name:"reason",baseName:"reason",type:"string"},{name:"status",baseName:"status",type:"string"},{name:"type",baseName:"type",type:"string"}];t.V1beta1APIServiceCondition=V1beta1APIServiceCondition;class V1beta1APIServiceList{static getAttributeTypeMap(){return V1beta1APIServiceList.attributeTypeMap}}V1beta1APIServiceList.discriminator=undefined;V1beta1APIServiceList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1beta1APIServiceList=V1beta1APIServiceList;class V1beta1APIServiceSpec{static getAttributeTypeMap(){return V1beta1APIServiceSpec.attributeTypeMap}}V1beta1APIServiceSpec.discriminator=undefined;V1beta1APIServiceSpec.attributeTypeMap=[{name:"caBundle",baseName:"caBundle",type:"string"},{name:"group",baseName:"group",type:"string"},{name:"groupPriorityMinimum",baseName:"groupPriorityMinimum",type:"number"},{name:"insecureSkipTLSVerify",baseName:"insecureSkipTLSVerify",type:"boolean"},{name:"service",baseName:"service",type:"ApiregistrationV1beta1ServiceReference"},{name:"version",baseName:"version",type:"string"},{name:"versionPriority",baseName:"versionPriority",type:"number"}];t.V1beta1APIServiceSpec=V1beta1APIServiceSpec;class V1beta1APIServiceStatus{static getAttributeTypeMap(){return V1beta1APIServiceStatus.attributeTypeMap}}V1beta1APIServiceStatus.discriminator=undefined;V1beta1APIServiceStatus.attributeTypeMap=[{name:"conditions",baseName:"conditions",type:"Array"}];t.V1beta1APIServiceStatus=V1beta1APIServiceStatus;class V1beta1AggregationRule{static getAttributeTypeMap(){return V1beta1AggregationRule.attributeTypeMap}}V1beta1AggregationRule.discriminator=undefined;V1beta1AggregationRule.attributeTypeMap=[{name:"clusterRoleSelectors",baseName:"clusterRoleSelectors",type:"Array"}];t.V1beta1AggregationRule=V1beta1AggregationRule;class V1beta1CertificateSigningRequest{static getAttributeTypeMap(){return V1beta1CertificateSigningRequest.attributeTypeMap}}V1beta1CertificateSigningRequest.discriminator=undefined;V1beta1CertificateSigningRequest.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1beta1CertificateSigningRequestSpec"},{name:"status",baseName:"status",type:"V1beta1CertificateSigningRequestStatus"}];t.V1beta1CertificateSigningRequest=V1beta1CertificateSigningRequest;class V1beta1CertificateSigningRequestCondition{static getAttributeTypeMap(){return V1beta1CertificateSigningRequestCondition.attributeTypeMap}}V1beta1CertificateSigningRequestCondition.discriminator=undefined;V1beta1CertificateSigningRequestCondition.attributeTypeMap=[{name:"lastUpdateTime",baseName:"lastUpdateTime",type:"Date"},{name:"message",baseName:"message",type:"string"},{name:"reason",baseName:"reason",type:"string"},{name:"type",baseName:"type",type:"string"}];t.V1beta1CertificateSigningRequestCondition=V1beta1CertificateSigningRequestCondition;class V1beta1CertificateSigningRequestList{static getAttributeTypeMap(){return V1beta1CertificateSigningRequestList.attributeTypeMap}}V1beta1CertificateSigningRequestList.discriminator=undefined;V1beta1CertificateSigningRequestList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1beta1CertificateSigningRequestList=V1beta1CertificateSigningRequestList;class V1beta1CertificateSigningRequestSpec{static getAttributeTypeMap(){return V1beta1CertificateSigningRequestSpec.attributeTypeMap}}V1beta1CertificateSigningRequestSpec.discriminator=undefined;V1beta1CertificateSigningRequestSpec.attributeTypeMap=[{name:"extra",baseName:"extra",type:"{ [key: string]: Array; }"},{name:"groups",baseName:"groups",type:"Array"},{name:"request",baseName:"request",type:"string"},{name:"uid",baseName:"uid",type:"string"},{name:"usages",baseName:"usages",type:"Array"},{name:"username",baseName:"username",type:"string"}];t.V1beta1CertificateSigningRequestSpec=V1beta1CertificateSigningRequestSpec;class V1beta1CertificateSigningRequestStatus{static getAttributeTypeMap(){return V1beta1CertificateSigningRequestStatus.attributeTypeMap}}V1beta1CertificateSigningRequestStatus.discriminator=undefined;V1beta1CertificateSigningRequestStatus.attributeTypeMap=[{name:"certificate",baseName:"certificate",type:"string"},{name:"conditions",baseName:"conditions",type:"Array"}];t.V1beta1CertificateSigningRequestStatus=V1beta1CertificateSigningRequestStatus;class V1beta1ClusterRole{static getAttributeTypeMap(){return V1beta1ClusterRole.attributeTypeMap}}V1beta1ClusterRole.discriminator=undefined;V1beta1ClusterRole.attributeTypeMap=[{name:"aggregationRule",baseName:"aggregationRule",type:"V1beta1AggregationRule"},{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"rules",baseName:"rules",type:"Array"}];t.V1beta1ClusterRole=V1beta1ClusterRole;class V1beta1ClusterRoleBinding{static getAttributeTypeMap(){return V1beta1ClusterRoleBinding.attributeTypeMap}}V1beta1ClusterRoleBinding.discriminator=undefined;V1beta1ClusterRoleBinding.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"roleRef",baseName:"roleRef",type:"V1beta1RoleRef"},{name:"subjects",baseName:"subjects",type:"Array"}];t.V1beta1ClusterRoleBinding=V1beta1ClusterRoleBinding;class V1beta1ClusterRoleBindingList{static getAttributeTypeMap(){return V1beta1ClusterRoleBindingList.attributeTypeMap}}V1beta1ClusterRoleBindingList.discriminator=undefined;V1beta1ClusterRoleBindingList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1beta1ClusterRoleBindingList=V1beta1ClusterRoleBindingList;class V1beta1ClusterRoleList{static getAttributeTypeMap(){return V1beta1ClusterRoleList.attributeTypeMap}}V1beta1ClusterRoleList.discriminator=undefined;V1beta1ClusterRoleList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1beta1ClusterRoleList=V1beta1ClusterRoleList;class V1beta1ControllerRevision{static getAttributeTypeMap(){return V1beta1ControllerRevision.attributeTypeMap}}V1beta1ControllerRevision.discriminator=undefined;V1beta1ControllerRevision.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"data",baseName:"data",type:"RuntimeRawExtension"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"revision",baseName:"revision",type:"number"}];t.V1beta1ControllerRevision=V1beta1ControllerRevision;class V1beta1ControllerRevisionList{static getAttributeTypeMap(){return V1beta1ControllerRevisionList.attributeTypeMap}}V1beta1ControllerRevisionList.discriminator=undefined;V1beta1ControllerRevisionList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1beta1ControllerRevisionList=V1beta1ControllerRevisionList;class V1beta1CronJob{static getAttributeTypeMap(){return V1beta1CronJob.attributeTypeMap}}V1beta1CronJob.discriminator=undefined;V1beta1CronJob.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1beta1CronJobSpec"},{name:"status",baseName:"status",type:"V1beta1CronJobStatus"}];t.V1beta1CronJob=V1beta1CronJob;class V1beta1CronJobList{static getAttributeTypeMap(){return V1beta1CronJobList.attributeTypeMap}}V1beta1CronJobList.discriminator=undefined;V1beta1CronJobList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1beta1CronJobList=V1beta1CronJobList;class V1beta1CronJobSpec{static getAttributeTypeMap(){return V1beta1CronJobSpec.attributeTypeMap}}V1beta1CronJobSpec.discriminator=undefined;V1beta1CronJobSpec.attributeTypeMap=[{name:"concurrencyPolicy",baseName:"concurrencyPolicy",type:"string"},{name:"failedJobsHistoryLimit",baseName:"failedJobsHistoryLimit",type:"number"},{name:"jobTemplate",baseName:"jobTemplate",type:"V1beta1JobTemplateSpec"},{name:"schedule",baseName:"schedule",type:"string"},{name:"startingDeadlineSeconds",baseName:"startingDeadlineSeconds",type:"number"},{name:"successfulJobsHistoryLimit",baseName:"successfulJobsHistoryLimit",type:"number"},{name:"suspend",baseName:"suspend",type:"boolean"}];t.V1beta1CronJobSpec=V1beta1CronJobSpec;class V1beta1CronJobStatus{static getAttributeTypeMap(){return V1beta1CronJobStatus.attributeTypeMap}}V1beta1CronJobStatus.discriminator=undefined;V1beta1CronJobStatus.attributeTypeMap=[{name:"active",baseName:"active",type:"Array"},{name:"lastScheduleTime",baseName:"lastScheduleTime",type:"Date"}];t.V1beta1CronJobStatus=V1beta1CronJobStatus;class V1beta1CustomResourceColumnDefinition{static getAttributeTypeMap(){return V1beta1CustomResourceColumnDefinition.attributeTypeMap}}V1beta1CustomResourceColumnDefinition.discriminator=undefined;V1beta1CustomResourceColumnDefinition.attributeTypeMap=[{name:"jSONPath",baseName:"JSONPath",type:"string"},{name:"description",baseName:"description",type:"string"},{name:"format",baseName:"format",type:"string"},{name:"name",baseName:"name",type:"string"},{name:"priority",baseName:"priority",type:"number"},{name:"type",baseName:"type",type:"string"}];t.V1beta1CustomResourceColumnDefinition=V1beta1CustomResourceColumnDefinition;class V1beta1CustomResourceConversion{static getAttributeTypeMap(){return V1beta1CustomResourceConversion.attributeTypeMap}}V1beta1CustomResourceConversion.discriminator=undefined;V1beta1CustomResourceConversion.attributeTypeMap=[{name:"strategy",baseName:"strategy",type:"string"},{name:"webhookClientConfig",baseName:"webhookClientConfig",type:"ApiextensionsV1beta1WebhookClientConfig"}];t.V1beta1CustomResourceConversion=V1beta1CustomResourceConversion;class V1beta1CustomResourceDefinition{static getAttributeTypeMap(){return V1beta1CustomResourceDefinition.attributeTypeMap}}V1beta1CustomResourceDefinition.discriminator=undefined;V1beta1CustomResourceDefinition.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1beta1CustomResourceDefinitionSpec"},{name:"status",baseName:"status",type:"V1beta1CustomResourceDefinitionStatus"}];t.V1beta1CustomResourceDefinition=V1beta1CustomResourceDefinition;class V1beta1CustomResourceDefinitionCondition{static getAttributeTypeMap(){return V1beta1CustomResourceDefinitionCondition.attributeTypeMap}}V1beta1CustomResourceDefinitionCondition.discriminator=undefined;V1beta1CustomResourceDefinitionCondition.attributeTypeMap=[{name:"lastTransitionTime",baseName:"lastTransitionTime",type:"Date"},{name:"message",baseName:"message",type:"string"},{name:"reason",baseName:"reason",type:"string"},{name:"status",baseName:"status",type:"string"},{name:"type",baseName:"type",type:"string"}];t.V1beta1CustomResourceDefinitionCondition=V1beta1CustomResourceDefinitionCondition;class V1beta1CustomResourceDefinitionList{static getAttributeTypeMap(){return V1beta1CustomResourceDefinitionList.attributeTypeMap}}V1beta1CustomResourceDefinitionList.discriminator=undefined;V1beta1CustomResourceDefinitionList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1beta1CustomResourceDefinitionList=V1beta1CustomResourceDefinitionList;class V1beta1CustomResourceDefinitionNames{static getAttributeTypeMap(){return V1beta1CustomResourceDefinitionNames.attributeTypeMap}}V1beta1CustomResourceDefinitionNames.discriminator=undefined;V1beta1CustomResourceDefinitionNames.attributeTypeMap=[{name:"categories",baseName:"categories",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"listKind",baseName:"listKind",type:"string"},{name:"plural",baseName:"plural",type:"string"},{name:"shortNames",baseName:"shortNames",type:"Array"},{name:"singular",baseName:"singular",type:"string"}];t.V1beta1CustomResourceDefinitionNames=V1beta1CustomResourceDefinitionNames;class V1beta1CustomResourceDefinitionSpec{static getAttributeTypeMap(){return V1beta1CustomResourceDefinitionSpec.attributeTypeMap}}V1beta1CustomResourceDefinitionSpec.discriminator=undefined;V1beta1CustomResourceDefinitionSpec.attributeTypeMap=[{name:"additionalPrinterColumns",baseName:"additionalPrinterColumns",type:"Array"},{name:"conversion",baseName:"conversion",type:"V1beta1CustomResourceConversion"},{name:"group",baseName:"group",type:"string"},{name:"names",baseName:"names",type:"V1beta1CustomResourceDefinitionNames"},{name:"scope",baseName:"scope",type:"string"},{name:"subresources",baseName:"subresources",type:"V1beta1CustomResourceSubresources"},{name:"validation",baseName:"validation",type:"V1beta1CustomResourceValidation"},{name:"version",baseName:"version",type:"string"},{name:"versions",baseName:"versions",type:"Array"}];t.V1beta1CustomResourceDefinitionSpec=V1beta1CustomResourceDefinitionSpec;class V1beta1CustomResourceDefinitionStatus{static getAttributeTypeMap(){return V1beta1CustomResourceDefinitionStatus.attributeTypeMap}}V1beta1CustomResourceDefinitionStatus.discriminator=undefined;V1beta1CustomResourceDefinitionStatus.attributeTypeMap=[{name:"acceptedNames",baseName:"acceptedNames",type:"V1beta1CustomResourceDefinitionNames"},{name:"conditions",baseName:"conditions",type:"Array"},{name:"storedVersions",baseName:"storedVersions",type:"Array"}];t.V1beta1CustomResourceDefinitionStatus=V1beta1CustomResourceDefinitionStatus;class V1beta1CustomResourceDefinitionVersion{static getAttributeTypeMap(){return V1beta1CustomResourceDefinitionVersion.attributeTypeMap}}V1beta1CustomResourceDefinitionVersion.discriminator=undefined;V1beta1CustomResourceDefinitionVersion.attributeTypeMap=[{name:"additionalPrinterColumns",baseName:"additionalPrinterColumns",type:"Array"},{name:"name",baseName:"name",type:"string"},{name:"schema",baseName:"schema",type:"V1beta1CustomResourceValidation"},{name:"served",baseName:"served",type:"boolean"},{name:"storage",baseName:"storage",type:"boolean"},{name:"subresources",baseName:"subresources",type:"V1beta1CustomResourceSubresources"}];t.V1beta1CustomResourceDefinitionVersion=V1beta1CustomResourceDefinitionVersion;class V1beta1CustomResourceSubresourceScale{static getAttributeTypeMap(){return V1beta1CustomResourceSubresourceScale.attributeTypeMap}}V1beta1CustomResourceSubresourceScale.discriminator=undefined;V1beta1CustomResourceSubresourceScale.attributeTypeMap=[{name:"labelSelectorPath",baseName:"labelSelectorPath",type:"string"},{name:"specReplicasPath",baseName:"specReplicasPath",type:"string"},{name:"statusReplicasPath",baseName:"statusReplicasPath",type:"string"}];t.V1beta1CustomResourceSubresourceScale=V1beta1CustomResourceSubresourceScale;class V1beta1CustomResourceSubresources{static getAttributeTypeMap(){return V1beta1CustomResourceSubresources.attributeTypeMap}}V1beta1CustomResourceSubresources.discriminator=undefined;V1beta1CustomResourceSubresources.attributeTypeMap=[{name:"scale",baseName:"scale",type:"V1beta1CustomResourceSubresourceScale"},{name:"status",baseName:"status",type:"any"}];t.V1beta1CustomResourceSubresources=V1beta1CustomResourceSubresources;class V1beta1CustomResourceValidation{static getAttributeTypeMap(){return V1beta1CustomResourceValidation.attributeTypeMap}}V1beta1CustomResourceValidation.discriminator=undefined;V1beta1CustomResourceValidation.attributeTypeMap=[{name:"openAPIV3Schema",baseName:"openAPIV3Schema",type:"V1beta1JSONSchemaProps"}];t.V1beta1CustomResourceValidation=V1beta1CustomResourceValidation;class V1beta1DaemonSet{static getAttributeTypeMap(){return V1beta1DaemonSet.attributeTypeMap}}V1beta1DaemonSet.discriminator=undefined;V1beta1DaemonSet.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1beta1DaemonSetSpec"},{name:"status",baseName:"status",type:"V1beta1DaemonSetStatus"}];t.V1beta1DaemonSet=V1beta1DaemonSet;class V1beta1DaemonSetCondition{static getAttributeTypeMap(){return V1beta1DaemonSetCondition.attributeTypeMap}}V1beta1DaemonSetCondition.discriminator=undefined;V1beta1DaemonSetCondition.attributeTypeMap=[{name:"lastTransitionTime",baseName:"lastTransitionTime",type:"Date"},{name:"message",baseName:"message",type:"string"},{name:"reason",baseName:"reason",type:"string"},{name:"status",baseName:"status",type:"string"},{name:"type",baseName:"type",type:"string"}];t.V1beta1DaemonSetCondition=V1beta1DaemonSetCondition;class V1beta1DaemonSetList{static getAttributeTypeMap(){return V1beta1DaemonSetList.attributeTypeMap}}V1beta1DaemonSetList.discriminator=undefined;V1beta1DaemonSetList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1beta1DaemonSetList=V1beta1DaemonSetList;class V1beta1DaemonSetSpec{static getAttributeTypeMap(){return V1beta1DaemonSetSpec.attributeTypeMap}}V1beta1DaemonSetSpec.discriminator=undefined;V1beta1DaemonSetSpec.attributeTypeMap=[{name:"minReadySeconds",baseName:"minReadySeconds",type:"number"},{name:"revisionHistoryLimit",baseName:"revisionHistoryLimit",type:"number"},{name:"selector",baseName:"selector",type:"V1LabelSelector"},{name:"template",baseName:"template",type:"V1PodTemplateSpec"},{name:"templateGeneration",baseName:"templateGeneration",type:"number"},{name:"updateStrategy",baseName:"updateStrategy",type:"V1beta1DaemonSetUpdateStrategy"}];t.V1beta1DaemonSetSpec=V1beta1DaemonSetSpec;class V1beta1DaemonSetStatus{static getAttributeTypeMap(){return V1beta1DaemonSetStatus.attributeTypeMap}}V1beta1DaemonSetStatus.discriminator=undefined;V1beta1DaemonSetStatus.attributeTypeMap=[{name:"collisionCount",baseName:"collisionCount",type:"number"},{name:"conditions",baseName:"conditions",type:"Array"},{name:"currentNumberScheduled",baseName:"currentNumberScheduled",type:"number"},{name:"desiredNumberScheduled",baseName:"desiredNumberScheduled",type:"number"},{name:"numberAvailable",baseName:"numberAvailable",type:"number"},{name:"numberMisscheduled",baseName:"numberMisscheduled",type:"number"},{name:"numberReady",baseName:"numberReady",type:"number"},{name:"numberUnavailable",baseName:"numberUnavailable",type:"number"},{name:"observedGeneration",baseName:"observedGeneration",type:"number"},{name:"updatedNumberScheduled",baseName:"updatedNumberScheduled",type:"number"}];t.V1beta1DaemonSetStatus=V1beta1DaemonSetStatus;class V1beta1DaemonSetUpdateStrategy{static getAttributeTypeMap(){return V1beta1DaemonSetUpdateStrategy.attributeTypeMap}}V1beta1DaemonSetUpdateStrategy.discriminator=undefined;V1beta1DaemonSetUpdateStrategy.attributeTypeMap=[{name:"rollingUpdate",baseName:"rollingUpdate",type:"V1beta1RollingUpdateDaemonSet"},{name:"type",baseName:"type",type:"string"}];t.V1beta1DaemonSetUpdateStrategy=V1beta1DaemonSetUpdateStrategy;class V1beta1Event{static getAttributeTypeMap(){return V1beta1Event.attributeTypeMap}}V1beta1Event.discriminator=undefined;V1beta1Event.attributeTypeMap=[{name:"action",baseName:"action",type:"string"},{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"deprecatedCount",baseName:"deprecatedCount",type:"number"},{name:"deprecatedFirstTimestamp",baseName:"deprecatedFirstTimestamp",type:"Date"},{name:"deprecatedLastTimestamp",baseName:"deprecatedLastTimestamp",type:"Date"},{name:"deprecatedSource",baseName:"deprecatedSource",type:"V1EventSource"},{name:"eventTime",baseName:"eventTime",type:"Date"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"note",baseName:"note",type:"string"},{name:"reason",baseName:"reason",type:"string"},{name:"regarding",baseName:"regarding",type:"V1ObjectReference"},{name:"related",baseName:"related",type:"V1ObjectReference"},{name:"reportingController",baseName:"reportingController",type:"string"},{name:"reportingInstance",baseName:"reportingInstance",type:"string"},{name:"series",baseName:"series",type:"V1beta1EventSeries"},{name:"type",baseName:"type",type:"string"}];t.V1beta1Event=V1beta1Event;class V1beta1EventList{static getAttributeTypeMap(){return V1beta1EventList.attributeTypeMap}}V1beta1EventList.discriminator=undefined;V1beta1EventList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1beta1EventList=V1beta1EventList;class V1beta1EventSeries{static getAttributeTypeMap(){return V1beta1EventSeries.attributeTypeMap}}V1beta1EventSeries.discriminator=undefined;V1beta1EventSeries.attributeTypeMap=[{name:"count",baseName:"count",type:"number"},{name:"lastObservedTime",baseName:"lastObservedTime",type:"Date"},{name:"state",baseName:"state",type:"string"}];t.V1beta1EventSeries=V1beta1EventSeries;class V1beta1Eviction{static getAttributeTypeMap(){return V1beta1Eviction.attributeTypeMap}}V1beta1Eviction.discriminator=undefined;V1beta1Eviction.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"deleteOptions",baseName:"deleteOptions",type:"V1DeleteOptions"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"}];t.V1beta1Eviction=V1beta1Eviction;class V1beta1ExternalDocumentation{static getAttributeTypeMap(){return V1beta1ExternalDocumentation.attributeTypeMap}}V1beta1ExternalDocumentation.discriminator=undefined;V1beta1ExternalDocumentation.attributeTypeMap=[{name:"description",baseName:"description",type:"string"},{name:"url",baseName:"url",type:"string"}];t.V1beta1ExternalDocumentation=V1beta1ExternalDocumentation;class V1beta1HTTPIngressPath{static getAttributeTypeMap(){return V1beta1HTTPIngressPath.attributeTypeMap}}V1beta1HTTPIngressPath.discriminator=undefined;V1beta1HTTPIngressPath.attributeTypeMap=[{name:"backend",baseName:"backend",type:"V1beta1IngressBackend"},{name:"path",baseName:"path",type:"string"}];t.V1beta1HTTPIngressPath=V1beta1HTTPIngressPath;class V1beta1HTTPIngressRuleValue{static getAttributeTypeMap(){return V1beta1HTTPIngressRuleValue.attributeTypeMap}}V1beta1HTTPIngressRuleValue.discriminator=undefined;V1beta1HTTPIngressRuleValue.attributeTypeMap=[{name:"paths",baseName:"paths",type:"Array"}];t.V1beta1HTTPIngressRuleValue=V1beta1HTTPIngressRuleValue;class V1beta1IPBlock{static getAttributeTypeMap(){return V1beta1IPBlock.attributeTypeMap}}V1beta1IPBlock.discriminator=undefined;V1beta1IPBlock.attributeTypeMap=[{name:"cidr",baseName:"cidr",type:"string"},{name:"except",baseName:"except",type:"Array"}];t.V1beta1IPBlock=V1beta1IPBlock;class V1beta1Ingress{static getAttributeTypeMap(){return V1beta1Ingress.attributeTypeMap}}V1beta1Ingress.discriminator=undefined;V1beta1Ingress.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1beta1IngressSpec"},{name:"status",baseName:"status",type:"V1beta1IngressStatus"}];t.V1beta1Ingress=V1beta1Ingress;class V1beta1IngressBackend{static getAttributeTypeMap(){return V1beta1IngressBackend.attributeTypeMap}}V1beta1IngressBackend.discriminator=undefined;V1beta1IngressBackend.attributeTypeMap=[{name:"serviceName",baseName:"serviceName",type:"string"},{name:"servicePort",baseName:"servicePort",type:"any"}];t.V1beta1IngressBackend=V1beta1IngressBackend;class V1beta1IngressList{static getAttributeTypeMap(){return V1beta1IngressList.attributeTypeMap}}V1beta1IngressList.discriminator=undefined;V1beta1IngressList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1beta1IngressList=V1beta1IngressList;class V1beta1IngressRule{static getAttributeTypeMap(){return V1beta1IngressRule.attributeTypeMap}}V1beta1IngressRule.discriminator=undefined;V1beta1IngressRule.attributeTypeMap=[{name:"host",baseName:"host",type:"string"},{name:"http",baseName:"http",type:"V1beta1HTTPIngressRuleValue"}];t.V1beta1IngressRule=V1beta1IngressRule;class V1beta1IngressSpec{static getAttributeTypeMap(){return V1beta1IngressSpec.attributeTypeMap}}V1beta1IngressSpec.discriminator=undefined;V1beta1IngressSpec.attributeTypeMap=[{name:"backend",baseName:"backend",type:"V1beta1IngressBackend"},{name:"rules",baseName:"rules",type:"Array"},{name:"tls",baseName:"tls",type:"Array"}];t.V1beta1IngressSpec=V1beta1IngressSpec;class V1beta1IngressStatus{static getAttributeTypeMap(){return V1beta1IngressStatus.attributeTypeMap}}V1beta1IngressStatus.discriminator=undefined;V1beta1IngressStatus.attributeTypeMap=[{name:"loadBalancer",baseName:"loadBalancer",type:"V1LoadBalancerStatus"}];t.V1beta1IngressStatus=V1beta1IngressStatus;class V1beta1IngressTLS{static getAttributeTypeMap(){return V1beta1IngressTLS.attributeTypeMap}}V1beta1IngressTLS.discriminator=undefined;V1beta1IngressTLS.attributeTypeMap=[{name:"hosts",baseName:"hosts",type:"Array"},{name:"secretName",baseName:"secretName",type:"string"}];t.V1beta1IngressTLS=V1beta1IngressTLS;class V1beta1JSONSchemaProps{static getAttributeTypeMap(){return V1beta1JSONSchemaProps.attributeTypeMap}}V1beta1JSONSchemaProps.discriminator=undefined;V1beta1JSONSchemaProps.attributeTypeMap=[{name:"ref",baseName:"$ref",type:"string"},{name:"schema",baseName:"$schema",type:"string"},{name:"additionalItems",baseName:"additionalItems",type:"any"},{name:"additionalProperties",baseName:"additionalProperties",type:"any"},{name:"allOf",baseName:"allOf",type:"Array"},{name:"anyOf",baseName:"anyOf",type:"Array"},{name:"_default",baseName:"default",type:"any"},{name:"definitions",baseName:"definitions",type:"{ [key: string]: V1beta1JSONSchemaProps; }"},{name:"dependencies",baseName:"dependencies",type:"{ [key: string]: any; }"},{name:"description",baseName:"description",type:"string"},{name:"_enum",baseName:"enum",type:"Array"},{name:"example",baseName:"example",type:"any"},{name:"exclusiveMaximum",baseName:"exclusiveMaximum",type:"boolean"},{name:"exclusiveMinimum",baseName:"exclusiveMinimum",type:"boolean"},{name:"externalDocs",baseName:"externalDocs",type:"V1beta1ExternalDocumentation"},{name:"format",baseName:"format",type:"string"},{name:"id",baseName:"id",type:"string"},{name:"items",baseName:"items",type:"any"},{name:"maxItems",baseName:"maxItems",type:"number"},{name:"maxLength",baseName:"maxLength",type:"number"},{name:"maxProperties",baseName:"maxProperties",type:"number"},{name:"maximum",baseName:"maximum",type:"number"},{name:"minItems",baseName:"minItems",type:"number"},{name:"minLength",baseName:"minLength",type:"number"},{name:"minProperties",baseName:"minProperties",type:"number"},{name:"minimum",baseName:"minimum",type:"number"},{name:"multipleOf",baseName:"multipleOf",type:"number"},{name:"not",baseName:"not",type:"V1beta1JSONSchemaProps"},{name:"oneOf",baseName:"oneOf",type:"Array"},{name:"pattern",baseName:"pattern",type:"string"},{name:"patternProperties",baseName:"patternProperties",type:"{ [key: string]: V1beta1JSONSchemaProps; }"},{name:"properties",baseName:"properties",type:"{ [key: string]: V1beta1JSONSchemaProps; }"},{name:"required",baseName:"required",type:"Array"},{name:"title",baseName:"title",type:"string"},{name:"type",baseName:"type",type:"string"},{name:"uniqueItems",baseName:"uniqueItems",type:"boolean"}];t.V1beta1JSONSchemaProps=V1beta1JSONSchemaProps;class V1beta1JobTemplateSpec{static getAttributeTypeMap(){return V1beta1JobTemplateSpec.attributeTypeMap}}V1beta1JobTemplateSpec.discriminator=undefined;V1beta1JobTemplateSpec.attributeTypeMap=[{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1JobSpec"}];t.V1beta1JobTemplateSpec=V1beta1JobTemplateSpec;class V1beta1Lease{static getAttributeTypeMap(){return V1beta1Lease.attributeTypeMap}}V1beta1Lease.discriminator=undefined;V1beta1Lease.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1beta1LeaseSpec"}];t.V1beta1Lease=V1beta1Lease;class V1beta1LeaseList{static getAttributeTypeMap(){return V1beta1LeaseList.attributeTypeMap}}V1beta1LeaseList.discriminator=undefined;V1beta1LeaseList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1beta1LeaseList=V1beta1LeaseList;class V1beta1LeaseSpec{static getAttributeTypeMap(){return V1beta1LeaseSpec.attributeTypeMap}}V1beta1LeaseSpec.discriminator=undefined;V1beta1LeaseSpec.attributeTypeMap=[{name:"acquireTime",baseName:"acquireTime",type:"Date"},{name:"holderIdentity",baseName:"holderIdentity",type:"string"},{name:"leaseDurationSeconds",baseName:"leaseDurationSeconds",type:"number"},{name:"leaseTransitions",baseName:"leaseTransitions",type:"number"},{name:"renewTime",baseName:"renewTime",type:"Date"}];t.V1beta1LeaseSpec=V1beta1LeaseSpec;class V1beta1LocalSubjectAccessReview{static getAttributeTypeMap(){return V1beta1LocalSubjectAccessReview.attributeTypeMap}}V1beta1LocalSubjectAccessReview.discriminator=undefined;V1beta1LocalSubjectAccessReview.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1beta1SubjectAccessReviewSpec"},{name:"status",baseName:"status",type:"V1beta1SubjectAccessReviewStatus"}];t.V1beta1LocalSubjectAccessReview=V1beta1LocalSubjectAccessReview;class V1beta1MutatingWebhookConfiguration{static getAttributeTypeMap(){return V1beta1MutatingWebhookConfiguration.attributeTypeMap}}V1beta1MutatingWebhookConfiguration.discriminator=undefined;V1beta1MutatingWebhookConfiguration.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"webhooks",baseName:"webhooks",type:"Array"}];t.V1beta1MutatingWebhookConfiguration=V1beta1MutatingWebhookConfiguration;class V1beta1MutatingWebhookConfigurationList{static getAttributeTypeMap(){return V1beta1MutatingWebhookConfigurationList.attributeTypeMap}}V1beta1MutatingWebhookConfigurationList.discriminator=undefined;V1beta1MutatingWebhookConfigurationList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1beta1MutatingWebhookConfigurationList=V1beta1MutatingWebhookConfigurationList;class V1beta1NetworkPolicy{static getAttributeTypeMap(){return V1beta1NetworkPolicy.attributeTypeMap}}V1beta1NetworkPolicy.discriminator=undefined;V1beta1NetworkPolicy.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1beta1NetworkPolicySpec"}];t.V1beta1NetworkPolicy=V1beta1NetworkPolicy;class V1beta1NetworkPolicyEgressRule{static getAttributeTypeMap(){return V1beta1NetworkPolicyEgressRule.attributeTypeMap}}V1beta1NetworkPolicyEgressRule.discriminator=undefined;V1beta1NetworkPolicyEgressRule.attributeTypeMap=[{name:"ports",baseName:"ports",type:"Array"},{name:"to",baseName:"to",type:"Array"}];t.V1beta1NetworkPolicyEgressRule=V1beta1NetworkPolicyEgressRule;class V1beta1NetworkPolicyIngressRule{static getAttributeTypeMap(){return V1beta1NetworkPolicyIngressRule.attributeTypeMap}}V1beta1NetworkPolicyIngressRule.discriminator=undefined;V1beta1NetworkPolicyIngressRule.attributeTypeMap=[{name:"from",baseName:"from",type:"Array"},{name:"ports",baseName:"ports",type:"Array"}];t.V1beta1NetworkPolicyIngressRule=V1beta1NetworkPolicyIngressRule;class V1beta1NetworkPolicyList{static getAttributeTypeMap(){return V1beta1NetworkPolicyList.attributeTypeMap}}V1beta1NetworkPolicyList.discriminator=undefined;V1beta1NetworkPolicyList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1beta1NetworkPolicyList=V1beta1NetworkPolicyList;class V1beta1NetworkPolicyPeer{static getAttributeTypeMap(){return V1beta1NetworkPolicyPeer.attributeTypeMap}}V1beta1NetworkPolicyPeer.discriminator=undefined;V1beta1NetworkPolicyPeer.attributeTypeMap=[{name:"ipBlock",baseName:"ipBlock",type:"V1beta1IPBlock"},{name:"namespaceSelector",baseName:"namespaceSelector",type:"V1LabelSelector"},{name:"podSelector",baseName:"podSelector",type:"V1LabelSelector"}];t.V1beta1NetworkPolicyPeer=V1beta1NetworkPolicyPeer;class V1beta1NetworkPolicyPort{static getAttributeTypeMap(){return V1beta1NetworkPolicyPort.attributeTypeMap}}V1beta1NetworkPolicyPort.discriminator=undefined;V1beta1NetworkPolicyPort.attributeTypeMap=[{name:"port",baseName:"port",type:"any"},{name:"protocol",baseName:"protocol",type:"string"}];t.V1beta1NetworkPolicyPort=V1beta1NetworkPolicyPort;class V1beta1NetworkPolicySpec{static getAttributeTypeMap(){return V1beta1NetworkPolicySpec.attributeTypeMap}}V1beta1NetworkPolicySpec.discriminator=undefined;V1beta1NetworkPolicySpec.attributeTypeMap=[{name:"egress",baseName:"egress",type:"Array"},{name:"ingress",baseName:"ingress",type:"Array"},{name:"podSelector",baseName:"podSelector",type:"V1LabelSelector"},{name:"policyTypes",baseName:"policyTypes",type:"Array"}];t.V1beta1NetworkPolicySpec=V1beta1NetworkPolicySpec;class V1beta1NonResourceAttributes{static getAttributeTypeMap(){return V1beta1NonResourceAttributes.attributeTypeMap}}V1beta1NonResourceAttributes.discriminator=undefined;V1beta1NonResourceAttributes.attributeTypeMap=[{name:"path",baseName:"path",type:"string"},{name:"verb",baseName:"verb",type:"string"}];t.V1beta1NonResourceAttributes=V1beta1NonResourceAttributes;class V1beta1NonResourceRule{static getAttributeTypeMap(){return V1beta1NonResourceRule.attributeTypeMap}}V1beta1NonResourceRule.discriminator=undefined;V1beta1NonResourceRule.attributeTypeMap=[{name:"nonResourceURLs",baseName:"nonResourceURLs",type:"Array"},{name:"verbs",baseName:"verbs",type:"Array"}];t.V1beta1NonResourceRule=V1beta1NonResourceRule;class V1beta1PodDisruptionBudget{static getAttributeTypeMap(){return V1beta1PodDisruptionBudget.attributeTypeMap}}V1beta1PodDisruptionBudget.discriminator=undefined;V1beta1PodDisruptionBudget.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1beta1PodDisruptionBudgetSpec"},{name:"status",baseName:"status",type:"V1beta1PodDisruptionBudgetStatus"}];t.V1beta1PodDisruptionBudget=V1beta1PodDisruptionBudget;class V1beta1PodDisruptionBudgetList{static getAttributeTypeMap(){return V1beta1PodDisruptionBudgetList.attributeTypeMap}}V1beta1PodDisruptionBudgetList.discriminator=undefined;V1beta1PodDisruptionBudgetList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1beta1PodDisruptionBudgetList=V1beta1PodDisruptionBudgetList;class V1beta1PodDisruptionBudgetSpec{static getAttributeTypeMap(){return V1beta1PodDisruptionBudgetSpec.attributeTypeMap}}V1beta1PodDisruptionBudgetSpec.discriminator=undefined;V1beta1PodDisruptionBudgetSpec.attributeTypeMap=[{name:"maxUnavailable",baseName:"maxUnavailable",type:"any"},{name:"minAvailable",baseName:"minAvailable",type:"any"},{name:"selector",baseName:"selector",type:"V1LabelSelector"}];t.V1beta1PodDisruptionBudgetSpec=V1beta1PodDisruptionBudgetSpec;class V1beta1PodDisruptionBudgetStatus{static getAttributeTypeMap(){return V1beta1PodDisruptionBudgetStatus.attributeTypeMap}}V1beta1PodDisruptionBudgetStatus.discriminator=undefined;V1beta1PodDisruptionBudgetStatus.attributeTypeMap=[{name:"currentHealthy",baseName:"currentHealthy",type:"number"},{name:"desiredHealthy",baseName:"desiredHealthy",type:"number"},{name:"disruptedPods",baseName:"disruptedPods",type:"{ [key: string]: Date; }"},{name:"disruptionsAllowed",baseName:"disruptionsAllowed",type:"number"},{name:"expectedPods",baseName:"expectedPods",type:"number"},{name:"observedGeneration",baseName:"observedGeneration",type:"number"}];t.V1beta1PodDisruptionBudgetStatus=V1beta1PodDisruptionBudgetStatus;class V1beta1PolicyRule{static getAttributeTypeMap(){return V1beta1PolicyRule.attributeTypeMap}}V1beta1PolicyRule.discriminator=undefined;V1beta1PolicyRule.attributeTypeMap=[{name:"apiGroups",baseName:"apiGroups",type:"Array"},{name:"nonResourceURLs",baseName:"nonResourceURLs",type:"Array"},{name:"resourceNames",baseName:"resourceNames",type:"Array"},{name:"resources",baseName:"resources",type:"Array"},{name:"verbs",baseName:"verbs",type:"Array"}];t.V1beta1PolicyRule=V1beta1PolicyRule;class V1beta1PriorityClass{static getAttributeTypeMap(){return V1beta1PriorityClass.attributeTypeMap}}V1beta1PriorityClass.discriminator=undefined;V1beta1PriorityClass.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"description",baseName:"description",type:"string"},{name:"globalDefault",baseName:"globalDefault",type:"boolean"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"value",baseName:"value",type:"number"}];t.V1beta1PriorityClass=V1beta1PriorityClass;class V1beta1PriorityClassList{static getAttributeTypeMap(){return V1beta1PriorityClassList.attributeTypeMap}}V1beta1PriorityClassList.discriminator=undefined;V1beta1PriorityClassList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1beta1PriorityClassList=V1beta1PriorityClassList;class V1beta1ReplicaSet{static getAttributeTypeMap(){return V1beta1ReplicaSet.attributeTypeMap}}V1beta1ReplicaSet.discriminator=undefined;V1beta1ReplicaSet.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1beta1ReplicaSetSpec"},{name:"status",baseName:"status",type:"V1beta1ReplicaSetStatus"}];t.V1beta1ReplicaSet=V1beta1ReplicaSet;class V1beta1ReplicaSetCondition{static getAttributeTypeMap(){return V1beta1ReplicaSetCondition.attributeTypeMap}}V1beta1ReplicaSetCondition.discriminator=undefined;V1beta1ReplicaSetCondition.attributeTypeMap=[{name:"lastTransitionTime",baseName:"lastTransitionTime",type:"Date"},{name:"message",baseName:"message",type:"string"},{name:"reason",baseName:"reason",type:"string"},{name:"status",baseName:"status",type:"string"},{name:"type",baseName:"type",type:"string"}];t.V1beta1ReplicaSetCondition=V1beta1ReplicaSetCondition;class V1beta1ReplicaSetList{static getAttributeTypeMap(){return V1beta1ReplicaSetList.attributeTypeMap}}V1beta1ReplicaSetList.discriminator=undefined;V1beta1ReplicaSetList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1beta1ReplicaSetList=V1beta1ReplicaSetList;class V1beta1ReplicaSetSpec{static getAttributeTypeMap(){return V1beta1ReplicaSetSpec.attributeTypeMap}}V1beta1ReplicaSetSpec.discriminator=undefined;V1beta1ReplicaSetSpec.attributeTypeMap=[{name:"minReadySeconds",baseName:"minReadySeconds",type:"number"},{name:"replicas",baseName:"replicas",type:"number"},{name:"selector",baseName:"selector",type:"V1LabelSelector"},{name:"template",baseName:"template",type:"V1PodTemplateSpec"}];t.V1beta1ReplicaSetSpec=V1beta1ReplicaSetSpec;class V1beta1ReplicaSetStatus{static getAttributeTypeMap(){return V1beta1ReplicaSetStatus.attributeTypeMap}}V1beta1ReplicaSetStatus.discriminator=undefined;V1beta1ReplicaSetStatus.attributeTypeMap=[{name:"availableReplicas",baseName:"availableReplicas",type:"number"},{name:"conditions",baseName:"conditions",type:"Array"},{name:"fullyLabeledReplicas",baseName:"fullyLabeledReplicas",type:"number"},{name:"observedGeneration",baseName:"observedGeneration",type:"number"},{name:"readyReplicas",baseName:"readyReplicas",type:"number"},{name:"replicas",baseName:"replicas",type:"number"}];t.V1beta1ReplicaSetStatus=V1beta1ReplicaSetStatus;class V1beta1ResourceAttributes{static getAttributeTypeMap(){return V1beta1ResourceAttributes.attributeTypeMap}}V1beta1ResourceAttributes.discriminator=undefined;V1beta1ResourceAttributes.attributeTypeMap=[{name:"group",baseName:"group",type:"string"},{name:"name",baseName:"name",type:"string"},{name:"namespace",baseName:"namespace",type:"string"},{name:"resource",baseName:"resource",type:"string"},{name:"subresource",baseName:"subresource",type:"string"},{name:"verb",baseName:"verb",type:"string"},{name:"version",baseName:"version",type:"string"}];t.V1beta1ResourceAttributes=V1beta1ResourceAttributes;class V1beta1ResourceRule{static getAttributeTypeMap(){return V1beta1ResourceRule.attributeTypeMap}}V1beta1ResourceRule.discriminator=undefined;V1beta1ResourceRule.attributeTypeMap=[{name:"apiGroups",baseName:"apiGroups",type:"Array"},{name:"resourceNames",baseName:"resourceNames",type:"Array"},{name:"resources",baseName:"resources",type:"Array"},{name:"verbs",baseName:"verbs",type:"Array"}];t.V1beta1ResourceRule=V1beta1ResourceRule;class V1beta1Role{static getAttributeTypeMap(){return V1beta1Role.attributeTypeMap}}V1beta1Role.discriminator=undefined;V1beta1Role.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"rules",baseName:"rules",type:"Array"}];t.V1beta1Role=V1beta1Role;class V1beta1RoleBinding{static getAttributeTypeMap(){return V1beta1RoleBinding.attributeTypeMap}}V1beta1RoleBinding.discriminator=undefined;V1beta1RoleBinding.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"roleRef",baseName:"roleRef",type:"V1beta1RoleRef"},{name:"subjects",baseName:"subjects",type:"Array"}];t.V1beta1RoleBinding=V1beta1RoleBinding;class V1beta1RoleBindingList{static getAttributeTypeMap(){return V1beta1RoleBindingList.attributeTypeMap}}V1beta1RoleBindingList.discriminator=undefined;V1beta1RoleBindingList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1beta1RoleBindingList=V1beta1RoleBindingList;class V1beta1RoleList{static getAttributeTypeMap(){return V1beta1RoleList.attributeTypeMap}}V1beta1RoleList.discriminator=undefined;V1beta1RoleList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1beta1RoleList=V1beta1RoleList;class V1beta1RoleRef{static getAttributeTypeMap(){return V1beta1RoleRef.attributeTypeMap}}V1beta1RoleRef.discriminator=undefined;V1beta1RoleRef.attributeTypeMap=[{name:"apiGroup",baseName:"apiGroup",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"name",baseName:"name",type:"string"}];t.V1beta1RoleRef=V1beta1RoleRef;class V1beta1RollingUpdateDaemonSet{static getAttributeTypeMap(){return V1beta1RollingUpdateDaemonSet.attributeTypeMap}}V1beta1RollingUpdateDaemonSet.discriminator=undefined;V1beta1RollingUpdateDaemonSet.attributeTypeMap=[{name:"maxUnavailable",baseName:"maxUnavailable",type:"any"}];t.V1beta1RollingUpdateDaemonSet=V1beta1RollingUpdateDaemonSet;class V1beta1RollingUpdateStatefulSetStrategy{static getAttributeTypeMap(){return V1beta1RollingUpdateStatefulSetStrategy.attributeTypeMap}}V1beta1RollingUpdateStatefulSetStrategy.discriminator=undefined;V1beta1RollingUpdateStatefulSetStrategy.attributeTypeMap=[{name:"partition",baseName:"partition",type:"number"}];t.V1beta1RollingUpdateStatefulSetStrategy=V1beta1RollingUpdateStatefulSetStrategy;class V1beta1RuleWithOperations{static getAttributeTypeMap(){return V1beta1RuleWithOperations.attributeTypeMap}}V1beta1RuleWithOperations.discriminator=undefined;V1beta1RuleWithOperations.attributeTypeMap=[{name:"apiGroups",baseName:"apiGroups",type:"Array"},{name:"apiVersions",baseName:"apiVersions",type:"Array"},{name:"operations",baseName:"operations",type:"Array"},{name:"resources",baseName:"resources",type:"Array"}];t.V1beta1RuleWithOperations=V1beta1RuleWithOperations;class V1beta1SelfSubjectAccessReview{static getAttributeTypeMap(){return V1beta1SelfSubjectAccessReview.attributeTypeMap}}V1beta1SelfSubjectAccessReview.discriminator=undefined;V1beta1SelfSubjectAccessReview.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1beta1SelfSubjectAccessReviewSpec"},{name:"status",baseName:"status",type:"V1beta1SubjectAccessReviewStatus"}];t.V1beta1SelfSubjectAccessReview=V1beta1SelfSubjectAccessReview;class V1beta1SelfSubjectAccessReviewSpec{static getAttributeTypeMap(){return V1beta1SelfSubjectAccessReviewSpec.attributeTypeMap}}V1beta1SelfSubjectAccessReviewSpec.discriminator=undefined;V1beta1SelfSubjectAccessReviewSpec.attributeTypeMap=[{name:"nonResourceAttributes",baseName:"nonResourceAttributes",type:"V1beta1NonResourceAttributes"},{name:"resourceAttributes",baseName:"resourceAttributes",type:"V1beta1ResourceAttributes"}];t.V1beta1SelfSubjectAccessReviewSpec=V1beta1SelfSubjectAccessReviewSpec;class V1beta1SelfSubjectRulesReview{static getAttributeTypeMap(){return V1beta1SelfSubjectRulesReview.attributeTypeMap}}V1beta1SelfSubjectRulesReview.discriminator=undefined;V1beta1SelfSubjectRulesReview.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1beta1SelfSubjectRulesReviewSpec"},{name:"status",baseName:"status",type:"V1beta1SubjectRulesReviewStatus"}];t.V1beta1SelfSubjectRulesReview=V1beta1SelfSubjectRulesReview;class V1beta1SelfSubjectRulesReviewSpec{static getAttributeTypeMap(){return V1beta1SelfSubjectRulesReviewSpec.attributeTypeMap}}V1beta1SelfSubjectRulesReviewSpec.discriminator=undefined;V1beta1SelfSubjectRulesReviewSpec.attributeTypeMap=[{name:"namespace",baseName:"namespace",type:"string"}];t.V1beta1SelfSubjectRulesReviewSpec=V1beta1SelfSubjectRulesReviewSpec;class V1beta1StatefulSet{static getAttributeTypeMap(){return V1beta1StatefulSet.attributeTypeMap}}V1beta1StatefulSet.discriminator=undefined;V1beta1StatefulSet.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1beta1StatefulSetSpec"},{name:"status",baseName:"status",type:"V1beta1StatefulSetStatus"}];t.V1beta1StatefulSet=V1beta1StatefulSet;class V1beta1StatefulSetCondition{static getAttributeTypeMap(){return V1beta1StatefulSetCondition.attributeTypeMap}}V1beta1StatefulSetCondition.discriminator=undefined;V1beta1StatefulSetCondition.attributeTypeMap=[{name:"lastTransitionTime",baseName:"lastTransitionTime",type:"Date"},{name:"message",baseName:"message",type:"string"},{name:"reason",baseName:"reason",type:"string"},{name:"status",baseName:"status",type:"string"},{name:"type",baseName:"type",type:"string"}];t.V1beta1StatefulSetCondition=V1beta1StatefulSetCondition;class V1beta1StatefulSetList{static getAttributeTypeMap(){return V1beta1StatefulSetList.attributeTypeMap}}V1beta1StatefulSetList.discriminator=undefined;V1beta1StatefulSetList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1beta1StatefulSetList=V1beta1StatefulSetList;class V1beta1StatefulSetSpec{static getAttributeTypeMap(){return V1beta1StatefulSetSpec.attributeTypeMap}}V1beta1StatefulSetSpec.discriminator=undefined;V1beta1StatefulSetSpec.attributeTypeMap=[{name:"podManagementPolicy",baseName:"podManagementPolicy",type:"string"},{name:"replicas",baseName:"replicas",type:"number"},{name:"revisionHistoryLimit",baseName:"revisionHistoryLimit",type:"number"},{name:"selector",baseName:"selector",type:"V1LabelSelector"},{name:"serviceName",baseName:"serviceName",type:"string"},{name:"template",baseName:"template",type:"V1PodTemplateSpec"},{name:"updateStrategy",baseName:"updateStrategy",type:"V1beta1StatefulSetUpdateStrategy"},{name:"volumeClaimTemplates",baseName:"volumeClaimTemplates",type:"Array"}];t.V1beta1StatefulSetSpec=V1beta1StatefulSetSpec;class V1beta1StatefulSetStatus{static getAttributeTypeMap(){return V1beta1StatefulSetStatus.attributeTypeMap}}V1beta1StatefulSetStatus.discriminator=undefined;V1beta1StatefulSetStatus.attributeTypeMap=[{name:"collisionCount",baseName:"collisionCount",type:"number"},{name:"conditions",baseName:"conditions",type:"Array"},{name:"currentReplicas",baseName:"currentReplicas",type:"number"},{name:"currentRevision",baseName:"currentRevision",type:"string"},{name:"observedGeneration",baseName:"observedGeneration",type:"number"},{name:"readyReplicas",baseName:"readyReplicas",type:"number"},{name:"replicas",baseName:"replicas",type:"number"},{name:"updateRevision",baseName:"updateRevision",type:"string"},{name:"updatedReplicas",baseName:"updatedReplicas",type:"number"}];t.V1beta1StatefulSetStatus=V1beta1StatefulSetStatus;class V1beta1StatefulSetUpdateStrategy{static getAttributeTypeMap(){return V1beta1StatefulSetUpdateStrategy.attributeTypeMap}}V1beta1StatefulSetUpdateStrategy.discriminator=undefined;V1beta1StatefulSetUpdateStrategy.attributeTypeMap=[{name:"rollingUpdate",baseName:"rollingUpdate",type:"V1beta1RollingUpdateStatefulSetStrategy"},{name:"type",baseName:"type",type:"string"}];t.V1beta1StatefulSetUpdateStrategy=V1beta1StatefulSetUpdateStrategy;class V1beta1StorageClass{static getAttributeTypeMap(){return V1beta1StorageClass.attributeTypeMap}}V1beta1StorageClass.discriminator=undefined;V1beta1StorageClass.attributeTypeMap=[{name:"allowVolumeExpansion",baseName:"allowVolumeExpansion",type:"boolean"},{name:"allowedTopologies",baseName:"allowedTopologies",type:"Array"},{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"mountOptions",baseName:"mountOptions",type:"Array"},{name:"parameters",baseName:"parameters",type:"{ [key: string]: string; }"},{name:"provisioner",baseName:"provisioner",type:"string"},{name:"reclaimPolicy",baseName:"reclaimPolicy",type:"string"},{name:"volumeBindingMode",baseName:"volumeBindingMode",type:"string"}];t.V1beta1StorageClass=V1beta1StorageClass;class V1beta1StorageClassList{static getAttributeTypeMap(){return V1beta1StorageClassList.attributeTypeMap}}V1beta1StorageClassList.discriminator=undefined;V1beta1StorageClassList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1beta1StorageClassList=V1beta1StorageClassList;class V1beta1Subject{static getAttributeTypeMap(){return V1beta1Subject.attributeTypeMap}}V1beta1Subject.discriminator=undefined;V1beta1Subject.attributeTypeMap=[{name:"apiGroup",baseName:"apiGroup",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"name",baseName:"name",type:"string"},{name:"namespace",baseName:"namespace",type:"string"}];t.V1beta1Subject=V1beta1Subject;class V1beta1SubjectAccessReview{static getAttributeTypeMap(){return V1beta1SubjectAccessReview.attributeTypeMap}}V1beta1SubjectAccessReview.discriminator=undefined;V1beta1SubjectAccessReview.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1beta1SubjectAccessReviewSpec"},{name:"status",baseName:"status",type:"V1beta1SubjectAccessReviewStatus"}];t.V1beta1SubjectAccessReview=V1beta1SubjectAccessReview;class V1beta1SubjectAccessReviewSpec{static getAttributeTypeMap(){return V1beta1SubjectAccessReviewSpec.attributeTypeMap}}V1beta1SubjectAccessReviewSpec.discriminator=undefined;V1beta1SubjectAccessReviewSpec.attributeTypeMap=[{name:"extra",baseName:"extra",type:"{ [key: string]: Array; }"},{name:"group",baseName:"group",type:"Array"},{name:"nonResourceAttributes",baseName:"nonResourceAttributes",type:"V1beta1NonResourceAttributes"},{name:"resourceAttributes",baseName:"resourceAttributes",type:"V1beta1ResourceAttributes"},{name:"uid",baseName:"uid",type:"string"},{name:"user",baseName:"user",type:"string"}];t.V1beta1SubjectAccessReviewSpec=V1beta1SubjectAccessReviewSpec;class V1beta1SubjectAccessReviewStatus{static getAttributeTypeMap(){return V1beta1SubjectAccessReviewStatus.attributeTypeMap}}V1beta1SubjectAccessReviewStatus.discriminator=undefined;V1beta1SubjectAccessReviewStatus.attributeTypeMap=[{name:"allowed",baseName:"allowed",type:"boolean"},{name:"denied",baseName:"denied",type:"boolean"},{name:"evaluationError",baseName:"evaluationError",type:"string"},{name:"reason",baseName:"reason",type:"string"}];t.V1beta1SubjectAccessReviewStatus=V1beta1SubjectAccessReviewStatus;class V1beta1SubjectRulesReviewStatus{static getAttributeTypeMap(){return V1beta1SubjectRulesReviewStatus.attributeTypeMap}}V1beta1SubjectRulesReviewStatus.discriminator=undefined;V1beta1SubjectRulesReviewStatus.attributeTypeMap=[{name:"evaluationError",baseName:"evaluationError",type:"string"},{name:"incomplete",baseName:"incomplete",type:"boolean"},{name:"nonResourceRules",baseName:"nonResourceRules",type:"Array"},{name:"resourceRules",baseName:"resourceRules",type:"Array"}];t.V1beta1SubjectRulesReviewStatus=V1beta1SubjectRulesReviewStatus;class V1beta1TokenReview{static getAttributeTypeMap(){return V1beta1TokenReview.attributeTypeMap}}V1beta1TokenReview.discriminator=undefined;V1beta1TokenReview.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1beta1TokenReviewSpec"},{name:"status",baseName:"status",type:"V1beta1TokenReviewStatus"}];t.V1beta1TokenReview=V1beta1TokenReview;class V1beta1TokenReviewSpec{static getAttributeTypeMap(){return V1beta1TokenReviewSpec.attributeTypeMap}}V1beta1TokenReviewSpec.discriminator=undefined;V1beta1TokenReviewSpec.attributeTypeMap=[{name:"audiences",baseName:"audiences",type:"Array"},{name:"token",baseName:"token",type:"string"}];t.V1beta1TokenReviewSpec=V1beta1TokenReviewSpec;class V1beta1TokenReviewStatus{static getAttributeTypeMap(){return V1beta1TokenReviewStatus.attributeTypeMap}}V1beta1TokenReviewStatus.discriminator=undefined;V1beta1TokenReviewStatus.attributeTypeMap=[{name:"audiences",baseName:"audiences",type:"Array"},{name:"authenticated",baseName:"authenticated",type:"boolean"},{name:"error",baseName:"error",type:"string"},{name:"user",baseName:"user",type:"V1beta1UserInfo"}];t.V1beta1TokenReviewStatus=V1beta1TokenReviewStatus;class V1beta1UserInfo{static getAttributeTypeMap(){return V1beta1UserInfo.attributeTypeMap}}V1beta1UserInfo.discriminator=undefined;V1beta1UserInfo.attributeTypeMap=[{name:"extra",baseName:"extra",type:"{ [key: string]: Array; }"},{name:"groups",baseName:"groups",type:"Array"},{name:"uid",baseName:"uid",type:"string"},{name:"username",baseName:"username",type:"string"}];t.V1beta1UserInfo=V1beta1UserInfo;class V1beta1ValidatingWebhookConfiguration{static getAttributeTypeMap(){return V1beta1ValidatingWebhookConfiguration.attributeTypeMap}}V1beta1ValidatingWebhookConfiguration.discriminator=undefined;V1beta1ValidatingWebhookConfiguration.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"webhooks",baseName:"webhooks",type:"Array"}];t.V1beta1ValidatingWebhookConfiguration=V1beta1ValidatingWebhookConfiguration;class V1beta1ValidatingWebhookConfigurationList{static getAttributeTypeMap(){return V1beta1ValidatingWebhookConfigurationList.attributeTypeMap}}V1beta1ValidatingWebhookConfigurationList.discriminator=undefined;V1beta1ValidatingWebhookConfigurationList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1beta1ValidatingWebhookConfigurationList=V1beta1ValidatingWebhookConfigurationList;class V1beta1VolumeAttachment{static getAttributeTypeMap(){return V1beta1VolumeAttachment.attributeTypeMap}}V1beta1VolumeAttachment.discriminator=undefined;V1beta1VolumeAttachment.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1beta1VolumeAttachmentSpec"},{name:"status",baseName:"status",type:"V1beta1VolumeAttachmentStatus"}];t.V1beta1VolumeAttachment=V1beta1VolumeAttachment;class V1beta1VolumeAttachmentList{static getAttributeTypeMap(){return V1beta1VolumeAttachmentList.attributeTypeMap}}V1beta1VolumeAttachmentList.discriminator=undefined;V1beta1VolumeAttachmentList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1beta1VolumeAttachmentList=V1beta1VolumeAttachmentList;class V1beta1VolumeAttachmentSource{static getAttributeTypeMap(){return V1beta1VolumeAttachmentSource.attributeTypeMap}}V1beta1VolumeAttachmentSource.discriminator=undefined;V1beta1VolumeAttachmentSource.attributeTypeMap=[{name:"persistentVolumeName",baseName:"persistentVolumeName",type:"string"}];t.V1beta1VolumeAttachmentSource=V1beta1VolumeAttachmentSource;class V1beta1VolumeAttachmentSpec{static getAttributeTypeMap(){return V1beta1VolumeAttachmentSpec.attributeTypeMap}}V1beta1VolumeAttachmentSpec.discriminator=undefined;V1beta1VolumeAttachmentSpec.attributeTypeMap=[{name:"attacher",baseName:"attacher",type:"string"},{name:"nodeName",baseName:"nodeName",type:"string"},{name:"source",baseName:"source",type:"V1beta1VolumeAttachmentSource"}];t.V1beta1VolumeAttachmentSpec=V1beta1VolumeAttachmentSpec;class V1beta1VolumeAttachmentStatus{static getAttributeTypeMap(){return V1beta1VolumeAttachmentStatus.attributeTypeMap}}V1beta1VolumeAttachmentStatus.discriminator=undefined;V1beta1VolumeAttachmentStatus.attributeTypeMap=[{name:"attachError",baseName:"attachError",type:"V1beta1VolumeError"},{name:"attached",baseName:"attached",type:"boolean"},{name:"attachmentMetadata",baseName:"attachmentMetadata",type:"{ [key: string]: string; }"},{name:"detachError",baseName:"detachError",type:"V1beta1VolumeError"}];t.V1beta1VolumeAttachmentStatus=V1beta1VolumeAttachmentStatus;class V1beta1VolumeError{static getAttributeTypeMap(){return V1beta1VolumeError.attributeTypeMap}}V1beta1VolumeError.discriminator=undefined;V1beta1VolumeError.attributeTypeMap=[{name:"message",baseName:"message",type:"string"},{name:"time",baseName:"time",type:"Date"}];t.V1beta1VolumeError=V1beta1VolumeError;class V1beta1Webhook{static getAttributeTypeMap(){return V1beta1Webhook.attributeTypeMap}}V1beta1Webhook.discriminator=undefined;V1beta1Webhook.attributeTypeMap=[{name:"clientConfig",baseName:"clientConfig",type:"AdmissionregistrationV1beta1WebhookClientConfig"},{name:"failurePolicy",baseName:"failurePolicy",type:"string"},{name:"name",baseName:"name",type:"string"},{name:"namespaceSelector",baseName:"namespaceSelector",type:"V1LabelSelector"},{name:"rules",baseName:"rules",type:"Array"},{name:"sideEffects",baseName:"sideEffects",type:"string"}];t.V1beta1Webhook=V1beta1Webhook;class V1beta2ControllerRevision{static getAttributeTypeMap(){return V1beta2ControllerRevision.attributeTypeMap}}V1beta2ControllerRevision.discriminator=undefined;V1beta2ControllerRevision.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"data",baseName:"data",type:"RuntimeRawExtension"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"revision",baseName:"revision",type:"number"}];t.V1beta2ControllerRevision=V1beta2ControllerRevision;class V1beta2ControllerRevisionList{static getAttributeTypeMap(){return V1beta2ControllerRevisionList.attributeTypeMap}}V1beta2ControllerRevisionList.discriminator=undefined;V1beta2ControllerRevisionList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1beta2ControllerRevisionList=V1beta2ControllerRevisionList;class V1beta2DaemonSet{static getAttributeTypeMap(){return V1beta2DaemonSet.attributeTypeMap}}V1beta2DaemonSet.discriminator=undefined;V1beta2DaemonSet.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1beta2DaemonSetSpec"},{name:"status",baseName:"status",type:"V1beta2DaemonSetStatus"}];t.V1beta2DaemonSet=V1beta2DaemonSet;class V1beta2DaemonSetCondition{static getAttributeTypeMap(){return V1beta2DaemonSetCondition.attributeTypeMap}}V1beta2DaemonSetCondition.discriminator=undefined;V1beta2DaemonSetCondition.attributeTypeMap=[{name:"lastTransitionTime",baseName:"lastTransitionTime",type:"Date"},{name:"message",baseName:"message",type:"string"},{name:"reason",baseName:"reason",type:"string"},{name:"status",baseName:"status",type:"string"},{name:"type",baseName:"type",type:"string"}];t.V1beta2DaemonSetCondition=V1beta2DaemonSetCondition;class V1beta2DaemonSetList{static getAttributeTypeMap(){return V1beta2DaemonSetList.attributeTypeMap}}V1beta2DaemonSetList.discriminator=undefined;V1beta2DaemonSetList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1beta2DaemonSetList=V1beta2DaemonSetList;class V1beta2DaemonSetSpec{static getAttributeTypeMap(){return V1beta2DaemonSetSpec.attributeTypeMap}}V1beta2DaemonSetSpec.discriminator=undefined;V1beta2DaemonSetSpec.attributeTypeMap=[{name:"minReadySeconds",baseName:"minReadySeconds",type:"number"},{name:"revisionHistoryLimit",baseName:"revisionHistoryLimit",type:"number"},{name:"selector",baseName:"selector",type:"V1LabelSelector"},{name:"template",baseName:"template",type:"V1PodTemplateSpec"},{name:"updateStrategy",baseName:"updateStrategy",type:"V1beta2DaemonSetUpdateStrategy"}];t.V1beta2DaemonSetSpec=V1beta2DaemonSetSpec;class V1beta2DaemonSetStatus{static getAttributeTypeMap(){return V1beta2DaemonSetStatus.attributeTypeMap}}V1beta2DaemonSetStatus.discriminator=undefined;V1beta2DaemonSetStatus.attributeTypeMap=[{name:"collisionCount",baseName:"collisionCount",type:"number"},{name:"conditions",baseName:"conditions",type:"Array"},{name:"currentNumberScheduled",baseName:"currentNumberScheduled",type:"number"},{name:"desiredNumberScheduled",baseName:"desiredNumberScheduled",type:"number"},{name:"numberAvailable",baseName:"numberAvailable",type:"number"},{name:"numberMisscheduled",baseName:"numberMisscheduled",type:"number"},{name:"numberReady",baseName:"numberReady",type:"number"},{name:"numberUnavailable",baseName:"numberUnavailable",type:"number"},{name:"observedGeneration",baseName:"observedGeneration",type:"number"},{name:"updatedNumberScheduled",baseName:"updatedNumberScheduled",type:"number"}];t.V1beta2DaemonSetStatus=V1beta2DaemonSetStatus;class V1beta2DaemonSetUpdateStrategy{static getAttributeTypeMap(){return V1beta2DaemonSetUpdateStrategy.attributeTypeMap}}V1beta2DaemonSetUpdateStrategy.discriminator=undefined;V1beta2DaemonSetUpdateStrategy.attributeTypeMap=[{name:"rollingUpdate",baseName:"rollingUpdate",type:"V1beta2RollingUpdateDaemonSet"},{name:"type",baseName:"type",type:"string"}];t.V1beta2DaemonSetUpdateStrategy=V1beta2DaemonSetUpdateStrategy;class V1beta2Deployment{static getAttributeTypeMap(){return V1beta2Deployment.attributeTypeMap}}V1beta2Deployment.discriminator=undefined;V1beta2Deployment.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1beta2DeploymentSpec"},{name:"status",baseName:"status",type:"V1beta2DeploymentStatus"}];t.V1beta2Deployment=V1beta2Deployment;class V1beta2DeploymentCondition{static getAttributeTypeMap(){return V1beta2DeploymentCondition.attributeTypeMap}}V1beta2DeploymentCondition.discriminator=undefined;V1beta2DeploymentCondition.attributeTypeMap=[{name:"lastTransitionTime",baseName:"lastTransitionTime",type:"Date"},{name:"lastUpdateTime",baseName:"lastUpdateTime",type:"Date"},{name:"message",baseName:"message",type:"string"},{name:"reason",baseName:"reason",type:"string"},{name:"status",baseName:"status",type:"string"},{name:"type",baseName:"type",type:"string"}];t.V1beta2DeploymentCondition=V1beta2DeploymentCondition;class V1beta2DeploymentList{static getAttributeTypeMap(){return V1beta2DeploymentList.attributeTypeMap}}V1beta2DeploymentList.discriminator=undefined;V1beta2DeploymentList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1beta2DeploymentList=V1beta2DeploymentList;class V1beta2DeploymentSpec{static getAttributeTypeMap(){return V1beta2DeploymentSpec.attributeTypeMap}}V1beta2DeploymentSpec.discriminator=undefined;V1beta2DeploymentSpec.attributeTypeMap=[{name:"minReadySeconds",baseName:"minReadySeconds",type:"number"},{name:"paused",baseName:"paused",type:"boolean"},{name:"progressDeadlineSeconds",baseName:"progressDeadlineSeconds",type:"number"},{name:"replicas",baseName:"replicas",type:"number"},{name:"revisionHistoryLimit",baseName:"revisionHistoryLimit",type:"number"},{name:"selector",baseName:"selector",type:"V1LabelSelector"},{name:"strategy",baseName:"strategy",type:"V1beta2DeploymentStrategy"},{name:"template",baseName:"template",type:"V1PodTemplateSpec"}];t.V1beta2DeploymentSpec=V1beta2DeploymentSpec;class V1beta2DeploymentStatus{static getAttributeTypeMap(){return V1beta2DeploymentStatus.attributeTypeMap}}V1beta2DeploymentStatus.discriminator=undefined;V1beta2DeploymentStatus.attributeTypeMap=[{name:"availableReplicas",baseName:"availableReplicas",type:"number"},{name:"collisionCount",baseName:"collisionCount",type:"number"},{name:"conditions",baseName:"conditions",type:"Array"},{name:"observedGeneration",baseName:"observedGeneration",type:"number"},{name:"readyReplicas",baseName:"readyReplicas",type:"number"},{name:"replicas",baseName:"replicas",type:"number"},{name:"unavailableReplicas",baseName:"unavailableReplicas",type:"number"},{name:"updatedReplicas",baseName:"updatedReplicas",type:"number"}];t.V1beta2DeploymentStatus=V1beta2DeploymentStatus;class V1beta2DeploymentStrategy{static getAttributeTypeMap(){return V1beta2DeploymentStrategy.attributeTypeMap}}V1beta2DeploymentStrategy.discriminator=undefined;V1beta2DeploymentStrategy.attributeTypeMap=[{name:"rollingUpdate",baseName:"rollingUpdate",type:"V1beta2RollingUpdateDeployment"},{name:"type",baseName:"type",type:"string"}];t.V1beta2DeploymentStrategy=V1beta2DeploymentStrategy;class V1beta2ReplicaSet{static getAttributeTypeMap(){return V1beta2ReplicaSet.attributeTypeMap}}V1beta2ReplicaSet.discriminator=undefined;V1beta2ReplicaSet.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1beta2ReplicaSetSpec"},{name:"status",baseName:"status",type:"V1beta2ReplicaSetStatus"}];t.V1beta2ReplicaSet=V1beta2ReplicaSet;class V1beta2ReplicaSetCondition{static getAttributeTypeMap(){return V1beta2ReplicaSetCondition.attributeTypeMap}}V1beta2ReplicaSetCondition.discriminator=undefined;V1beta2ReplicaSetCondition.attributeTypeMap=[{name:"lastTransitionTime",baseName:"lastTransitionTime",type:"Date"},{name:"message",baseName:"message",type:"string"},{name:"reason",baseName:"reason",type:"string"},{name:"status",baseName:"status",type:"string"},{name:"type",baseName:"type",type:"string"}];t.V1beta2ReplicaSetCondition=V1beta2ReplicaSetCondition;class V1beta2ReplicaSetList{static getAttributeTypeMap(){return V1beta2ReplicaSetList.attributeTypeMap}}V1beta2ReplicaSetList.discriminator=undefined;V1beta2ReplicaSetList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1beta2ReplicaSetList=V1beta2ReplicaSetList;class V1beta2ReplicaSetSpec{static getAttributeTypeMap(){return V1beta2ReplicaSetSpec.attributeTypeMap}}V1beta2ReplicaSetSpec.discriminator=undefined;V1beta2ReplicaSetSpec.attributeTypeMap=[{name:"minReadySeconds",baseName:"minReadySeconds",type:"number"},{name:"replicas",baseName:"replicas",type:"number"},{name:"selector",baseName:"selector",type:"V1LabelSelector"},{name:"template",baseName:"template",type:"V1PodTemplateSpec"}];t.V1beta2ReplicaSetSpec=V1beta2ReplicaSetSpec;class V1beta2ReplicaSetStatus{static getAttributeTypeMap(){return V1beta2ReplicaSetStatus.attributeTypeMap}}V1beta2ReplicaSetStatus.discriminator=undefined;V1beta2ReplicaSetStatus.attributeTypeMap=[{name:"availableReplicas",baseName:"availableReplicas",type:"number"},{name:"conditions",baseName:"conditions",type:"Array"},{name:"fullyLabeledReplicas",baseName:"fullyLabeledReplicas",type:"number"},{name:"observedGeneration",baseName:"observedGeneration",type:"number"},{name:"readyReplicas",baseName:"readyReplicas",type:"number"},{name:"replicas",baseName:"replicas",type:"number"}];t.V1beta2ReplicaSetStatus=V1beta2ReplicaSetStatus;class V1beta2RollingUpdateDaemonSet{static getAttributeTypeMap(){return V1beta2RollingUpdateDaemonSet.attributeTypeMap}}V1beta2RollingUpdateDaemonSet.discriminator=undefined;V1beta2RollingUpdateDaemonSet.attributeTypeMap=[{name:"maxUnavailable",baseName:"maxUnavailable",type:"any"}];t.V1beta2RollingUpdateDaemonSet=V1beta2RollingUpdateDaemonSet;class V1beta2RollingUpdateDeployment{static getAttributeTypeMap(){return V1beta2RollingUpdateDeployment.attributeTypeMap}}V1beta2RollingUpdateDeployment.discriminator=undefined;V1beta2RollingUpdateDeployment.attributeTypeMap=[{name:"maxSurge",baseName:"maxSurge",type:"any"},{name:"maxUnavailable",baseName:"maxUnavailable",type:"any"}];t.V1beta2RollingUpdateDeployment=V1beta2RollingUpdateDeployment;class V1beta2RollingUpdateStatefulSetStrategy{static getAttributeTypeMap(){return V1beta2RollingUpdateStatefulSetStrategy.attributeTypeMap}}V1beta2RollingUpdateStatefulSetStrategy.discriminator=undefined;V1beta2RollingUpdateStatefulSetStrategy.attributeTypeMap=[{name:"partition",baseName:"partition",type:"number"}];t.V1beta2RollingUpdateStatefulSetStrategy=V1beta2RollingUpdateStatefulSetStrategy;class V1beta2Scale{static getAttributeTypeMap(){return V1beta2Scale.attributeTypeMap}}V1beta2Scale.discriminator=undefined;V1beta2Scale.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1beta2ScaleSpec"},{name:"status",baseName:"status",type:"V1beta2ScaleStatus"}];t.V1beta2Scale=V1beta2Scale;class V1beta2ScaleSpec{static getAttributeTypeMap(){return V1beta2ScaleSpec.attributeTypeMap}}V1beta2ScaleSpec.discriminator=undefined;V1beta2ScaleSpec.attributeTypeMap=[{name:"replicas",baseName:"replicas",type:"number"}];t.V1beta2ScaleSpec=V1beta2ScaleSpec;class V1beta2ScaleStatus{static getAttributeTypeMap(){return V1beta2ScaleStatus.attributeTypeMap}}V1beta2ScaleStatus.discriminator=undefined;V1beta2ScaleStatus.attributeTypeMap=[{name:"replicas",baseName:"replicas",type:"number"},{name:"selector",baseName:"selector",type:"{ [key: string]: string; }"},{name:"targetSelector",baseName:"targetSelector",type:"string"}];t.V1beta2ScaleStatus=V1beta2ScaleStatus;class V1beta2StatefulSet{static getAttributeTypeMap(){return V1beta2StatefulSet.attributeTypeMap}}V1beta2StatefulSet.discriminator=undefined;V1beta2StatefulSet.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1beta2StatefulSetSpec"},{name:"status",baseName:"status",type:"V1beta2StatefulSetStatus"}];t.V1beta2StatefulSet=V1beta2StatefulSet;class V1beta2StatefulSetCondition{static getAttributeTypeMap(){return V1beta2StatefulSetCondition.attributeTypeMap}}V1beta2StatefulSetCondition.discriminator=undefined;V1beta2StatefulSetCondition.attributeTypeMap=[{name:"lastTransitionTime",baseName:"lastTransitionTime",type:"Date"},{name:"message",baseName:"message",type:"string"},{name:"reason",baseName:"reason",type:"string"},{name:"status",baseName:"status",type:"string"},{name:"type",baseName:"type",type:"string"}];t.V1beta2StatefulSetCondition=V1beta2StatefulSetCondition;class V1beta2StatefulSetList{static getAttributeTypeMap(){return V1beta2StatefulSetList.attributeTypeMap}}V1beta2StatefulSetList.discriminator=undefined;V1beta2StatefulSetList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1beta2StatefulSetList=V1beta2StatefulSetList;class V1beta2StatefulSetSpec{static getAttributeTypeMap(){return V1beta2StatefulSetSpec.attributeTypeMap}}V1beta2StatefulSetSpec.discriminator=undefined;V1beta2StatefulSetSpec.attributeTypeMap=[{name:"podManagementPolicy",baseName:"podManagementPolicy",type:"string"},{name:"replicas",baseName:"replicas",type:"number"},{name:"revisionHistoryLimit",baseName:"revisionHistoryLimit",type:"number"},{name:"selector",baseName:"selector",type:"V1LabelSelector"},{name:"serviceName",baseName:"serviceName",type:"string"},{name:"template",baseName:"template",type:"V1PodTemplateSpec"},{name:"updateStrategy",baseName:"updateStrategy",type:"V1beta2StatefulSetUpdateStrategy"},{name:"volumeClaimTemplates",baseName:"volumeClaimTemplates",type:"Array"}];t.V1beta2StatefulSetSpec=V1beta2StatefulSetSpec;class V1beta2StatefulSetStatus{static getAttributeTypeMap(){return V1beta2StatefulSetStatus.attributeTypeMap}}V1beta2StatefulSetStatus.discriminator=undefined;V1beta2StatefulSetStatus.attributeTypeMap=[{name:"collisionCount",baseName:"collisionCount",type:"number"},{name:"conditions",baseName:"conditions",type:"Array"},{name:"currentReplicas",baseName:"currentReplicas",type:"number"},{name:"currentRevision",baseName:"currentRevision",type:"string"},{name:"observedGeneration",baseName:"observedGeneration",type:"number"},{name:"readyReplicas",baseName:"readyReplicas",type:"number"},{name:"replicas",baseName:"replicas",type:"number"},{name:"updateRevision",baseName:"updateRevision",type:"string"},{name:"updatedReplicas",baseName:"updatedReplicas",type:"number"}];t.V1beta2StatefulSetStatus=V1beta2StatefulSetStatus;class V1beta2StatefulSetUpdateStrategy{static getAttributeTypeMap(){return V1beta2StatefulSetUpdateStrategy.attributeTypeMap}}V1beta2StatefulSetUpdateStrategy.discriminator=undefined;V1beta2StatefulSetUpdateStrategy.attributeTypeMap=[{name:"rollingUpdate",baseName:"rollingUpdate",type:"V1beta2RollingUpdateStatefulSetStrategy"},{name:"type",baseName:"type",type:"string"}];t.V1beta2StatefulSetUpdateStrategy=V1beta2StatefulSetUpdateStrategy;class V2alpha1CronJob{static getAttributeTypeMap(){return V2alpha1CronJob.attributeTypeMap}}V2alpha1CronJob.discriminator=undefined;V2alpha1CronJob.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V2alpha1CronJobSpec"},{name:"status",baseName:"status",type:"V2alpha1CronJobStatus"}];t.V2alpha1CronJob=V2alpha1CronJob;class V2alpha1CronJobList{static getAttributeTypeMap(){return V2alpha1CronJobList.attributeTypeMap}}V2alpha1CronJobList.discriminator=undefined;V2alpha1CronJobList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V2alpha1CronJobList=V2alpha1CronJobList;class V2alpha1CronJobSpec{static getAttributeTypeMap(){return V2alpha1CronJobSpec.attributeTypeMap}}V2alpha1CronJobSpec.discriminator=undefined;V2alpha1CronJobSpec.attributeTypeMap=[{name:"concurrencyPolicy",baseName:"concurrencyPolicy",type:"string"},{name:"failedJobsHistoryLimit",baseName:"failedJobsHistoryLimit",type:"number"},{name:"jobTemplate",baseName:"jobTemplate",type:"V2alpha1JobTemplateSpec"},{name:"schedule",baseName:"schedule",type:"string"},{name:"startingDeadlineSeconds",baseName:"startingDeadlineSeconds",type:"number"},{name:"successfulJobsHistoryLimit",baseName:"successfulJobsHistoryLimit",type:"number"},{name:"suspend",baseName:"suspend",type:"boolean"}];t.V2alpha1CronJobSpec=V2alpha1CronJobSpec;class V2alpha1CronJobStatus{static getAttributeTypeMap(){return V2alpha1CronJobStatus.attributeTypeMap}}V2alpha1CronJobStatus.discriminator=undefined;V2alpha1CronJobStatus.attributeTypeMap=[{name:"active",baseName:"active",type:"Array"},{name:"lastScheduleTime",baseName:"lastScheduleTime",type:"Date"}];t.V2alpha1CronJobStatus=V2alpha1CronJobStatus;class V2alpha1JobTemplateSpec{static getAttributeTypeMap(){return V2alpha1JobTemplateSpec.attributeTypeMap}}V2alpha1JobTemplateSpec.discriminator=undefined;V2alpha1JobTemplateSpec.attributeTypeMap=[{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1JobSpec"}];t.V2alpha1JobTemplateSpec=V2alpha1JobTemplateSpec;class V2beta1CrossVersionObjectReference{static getAttributeTypeMap(){return V2beta1CrossVersionObjectReference.attributeTypeMap}}V2beta1CrossVersionObjectReference.discriminator=undefined;V2beta1CrossVersionObjectReference.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"name",baseName:"name",type:"string"}];t.V2beta1CrossVersionObjectReference=V2beta1CrossVersionObjectReference;class V2beta1ExternalMetricSource{static getAttributeTypeMap(){return V2beta1ExternalMetricSource.attributeTypeMap}}V2beta1ExternalMetricSource.discriminator=undefined;V2beta1ExternalMetricSource.attributeTypeMap=[{name:"metricName",baseName:"metricName",type:"string"},{name:"metricSelector",baseName:"metricSelector",type:"V1LabelSelector"},{name:"targetAverageValue",baseName:"targetAverageValue",type:"string"},{name:"targetValue",baseName:"targetValue",type:"string"}];t.V2beta1ExternalMetricSource=V2beta1ExternalMetricSource;class V2beta1ExternalMetricStatus{static getAttributeTypeMap(){return V2beta1ExternalMetricStatus.attributeTypeMap}}V2beta1ExternalMetricStatus.discriminator=undefined;V2beta1ExternalMetricStatus.attributeTypeMap=[{name:"currentAverageValue",baseName:"currentAverageValue",type:"string"},{name:"currentValue",baseName:"currentValue",type:"string"},{name:"metricName",baseName:"metricName",type:"string"},{name:"metricSelector",baseName:"metricSelector",type:"V1LabelSelector"}];t.V2beta1ExternalMetricStatus=V2beta1ExternalMetricStatus;class V2beta1HorizontalPodAutoscaler{static getAttributeTypeMap(){return V2beta1HorizontalPodAutoscaler.attributeTypeMap}}V2beta1HorizontalPodAutoscaler.discriminator=undefined;V2beta1HorizontalPodAutoscaler.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V2beta1HorizontalPodAutoscalerSpec"},{name:"status",baseName:"status",type:"V2beta1HorizontalPodAutoscalerStatus"}];t.V2beta1HorizontalPodAutoscaler=V2beta1HorizontalPodAutoscaler;class V2beta1HorizontalPodAutoscalerCondition{static getAttributeTypeMap(){return V2beta1HorizontalPodAutoscalerCondition.attributeTypeMap}}V2beta1HorizontalPodAutoscalerCondition.discriminator=undefined;V2beta1HorizontalPodAutoscalerCondition.attributeTypeMap=[{name:"lastTransitionTime",baseName:"lastTransitionTime",type:"Date"},{name:"message",baseName:"message",type:"string"},{name:"reason",baseName:"reason",type:"string"},{name:"status",baseName:"status",type:"string"},{name:"type",baseName:"type",type:"string"}];t.V2beta1HorizontalPodAutoscalerCondition=V2beta1HorizontalPodAutoscalerCondition;class V2beta1HorizontalPodAutoscalerList{static getAttributeTypeMap(){return V2beta1HorizontalPodAutoscalerList.attributeTypeMap}}V2beta1HorizontalPodAutoscalerList.discriminator=undefined;V2beta1HorizontalPodAutoscalerList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V2beta1HorizontalPodAutoscalerList=V2beta1HorizontalPodAutoscalerList;class V2beta1HorizontalPodAutoscalerSpec{static getAttributeTypeMap(){return V2beta1HorizontalPodAutoscalerSpec.attributeTypeMap}}V2beta1HorizontalPodAutoscalerSpec.discriminator=undefined;V2beta1HorizontalPodAutoscalerSpec.attributeTypeMap=[{name:"maxReplicas",baseName:"maxReplicas",type:"number"},{name:"metrics",baseName:"metrics",type:"Array"},{name:"minReplicas",baseName:"minReplicas",type:"number"},{name:"scaleTargetRef",baseName:"scaleTargetRef",type:"V2beta1CrossVersionObjectReference"}];t.V2beta1HorizontalPodAutoscalerSpec=V2beta1HorizontalPodAutoscalerSpec;class V2beta1HorizontalPodAutoscalerStatus{static getAttributeTypeMap(){return V2beta1HorizontalPodAutoscalerStatus.attributeTypeMap}}V2beta1HorizontalPodAutoscalerStatus.discriminator=undefined;V2beta1HorizontalPodAutoscalerStatus.attributeTypeMap=[{name:"conditions",baseName:"conditions",type:"Array"},{name:"currentMetrics",baseName:"currentMetrics",type:"Array"},{name:"currentReplicas",baseName:"currentReplicas",type:"number"},{name:"desiredReplicas",baseName:"desiredReplicas",type:"number"},{name:"lastScaleTime",baseName:"lastScaleTime",type:"Date"},{name:"observedGeneration",baseName:"observedGeneration",type:"number"}];t.V2beta1HorizontalPodAutoscalerStatus=V2beta1HorizontalPodAutoscalerStatus;class V2beta1MetricSpec{static getAttributeTypeMap(){return V2beta1MetricSpec.attributeTypeMap}}V2beta1MetricSpec.discriminator=undefined;V2beta1MetricSpec.attributeTypeMap=[{name:"external",baseName:"external",type:"V2beta1ExternalMetricSource"},{name:"object",baseName:"object",type:"V2beta1ObjectMetricSource"},{name:"pods",baseName:"pods",type:"V2beta1PodsMetricSource"},{name:"resource",baseName:"resource",type:"V2beta1ResourceMetricSource"},{name:"type",baseName:"type",type:"string"}];t.V2beta1MetricSpec=V2beta1MetricSpec;class V2beta1MetricStatus{static getAttributeTypeMap(){return V2beta1MetricStatus.attributeTypeMap}}V2beta1MetricStatus.discriminator=undefined;V2beta1MetricStatus.attributeTypeMap=[{name:"external",baseName:"external",type:"V2beta1ExternalMetricStatus"},{name:"object",baseName:"object",type:"V2beta1ObjectMetricStatus"},{name:"pods",baseName:"pods",type:"V2beta1PodsMetricStatus"},{name:"resource",baseName:"resource",type:"V2beta1ResourceMetricStatus"},{name:"type",baseName:"type",type:"string"}];t.V2beta1MetricStatus=V2beta1MetricStatus;class V2beta1ObjectMetricSource{static getAttributeTypeMap(){return V2beta1ObjectMetricSource.attributeTypeMap}}V2beta1ObjectMetricSource.discriminator=undefined;V2beta1ObjectMetricSource.attributeTypeMap=[{name:"averageValue",baseName:"averageValue",type:"string"},{name:"metricName",baseName:"metricName",type:"string"},{name:"selector",baseName:"selector",type:"V1LabelSelector"},{name:"target",baseName:"target",type:"V2beta1CrossVersionObjectReference"},{name:"targetValue",baseName:"targetValue",type:"string"}];t.V2beta1ObjectMetricSource=V2beta1ObjectMetricSource;class V2beta1ObjectMetricStatus{static getAttributeTypeMap(){return V2beta1ObjectMetricStatus.attributeTypeMap}}V2beta1ObjectMetricStatus.discriminator=undefined;V2beta1ObjectMetricStatus.attributeTypeMap=[{name:"averageValue",baseName:"averageValue",type:"string"},{name:"currentValue",baseName:"currentValue",type:"string"},{name:"metricName",baseName:"metricName",type:"string"},{name:"selector",baseName:"selector",type:"V1LabelSelector"},{name:"target",baseName:"target",type:"V2beta1CrossVersionObjectReference"}];t.V2beta1ObjectMetricStatus=V2beta1ObjectMetricStatus;class V2beta1PodsMetricSource{static getAttributeTypeMap(){return V2beta1PodsMetricSource.attributeTypeMap}}V2beta1PodsMetricSource.discriminator=undefined;V2beta1PodsMetricSource.attributeTypeMap=[{name:"metricName",baseName:"metricName",type:"string"},{name:"selector",baseName:"selector",type:"V1LabelSelector"},{name:"targetAverageValue",baseName:"targetAverageValue",type:"string"}];t.V2beta1PodsMetricSource=V2beta1PodsMetricSource;class V2beta1PodsMetricStatus{static getAttributeTypeMap(){return V2beta1PodsMetricStatus.attributeTypeMap}}V2beta1PodsMetricStatus.discriminator=undefined;V2beta1PodsMetricStatus.attributeTypeMap=[{name:"currentAverageValue",baseName:"currentAverageValue",type:"string"},{name:"metricName",baseName:"metricName",type:"string"},{name:"selector",baseName:"selector",type:"V1LabelSelector"}];t.V2beta1PodsMetricStatus=V2beta1PodsMetricStatus;class V2beta1ResourceMetricSource{static getAttributeTypeMap(){return V2beta1ResourceMetricSource.attributeTypeMap}}V2beta1ResourceMetricSource.discriminator=undefined;V2beta1ResourceMetricSource.attributeTypeMap=[{name:"name",baseName:"name",type:"string"},{name:"targetAverageUtilization",baseName:"targetAverageUtilization",type:"number"},{name:"targetAverageValue",baseName:"targetAverageValue",type:"string"}];t.V2beta1ResourceMetricSource=V2beta1ResourceMetricSource;class V2beta1ResourceMetricStatus{static getAttributeTypeMap(){return V2beta1ResourceMetricStatus.attributeTypeMap}}V2beta1ResourceMetricStatus.discriminator=undefined;V2beta1ResourceMetricStatus.attributeTypeMap=[{name:"currentAverageUtilization",baseName:"currentAverageUtilization",type:"number"},{name:"currentAverageValue",baseName:"currentAverageValue",type:"string"},{name:"name",baseName:"name",type:"string"}];t.V2beta1ResourceMetricStatus=V2beta1ResourceMetricStatus;class V2beta2CrossVersionObjectReference{static getAttributeTypeMap(){return V2beta2CrossVersionObjectReference.attributeTypeMap}}V2beta2CrossVersionObjectReference.discriminator=undefined;V2beta2CrossVersionObjectReference.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"name",baseName:"name",type:"string"}];t.V2beta2CrossVersionObjectReference=V2beta2CrossVersionObjectReference;class V2beta2ExternalMetricSource{static getAttributeTypeMap(){return V2beta2ExternalMetricSource.attributeTypeMap}}V2beta2ExternalMetricSource.discriminator=undefined;V2beta2ExternalMetricSource.attributeTypeMap=[{name:"metric",baseName:"metric",type:"V2beta2MetricIdentifier"},{name:"target",baseName:"target",type:"V2beta2MetricTarget"}];t.V2beta2ExternalMetricSource=V2beta2ExternalMetricSource;class V2beta2ExternalMetricStatus{static getAttributeTypeMap(){return V2beta2ExternalMetricStatus.attributeTypeMap}}V2beta2ExternalMetricStatus.discriminator=undefined;V2beta2ExternalMetricStatus.attributeTypeMap=[{name:"current",baseName:"current",type:"V2beta2MetricValueStatus"},{name:"metric",baseName:"metric",type:"V2beta2MetricIdentifier"}];t.V2beta2ExternalMetricStatus=V2beta2ExternalMetricStatus;class V2beta2HorizontalPodAutoscaler{static getAttributeTypeMap(){return V2beta2HorizontalPodAutoscaler.attributeTypeMap}}V2beta2HorizontalPodAutoscaler.discriminator=undefined;V2beta2HorizontalPodAutoscaler.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V2beta2HorizontalPodAutoscalerSpec"},{name:"status",baseName:"status",type:"V2beta2HorizontalPodAutoscalerStatus"}];t.V2beta2HorizontalPodAutoscaler=V2beta2HorizontalPodAutoscaler;class V2beta2HorizontalPodAutoscalerCondition{static getAttributeTypeMap(){return V2beta2HorizontalPodAutoscalerCondition.attributeTypeMap}}V2beta2HorizontalPodAutoscalerCondition.discriminator=undefined;V2beta2HorizontalPodAutoscalerCondition.attributeTypeMap=[{name:"lastTransitionTime",baseName:"lastTransitionTime",type:"Date"},{name:"message",baseName:"message",type:"string"},{name:"reason",baseName:"reason",type:"string"},{name:"status",baseName:"status",type:"string"},{name:"type",baseName:"type",type:"string"}];t.V2beta2HorizontalPodAutoscalerCondition=V2beta2HorizontalPodAutoscalerCondition;class V2beta2HorizontalPodAutoscalerList{static getAttributeTypeMap(){return V2beta2HorizontalPodAutoscalerList.attributeTypeMap}}V2beta2HorizontalPodAutoscalerList.discriminator=undefined;V2beta2HorizontalPodAutoscalerList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V2beta2HorizontalPodAutoscalerList=V2beta2HorizontalPodAutoscalerList;class V2beta2HorizontalPodAutoscalerSpec{static getAttributeTypeMap(){return V2beta2HorizontalPodAutoscalerSpec.attributeTypeMap}}V2beta2HorizontalPodAutoscalerSpec.discriminator=undefined;V2beta2HorizontalPodAutoscalerSpec.attributeTypeMap=[{name:"maxReplicas",baseName:"maxReplicas",type:"number"},{name:"metrics",baseName:"metrics",type:"Array"},{name:"minReplicas",baseName:"minReplicas",type:"number"},{name:"scaleTargetRef",baseName:"scaleTargetRef",type:"V2beta2CrossVersionObjectReference"}];t.V2beta2HorizontalPodAutoscalerSpec=V2beta2HorizontalPodAutoscalerSpec;class V2beta2HorizontalPodAutoscalerStatus{static getAttributeTypeMap(){return V2beta2HorizontalPodAutoscalerStatus.attributeTypeMap}}V2beta2HorizontalPodAutoscalerStatus.discriminator=undefined;V2beta2HorizontalPodAutoscalerStatus.attributeTypeMap=[{name:"conditions",baseName:"conditions",type:"Array"},{name:"currentMetrics",baseName:"currentMetrics",type:"Array"},{name:"currentReplicas",baseName:"currentReplicas",type:"number"},{name:"desiredReplicas",baseName:"desiredReplicas",type:"number"},{name:"lastScaleTime",baseName:"lastScaleTime",type:"Date"},{name:"observedGeneration",baseName:"observedGeneration",type:"number"}];t.V2beta2HorizontalPodAutoscalerStatus=V2beta2HorizontalPodAutoscalerStatus;class V2beta2MetricIdentifier{static getAttributeTypeMap(){return V2beta2MetricIdentifier.attributeTypeMap}}V2beta2MetricIdentifier.discriminator=undefined;V2beta2MetricIdentifier.attributeTypeMap=[{name:"name",baseName:"name",type:"string"},{name:"selector",baseName:"selector",type:"V1LabelSelector"}];t.V2beta2MetricIdentifier=V2beta2MetricIdentifier;class V2beta2MetricSpec{static getAttributeTypeMap(){return V2beta2MetricSpec.attributeTypeMap}}V2beta2MetricSpec.discriminator=undefined;V2beta2MetricSpec.attributeTypeMap=[{name:"external",baseName:"external",type:"V2beta2ExternalMetricSource"},{name:"object",baseName:"object",type:"V2beta2ObjectMetricSource"},{name:"pods",baseName:"pods",type:"V2beta2PodsMetricSource"},{name:"resource",baseName:"resource",type:"V2beta2ResourceMetricSource"},{name:"type",baseName:"type",type:"string"}];t.V2beta2MetricSpec=V2beta2MetricSpec;class V2beta2MetricStatus{static getAttributeTypeMap(){return V2beta2MetricStatus.attributeTypeMap}}V2beta2MetricStatus.discriminator=undefined;V2beta2MetricStatus.attributeTypeMap=[{name:"external",baseName:"external",type:"V2beta2ExternalMetricStatus"},{name:"object",baseName:"object",type:"V2beta2ObjectMetricStatus"},{name:"pods",baseName:"pods",type:"V2beta2PodsMetricStatus"},{name:"resource",baseName:"resource",type:"V2beta2ResourceMetricStatus"},{name:"type",baseName:"type",type:"string"}];t.V2beta2MetricStatus=V2beta2MetricStatus;class V2beta2MetricTarget{static getAttributeTypeMap(){return V2beta2MetricTarget.attributeTypeMap}}V2beta2MetricTarget.discriminator=undefined;V2beta2MetricTarget.attributeTypeMap=[{name:"averageUtilization",baseName:"averageUtilization",type:"number"},{name:"averageValue",baseName:"averageValue",type:"string"},{name:"type",baseName:"type",type:"string"},{name:"value",baseName:"value",type:"string"}];t.V2beta2MetricTarget=V2beta2MetricTarget;class V2beta2MetricValueStatus{static getAttributeTypeMap(){return V2beta2MetricValueStatus.attributeTypeMap}}V2beta2MetricValueStatus.discriminator=undefined;V2beta2MetricValueStatus.attributeTypeMap=[{name:"averageUtilization",baseName:"averageUtilization",type:"number"},{name:"averageValue",baseName:"averageValue",type:"string"},{name:"value",baseName:"value",type:"string"}];t.V2beta2MetricValueStatus=V2beta2MetricValueStatus;class V2beta2ObjectMetricSource{static getAttributeTypeMap(){return V2beta2ObjectMetricSource.attributeTypeMap}}V2beta2ObjectMetricSource.discriminator=undefined;V2beta2ObjectMetricSource.attributeTypeMap=[{name:"describedObject",baseName:"describedObject",type:"V2beta2CrossVersionObjectReference"},{name:"metric",baseName:"metric",type:"V2beta2MetricIdentifier"},{name:"target",baseName:"target",type:"V2beta2MetricTarget"}];t.V2beta2ObjectMetricSource=V2beta2ObjectMetricSource;class V2beta2ObjectMetricStatus{static getAttributeTypeMap(){return V2beta2ObjectMetricStatus.attributeTypeMap}}V2beta2ObjectMetricStatus.discriminator=undefined;V2beta2ObjectMetricStatus.attributeTypeMap=[{name:"current",baseName:"current",type:"V2beta2MetricValueStatus"},{name:"describedObject",baseName:"describedObject",type:"V2beta2CrossVersionObjectReference"},{name:"metric",baseName:"metric",type:"V2beta2MetricIdentifier"}];t.V2beta2ObjectMetricStatus=V2beta2ObjectMetricStatus;class V2beta2PodsMetricSource{static getAttributeTypeMap(){return V2beta2PodsMetricSource.attributeTypeMap}}V2beta2PodsMetricSource.discriminator=undefined;V2beta2PodsMetricSource.attributeTypeMap=[{name:"metric",baseName:"metric",type:"V2beta2MetricIdentifier"},{name:"target",baseName:"target",type:"V2beta2MetricTarget"}];t.V2beta2PodsMetricSource=V2beta2PodsMetricSource;class V2beta2PodsMetricStatus{static getAttributeTypeMap(){return V2beta2PodsMetricStatus.attributeTypeMap}}V2beta2PodsMetricStatus.discriminator=undefined;V2beta2PodsMetricStatus.attributeTypeMap=[{name:"current",baseName:"current",type:"V2beta2MetricValueStatus"},{name:"metric",baseName:"metric",type:"V2beta2MetricIdentifier"}];t.V2beta2PodsMetricStatus=V2beta2PodsMetricStatus;class V2beta2ResourceMetricSource{static getAttributeTypeMap(){return V2beta2ResourceMetricSource.attributeTypeMap}}V2beta2ResourceMetricSource.discriminator=undefined;V2beta2ResourceMetricSource.attributeTypeMap=[{name:"name",baseName:"name",type:"string"},{name:"target",baseName:"target",type:"V2beta2MetricTarget"}];t.V2beta2ResourceMetricSource=V2beta2ResourceMetricSource;class V2beta2ResourceMetricStatus{static getAttributeTypeMap(){return V2beta2ResourceMetricStatus.attributeTypeMap}}V2beta2ResourceMetricStatus.discriminator=undefined;V2beta2ResourceMetricStatus.attributeTypeMap=[{name:"current",baseName:"current",type:"V2beta2MetricValueStatus"},{name:"name",baseName:"name",type:"string"}];t.V2beta2ResourceMetricStatus=V2beta2ResourceMetricStatus;class VersionInfo{static getAttributeTypeMap(){return VersionInfo.attributeTypeMap}}VersionInfo.discriminator=undefined;VersionInfo.attributeTypeMap=[{name:"buildDate",baseName:"buildDate",type:"string"},{name:"compiler",baseName:"compiler",type:"string"},{name:"gitCommit",baseName:"gitCommit",type:"string"},{name:"gitTreeState",baseName:"gitTreeState",type:"string"},{name:"gitVersion",baseName:"gitVersion",type:"string"},{name:"goVersion",baseName:"goVersion",type:"string"},{name:"major",baseName:"major",type:"string"},{name:"minor",baseName:"minor",type:"string"},{name:"platform",baseName:"platform",type:"string"}];t.VersionInfo=VersionInfo;let s={};let o={AdmissionregistrationV1beta1ServiceReference:AdmissionregistrationV1beta1ServiceReference,AdmissionregistrationV1beta1WebhookClientConfig:AdmissionregistrationV1beta1WebhookClientConfig,ApiextensionsV1beta1ServiceReference:ApiextensionsV1beta1ServiceReference,ApiextensionsV1beta1WebhookClientConfig:ApiextensionsV1beta1WebhookClientConfig,ApiregistrationV1beta1ServiceReference:ApiregistrationV1beta1ServiceReference,AppsV1beta1Deployment:AppsV1beta1Deployment,AppsV1beta1DeploymentCondition:AppsV1beta1DeploymentCondition,AppsV1beta1DeploymentList:AppsV1beta1DeploymentList,AppsV1beta1DeploymentRollback:AppsV1beta1DeploymentRollback,AppsV1beta1DeploymentSpec:AppsV1beta1DeploymentSpec,AppsV1beta1DeploymentStatus:AppsV1beta1DeploymentStatus,AppsV1beta1DeploymentStrategy:AppsV1beta1DeploymentStrategy,AppsV1beta1RollbackConfig:AppsV1beta1RollbackConfig,AppsV1beta1RollingUpdateDeployment:AppsV1beta1RollingUpdateDeployment,AppsV1beta1Scale:AppsV1beta1Scale,AppsV1beta1ScaleSpec:AppsV1beta1ScaleSpec,AppsV1beta1ScaleStatus:AppsV1beta1ScaleStatus,ExtensionsV1beta1AllowedFlexVolume:ExtensionsV1beta1AllowedFlexVolume,ExtensionsV1beta1AllowedHostPath:ExtensionsV1beta1AllowedHostPath,ExtensionsV1beta1Deployment:ExtensionsV1beta1Deployment,ExtensionsV1beta1DeploymentCondition:ExtensionsV1beta1DeploymentCondition,ExtensionsV1beta1DeploymentList:ExtensionsV1beta1DeploymentList,ExtensionsV1beta1DeploymentRollback:ExtensionsV1beta1DeploymentRollback,ExtensionsV1beta1DeploymentSpec:ExtensionsV1beta1DeploymentSpec,ExtensionsV1beta1DeploymentStatus:ExtensionsV1beta1DeploymentStatus,ExtensionsV1beta1DeploymentStrategy:ExtensionsV1beta1DeploymentStrategy,ExtensionsV1beta1FSGroupStrategyOptions:ExtensionsV1beta1FSGroupStrategyOptions,ExtensionsV1beta1HostPortRange:ExtensionsV1beta1HostPortRange,ExtensionsV1beta1IDRange:ExtensionsV1beta1IDRange,ExtensionsV1beta1PodSecurityPolicy:ExtensionsV1beta1PodSecurityPolicy,ExtensionsV1beta1PodSecurityPolicyList:ExtensionsV1beta1PodSecurityPolicyList,ExtensionsV1beta1PodSecurityPolicySpec:ExtensionsV1beta1PodSecurityPolicySpec,ExtensionsV1beta1RollbackConfig:ExtensionsV1beta1RollbackConfig,ExtensionsV1beta1RollingUpdateDeployment:ExtensionsV1beta1RollingUpdateDeployment,ExtensionsV1beta1RunAsGroupStrategyOptions:ExtensionsV1beta1RunAsGroupStrategyOptions,ExtensionsV1beta1RunAsUserStrategyOptions:ExtensionsV1beta1RunAsUserStrategyOptions,ExtensionsV1beta1SELinuxStrategyOptions:ExtensionsV1beta1SELinuxStrategyOptions,ExtensionsV1beta1Scale:ExtensionsV1beta1Scale,ExtensionsV1beta1ScaleSpec:ExtensionsV1beta1ScaleSpec,ExtensionsV1beta1ScaleStatus:ExtensionsV1beta1ScaleStatus,ExtensionsV1beta1SupplementalGroupsStrategyOptions:ExtensionsV1beta1SupplementalGroupsStrategyOptions,PolicyV1beta1AllowedFlexVolume:PolicyV1beta1AllowedFlexVolume,PolicyV1beta1AllowedHostPath:PolicyV1beta1AllowedHostPath,PolicyV1beta1FSGroupStrategyOptions:PolicyV1beta1FSGroupStrategyOptions,PolicyV1beta1HostPortRange:PolicyV1beta1HostPortRange,PolicyV1beta1IDRange:PolicyV1beta1IDRange,PolicyV1beta1PodSecurityPolicy:PolicyV1beta1PodSecurityPolicy,PolicyV1beta1PodSecurityPolicyList:PolicyV1beta1PodSecurityPolicyList,PolicyV1beta1PodSecurityPolicySpec:PolicyV1beta1PodSecurityPolicySpec,PolicyV1beta1RunAsGroupStrategyOptions:PolicyV1beta1RunAsGroupStrategyOptions,PolicyV1beta1RunAsUserStrategyOptions:PolicyV1beta1RunAsUserStrategyOptions,PolicyV1beta1SELinuxStrategyOptions:PolicyV1beta1SELinuxStrategyOptions,PolicyV1beta1SupplementalGroupsStrategyOptions:PolicyV1beta1SupplementalGroupsStrategyOptions,RuntimeRawExtension:RuntimeRawExtension,V1APIGroup:V1APIGroup,V1APIGroupList:V1APIGroupList,V1APIResource:V1APIResource,V1APIResourceList:V1APIResourceList,V1APIService:V1APIService,V1APIServiceCondition:V1APIServiceCondition,V1APIServiceList:V1APIServiceList,V1APIServiceSpec:V1APIServiceSpec,V1APIServiceStatus:V1APIServiceStatus,V1APIVersions:V1APIVersions,V1AWSElasticBlockStoreVolumeSource:V1AWSElasticBlockStoreVolumeSource,V1Affinity:V1Affinity,V1AggregationRule:V1AggregationRule,V1AttachedVolume:V1AttachedVolume,V1AzureDiskVolumeSource:V1AzureDiskVolumeSource,V1AzureFilePersistentVolumeSource:V1AzureFilePersistentVolumeSource,V1AzureFileVolumeSource:V1AzureFileVolumeSource,V1Binding:V1Binding,V1CSIPersistentVolumeSource:V1CSIPersistentVolumeSource,V1Capabilities:V1Capabilities,V1CephFSPersistentVolumeSource:V1CephFSPersistentVolumeSource,V1CephFSVolumeSource:V1CephFSVolumeSource,V1CinderPersistentVolumeSource:V1CinderPersistentVolumeSource,V1CinderVolumeSource:V1CinderVolumeSource,V1ClientIPConfig:V1ClientIPConfig,V1ClusterRole:V1ClusterRole,V1ClusterRoleBinding:V1ClusterRoleBinding,V1ClusterRoleBindingList:V1ClusterRoleBindingList,V1ClusterRoleList:V1ClusterRoleList,V1ComponentCondition:V1ComponentCondition,V1ComponentStatus:V1ComponentStatus,V1ComponentStatusList:V1ComponentStatusList,V1ConfigMap:V1ConfigMap,V1ConfigMapEnvSource:V1ConfigMapEnvSource,V1ConfigMapKeySelector:V1ConfigMapKeySelector,V1ConfigMapList:V1ConfigMapList,V1ConfigMapNodeConfigSource:V1ConfigMapNodeConfigSource,V1ConfigMapProjection:V1ConfigMapProjection,V1ConfigMapVolumeSource:V1ConfigMapVolumeSource,V1Container:V1Container,V1ContainerImage:V1ContainerImage,V1ContainerPort:V1ContainerPort,V1ContainerState:V1ContainerState,V1ContainerStateRunning:V1ContainerStateRunning,V1ContainerStateTerminated:V1ContainerStateTerminated,V1ContainerStateWaiting:V1ContainerStateWaiting,V1ContainerStatus:V1ContainerStatus,V1ControllerRevision:V1ControllerRevision,V1ControllerRevisionList:V1ControllerRevisionList,V1CrossVersionObjectReference:V1CrossVersionObjectReference,V1DaemonEndpoint:V1DaemonEndpoint,V1DaemonSet:V1DaemonSet,V1DaemonSetCondition:V1DaemonSetCondition,V1DaemonSetList:V1DaemonSetList,V1DaemonSetSpec:V1DaemonSetSpec,V1DaemonSetStatus:V1DaemonSetStatus,V1DaemonSetUpdateStrategy:V1DaemonSetUpdateStrategy,V1DeleteOptions:V1DeleteOptions,V1Deployment:V1Deployment,V1DeploymentCondition:V1DeploymentCondition,V1DeploymentList:V1DeploymentList,V1DeploymentSpec:V1DeploymentSpec,V1DeploymentStatus:V1DeploymentStatus,V1DeploymentStrategy:V1DeploymentStrategy,V1DownwardAPIProjection:V1DownwardAPIProjection,V1DownwardAPIVolumeFile:V1DownwardAPIVolumeFile,V1DownwardAPIVolumeSource:V1DownwardAPIVolumeSource,V1EmptyDirVolumeSource:V1EmptyDirVolumeSource,V1EndpointAddress:V1EndpointAddress,V1EndpointPort:V1EndpointPort,V1EndpointSubset:V1EndpointSubset,V1Endpoints:V1Endpoints,V1EndpointsList:V1EndpointsList,V1EnvFromSource:V1EnvFromSource,V1EnvVar:V1EnvVar,V1EnvVarSource:V1EnvVarSource,V1Event:V1Event,V1EventList:V1EventList,V1EventSeries:V1EventSeries,V1EventSource:V1EventSource,V1ExecAction:V1ExecAction,V1FCVolumeSource:V1FCVolumeSource,V1FlexPersistentVolumeSource:V1FlexPersistentVolumeSource,V1FlexVolumeSource:V1FlexVolumeSource,V1FlockerVolumeSource:V1FlockerVolumeSource,V1GCEPersistentDiskVolumeSource:V1GCEPersistentDiskVolumeSource,V1GitRepoVolumeSource:V1GitRepoVolumeSource,V1GlusterfsPersistentVolumeSource:V1GlusterfsPersistentVolumeSource,V1GlusterfsVolumeSource:V1GlusterfsVolumeSource,V1GroupVersionForDiscovery:V1GroupVersionForDiscovery,V1HTTPGetAction:V1HTTPGetAction,V1HTTPHeader:V1HTTPHeader,V1Handler:V1Handler,V1HorizontalPodAutoscaler:V1HorizontalPodAutoscaler,V1HorizontalPodAutoscalerList:V1HorizontalPodAutoscalerList,V1HorizontalPodAutoscalerSpec:V1HorizontalPodAutoscalerSpec,V1HorizontalPodAutoscalerStatus:V1HorizontalPodAutoscalerStatus,V1HostAlias:V1HostAlias,V1HostPathVolumeSource:V1HostPathVolumeSource,V1IPBlock:V1IPBlock,V1ISCSIPersistentVolumeSource:V1ISCSIPersistentVolumeSource,V1ISCSIVolumeSource:V1ISCSIVolumeSource,V1Initializer:V1Initializer,V1Initializers:V1Initializers,V1Job:V1Job,V1JobCondition:V1JobCondition,V1JobList:V1JobList,V1JobSpec:V1JobSpec,V1JobStatus:V1JobStatus,V1KeyToPath:V1KeyToPath,V1LabelSelector:V1LabelSelector,V1LabelSelectorRequirement:V1LabelSelectorRequirement,V1Lifecycle:V1Lifecycle,V1LimitRange:V1LimitRange,V1LimitRangeItem:V1LimitRangeItem,V1LimitRangeList:V1LimitRangeList,V1LimitRangeSpec:V1LimitRangeSpec,V1ListMeta:V1ListMeta,V1LoadBalancerIngress:V1LoadBalancerIngress,V1LoadBalancerStatus:V1LoadBalancerStatus,V1LocalObjectReference:V1LocalObjectReference,V1LocalSubjectAccessReview:V1LocalSubjectAccessReview,V1LocalVolumeSource:V1LocalVolumeSource,V1NFSVolumeSource:V1NFSVolumeSource,V1Namespace:V1Namespace,V1NamespaceList:V1NamespaceList,V1NamespaceSpec:V1NamespaceSpec,V1NamespaceStatus:V1NamespaceStatus,V1NetworkPolicy:V1NetworkPolicy,V1NetworkPolicyEgressRule:V1NetworkPolicyEgressRule,V1NetworkPolicyIngressRule:V1NetworkPolicyIngressRule,V1NetworkPolicyList:V1NetworkPolicyList,V1NetworkPolicyPeer:V1NetworkPolicyPeer,V1NetworkPolicyPort:V1NetworkPolicyPort,V1NetworkPolicySpec:V1NetworkPolicySpec,V1Node:V1Node,V1NodeAddress:V1NodeAddress,V1NodeAffinity:V1NodeAffinity,V1NodeCondition:V1NodeCondition,V1NodeConfigSource:V1NodeConfigSource,V1NodeConfigStatus:V1NodeConfigStatus,V1NodeDaemonEndpoints:V1NodeDaemonEndpoints,V1NodeList:V1NodeList,V1NodeSelector:V1NodeSelector,V1NodeSelectorRequirement:V1NodeSelectorRequirement,V1NodeSelectorTerm:V1NodeSelectorTerm,V1NodeSpec:V1NodeSpec,V1NodeStatus:V1NodeStatus,V1NodeSystemInfo:V1NodeSystemInfo,V1NonResourceAttributes:V1NonResourceAttributes,V1NonResourceRule:V1NonResourceRule,V1ObjectFieldSelector:V1ObjectFieldSelector,V1ObjectMeta:V1ObjectMeta,V1ObjectReference:V1ObjectReference,V1OwnerReference:V1OwnerReference,V1PersistentVolume:V1PersistentVolume,V1PersistentVolumeClaim:V1PersistentVolumeClaim,V1PersistentVolumeClaimCondition:V1PersistentVolumeClaimCondition,V1PersistentVolumeClaimList:V1PersistentVolumeClaimList,V1PersistentVolumeClaimSpec:V1PersistentVolumeClaimSpec,V1PersistentVolumeClaimStatus:V1PersistentVolumeClaimStatus,V1PersistentVolumeClaimVolumeSource:V1PersistentVolumeClaimVolumeSource,V1PersistentVolumeList:V1PersistentVolumeList,V1PersistentVolumeSpec:V1PersistentVolumeSpec,V1PersistentVolumeStatus:V1PersistentVolumeStatus,V1PhotonPersistentDiskVolumeSource:V1PhotonPersistentDiskVolumeSource,V1Pod:V1Pod,V1PodAffinity:V1PodAffinity,V1PodAffinityTerm:V1PodAffinityTerm,V1PodAntiAffinity:V1PodAntiAffinity,V1PodCondition:V1PodCondition,V1PodDNSConfig:V1PodDNSConfig,V1PodDNSConfigOption:V1PodDNSConfigOption,V1PodList:V1PodList,V1PodReadinessGate:V1PodReadinessGate,V1PodSecurityContext:V1PodSecurityContext,V1PodSpec:V1PodSpec,V1PodStatus:V1PodStatus,V1PodTemplate:V1PodTemplate,V1PodTemplateList:V1PodTemplateList,V1PodTemplateSpec:V1PodTemplateSpec,V1PolicyRule:V1PolicyRule,V1PortworxVolumeSource:V1PortworxVolumeSource,V1Preconditions:V1Preconditions,V1PreferredSchedulingTerm:V1PreferredSchedulingTerm,V1Probe:V1Probe,V1ProjectedVolumeSource:V1ProjectedVolumeSource,V1QuobyteVolumeSource:V1QuobyteVolumeSource,V1RBDPersistentVolumeSource:V1RBDPersistentVolumeSource,V1RBDVolumeSource:V1RBDVolumeSource,V1ReplicaSet:V1ReplicaSet,V1ReplicaSetCondition:V1ReplicaSetCondition,V1ReplicaSetList:V1ReplicaSetList,V1ReplicaSetSpec:V1ReplicaSetSpec,V1ReplicaSetStatus:V1ReplicaSetStatus,V1ReplicationController:V1ReplicationController,V1ReplicationControllerCondition:V1ReplicationControllerCondition,V1ReplicationControllerList:V1ReplicationControllerList,V1ReplicationControllerSpec:V1ReplicationControllerSpec,V1ReplicationControllerStatus:V1ReplicationControllerStatus,V1ResourceAttributes:V1ResourceAttributes,V1ResourceFieldSelector:V1ResourceFieldSelector,V1ResourceQuota:V1ResourceQuota,V1ResourceQuotaList:V1ResourceQuotaList,V1ResourceQuotaSpec:V1ResourceQuotaSpec,V1ResourceQuotaStatus:V1ResourceQuotaStatus,V1ResourceRequirements:V1ResourceRequirements,V1ResourceRule:V1ResourceRule,V1Role:V1Role,V1RoleBinding:V1RoleBinding,V1RoleBindingList:V1RoleBindingList,V1RoleList:V1RoleList,V1RoleRef:V1RoleRef,V1RollingUpdateDaemonSet:V1RollingUpdateDaemonSet,V1RollingUpdateDeployment:V1RollingUpdateDeployment,V1RollingUpdateStatefulSetStrategy:V1RollingUpdateStatefulSetStrategy,V1SELinuxOptions:V1SELinuxOptions,V1Scale:V1Scale,V1ScaleIOPersistentVolumeSource:V1ScaleIOPersistentVolumeSource,V1ScaleIOVolumeSource:V1ScaleIOVolumeSource,V1ScaleSpec:V1ScaleSpec,V1ScaleStatus:V1ScaleStatus,V1ScopeSelector:V1ScopeSelector,V1ScopedResourceSelectorRequirement:V1ScopedResourceSelectorRequirement,V1Secret:V1Secret,V1SecretEnvSource:V1SecretEnvSource,V1SecretKeySelector:V1SecretKeySelector,V1SecretList:V1SecretList,V1SecretProjection:V1SecretProjection,V1SecretReference:V1SecretReference,V1SecretVolumeSource:V1SecretVolumeSource,V1SecurityContext:V1SecurityContext,V1SelfSubjectAccessReview:V1SelfSubjectAccessReview,V1SelfSubjectAccessReviewSpec:V1SelfSubjectAccessReviewSpec,V1SelfSubjectRulesReview:V1SelfSubjectRulesReview,V1SelfSubjectRulesReviewSpec:V1SelfSubjectRulesReviewSpec,V1ServerAddressByClientCIDR:V1ServerAddressByClientCIDR,V1Service:V1Service,V1ServiceAccount:V1ServiceAccount,V1ServiceAccountList:V1ServiceAccountList,V1ServiceAccountTokenProjection:V1ServiceAccountTokenProjection,V1ServiceList:V1ServiceList,V1ServicePort:V1ServicePort,V1ServiceReference:V1ServiceReference,V1ServiceSpec:V1ServiceSpec,V1ServiceStatus:V1ServiceStatus,V1SessionAffinityConfig:V1SessionAffinityConfig,V1StatefulSet:V1StatefulSet,V1StatefulSetCondition:V1StatefulSetCondition,V1StatefulSetList:V1StatefulSetList,V1StatefulSetSpec:V1StatefulSetSpec,V1StatefulSetStatus:V1StatefulSetStatus,V1StatefulSetUpdateStrategy:V1StatefulSetUpdateStrategy,V1Status:V1Status,V1StatusCause:V1StatusCause,V1StatusDetails:V1StatusDetails,V1StorageClass:V1StorageClass,V1StorageClassList:V1StorageClassList,V1StorageOSPersistentVolumeSource:V1StorageOSPersistentVolumeSource,V1StorageOSVolumeSource:V1StorageOSVolumeSource,V1Subject:V1Subject,V1SubjectAccessReview:V1SubjectAccessReview,V1SubjectAccessReviewSpec:V1SubjectAccessReviewSpec,V1SubjectAccessReviewStatus:V1SubjectAccessReviewStatus,V1SubjectRulesReviewStatus:V1SubjectRulesReviewStatus,V1Sysctl:V1Sysctl,V1TCPSocketAction:V1TCPSocketAction,V1Taint:V1Taint,V1TokenReview:V1TokenReview,V1TokenReviewSpec:V1TokenReviewSpec,V1TokenReviewStatus:V1TokenReviewStatus,V1Toleration:V1Toleration,V1TopologySelectorLabelRequirement:V1TopologySelectorLabelRequirement,V1TopologySelectorTerm:V1TopologySelectorTerm,V1TypedLocalObjectReference:V1TypedLocalObjectReference,V1UserInfo:V1UserInfo,V1Volume:V1Volume,V1VolumeAttachment:V1VolumeAttachment,V1VolumeAttachmentList:V1VolumeAttachmentList,V1VolumeAttachmentSource:V1VolumeAttachmentSource,V1VolumeAttachmentSpec:V1VolumeAttachmentSpec,V1VolumeAttachmentStatus:V1VolumeAttachmentStatus,V1VolumeDevice:V1VolumeDevice,V1VolumeError:V1VolumeError,V1VolumeMount:V1VolumeMount,V1VolumeNodeAffinity:V1VolumeNodeAffinity,V1VolumeProjection:V1VolumeProjection,V1VsphereVirtualDiskVolumeSource:V1VsphereVirtualDiskVolumeSource,V1WatchEvent:V1WatchEvent,V1WeightedPodAffinityTerm:V1WeightedPodAffinityTerm,V1alpha1AggregationRule:V1alpha1AggregationRule,V1alpha1AuditSink:V1alpha1AuditSink,V1alpha1AuditSinkList:V1alpha1AuditSinkList,V1alpha1AuditSinkSpec:V1alpha1AuditSinkSpec,V1alpha1ClusterRole:V1alpha1ClusterRole,V1alpha1ClusterRoleBinding:V1alpha1ClusterRoleBinding,V1alpha1ClusterRoleBindingList:V1alpha1ClusterRoleBindingList,V1alpha1ClusterRoleList:V1alpha1ClusterRoleList,V1alpha1Initializer:V1alpha1Initializer,V1alpha1InitializerConfiguration:V1alpha1InitializerConfiguration,V1alpha1InitializerConfigurationList:V1alpha1InitializerConfigurationList,V1alpha1PodPreset:V1alpha1PodPreset,V1alpha1PodPresetList:V1alpha1PodPresetList,V1alpha1PodPresetSpec:V1alpha1PodPresetSpec,V1alpha1Policy:V1alpha1Policy,V1alpha1PolicyRule:V1alpha1PolicyRule,V1alpha1PriorityClass:V1alpha1PriorityClass,V1alpha1PriorityClassList:V1alpha1PriorityClassList,V1alpha1Role:V1alpha1Role,V1alpha1RoleBinding:V1alpha1RoleBinding,V1alpha1RoleBindingList:V1alpha1RoleBindingList,V1alpha1RoleList:V1alpha1RoleList,V1alpha1RoleRef:V1alpha1RoleRef,V1alpha1Rule:V1alpha1Rule,V1alpha1ServiceReference:V1alpha1ServiceReference,V1alpha1Subject:V1alpha1Subject,V1alpha1VolumeAttachment:V1alpha1VolumeAttachment,V1alpha1VolumeAttachmentList:V1alpha1VolumeAttachmentList,V1alpha1VolumeAttachmentSource:V1alpha1VolumeAttachmentSource,V1alpha1VolumeAttachmentSpec:V1alpha1VolumeAttachmentSpec,V1alpha1VolumeAttachmentStatus:V1alpha1VolumeAttachmentStatus,V1alpha1VolumeError:V1alpha1VolumeError,V1alpha1Webhook:V1alpha1Webhook,V1alpha1WebhookClientConfig:V1alpha1WebhookClientConfig,V1alpha1WebhookThrottleConfig:V1alpha1WebhookThrottleConfig,V1beta1APIService:V1beta1APIService,V1beta1APIServiceCondition:V1beta1APIServiceCondition,V1beta1APIServiceList:V1beta1APIServiceList,V1beta1APIServiceSpec:V1beta1APIServiceSpec,V1beta1APIServiceStatus:V1beta1APIServiceStatus,V1beta1AggregationRule:V1beta1AggregationRule,V1beta1CertificateSigningRequest:V1beta1CertificateSigningRequest,V1beta1CertificateSigningRequestCondition:V1beta1CertificateSigningRequestCondition,V1beta1CertificateSigningRequestList:V1beta1CertificateSigningRequestList,V1beta1CertificateSigningRequestSpec:V1beta1CertificateSigningRequestSpec,V1beta1CertificateSigningRequestStatus:V1beta1CertificateSigningRequestStatus,V1beta1ClusterRole:V1beta1ClusterRole,V1beta1ClusterRoleBinding:V1beta1ClusterRoleBinding,V1beta1ClusterRoleBindingList:V1beta1ClusterRoleBindingList,V1beta1ClusterRoleList:V1beta1ClusterRoleList,V1beta1ControllerRevision:V1beta1ControllerRevision,V1beta1ControllerRevisionList:V1beta1ControllerRevisionList,V1beta1CronJob:V1beta1CronJob,V1beta1CronJobList:V1beta1CronJobList,V1beta1CronJobSpec:V1beta1CronJobSpec,V1beta1CronJobStatus:V1beta1CronJobStatus,V1beta1CustomResourceColumnDefinition:V1beta1CustomResourceColumnDefinition,V1beta1CustomResourceConversion:V1beta1CustomResourceConversion,V1beta1CustomResourceDefinition:V1beta1CustomResourceDefinition,V1beta1CustomResourceDefinitionCondition:V1beta1CustomResourceDefinitionCondition,V1beta1CustomResourceDefinitionList:V1beta1CustomResourceDefinitionList,V1beta1CustomResourceDefinitionNames:V1beta1CustomResourceDefinitionNames,V1beta1CustomResourceDefinitionSpec:V1beta1CustomResourceDefinitionSpec,V1beta1CustomResourceDefinitionStatus:V1beta1CustomResourceDefinitionStatus,V1beta1CustomResourceDefinitionVersion:V1beta1CustomResourceDefinitionVersion,V1beta1CustomResourceSubresourceScale:V1beta1CustomResourceSubresourceScale,V1beta1CustomResourceSubresources:V1beta1CustomResourceSubresources,V1beta1CustomResourceValidation:V1beta1CustomResourceValidation,V1beta1DaemonSet:V1beta1DaemonSet,V1beta1DaemonSetCondition:V1beta1DaemonSetCondition,V1beta1DaemonSetList:V1beta1DaemonSetList,V1beta1DaemonSetSpec:V1beta1DaemonSetSpec,V1beta1DaemonSetStatus:V1beta1DaemonSetStatus,V1beta1DaemonSetUpdateStrategy:V1beta1DaemonSetUpdateStrategy,V1beta1Event:V1beta1Event,V1beta1EventList:V1beta1EventList,V1beta1EventSeries:V1beta1EventSeries,V1beta1Eviction:V1beta1Eviction,V1beta1ExternalDocumentation:V1beta1ExternalDocumentation,V1beta1HTTPIngressPath:V1beta1HTTPIngressPath,V1beta1HTTPIngressRuleValue:V1beta1HTTPIngressRuleValue,V1beta1IPBlock:V1beta1IPBlock,V1beta1Ingress:V1beta1Ingress,V1beta1IngressBackend:V1beta1IngressBackend,V1beta1IngressList:V1beta1IngressList,V1beta1IngressRule:V1beta1IngressRule,V1beta1IngressSpec:V1beta1IngressSpec,V1beta1IngressStatus:V1beta1IngressStatus,V1beta1IngressTLS:V1beta1IngressTLS,V1beta1JSONSchemaProps:V1beta1JSONSchemaProps,V1beta1JobTemplateSpec:V1beta1JobTemplateSpec,V1beta1Lease:V1beta1Lease,V1beta1LeaseList:V1beta1LeaseList,V1beta1LeaseSpec:V1beta1LeaseSpec,V1beta1LocalSubjectAccessReview:V1beta1LocalSubjectAccessReview,V1beta1MutatingWebhookConfiguration:V1beta1MutatingWebhookConfiguration,V1beta1MutatingWebhookConfigurationList:V1beta1MutatingWebhookConfigurationList,V1beta1NetworkPolicy:V1beta1NetworkPolicy,V1beta1NetworkPolicyEgressRule:V1beta1NetworkPolicyEgressRule,V1beta1NetworkPolicyIngressRule:V1beta1NetworkPolicyIngressRule,V1beta1NetworkPolicyList:V1beta1NetworkPolicyList,V1beta1NetworkPolicyPeer:V1beta1NetworkPolicyPeer,V1beta1NetworkPolicyPort:V1beta1NetworkPolicyPort,V1beta1NetworkPolicySpec:V1beta1NetworkPolicySpec,V1beta1NonResourceAttributes:V1beta1NonResourceAttributes,V1beta1NonResourceRule:V1beta1NonResourceRule,V1beta1PodDisruptionBudget:V1beta1PodDisruptionBudget,V1beta1PodDisruptionBudgetList:V1beta1PodDisruptionBudgetList,V1beta1PodDisruptionBudgetSpec:V1beta1PodDisruptionBudgetSpec,V1beta1PodDisruptionBudgetStatus:V1beta1PodDisruptionBudgetStatus,V1beta1PolicyRule:V1beta1PolicyRule,V1beta1PriorityClass:V1beta1PriorityClass,V1beta1PriorityClassList:V1beta1PriorityClassList,V1beta1ReplicaSet:V1beta1ReplicaSet,V1beta1ReplicaSetCondition:V1beta1ReplicaSetCondition,V1beta1ReplicaSetList:V1beta1ReplicaSetList,V1beta1ReplicaSetSpec:V1beta1ReplicaSetSpec,V1beta1ReplicaSetStatus:V1beta1ReplicaSetStatus,V1beta1ResourceAttributes:V1beta1ResourceAttributes,V1beta1ResourceRule:V1beta1ResourceRule,V1beta1Role:V1beta1Role,V1beta1RoleBinding:V1beta1RoleBinding,V1beta1RoleBindingList:V1beta1RoleBindingList,V1beta1RoleList:V1beta1RoleList,V1beta1RoleRef:V1beta1RoleRef,V1beta1RollingUpdateDaemonSet:V1beta1RollingUpdateDaemonSet,V1beta1RollingUpdateStatefulSetStrategy:V1beta1RollingUpdateStatefulSetStrategy,V1beta1RuleWithOperations:V1beta1RuleWithOperations,V1beta1SelfSubjectAccessReview:V1beta1SelfSubjectAccessReview,V1beta1SelfSubjectAccessReviewSpec:V1beta1SelfSubjectAccessReviewSpec,V1beta1SelfSubjectRulesReview:V1beta1SelfSubjectRulesReview,V1beta1SelfSubjectRulesReviewSpec:V1beta1SelfSubjectRulesReviewSpec,V1beta1StatefulSet:V1beta1StatefulSet,V1beta1StatefulSetCondition:V1beta1StatefulSetCondition,V1beta1StatefulSetList:V1beta1StatefulSetList,V1beta1StatefulSetSpec:V1beta1StatefulSetSpec,V1beta1StatefulSetStatus:V1beta1StatefulSetStatus,V1beta1StatefulSetUpdateStrategy:V1beta1StatefulSetUpdateStrategy,V1beta1StorageClass:V1beta1StorageClass,V1beta1StorageClassList:V1beta1StorageClassList,V1beta1Subject:V1beta1Subject,V1beta1SubjectAccessReview:V1beta1SubjectAccessReview,V1beta1SubjectAccessReviewSpec:V1beta1SubjectAccessReviewSpec,V1beta1SubjectAccessReviewStatus:V1beta1SubjectAccessReviewStatus,V1beta1SubjectRulesReviewStatus:V1beta1SubjectRulesReviewStatus,V1beta1TokenReview:V1beta1TokenReview,V1beta1TokenReviewSpec:V1beta1TokenReviewSpec,V1beta1TokenReviewStatus:V1beta1TokenReviewStatus,V1beta1UserInfo:V1beta1UserInfo,V1beta1ValidatingWebhookConfiguration:V1beta1ValidatingWebhookConfiguration,V1beta1ValidatingWebhookConfigurationList:V1beta1ValidatingWebhookConfigurationList,V1beta1VolumeAttachment:V1beta1VolumeAttachment,V1beta1VolumeAttachmentList:V1beta1VolumeAttachmentList,V1beta1VolumeAttachmentSource:V1beta1VolumeAttachmentSource,V1beta1VolumeAttachmentSpec:V1beta1VolumeAttachmentSpec,V1beta1VolumeAttachmentStatus:V1beta1VolumeAttachmentStatus,V1beta1VolumeError:V1beta1VolumeError,V1beta1Webhook:V1beta1Webhook,V1beta2ControllerRevision:V1beta2ControllerRevision,V1beta2ControllerRevisionList:V1beta2ControllerRevisionList,V1beta2DaemonSet:V1beta2DaemonSet,V1beta2DaemonSetCondition:V1beta2DaemonSetCondition,V1beta2DaemonSetList:V1beta2DaemonSetList,V1beta2DaemonSetSpec:V1beta2DaemonSetSpec,V1beta2DaemonSetStatus:V1beta2DaemonSetStatus,V1beta2DaemonSetUpdateStrategy:V1beta2DaemonSetUpdateStrategy,V1beta2Deployment:V1beta2Deployment,V1beta2DeploymentCondition:V1beta2DeploymentCondition,V1beta2DeploymentList:V1beta2DeploymentList,V1beta2DeploymentSpec:V1beta2DeploymentSpec,V1beta2DeploymentStatus:V1beta2DeploymentStatus,V1beta2DeploymentStrategy:V1beta2DeploymentStrategy,V1beta2ReplicaSet:V1beta2ReplicaSet,V1beta2ReplicaSetCondition:V1beta2ReplicaSetCondition,V1beta2ReplicaSetList:V1beta2ReplicaSetList,V1beta2ReplicaSetSpec:V1beta2ReplicaSetSpec,V1beta2ReplicaSetStatus:V1beta2ReplicaSetStatus,V1beta2RollingUpdateDaemonSet:V1beta2RollingUpdateDaemonSet,V1beta2RollingUpdateDeployment:V1beta2RollingUpdateDeployment,V1beta2RollingUpdateStatefulSetStrategy:V1beta2RollingUpdateStatefulSetStrategy,V1beta2Scale:V1beta2Scale,V1beta2ScaleSpec:V1beta2ScaleSpec,V1beta2ScaleStatus:V1beta2ScaleStatus,V1beta2StatefulSet:V1beta2StatefulSet,V1beta2StatefulSetCondition:V1beta2StatefulSetCondition,V1beta2StatefulSetList:V1beta2StatefulSetList,V1beta2StatefulSetSpec:V1beta2StatefulSetSpec,V1beta2StatefulSetStatus:V1beta2StatefulSetStatus,V1beta2StatefulSetUpdateStrategy:V1beta2StatefulSetUpdateStrategy,V2alpha1CronJob:V2alpha1CronJob,V2alpha1CronJobList:V2alpha1CronJobList,V2alpha1CronJobSpec:V2alpha1CronJobSpec,V2alpha1CronJobStatus:V2alpha1CronJobStatus,V2alpha1JobTemplateSpec:V2alpha1JobTemplateSpec,V2beta1CrossVersionObjectReference:V2beta1CrossVersionObjectReference,V2beta1ExternalMetricSource:V2beta1ExternalMetricSource,V2beta1ExternalMetricStatus:V2beta1ExternalMetricStatus,V2beta1HorizontalPodAutoscaler:V2beta1HorizontalPodAutoscaler,V2beta1HorizontalPodAutoscalerCondition:V2beta1HorizontalPodAutoscalerCondition,V2beta1HorizontalPodAutoscalerList:V2beta1HorizontalPodAutoscalerList,V2beta1HorizontalPodAutoscalerSpec:V2beta1HorizontalPodAutoscalerSpec,V2beta1HorizontalPodAutoscalerStatus:V2beta1HorizontalPodAutoscalerStatus,V2beta1MetricSpec:V2beta1MetricSpec,V2beta1MetricStatus:V2beta1MetricStatus,V2beta1ObjectMetricSource:V2beta1ObjectMetricSource,V2beta1ObjectMetricStatus:V2beta1ObjectMetricStatus,V2beta1PodsMetricSource:V2beta1PodsMetricSource,V2beta1PodsMetricStatus:V2beta1PodsMetricStatus,V2beta1ResourceMetricSource:V2beta1ResourceMetricSource,V2beta1ResourceMetricStatus:V2beta1ResourceMetricStatus,V2beta2CrossVersionObjectReference:V2beta2CrossVersionObjectReference,V2beta2ExternalMetricSource:V2beta2ExternalMetricSource,V2beta2ExternalMetricStatus:V2beta2ExternalMetricStatus,V2beta2HorizontalPodAutoscaler:V2beta2HorizontalPodAutoscaler,V2beta2HorizontalPodAutoscalerCondition:V2beta2HorizontalPodAutoscalerCondition,V2beta2HorizontalPodAutoscalerList:V2beta2HorizontalPodAutoscalerList,V2beta2HorizontalPodAutoscalerSpec:V2beta2HorizontalPodAutoscalerSpec,V2beta2HorizontalPodAutoscalerStatus:V2beta2HorizontalPodAutoscalerStatus,V2beta2MetricIdentifier:V2beta2MetricIdentifier,V2beta2MetricSpec:V2beta2MetricSpec,V2beta2MetricStatus:V2beta2MetricStatus,V2beta2MetricTarget:V2beta2MetricTarget,V2beta2MetricValueStatus:V2beta2MetricValueStatus,V2beta2ObjectMetricSource:V2beta2ObjectMetricSource,V2beta2ObjectMetricStatus:V2beta2ObjectMetricStatus,V2beta2PodsMetricSource:V2beta2PodsMetricSource,V2beta2PodsMetricStatus:V2beta2PodsMetricStatus,V2beta2ResourceMetricSource:V2beta2ResourceMetricSource,V2beta2ResourceMetricStatus:V2beta2ResourceMetricStatus,VersionInfo:VersionInfo};class HttpBasicAuth{constructor(){this.username="";this.password=""}applyToRequest(e){e.auth={username:this.username,password:this.password}}}t.HttpBasicAuth=HttpBasicAuth;class ApiKeyAuth{constructor(e,t){this.location=e;this.paramName=t;this.apiKey=""}applyToRequest(e){if(this.location=="query"){e.qs[this.paramName]=this.apiKey}else if(this.location=="header"&&e&&e.headers){e.headers[this.paramName]=this.apiKey}}}t.ApiKeyAuth=ApiKeyAuth;class OAuth{constructor(){this.accessToken=""}applyToRequest(e){if(e&&e.headers){e.headers["Authorization"]="Bearer "+this.accessToken}}}t.OAuth=OAuth;class VoidAuth{constructor(){this.username="";this.password=""}applyToRequest(e){}}t.VoidAuth=VoidAuth;var u;(function(e){e[e["BearerToken"]=0]="BearerToken"})(u=t.AdmissionregistrationApiApiKeys||(t.AdmissionregistrationApiApiKeys={}));class AdmissionregistrationApi{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[u[e]].apiKey=t}getAPIGroup(e={}){const t=this.basePath+"/apis/admissionregistration.k8s.io/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIGroup");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.AdmissionregistrationApi=AdmissionregistrationApi;var l;(function(e){e[e["BearerToken"]=0]="BearerToken"})(l=t.AdmissionregistrationV1alpha1ApiApiKeys||(t.AdmissionregistrationV1alpha1ApiApiKeys={}));class AdmissionregistrationV1alpha1Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[l[e]].apiKey=t}createInitializerConfiguration(e,t,i,a,r={}){const s=this.basePath+"/apis/admissionregistration.k8s.io/v1alpha1/initializerconfigurations";let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter body was null or undefined when calling createInitializerConfiguration.")}if(t!==undefined){o["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(e,"V1alpha1InitializerConfiguration")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1InitializerConfiguration");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionInitializerConfiguration(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/admissionregistration.k8s.io/v1alpha1/initializerconfigurations";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"DELETE",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteInitializerConfiguration(e,t,i,a,r,s,o,u={}){const l=this.basePath+"/apis/admissionregistration.k8s.io/v1alpha1/initializerconfigurations/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let c={};let d=Object.assign({},this.defaultHeaders);let p={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteInitializerConfiguration.")}if(t!==undefined){c["pretty"]=ObjectSerializer.serialize(t,"string")}if(a!==undefined){c["dryRun"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){c["gracePeriodSeconds"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){c["orphanDependents"]=ObjectSerializer.serialize(s,"boolean")}if(o!==undefined){c["propagationPolicy"]=ObjectSerializer.serialize(o,"string")}Object.assign(d,u.headers);let f=false;let h={method:"DELETE",qs:c,headers:d,uri:l,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(h);this.authentications.default.applyToRequest(h);if(Object.keys(p).length){if(f){h.formData=p}else{h.form=p}}return new Promise((e,t)=>{n(h,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/apis/admissionregistration.k8s.io/v1alpha1/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listInitializerConfiguration(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/admissionregistration.k8s.io/v1alpha1/initializerconfigurations";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1InitializerConfigurationList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchInitializerConfiguration(e,t,i,a,r={}){const s=this.basePath+"/apis/admissionregistration.k8s.io/v1alpha1/initializerconfigurations/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchInitializerConfiguration.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling patchInitializerConfiguration.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"any")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1InitializerConfiguration");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readInitializerConfiguration(e,t,i,a,r={}){const s=this.basePath+"/apis/admissionregistration.k8s.io/v1alpha1/initializerconfigurations/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readInitializerConfiguration.")}if(t!==undefined){o["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){o["exact"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){o["export"]=ObjectSerializer.serialize(a,"boolean")}Object.assign(u,r.headers);let c=false;let d={method:"GET",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1InitializerConfiguration");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceInitializerConfiguration(e,t,i,a,r={}){const s=this.basePath+"/apis/admissionregistration.k8s.io/v1alpha1/initializerconfigurations/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceInitializerConfiguration.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replaceInitializerConfiguration.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1alpha1InitializerConfiguration")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1InitializerConfiguration");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.AdmissionregistrationV1alpha1Api=AdmissionregistrationV1alpha1Api;var c;(function(e){e[e["BearerToken"]=0]="BearerToken"})(c=t.AdmissionregistrationV1beta1ApiApiKeys||(t.AdmissionregistrationV1beta1ApiApiKeys={}));class AdmissionregistrationV1beta1Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[c[e]].apiKey=t}createMutatingWebhookConfiguration(e,t,i,a,r={}){const s=this.basePath+"/apis/admissionregistration.k8s.io/v1beta1/mutatingwebhookconfigurations";let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter body was null or undefined when calling createMutatingWebhookConfiguration.")}if(t!==undefined){o["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(e,"V1beta1MutatingWebhookConfiguration")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1MutatingWebhookConfiguration");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createValidatingWebhookConfiguration(e,t,i,a,r={}){const s=this.basePath+"/apis/admissionregistration.k8s.io/v1beta1/validatingwebhookconfigurations";let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter body was null or undefined when calling createValidatingWebhookConfiguration.")}if(t!==undefined){o["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(e,"V1beta1ValidatingWebhookConfiguration")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1ValidatingWebhookConfiguration");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionMutatingWebhookConfiguration(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/admissionregistration.k8s.io/v1beta1/mutatingwebhookconfigurations";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"DELETE",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionValidatingWebhookConfiguration(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/admissionregistration.k8s.io/v1beta1/validatingwebhookconfigurations";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"DELETE",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteMutatingWebhookConfiguration(e,t,i,a,r,s,o,u={}){const l=this.basePath+"/apis/admissionregistration.k8s.io/v1beta1/mutatingwebhookconfigurations/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let c={};let d=Object.assign({},this.defaultHeaders);let p={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteMutatingWebhookConfiguration.")}if(t!==undefined){c["pretty"]=ObjectSerializer.serialize(t,"string")}if(a!==undefined){c["dryRun"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){c["gracePeriodSeconds"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){c["orphanDependents"]=ObjectSerializer.serialize(s,"boolean")}if(o!==undefined){c["propagationPolicy"]=ObjectSerializer.serialize(o,"string")}Object.assign(d,u.headers);let f=false;let h={method:"DELETE",qs:c,headers:d,uri:l,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(h);this.authentications.default.applyToRequest(h);if(Object.keys(p).length){if(f){h.formData=p}else{h.form=p}}return new Promise((e,t)=>{n(h,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteValidatingWebhookConfiguration(e,t,i,a,r,s,o,u={}){const l=this.basePath+"/apis/admissionregistration.k8s.io/v1beta1/validatingwebhookconfigurations/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let c={};let d=Object.assign({},this.defaultHeaders);let p={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteValidatingWebhookConfiguration.")}if(t!==undefined){c["pretty"]=ObjectSerializer.serialize(t,"string")}if(a!==undefined){c["dryRun"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){c["gracePeriodSeconds"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){c["orphanDependents"]=ObjectSerializer.serialize(s,"boolean")}if(o!==undefined){c["propagationPolicy"]=ObjectSerializer.serialize(o,"string")}Object.assign(d,u.headers);let f=false;let h={method:"DELETE",qs:c,headers:d,uri:l,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(h);this.authentications.default.applyToRequest(h);if(Object.keys(p).length){if(f){h.formData=p}else{h.form=p}}return new Promise((e,t)=>{n(h,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/apis/admissionregistration.k8s.io/v1beta1/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listMutatingWebhookConfiguration(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/admissionregistration.k8s.io/v1beta1/mutatingwebhookconfigurations";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1MutatingWebhookConfigurationList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listValidatingWebhookConfiguration(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/admissionregistration.k8s.io/v1beta1/validatingwebhookconfigurations";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1ValidatingWebhookConfigurationList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchMutatingWebhookConfiguration(e,t,i,a,r={}){const s=this.basePath+"/apis/admissionregistration.k8s.io/v1beta1/mutatingwebhookconfigurations/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchMutatingWebhookConfiguration.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling patchMutatingWebhookConfiguration.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"any")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1MutatingWebhookConfiguration");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchValidatingWebhookConfiguration(e,t,i,a,r={}){const s=this.basePath+"/apis/admissionregistration.k8s.io/v1beta1/validatingwebhookconfigurations/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchValidatingWebhookConfiguration.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling patchValidatingWebhookConfiguration.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"any")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1ValidatingWebhookConfiguration");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readMutatingWebhookConfiguration(e,t,i,a,r={}){const s=this.basePath+"/apis/admissionregistration.k8s.io/v1beta1/mutatingwebhookconfigurations/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readMutatingWebhookConfiguration.")}if(t!==undefined){o["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){o["exact"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){o["export"]=ObjectSerializer.serialize(a,"boolean")}Object.assign(u,r.headers);let c=false;let d={method:"GET",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1MutatingWebhookConfiguration");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readValidatingWebhookConfiguration(e,t,i,a,r={}){const s=this.basePath+"/apis/admissionregistration.k8s.io/v1beta1/validatingwebhookconfigurations/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readValidatingWebhookConfiguration.")}if(t!==undefined){o["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){o["exact"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){o["export"]=ObjectSerializer.serialize(a,"boolean")}Object.assign(u,r.headers);let c=false;let d={method:"GET",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1ValidatingWebhookConfiguration");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceMutatingWebhookConfiguration(e,t,i,a,r={}){const s=this.basePath+"/apis/admissionregistration.k8s.io/v1beta1/mutatingwebhookconfigurations/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceMutatingWebhookConfiguration.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replaceMutatingWebhookConfiguration.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1beta1MutatingWebhookConfiguration")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1MutatingWebhookConfiguration");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceValidatingWebhookConfiguration(e,t,i,a,r={}){const s=this.basePath+"/apis/admissionregistration.k8s.io/v1beta1/validatingwebhookconfigurations/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceValidatingWebhookConfiguration.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replaceValidatingWebhookConfiguration.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1beta1ValidatingWebhookConfiguration")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1ValidatingWebhookConfiguration");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.AdmissionregistrationV1beta1Api=AdmissionregistrationV1beta1Api;var d;(function(e){e[e["BearerToken"]=0]="BearerToken"})(d=t.ApiextensionsApiApiKeys||(t.ApiextensionsApiApiKeys={}));class ApiextensionsApi{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[d[e]].apiKey=t}getAPIGroup(e={}){const t=this.basePath+"/apis/apiextensions.k8s.io/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIGroup");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.ApiextensionsApi=ApiextensionsApi;var p;(function(e){e[e["BearerToken"]=0]="BearerToken"})(p=t.ApiextensionsV1beta1ApiApiKeys||(t.ApiextensionsV1beta1ApiApiKeys={}));class ApiextensionsV1beta1Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[p[e]].apiKey=t}createCustomResourceDefinition(e,t,i,a,r={}){const s=this.basePath+"/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions";let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter body was null or undefined when calling createCustomResourceDefinition.")}if(t!==undefined){o["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(e,"V1beta1CustomResourceDefinition")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1CustomResourceDefinition");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionCustomResourceDefinition(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"DELETE",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCustomResourceDefinition(e,t,i,a,r,s,o,u={}){const l=this.basePath+"/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let c={};let d=Object.assign({},this.defaultHeaders);let p={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteCustomResourceDefinition.")}if(t!==undefined){c["pretty"]=ObjectSerializer.serialize(t,"string")}if(a!==undefined){c["dryRun"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){c["gracePeriodSeconds"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){c["orphanDependents"]=ObjectSerializer.serialize(s,"boolean")}if(o!==undefined){c["propagationPolicy"]=ObjectSerializer.serialize(o,"string")}Object.assign(d,u.headers);let f=false;let h={method:"DELETE",qs:c,headers:d,uri:l,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(h);this.authentications.default.applyToRequest(h);if(Object.keys(p).length){if(f){h.formData=p}else{h.form=p}}return new Promise((e,t)=>{n(h,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/apis/apiextensions.k8s.io/v1beta1/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listCustomResourceDefinition(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1CustomResourceDefinitionList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchCustomResourceDefinition(e,t,i,a,r={}){const s=this.basePath+"/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchCustomResourceDefinition.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling patchCustomResourceDefinition.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"any")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1CustomResourceDefinition");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchCustomResourceDefinitionStatus(e,t,i,a,r={}){const s=this.basePath+"/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchCustomResourceDefinitionStatus.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling patchCustomResourceDefinitionStatus.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"any")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1CustomResourceDefinition");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readCustomResourceDefinition(e,t,i,a,r={}){const s=this.basePath+"/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readCustomResourceDefinition.")}if(t!==undefined){o["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){o["exact"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){o["export"]=ObjectSerializer.serialize(a,"boolean")}Object.assign(u,r.headers);let c=false;let d={method:"GET",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1CustomResourceDefinition");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readCustomResourceDefinitionStatus(e,t,i={}){const a=this.basePath+"/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e)));let r={};let s=Object.assign({},this.defaultHeaders);let o={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readCustomResourceDefinitionStatus.")}if(t!==undefined){r["pretty"]=ObjectSerializer.serialize(t,"string")}Object.assign(s,i.headers);let u=false;let l={method:"GET",qs:r,headers:s,uri:a,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(l);this.authentications.default.applyToRequest(l);if(Object.keys(o).length){if(u){l.formData=o}else{l.form=o}}return new Promise((e,t)=>{n(l,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1CustomResourceDefinition");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceCustomResourceDefinition(e,t,i,a,r={}){const s=this.basePath+"/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceCustomResourceDefinition.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replaceCustomResourceDefinition.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1beta1CustomResourceDefinition")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1CustomResourceDefinition");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceCustomResourceDefinitionStatus(e,t,i,a,r={}){const s=this.basePath+"/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceCustomResourceDefinitionStatus.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replaceCustomResourceDefinitionStatus.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1beta1CustomResourceDefinition")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1CustomResourceDefinition");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.ApiextensionsV1beta1Api=ApiextensionsV1beta1Api;var f;(function(e){e[e["BearerToken"]=0]="BearerToken"})(f=t.ApiregistrationApiApiKeys||(t.ApiregistrationApiApiKeys={}));class ApiregistrationApi{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[f[e]].apiKey=t}getAPIGroup(e={}){const t=this.basePath+"/apis/apiregistration.k8s.io/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIGroup");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.ApiregistrationApi=ApiregistrationApi;var h;(function(e){e[e["BearerToken"]=0]="BearerToken"})(h=t.ApiregistrationV1ApiApiKeys||(t.ApiregistrationV1ApiApiKeys={}));class ApiregistrationV1Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[h[e]].apiKey=t}createAPIService(e,t,i,a,r={}){const s=this.basePath+"/apis/apiregistration.k8s.io/v1/apiservices";let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter body was null or undefined when calling createAPIService.")}if(t!==undefined){o["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(e,"V1APIService")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIService");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteAPIService(e,t,i,a,r,s,o,u={}){const l=this.basePath+"/apis/apiregistration.k8s.io/v1/apiservices/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let c={};let d=Object.assign({},this.defaultHeaders);let p={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteAPIService.")}if(t!==undefined){c["pretty"]=ObjectSerializer.serialize(t,"string")}if(a!==undefined){c["dryRun"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){c["gracePeriodSeconds"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){c["orphanDependents"]=ObjectSerializer.serialize(s,"boolean")}if(o!==undefined){c["propagationPolicy"]=ObjectSerializer.serialize(o,"string")}Object.assign(d,u.headers);let f=false;let h={method:"DELETE",qs:c,headers:d,uri:l,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(h);this.authentications.default.applyToRequest(h);if(Object.keys(p).length){if(f){h.formData=p}else{h.form=p}}return new Promise((e,t)=>{n(h,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionAPIService(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/apiregistration.k8s.io/v1/apiservices";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"DELETE",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/apis/apiregistration.k8s.io/v1/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listAPIService(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/apiregistration.k8s.io/v1/apiservices";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIServiceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchAPIService(e,t,i,a,r={}){const s=this.basePath+"/apis/apiregistration.k8s.io/v1/apiservices/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchAPIService.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling patchAPIService.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"any")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIService");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchAPIServiceStatus(e,t,i,a,r={}){const s=this.basePath+"/apis/apiregistration.k8s.io/v1/apiservices/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchAPIServiceStatus.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling patchAPIServiceStatus.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"any")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIService");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readAPIService(e,t,i,a,r={}){const s=this.basePath+"/apis/apiregistration.k8s.io/v1/apiservices/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readAPIService.")}if(t!==undefined){o["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){o["exact"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){o["export"]=ObjectSerializer.serialize(a,"boolean")}Object.assign(u,r.headers);let c=false;let d={method:"GET",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIService");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readAPIServiceStatus(e,t,i={}){const a=this.basePath+"/apis/apiregistration.k8s.io/v1/apiservices/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e)));let r={};let s=Object.assign({},this.defaultHeaders);let o={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readAPIServiceStatus.")}if(t!==undefined){r["pretty"]=ObjectSerializer.serialize(t,"string")}Object.assign(s,i.headers);let u=false;let l={method:"GET",qs:r,headers:s,uri:a,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(l);this.authentications.default.applyToRequest(l);if(Object.keys(o).length){if(u){l.formData=o}else{l.form=o}}return new Promise((e,t)=>{n(l,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIService");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceAPIService(e,t,i,a,r={}){const s=this.basePath+"/apis/apiregistration.k8s.io/v1/apiservices/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceAPIService.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replaceAPIService.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1APIService")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIService");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceAPIServiceStatus(e,t,i,a,r={}){const s=this.basePath+"/apis/apiregistration.k8s.io/v1/apiservices/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceAPIServiceStatus.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replaceAPIServiceStatus.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1APIService")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIService");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.ApiregistrationV1Api=ApiregistrationV1Api;var m;(function(e){e[e["BearerToken"]=0]="BearerToken"})(m=t.ApiregistrationV1beta1ApiApiKeys||(t.ApiregistrationV1beta1ApiApiKeys={}));class ApiregistrationV1beta1Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[m[e]].apiKey=t}createAPIService(e,t,i,a,r={}){const s=this.basePath+"/apis/apiregistration.k8s.io/v1beta1/apiservices";let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter body was null or undefined when calling createAPIService.")}if(t!==undefined){o["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(e,"V1beta1APIService")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1APIService");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteAPIService(e,t,i,a,r,s,o,u={}){const l=this.basePath+"/apis/apiregistration.k8s.io/v1beta1/apiservices/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let c={};let d=Object.assign({},this.defaultHeaders);let p={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteAPIService.")}if(t!==undefined){c["pretty"]=ObjectSerializer.serialize(t,"string")}if(a!==undefined){c["dryRun"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){c["gracePeriodSeconds"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){c["orphanDependents"]=ObjectSerializer.serialize(s,"boolean")}if(o!==undefined){c["propagationPolicy"]=ObjectSerializer.serialize(o,"string")}Object.assign(d,u.headers);let f=false;let h={method:"DELETE",qs:c,headers:d,uri:l,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(h);this.authentications.default.applyToRequest(h);if(Object.keys(p).length){if(f){h.formData=p}else{h.form=p}}return new Promise((e,t)=>{n(h,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionAPIService(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/apiregistration.k8s.io/v1beta1/apiservices";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"DELETE",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/apis/apiregistration.k8s.io/v1beta1/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listAPIService(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/apiregistration.k8s.io/v1beta1/apiservices";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1APIServiceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchAPIService(e,t,i,a,r={}){const s=this.basePath+"/apis/apiregistration.k8s.io/v1beta1/apiservices/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchAPIService.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling patchAPIService.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"any")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1APIService");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchAPIServiceStatus(e,t,i,a,r={}){const s=this.basePath+"/apis/apiregistration.k8s.io/v1beta1/apiservices/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchAPIServiceStatus.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling patchAPIServiceStatus.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"any")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1APIService");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readAPIService(e,t,i,a,r={}){const s=this.basePath+"/apis/apiregistration.k8s.io/v1beta1/apiservices/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readAPIService.")}if(t!==undefined){o["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){o["exact"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){o["export"]=ObjectSerializer.serialize(a,"boolean")}Object.assign(u,r.headers);let c=false;let d={method:"GET",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1APIService");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readAPIServiceStatus(e,t,i={}){const a=this.basePath+"/apis/apiregistration.k8s.io/v1beta1/apiservices/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e)));let r={};let s=Object.assign({},this.defaultHeaders);let o={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readAPIServiceStatus.")}if(t!==undefined){r["pretty"]=ObjectSerializer.serialize(t,"string")}Object.assign(s,i.headers);let u=false;let l={method:"GET",qs:r,headers:s,uri:a,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(l);this.authentications.default.applyToRequest(l);if(Object.keys(o).length){if(u){l.formData=o}else{l.form=o}}return new Promise((e,t)=>{n(l,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1APIService");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceAPIService(e,t,i,a,r={}){const s=this.basePath+"/apis/apiregistration.k8s.io/v1beta1/apiservices/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceAPIService.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replaceAPIService.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1beta1APIService")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1APIService");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceAPIServiceStatus(e,t,i,a,r={}){const s=this.basePath+"/apis/apiregistration.k8s.io/v1beta1/apiservices/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceAPIServiceStatus.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replaceAPIServiceStatus.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1beta1APIService")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1APIService");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.ApiregistrationV1beta1Api=ApiregistrationV1beta1Api;var b;(function(e){e[e["BearerToken"]=0]="BearerToken"})(b=t.ApisApiApiKeys||(t.ApisApiApiKeys={}));class ApisApi{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[b[e]].apiKey=t}getAPIVersions(e={}){const t=this.basePath+"/apis/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIGroupList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.ApisApi=ApisApi;var g;(function(e){e[e["BearerToken"]=0]="BearerToken"})(g=t.AppsApiApiKeys||(t.AppsApiApiKeys={}));class AppsApi{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[g[e]].apiKey=t}getAPIGroup(e={}){const t=this.basePath+"/apis/apps/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIGroup");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.AppsApi=AppsApi;var y;(function(e){e[e["BearerToken"]=0]="BearerToken"})(y=t.AppsV1ApiApiKeys||(t.AppsV1ApiApiKeys={}));class AppsV1Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[y[e]].apiKey=t}createNamespacedControllerRevision(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1/namespaces/{namespace}/controllerrevisions".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedControllerRevision.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedControllerRevision.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1ControllerRevision")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ControllerRevision");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedDaemonSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1/namespaces/{namespace}/daemonsets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedDaemonSet.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedDaemonSet.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1DaemonSet")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1DaemonSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedDeployment(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1/namespaces/{namespace}/deployments".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedDeployment.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedDeployment.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1Deployment")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Deployment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedReplicaSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1/namespaces/{namespace}/replicasets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedReplicaSet.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedReplicaSet.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1ReplicaSet")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ReplicaSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedStatefulSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1/namespaces/{namespace}/statefulsets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedStatefulSet.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedStatefulSet.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1StatefulSet")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1StatefulSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedControllerRevision(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/apps/v1/namespaces/{namespace}/controllerrevisions".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedControllerRevision.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedDaemonSet(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/apps/v1/namespaces/{namespace}/daemonsets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedDaemonSet.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedDeployment(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/apps/v1/namespaces/{namespace}/deployments".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedDeployment.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedReplicaSet(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/apps/v1/namespaces/{namespace}/replicasets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedReplicaSet.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedStatefulSet(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/apps/v1/namespaces/{namespace}/statefulsets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedStatefulSet.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedControllerRevision(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedControllerRevision.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedControllerRevision.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedDaemonSet(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedDaemonSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedDaemonSet.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedDeployment(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/apps/v1/namespaces/{namespace}/deployments/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedDeployment.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedDeployment.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedReplicaSet(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/apps/v1/namespaces/{namespace}/replicasets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedReplicaSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedReplicaSet.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedStatefulSet(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedStatefulSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedStatefulSet.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/apis/apps/v1/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listControllerRevisionForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/apps/v1/controllerrevisions";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ControllerRevisionList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listDaemonSetForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/apps/v1/daemonsets";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1DaemonSetList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listDeploymentForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/apps/v1/deployments";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1DeploymentList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedControllerRevision(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/apps/v1/namespaces/{namespace}/controllerrevisions".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedControllerRevision.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ControllerRevisionList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedDaemonSet(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/apps/v1/namespaces/{namespace}/daemonsets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedDaemonSet.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1DaemonSetList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedDeployment(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/apps/v1/namespaces/{namespace}/deployments".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedDeployment.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1DeploymentList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedReplicaSet(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/apps/v1/namespaces/{namespace}/replicasets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedReplicaSet.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ReplicaSetList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedStatefulSet(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/apps/v1/namespaces/{namespace}/statefulsets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedStatefulSet.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1StatefulSetList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listReplicaSetForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/apps/v1/replicasets";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ReplicaSetList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listStatefulSetForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/apps/v1/statefulsets";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1StatefulSetList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedControllerRevision(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedControllerRevision.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedControllerRevision.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedControllerRevision.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ControllerRevision");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedDaemonSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedDaemonSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedDaemonSet.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedDaemonSet.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1DaemonSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedDaemonSetStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedDaemonSetStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedDaemonSetStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedDaemonSetStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1DaemonSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedDeployment(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1/namespaces/{namespace}/deployments/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedDeployment.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedDeployment.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedDeployment.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Deployment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedDeploymentScale(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1/namespaces/{namespace}/deployments/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedDeploymentScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedDeploymentScale.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedDeploymentScale.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedDeploymentStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1/namespaces/{namespace}/deployments/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedDeploymentStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedDeploymentStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedDeploymentStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Deployment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedReplicaSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1/namespaces/{namespace}/replicasets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedReplicaSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedReplicaSet.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedReplicaSet.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ReplicaSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedReplicaSetScale(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1/namespaces/{namespace}/replicasets/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedReplicaSetScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedReplicaSetScale.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedReplicaSetScale.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedReplicaSetStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1/namespaces/{namespace}/replicasets/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedReplicaSetStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedReplicaSetStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedReplicaSetStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ReplicaSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedStatefulSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedStatefulSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedStatefulSet.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedStatefulSet.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1StatefulSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedStatefulSetScale(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedStatefulSetScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedStatefulSetScale.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedStatefulSetScale.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedStatefulSetStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedStatefulSetStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedStatefulSetStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedStatefulSetStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1StatefulSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedControllerRevision(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedControllerRevision.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedControllerRevision.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ControllerRevision");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedDaemonSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedDaemonSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedDaemonSet.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1DaemonSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedDaemonSetStatus(e,t,i,a={}){const r=this.basePath+"/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedDaemonSetStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedDaemonSetStatus.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1DaemonSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedDeployment(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1/namespaces/{namespace}/deployments/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedDeployment.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedDeployment.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Deployment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedDeploymentScale(e,t,i,a={}){const r=this.basePath+"/apis/apps/v1/namespaces/{namespace}/deployments/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedDeploymentScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedDeploymentScale.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedDeploymentStatus(e,t,i,a={}){const r=this.basePath+"/apis/apps/v1/namespaces/{namespace}/deployments/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedDeploymentStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedDeploymentStatus.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Deployment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedReplicaSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1/namespaces/{namespace}/replicasets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedReplicaSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedReplicaSet.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ReplicaSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedReplicaSetScale(e,t,i,a={}){const r=this.basePath+"/apis/apps/v1/namespaces/{namespace}/replicasets/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedReplicaSetScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedReplicaSetScale.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedReplicaSetStatus(e,t,i,a={}){const r=this.basePath+"/apis/apps/v1/namespaces/{namespace}/replicasets/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedReplicaSetStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedReplicaSetStatus.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ReplicaSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedStatefulSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedStatefulSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedStatefulSet.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1StatefulSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedStatefulSetScale(e,t,i,a={}){const r=this.basePath+"/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedStatefulSetScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedStatefulSetScale.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedStatefulSetStatus(e,t,i,a={}){const r=this.basePath+"/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedStatefulSetStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedStatefulSetStatus.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1StatefulSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedControllerRevision(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedControllerRevision.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedControllerRevision.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedControllerRevision.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1ControllerRevision")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ControllerRevision");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedDaemonSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedDaemonSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedDaemonSet.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedDaemonSet.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1DaemonSet")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1DaemonSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedDaemonSetStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedDaemonSetStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedDaemonSetStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedDaemonSetStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1DaemonSet")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1DaemonSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedDeployment(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1/namespaces/{namespace}/deployments/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedDeployment.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedDeployment.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedDeployment.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1Deployment")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Deployment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedDeploymentScale(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1/namespaces/{namespace}/deployments/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedDeploymentScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedDeploymentScale.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedDeploymentScale.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1Scale")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedDeploymentStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1/namespaces/{namespace}/deployments/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedDeploymentStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedDeploymentStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedDeploymentStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1Deployment")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Deployment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedReplicaSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1/namespaces/{namespace}/replicasets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedReplicaSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedReplicaSet.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedReplicaSet.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1ReplicaSet")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ReplicaSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedReplicaSetScale(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1/namespaces/{namespace}/replicasets/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedReplicaSetScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedReplicaSetScale.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedReplicaSetScale.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1Scale")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedReplicaSetStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1/namespaces/{namespace}/replicasets/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedReplicaSetStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedReplicaSetStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedReplicaSetStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1ReplicaSet")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ReplicaSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedStatefulSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedStatefulSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedStatefulSet.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedStatefulSet.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1StatefulSet")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1StatefulSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedStatefulSetScale(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedStatefulSetScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedStatefulSetScale.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedStatefulSetScale.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1Scale")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedStatefulSetStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedStatefulSetStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedStatefulSetStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedStatefulSetStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1StatefulSet")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1StatefulSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.AppsV1Api=AppsV1Api;var S;(function(e){e[e["BearerToken"]=0]="BearerToken"})(S=t.AppsV1beta1ApiApiKeys||(t.AppsV1beta1ApiApiKeys={}));class AppsV1beta1Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[S[e]].apiKey=t}createNamespacedControllerRevision(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta1/namespaces/{namespace}/controllerrevisions".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedControllerRevision.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedControllerRevision.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1beta1ControllerRevision")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1ControllerRevision");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedDeployment(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta1/namespaces/{namespace}/deployments".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedDeployment.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedDeployment.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"AppsV1beta1Deployment")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"AppsV1beta1Deployment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedDeploymentRollback(e,t,i,a,r,s,o={}){const u=this.basePath+"/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/rollback".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let l={};let c=Object.assign({},this.defaultHeaders);let d={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling createNamespacedDeploymentRollback.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedDeploymentRollback.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedDeploymentRollback.")}if(a!==undefined){l["dryRun"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){l["includeUninitialized"]=ObjectSerializer.serialize(r,"boolean")}if(s!==undefined){l["pretty"]=ObjectSerializer.serialize(s,"string")}Object.assign(c,o.headers);let p=false;let f={method:"POST",qs:l,headers:c,uri:u,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"AppsV1beta1DeploymentRollback")};this.authentications.BearerToken.applyToRequest(f);this.authentications.default.applyToRequest(f);if(Object.keys(d).length){if(p){f.formData=d}else{f.form=d}}return new Promise((e,t)=>{n(f,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedStatefulSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta1/namespaces/{namespace}/statefulsets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedStatefulSet.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedStatefulSet.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1beta1StatefulSet")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1StatefulSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedControllerRevision(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/apps/v1beta1/namespaces/{namespace}/controllerrevisions".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedControllerRevision.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedDeployment(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/apps/v1beta1/namespaces/{namespace}/deployments".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedDeployment.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedStatefulSet(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/apps/v1beta1/namespaces/{namespace}/statefulsets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedStatefulSet.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedControllerRevision(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/apps/v1beta1/namespaces/{namespace}/controllerrevisions/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedControllerRevision.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedControllerRevision.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedDeployment(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedDeployment.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedDeployment.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedStatefulSet(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedStatefulSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedStatefulSet.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/apis/apps/v1beta1/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listControllerRevisionForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/apps/v1beta1/controllerrevisions";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1ControllerRevisionList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listDeploymentForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/apps/v1beta1/deployments";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"AppsV1beta1DeploymentList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedControllerRevision(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/apps/v1beta1/namespaces/{namespace}/controllerrevisions".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedControllerRevision.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1ControllerRevisionList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedDeployment(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/apps/v1beta1/namespaces/{namespace}/deployments".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedDeployment.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"AppsV1beta1DeploymentList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedStatefulSet(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/apps/v1beta1/namespaces/{namespace}/statefulsets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedStatefulSet.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1StatefulSetList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listStatefulSetForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/apps/v1beta1/statefulsets";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1StatefulSetList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedControllerRevision(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta1/namespaces/{namespace}/controllerrevisions/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedControllerRevision.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedControllerRevision.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedControllerRevision.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1ControllerRevision");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedDeployment(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedDeployment.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedDeployment.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedDeployment.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"AppsV1beta1Deployment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedDeploymentScale(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedDeploymentScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedDeploymentScale.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedDeploymentScale.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"AppsV1beta1Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedDeploymentStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedDeploymentStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedDeploymentStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedDeploymentStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"AppsV1beta1Deployment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedStatefulSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedStatefulSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedStatefulSet.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedStatefulSet.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1StatefulSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedStatefulSetScale(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedStatefulSetScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedStatefulSetScale.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedStatefulSetScale.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"AppsV1beta1Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedStatefulSetStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedStatefulSetStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedStatefulSetStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedStatefulSetStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1StatefulSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedControllerRevision(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta1/namespaces/{namespace}/controllerrevisions/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedControllerRevision.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedControllerRevision.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1ControllerRevision");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedDeployment(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedDeployment.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedDeployment.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"AppsV1beta1Deployment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedDeploymentScale(e,t,i,a={}){const r=this.basePath+"/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedDeploymentScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedDeploymentScale.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"AppsV1beta1Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedDeploymentStatus(e,t,i,a={}){const r=this.basePath+"/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedDeploymentStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedDeploymentStatus.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"AppsV1beta1Deployment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedStatefulSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedStatefulSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedStatefulSet.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1StatefulSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedStatefulSetScale(e,t,i,a={}){const r=this.basePath+"/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedStatefulSetScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedStatefulSetScale.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"AppsV1beta1Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedStatefulSetStatus(e,t,i,a={}){const r=this.basePath+"/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedStatefulSetStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedStatefulSetStatus.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1StatefulSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedControllerRevision(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta1/namespaces/{namespace}/controllerrevisions/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedControllerRevision.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedControllerRevision.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedControllerRevision.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1beta1ControllerRevision")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1ControllerRevision");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedDeployment(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedDeployment.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedDeployment.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedDeployment.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"AppsV1beta1Deployment")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"AppsV1beta1Deployment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedDeploymentScale(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedDeploymentScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedDeploymentScale.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedDeploymentScale.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"AppsV1beta1Scale")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"AppsV1beta1Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedDeploymentStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedDeploymentStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedDeploymentStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedDeploymentStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"AppsV1beta1Deployment")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"AppsV1beta1Deployment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedStatefulSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedStatefulSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedStatefulSet.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedStatefulSet.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1beta1StatefulSet")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1StatefulSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedStatefulSetScale(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedStatefulSetScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedStatefulSetScale.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedStatefulSetScale.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"AppsV1beta1Scale")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"AppsV1beta1Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedStatefulSetStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedStatefulSetStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedStatefulSetStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedStatefulSetStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1beta1StatefulSet")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1StatefulSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.AppsV1beta1Api=AppsV1beta1Api;var w;(function(e){e[e["BearerToken"]=0]="BearerToken"})(w=t.AppsV1beta2ApiApiKeys||(t.AppsV1beta2ApiApiKeys={}));class AppsV1beta2Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[w[e]].apiKey=t}createNamespacedControllerRevision(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/controllerrevisions".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedControllerRevision.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedControllerRevision.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1beta2ControllerRevision")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2ControllerRevision");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedDaemonSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/daemonsets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedDaemonSet.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedDaemonSet.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1beta2DaemonSet")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2DaemonSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedDeployment(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/deployments".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedDeployment.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedDeployment.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1beta2Deployment")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2Deployment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedReplicaSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/replicasets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedReplicaSet.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedReplicaSet.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1beta2ReplicaSet")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2ReplicaSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedStatefulSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/statefulsets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedStatefulSet.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedStatefulSet.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1beta2StatefulSet")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2StatefulSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedControllerRevision(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/controllerrevisions".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedControllerRevision.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedDaemonSet(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/daemonsets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedDaemonSet.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedDeployment(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/deployments".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedDeployment.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedReplicaSet(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/replicasets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedReplicaSet.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedStatefulSet(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/statefulsets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedStatefulSet.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedControllerRevision(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/controllerrevisions/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedControllerRevision.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedControllerRevision.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedDaemonSet(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/daemonsets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedDaemonSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedDaemonSet.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedDeployment(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedDeployment.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedDeployment.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedReplicaSet(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/replicasets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedReplicaSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedReplicaSet.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedStatefulSet(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedStatefulSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedStatefulSet.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/apis/apps/v1beta2/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listControllerRevisionForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/apps/v1beta2/controllerrevisions";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2ControllerRevisionList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listDaemonSetForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/apps/v1beta2/daemonsets";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2DaemonSetList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listDeploymentForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/apps/v1beta2/deployments";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2DeploymentList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedControllerRevision(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/controllerrevisions".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedControllerRevision.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2ControllerRevisionList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedDaemonSet(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/daemonsets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedDaemonSet.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2DaemonSetList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedDeployment(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/deployments".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedDeployment.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2DeploymentList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedReplicaSet(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/replicasets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedReplicaSet.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2ReplicaSetList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedStatefulSet(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/statefulsets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedStatefulSet.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2StatefulSetList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listReplicaSetForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/apps/v1beta2/replicasets";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2ReplicaSetList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listStatefulSetForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/apps/v1beta2/statefulsets";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2StatefulSetList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedControllerRevision(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/controllerrevisions/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedControllerRevision.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedControllerRevision.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedControllerRevision.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2ControllerRevision");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedDaemonSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/daemonsets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedDaemonSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedDaemonSet.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedDaemonSet.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2DaemonSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedDaemonSetStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/daemonsets/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedDaemonSetStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedDaemonSetStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedDaemonSetStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2DaemonSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedDeployment(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedDeployment.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedDeployment.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedDeployment.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2Deployment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedDeploymentScale(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedDeploymentScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedDeploymentScale.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedDeploymentScale.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedDeploymentStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedDeploymentStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedDeploymentStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedDeploymentStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2Deployment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedReplicaSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/replicasets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedReplicaSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedReplicaSet.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedReplicaSet.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2ReplicaSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedReplicaSetScale(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/replicasets/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedReplicaSetScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedReplicaSetScale.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedReplicaSetScale.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedReplicaSetStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/replicasets/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedReplicaSetStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedReplicaSetStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedReplicaSetStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2ReplicaSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedStatefulSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedStatefulSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedStatefulSet.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedStatefulSet.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2StatefulSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedStatefulSetScale(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedStatefulSetScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedStatefulSetScale.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedStatefulSetScale.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedStatefulSetStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedStatefulSetStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedStatefulSetStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedStatefulSetStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2StatefulSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedControllerRevision(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/controllerrevisions/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedControllerRevision.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedControllerRevision.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2ControllerRevision");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedDaemonSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/daemonsets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedDaemonSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedDaemonSet.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2DaemonSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedDaemonSetStatus(e,t,i,a={}){const r=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/daemonsets/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedDaemonSetStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedDaemonSetStatus.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2DaemonSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedDeployment(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedDeployment.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedDeployment.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2Deployment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedDeploymentScale(e,t,i,a={}){const r=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedDeploymentScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedDeploymentScale.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedDeploymentStatus(e,t,i,a={}){const r=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedDeploymentStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedDeploymentStatus.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2Deployment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedReplicaSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/replicasets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedReplicaSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedReplicaSet.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2ReplicaSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedReplicaSetScale(e,t,i,a={}){const r=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/replicasets/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedReplicaSetScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedReplicaSetScale.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedReplicaSetStatus(e,t,i,a={}){const r=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/replicasets/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedReplicaSetStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedReplicaSetStatus.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2ReplicaSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedStatefulSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedStatefulSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedStatefulSet.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2StatefulSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedStatefulSetScale(e,t,i,a={}){const r=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedStatefulSetScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedStatefulSetScale.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedStatefulSetStatus(e,t,i,a={}){const r=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedStatefulSetStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedStatefulSetStatus.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2StatefulSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedControllerRevision(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/controllerrevisions/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedControllerRevision.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedControllerRevision.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedControllerRevision.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1beta2ControllerRevision")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2ControllerRevision");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedDaemonSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/daemonsets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedDaemonSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedDaemonSet.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedDaemonSet.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1beta2DaemonSet")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2DaemonSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedDaemonSetStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/daemonsets/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedDaemonSetStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedDaemonSetStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedDaemonSetStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1beta2DaemonSet")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2DaemonSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedDeployment(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedDeployment.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedDeployment.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedDeployment.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1beta2Deployment")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2Deployment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedDeploymentScale(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedDeploymentScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedDeploymentScale.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedDeploymentScale.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1beta2Scale")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedDeploymentStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedDeploymentStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedDeploymentStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedDeploymentStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1beta2Deployment")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2Deployment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedReplicaSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/replicasets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedReplicaSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedReplicaSet.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedReplicaSet.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1beta2ReplicaSet")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2ReplicaSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedReplicaSetScale(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/replicasets/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedReplicaSetScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedReplicaSetScale.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedReplicaSetScale.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1beta2Scale")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedReplicaSetStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/replicasets/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedReplicaSetStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedReplicaSetStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedReplicaSetStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1beta2ReplicaSet")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2ReplicaSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedStatefulSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedStatefulSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedStatefulSet.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedStatefulSet.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1beta2StatefulSet")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2StatefulSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedStatefulSetScale(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedStatefulSetScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedStatefulSetScale.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedStatefulSetScale.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1beta2Scale")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedStatefulSetStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedStatefulSetStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedStatefulSetStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedStatefulSetStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1beta2StatefulSet")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2StatefulSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.AppsV1beta2Api=AppsV1beta2Api;var v;(function(e){e[e["BearerToken"]=0]="BearerToken"})(v=t.AuditregistrationApiApiKeys||(t.AuditregistrationApiApiKeys={}));class AuditregistrationApi{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[v[e]].apiKey=t}getAPIGroup(e={}){const t=this.basePath+"/apis/auditregistration.k8s.io/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIGroup");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.AuditregistrationApi=AuditregistrationApi;var z;(function(e){e[e["BearerToken"]=0]="BearerToken"})(z=t.AuditregistrationV1alpha1ApiApiKeys||(t.AuditregistrationV1alpha1ApiApiKeys={}));class AuditregistrationV1alpha1Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[z[e]].apiKey=t}createAuditSink(e,t,i,a,r={}){const s=this.basePath+"/apis/auditregistration.k8s.io/v1alpha1/auditsinks";let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter body was null or undefined when calling createAuditSink.")}if(t!==undefined){o["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(e,"V1alpha1AuditSink")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1AuditSink");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteAuditSink(e,t,i,a,r,s,o,u={}){const l=this.basePath+"/apis/auditregistration.k8s.io/v1alpha1/auditsinks/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let c={};let d=Object.assign({},this.defaultHeaders);let p={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteAuditSink.")}if(t!==undefined){c["pretty"]=ObjectSerializer.serialize(t,"string")}if(a!==undefined){c["dryRun"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){c["gracePeriodSeconds"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){c["orphanDependents"]=ObjectSerializer.serialize(s,"boolean")}if(o!==undefined){c["propagationPolicy"]=ObjectSerializer.serialize(o,"string")}Object.assign(d,u.headers);let f=false;let h={method:"DELETE",qs:c,headers:d,uri:l,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(h);this.authentications.default.applyToRequest(h);if(Object.keys(p).length){if(f){h.formData=p}else{h.form=p}}return new Promise((e,t)=>{n(h,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionAuditSink(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/auditregistration.k8s.io/v1alpha1/auditsinks";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"DELETE",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/apis/auditregistration.k8s.io/v1alpha1/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listAuditSink(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/auditregistration.k8s.io/v1alpha1/auditsinks";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1AuditSinkList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchAuditSink(e,t,i,a,r={}){const s=this.basePath+"/apis/auditregistration.k8s.io/v1alpha1/auditsinks/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchAuditSink.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling patchAuditSink.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"any")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1AuditSink");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readAuditSink(e,t,i,a,r={}){const s=this.basePath+"/apis/auditregistration.k8s.io/v1alpha1/auditsinks/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readAuditSink.")}if(t!==undefined){o["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){o["exact"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){o["export"]=ObjectSerializer.serialize(a,"boolean")}Object.assign(u,r.headers);let c=false;let d={method:"GET",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1AuditSink");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceAuditSink(e,t,i,a,r={}){const s=this.basePath+"/apis/auditregistration.k8s.io/v1alpha1/auditsinks/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceAuditSink.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replaceAuditSink.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1alpha1AuditSink")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1AuditSink");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.AuditregistrationV1alpha1Api=AuditregistrationV1alpha1Api;var j;(function(e){e[e["BearerToken"]=0]="BearerToken"})(j=t.AuthenticationApiApiKeys||(t.AuthenticationApiApiKeys={}));class AuthenticationApi{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[j[e]].apiKey=t}getAPIGroup(e={}){const t=this.basePath+"/apis/authentication.k8s.io/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIGroup");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.AuthenticationApi=AuthenticationApi;var O;(function(e){e[e["BearerToken"]=0]="BearerToken"})(O=t.AuthenticationV1ApiApiKeys||(t.AuthenticationV1ApiApiKeys={}));class AuthenticationV1Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[O[e]].apiKey=t}createTokenReview(e,t,i,a,r={}){const s=this.basePath+"/apis/authentication.k8s.io/v1/tokenreviews";let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter body was null or undefined when calling createTokenReview.")}if(t!==undefined){o["dryRun"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){o["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){o["pretty"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(e,"V1TokenReview")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1TokenReview");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/apis/authentication.k8s.io/v1/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.AuthenticationV1Api=AuthenticationV1Api;var k;(function(e){e[e["BearerToken"]=0]="BearerToken"})(k=t.AuthenticationV1beta1ApiApiKeys||(t.AuthenticationV1beta1ApiApiKeys={}));class AuthenticationV1beta1Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[k[e]].apiKey=t}createTokenReview(e,t,i,a,r={}){const s=this.basePath+"/apis/authentication.k8s.io/v1beta1/tokenreviews";let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter body was null or undefined when calling createTokenReview.")}if(t!==undefined){o["dryRun"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){o["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){o["pretty"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(e,"V1beta1TokenReview")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1TokenReview");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/apis/authentication.k8s.io/v1beta1/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.AuthenticationV1beta1Api=AuthenticationV1beta1Api;var C;(function(e){e[e["BearerToken"]=0]="BearerToken"})(C=t.AuthorizationApiApiKeys||(t.AuthorizationApiApiKeys={}));class AuthorizationApi{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[C[e]].apiKey=t}getAPIGroup(e={}){const t=this.basePath+"/apis/authorization.k8s.io/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIGroup");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.AuthorizationApi=AuthorizationApi;var T;(function(e){e[e["BearerToken"]=0]="BearerToken"})(T=t.AuthorizationV1ApiApiKeys||(t.AuthorizationV1ApiApiKeys={}));class AuthorizationV1Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[T[e]].apiKey=t}createNamespacedLocalSubjectAccessReview(e,t,i,a,r,s={}){const o=this.basePath+"/apis/authorization.k8s.io/v1/namespaces/{namespace}/localsubjectaccessreviews".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedLocalSubjectAccessReview.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedLocalSubjectAccessReview.")}if(i!==undefined){u["dryRun"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["pretty"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1LocalSubjectAccessReview")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1LocalSubjectAccessReview");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createSelfSubjectAccessReview(e,t,i,a,r={}){const s=this.basePath+"/apis/authorization.k8s.io/v1/selfsubjectaccessreviews";let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter body was null or undefined when calling createSelfSubjectAccessReview.")}if(t!==undefined){o["dryRun"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){o["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){o["pretty"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(e,"V1SelfSubjectAccessReview")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1SelfSubjectAccessReview");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createSelfSubjectRulesReview(e,t,i,a,r={}){const s=this.basePath+"/apis/authorization.k8s.io/v1/selfsubjectrulesreviews";let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter body was null or undefined when calling createSelfSubjectRulesReview.")}if(t!==undefined){o["dryRun"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){o["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){o["pretty"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(e,"V1SelfSubjectRulesReview")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1SelfSubjectRulesReview");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createSubjectAccessReview(e,t,i,a,r={}){const s=this.basePath+"/apis/authorization.k8s.io/v1/subjectaccessreviews";let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter body was null or undefined when calling createSubjectAccessReview.")}if(t!==undefined){o["dryRun"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){o["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){o["pretty"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(e,"V1SubjectAccessReview")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1SubjectAccessReview");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/apis/authorization.k8s.io/v1/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.AuthorizationV1Api=AuthorizationV1Api;var R;(function(e){e[e["BearerToken"]=0]="BearerToken"})(R=t.AuthorizationV1beta1ApiApiKeys||(t.AuthorizationV1beta1ApiApiKeys={}));class AuthorizationV1beta1Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[R[e]].apiKey=t}createNamespacedLocalSubjectAccessReview(e,t,i,a,r,s={}){const o=this.basePath+"/apis/authorization.k8s.io/v1beta1/namespaces/{namespace}/localsubjectaccessreviews".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedLocalSubjectAccessReview.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedLocalSubjectAccessReview.")}if(i!==undefined){u["dryRun"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["pretty"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1beta1LocalSubjectAccessReview")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1LocalSubjectAccessReview");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createSelfSubjectAccessReview(e,t,i,a,r={}){const s=this.basePath+"/apis/authorization.k8s.io/v1beta1/selfsubjectaccessreviews";let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter body was null or undefined when calling createSelfSubjectAccessReview.")}if(t!==undefined){o["dryRun"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){o["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){o["pretty"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(e,"V1beta1SelfSubjectAccessReview")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1SelfSubjectAccessReview");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createSelfSubjectRulesReview(e,t,i,a,r={}){const s=this.basePath+"/apis/authorization.k8s.io/v1beta1/selfsubjectrulesreviews";let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter body was null or undefined when calling createSelfSubjectRulesReview.")}if(t!==undefined){o["dryRun"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){o["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){o["pretty"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(e,"V1beta1SelfSubjectRulesReview")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1SelfSubjectRulesReview");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createSubjectAccessReview(e,t,i,a,r={}){const s=this.basePath+"/apis/authorization.k8s.io/v1beta1/subjectaccessreviews";let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter body was null or undefined when calling createSubjectAccessReview.")}if(t!==undefined){o["dryRun"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){o["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){o["pretty"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(e,"V1beta1SubjectAccessReview")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1SubjectAccessReview");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/apis/authorization.k8s.io/v1beta1/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.AuthorizationV1beta1Api=AuthorizationV1beta1Api;var E;(function(e){e[e["BearerToken"]=0]="BearerToken"})(E=t.AutoscalingApiApiKeys||(t.AutoscalingApiApiKeys={}));class AutoscalingApi{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[E[e]].apiKey=t}getAPIGroup(e={}){const t=this.basePath+"/apis/autoscaling/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIGroup");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.AutoscalingApi=AutoscalingApi;var A;(function(e){e[e["BearerToken"]=0]="BearerToken"})(A=t.AutoscalingV1ApiApiKeys||(t.AutoscalingV1ApiApiKeys={}));class AutoscalingV1Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[A[e]].apiKey=t}createNamespacedHorizontalPodAutoscaler(e,t,i,a,r,s={}){const o=this.basePath+"/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedHorizontalPodAutoscaler.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedHorizontalPodAutoscaler.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1HorizontalPodAutoscaler")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1HorizontalPodAutoscaler");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedHorizontalPodAutoscaler(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedHorizontalPodAutoscaler.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedHorizontalPodAutoscaler(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedHorizontalPodAutoscaler.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedHorizontalPodAutoscaler.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/apis/autoscaling/v1/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listHorizontalPodAutoscalerForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/autoscaling/v1/horizontalpodautoscalers";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1HorizontalPodAutoscalerList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedHorizontalPodAutoscaler(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedHorizontalPodAutoscaler.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1HorizontalPodAutoscalerList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedHorizontalPodAutoscaler(e,t,i,a,r,s={}){const o=this.basePath+"/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedHorizontalPodAutoscaler.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedHorizontalPodAutoscaler.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedHorizontalPodAutoscaler.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1HorizontalPodAutoscaler");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedHorizontalPodAutoscalerStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedHorizontalPodAutoscalerStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedHorizontalPodAutoscalerStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedHorizontalPodAutoscalerStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1HorizontalPodAutoscaler");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedHorizontalPodAutoscaler(e,t,i,a,r,s={}){const o=this.basePath+"/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedHorizontalPodAutoscaler.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedHorizontalPodAutoscaler.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1HorizontalPodAutoscaler");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedHorizontalPodAutoscalerStatus(e,t,i,a={}){const r=this.basePath+"/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedHorizontalPodAutoscalerStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedHorizontalPodAutoscalerStatus.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1HorizontalPodAutoscaler");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedHorizontalPodAutoscaler(e,t,i,a,r,s={}){const o=this.basePath+"/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedHorizontalPodAutoscaler.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedHorizontalPodAutoscaler.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedHorizontalPodAutoscaler.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1HorizontalPodAutoscaler")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1HorizontalPodAutoscaler");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedHorizontalPodAutoscalerStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedHorizontalPodAutoscalerStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedHorizontalPodAutoscalerStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedHorizontalPodAutoscalerStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1HorizontalPodAutoscaler")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1HorizontalPodAutoscaler");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.AutoscalingV1Api=AutoscalingV1Api;var x;(function(e){e[e["BearerToken"]=0]="BearerToken"})(x=t.AutoscalingV2beta1ApiApiKeys||(t.AutoscalingV2beta1ApiApiKeys={}));class AutoscalingV2beta1Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[x[e]].apiKey=t}createNamespacedHorizontalPodAutoscaler(e,t,i,a,r,s={}){const o=this.basePath+"/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedHorizontalPodAutoscaler.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedHorizontalPodAutoscaler.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V2beta1HorizontalPodAutoscaler")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V2beta1HorizontalPodAutoscaler");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedHorizontalPodAutoscaler(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedHorizontalPodAutoscaler.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedHorizontalPodAutoscaler(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedHorizontalPodAutoscaler.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedHorizontalPodAutoscaler.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/apis/autoscaling/v2beta1/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listHorizontalPodAutoscalerForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/autoscaling/v2beta1/horizontalpodautoscalers";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V2beta1HorizontalPodAutoscalerList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedHorizontalPodAutoscaler(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedHorizontalPodAutoscaler.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V2beta1HorizontalPodAutoscalerList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedHorizontalPodAutoscaler(e,t,i,a,r,s={}){const o=this.basePath+"/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedHorizontalPodAutoscaler.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedHorizontalPodAutoscaler.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedHorizontalPodAutoscaler.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V2beta1HorizontalPodAutoscaler");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedHorizontalPodAutoscalerStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedHorizontalPodAutoscalerStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedHorizontalPodAutoscalerStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedHorizontalPodAutoscalerStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V2beta1HorizontalPodAutoscaler");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedHorizontalPodAutoscaler(e,t,i,a,r,s={}){const o=this.basePath+"/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedHorizontalPodAutoscaler.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedHorizontalPodAutoscaler.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V2beta1HorizontalPodAutoscaler");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedHorizontalPodAutoscalerStatus(e,t,i,a={}){const r=this.basePath+"/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedHorizontalPodAutoscalerStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedHorizontalPodAutoscalerStatus.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V2beta1HorizontalPodAutoscaler");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedHorizontalPodAutoscaler(e,t,i,a,r,s={}){const o=this.basePath+"/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedHorizontalPodAutoscaler.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedHorizontalPodAutoscaler.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedHorizontalPodAutoscaler.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V2beta1HorizontalPodAutoscaler")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V2beta1HorizontalPodAutoscaler");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedHorizontalPodAutoscalerStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedHorizontalPodAutoscalerStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedHorizontalPodAutoscalerStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedHorizontalPodAutoscalerStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V2beta1HorizontalPodAutoscaler")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V2beta1HorizontalPodAutoscaler");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.AutoscalingV2beta1Api=AutoscalingV2beta1Api;var N;(function(e){e[e["BearerToken"]=0]="BearerToken"})(N=t.AutoscalingV2beta2ApiApiKeys||(t.AutoscalingV2beta2ApiApiKeys={}));class AutoscalingV2beta2Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[N[e]].apiKey=t}createNamespacedHorizontalPodAutoscaler(e,t,i,a,r,s={}){const o=this.basePath+"/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedHorizontalPodAutoscaler.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedHorizontalPodAutoscaler.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V2beta2HorizontalPodAutoscaler")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V2beta2HorizontalPodAutoscaler");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedHorizontalPodAutoscaler(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedHorizontalPodAutoscaler.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedHorizontalPodAutoscaler(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedHorizontalPodAutoscaler.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedHorizontalPodAutoscaler.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/apis/autoscaling/v2beta2/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listHorizontalPodAutoscalerForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/autoscaling/v2beta2/horizontalpodautoscalers";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V2beta2HorizontalPodAutoscalerList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedHorizontalPodAutoscaler(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedHorizontalPodAutoscaler.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V2beta2HorizontalPodAutoscalerList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedHorizontalPodAutoscaler(e,t,i,a,r,s={}){const o=this.basePath+"/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedHorizontalPodAutoscaler.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedHorizontalPodAutoscaler.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedHorizontalPodAutoscaler.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V2beta2HorizontalPodAutoscaler");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedHorizontalPodAutoscalerStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedHorizontalPodAutoscalerStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedHorizontalPodAutoscalerStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedHorizontalPodAutoscalerStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V2beta2HorizontalPodAutoscaler");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedHorizontalPodAutoscaler(e,t,i,a,r,s={}){const o=this.basePath+"/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedHorizontalPodAutoscaler.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedHorizontalPodAutoscaler.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V2beta2HorizontalPodAutoscaler");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedHorizontalPodAutoscalerStatus(e,t,i,a={}){const r=this.basePath+"/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedHorizontalPodAutoscalerStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedHorizontalPodAutoscalerStatus.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V2beta2HorizontalPodAutoscaler");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedHorizontalPodAutoscaler(e,t,i,a,r,s={}){const o=this.basePath+"/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedHorizontalPodAutoscaler.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedHorizontalPodAutoscaler.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedHorizontalPodAutoscaler.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V2beta2HorizontalPodAutoscaler")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V2beta2HorizontalPodAutoscaler");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedHorizontalPodAutoscalerStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedHorizontalPodAutoscalerStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedHorizontalPodAutoscalerStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedHorizontalPodAutoscalerStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V2beta2HorizontalPodAutoscaler")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V2beta2HorizontalPodAutoscaler");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.AutoscalingV2beta2Api=AutoscalingV2beta2Api;var V;(function(e){e[e["BearerToken"]=0]="BearerToken"})(V=t.BatchApiApiKeys||(t.BatchApiApiKeys={}));class BatchApi{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[V[e]].apiKey=t}getAPIGroup(e={}){const t=this.basePath+"/apis/batch/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIGroup");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.BatchApi=BatchApi;var P;(function(e){e[e["BearerToken"]=0]="BearerToken"})(P=t.BatchV1ApiApiKeys||(t.BatchV1ApiApiKeys={}));class BatchV1Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[P[e]].apiKey=t}createNamespacedJob(e,t,i,a,r,s={}){const o=this.basePath+"/apis/batch/v1/namespaces/{namespace}/jobs".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedJob.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedJob.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1Job")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Job");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedJob(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/batch/v1/namespaces/{namespace}/jobs".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedJob.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedJob(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/batch/v1/namespaces/{namespace}/jobs/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedJob.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedJob.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/apis/batch/v1/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listJobForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/batch/v1/jobs";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1JobList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedJob(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/batch/v1/namespaces/{namespace}/jobs".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedJob.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1JobList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedJob(e,t,i,a,r,s={}){const o=this.basePath+"/apis/batch/v1/namespaces/{namespace}/jobs/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedJob.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedJob.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedJob.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Job");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedJobStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/batch/v1/namespaces/{namespace}/jobs/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedJobStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedJobStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedJobStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Job");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedJob(e,t,i,a,r,s={}){const o=this.basePath+"/apis/batch/v1/namespaces/{namespace}/jobs/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedJob.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedJob.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Job");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedJobStatus(e,t,i,a={}){const r=this.basePath+"/apis/batch/v1/namespaces/{namespace}/jobs/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedJobStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedJobStatus.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Job");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedJob(e,t,i,a,r,s={}){const o=this.basePath+"/apis/batch/v1/namespaces/{namespace}/jobs/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedJob.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedJob.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedJob.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1Job")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Job");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedJobStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/batch/v1/namespaces/{namespace}/jobs/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedJobStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedJobStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedJobStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1Job")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Job");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.BatchV1Api=BatchV1Api;var D;(function(e){e[e["BearerToken"]=0]="BearerToken"})(D=t.BatchV1beta1ApiApiKeys||(t.BatchV1beta1ApiApiKeys={}));class BatchV1beta1Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[D[e]].apiKey=t}createNamespacedCronJob(e,t,i,a,r,s={}){const o=this.basePath+"/apis/batch/v1beta1/namespaces/{namespace}/cronjobs".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedCronJob.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedCronJob.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1beta1CronJob")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1CronJob");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedCronJob(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/batch/v1beta1/namespaces/{namespace}/cronjobs".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedCronJob.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedCronJob(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedCronJob.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedCronJob.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/apis/batch/v1beta1/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listCronJobForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/batch/v1beta1/cronjobs";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1CronJobList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedCronJob(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/batch/v1beta1/namespaces/{namespace}/cronjobs".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedCronJob.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1CronJobList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedCronJob(e,t,i,a,r,s={}){const o=this.basePath+"/apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedCronJob.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedCronJob.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedCronJob.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1CronJob");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedCronJobStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedCronJobStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedCronJobStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedCronJobStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1CronJob");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedCronJob(e,t,i,a,r,s={}){const o=this.basePath+"/apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedCronJob.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedCronJob.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1CronJob");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedCronJobStatus(e,t,i,a={}){const r=this.basePath+"/apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedCronJobStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedCronJobStatus.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1CronJob");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedCronJob(e,t,i,a,r,s={}){const o=this.basePath+"/apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedCronJob.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedCronJob.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedCronJob.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1beta1CronJob")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1CronJob");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedCronJobStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedCronJobStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedCronJobStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedCronJobStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1beta1CronJob")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1CronJob");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.BatchV1beta1Api=BatchV1beta1Api;var I;(function(e){e[e["BearerToken"]=0]="BearerToken"})(I=t.BatchV2alpha1ApiApiKeys||(t.BatchV2alpha1ApiApiKeys={}));class BatchV2alpha1Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[I[e]].apiKey=t}createNamespacedCronJob(e,t,i,a,r,s={}){const o=this.basePath+"/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedCronJob.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedCronJob.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V2alpha1CronJob")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V2alpha1CronJob");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedCronJob(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedCronJob.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedCronJob(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedCronJob.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedCronJob.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/apis/batch/v2alpha1/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listCronJobForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/batch/v2alpha1/cronjobs";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V2alpha1CronJobList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedCronJob(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedCronJob.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V2alpha1CronJobList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedCronJob(e,t,i,a,r,s={}){const o=this.basePath+"/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedCronJob.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedCronJob.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedCronJob.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V2alpha1CronJob");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedCronJobStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedCronJobStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedCronJobStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedCronJobStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V2alpha1CronJob");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedCronJob(e,t,i,a,r,s={}){const o=this.basePath+"/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedCronJob.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedCronJob.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V2alpha1CronJob");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedCronJobStatus(e,t,i,a={}){const r=this.basePath+"/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedCronJobStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedCronJobStatus.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V2alpha1CronJob");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedCronJob(e,t,i,a,r,s={}){const o=this.basePath+"/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedCronJob.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedCronJob.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedCronJob.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V2alpha1CronJob")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V2alpha1CronJob");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedCronJobStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedCronJobStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedCronJobStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedCronJobStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V2alpha1CronJob")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V2alpha1CronJob");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.BatchV2alpha1Api=BatchV2alpha1Api;var _;(function(e){e[e["BearerToken"]=0]="BearerToken"})(_=t.CertificatesApiApiKeys||(t.CertificatesApiApiKeys={}));class CertificatesApi{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[_[e]].apiKey=t}getAPIGroup(e={}){const t=this.basePath+"/apis/certificates.k8s.io/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIGroup");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.CertificatesApi=CertificatesApi;var q;(function(e){e[e["BearerToken"]=0]="BearerToken"})(q=t.CertificatesV1beta1ApiApiKeys||(t.CertificatesV1beta1ApiApiKeys={}));class CertificatesV1beta1Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[q[e]].apiKey=t}createCertificateSigningRequest(e,t,i,a,r={}){const s=this.basePath+"/apis/certificates.k8s.io/v1beta1/certificatesigningrequests";let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter body was null or undefined when calling createCertificateSigningRequest.")}if(t!==undefined){o["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(e,"V1beta1CertificateSigningRequest")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1CertificateSigningRequest");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCertificateSigningRequest(e,t,i,a,r,s,o,u={}){const l=this.basePath+"/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let c={};let d=Object.assign({},this.defaultHeaders);let p={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteCertificateSigningRequest.")}if(t!==undefined){c["pretty"]=ObjectSerializer.serialize(t,"string")}if(a!==undefined){c["dryRun"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){c["gracePeriodSeconds"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){c["orphanDependents"]=ObjectSerializer.serialize(s,"boolean")}if(o!==undefined){c["propagationPolicy"]=ObjectSerializer.serialize(o,"string")}Object.assign(d,u.headers);let f=false;let h={method:"DELETE",qs:c,headers:d,uri:l,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(h);this.authentications.default.applyToRequest(h);if(Object.keys(p).length){if(f){h.formData=p}else{h.form=p}}return new Promise((e,t)=>{n(h,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionCertificateSigningRequest(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/certificates.k8s.io/v1beta1/certificatesigningrequests";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"DELETE",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/apis/certificates.k8s.io/v1beta1/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listCertificateSigningRequest(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/certificates.k8s.io/v1beta1/certificatesigningrequests";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1CertificateSigningRequestList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchCertificateSigningRequest(e,t,i,a,r={}){const s=this.basePath+"/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchCertificateSigningRequest.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling patchCertificateSigningRequest.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"any")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1CertificateSigningRequest");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchCertificateSigningRequestStatus(e,t,i,a,r={}){const s=this.basePath+"/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchCertificateSigningRequestStatus.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling patchCertificateSigningRequestStatus.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"any")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1CertificateSigningRequest");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readCertificateSigningRequest(e,t,i,a,r={}){const s=this.basePath+"/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readCertificateSigningRequest.")}if(t!==undefined){o["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){o["exact"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){o["export"]=ObjectSerializer.serialize(a,"boolean")}Object.assign(u,r.headers);let c=false;let d={method:"GET",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1CertificateSigningRequest");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readCertificateSigningRequestStatus(e,t,i={}){const a=this.basePath+"/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e)));let r={};let s=Object.assign({},this.defaultHeaders);let o={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readCertificateSigningRequestStatus.")}if(t!==undefined){r["pretty"]=ObjectSerializer.serialize(t,"string")}Object.assign(s,i.headers);let u=false;let l={method:"GET",qs:r,headers:s,uri:a,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(l);this.authentications.default.applyToRequest(l);if(Object.keys(o).length){if(u){l.formData=o}else{l.form=o}}return new Promise((e,t)=>{n(l,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1CertificateSigningRequest");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceCertificateSigningRequest(e,t,i,a,r={}){const s=this.basePath+"/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceCertificateSigningRequest.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replaceCertificateSigningRequest.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1beta1CertificateSigningRequest")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1CertificateSigningRequest");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceCertificateSigningRequestApproval(e,t,i,a,r={}){const s=this.basePath+"/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}/approval".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceCertificateSigningRequestApproval.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replaceCertificateSigningRequestApproval.")}if(i!==undefined){o["dryRun"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["pretty"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1beta1CertificateSigningRequest")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1CertificateSigningRequest");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceCertificateSigningRequestStatus(e,t,i,a,r={}){const s=this.basePath+"/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceCertificateSigningRequestStatus.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replaceCertificateSigningRequestStatus.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1beta1CertificateSigningRequest")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1CertificateSigningRequest");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.CertificatesV1beta1Api=CertificatesV1beta1Api;var B;(function(e){e[e["BearerToken"]=0]="BearerToken"})(B=t.CoordinationApiApiKeys||(t.CoordinationApiApiKeys={}));class CoordinationApi{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[B[e]].apiKey=t}getAPIGroup(e={}){const t=this.basePath+"/apis/coordination.k8s.io/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIGroup");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.CoordinationApi=CoordinationApi;var M;(function(e){e[e["BearerToken"]=0]="BearerToken"})(M=t.CoordinationV1beta1ApiApiKeys||(t.CoordinationV1beta1ApiApiKeys={}));class CoordinationV1beta1Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[M[e]].apiKey=t}createNamespacedLease(e,t,i,a,r,s={}){const o=this.basePath+"/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leases".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedLease.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedLease.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1beta1Lease")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1Lease");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedLease(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leases".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedLease.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedLease(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leases/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedLease.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedLease.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/apis/coordination.k8s.io/v1beta1/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listLeaseForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/coordination.k8s.io/v1beta1/leases";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1LeaseList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedLease(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leases".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedLease.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1LeaseList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedLease(e,t,i,a,r,s={}){const o=this.basePath+"/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leases/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedLease.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedLease.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedLease.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1Lease");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedLease(e,t,i,a,r,s={}){const o=this.basePath+"/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leases/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedLease.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedLease.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1Lease");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedLease(e,t,i,a,r,s={}){const o=this.basePath+"/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leases/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedLease.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedLease.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedLease.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1beta1Lease")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1Lease");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.CoordinationV1beta1Api=CoordinationV1beta1Api;var U;(function(e){e[e["BearerToken"]=0]="BearerToken"})(U=t.CoreApiApiKeys||(t.CoreApiApiKeys={}));class CoreApi{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[U[e]].apiKey=t}getAPIVersions(e={}){const t=this.basePath+"/api/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIVersions");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.CoreApi=CoreApi;var L;(function(e){e[e["BearerToken"]=0]="BearerToken"})(L=t.CoreV1ApiApiKeys||(t.CoreV1ApiApiKeys={}));class CoreV1Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[L[e]].apiKey=t}connectDeleteNamespacedPodProxy(e,t,i,a={}){const r=this.basePath+"/api/v1/namespaces/{namespace}/pods/{name}/proxy".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectDeleteNamespacedPodProxy.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling connectDeleteNamespacedPodProxy.")}if(i!==undefined){s["path"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"DELETE",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectDeleteNamespacedPodProxyWithPath(e,t,i,a,r={}){const s=this.basePath+"/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t))).replace("{"+"path"+"}",encodeURIComponent(String(i)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectDeleteNamespacedPodProxyWithPath.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling connectDeleteNamespacedPodProxyWithPath.")}if(i===null||i===undefined){throw new Error("Required parameter path was null or undefined when calling connectDeleteNamespacedPodProxyWithPath.")}if(a!==undefined){o["path"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"DELETE",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectDeleteNamespacedServiceProxy(e,t,i,a={}){const r=this.basePath+"/api/v1/namespaces/{namespace}/services/{name}/proxy".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectDeleteNamespacedServiceProxy.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling connectDeleteNamespacedServiceProxy.")}if(i!==undefined){s["path"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"DELETE",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectDeleteNamespacedServiceProxyWithPath(e,t,i,a,r={}){const s=this.basePath+"/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t))).replace("{"+"path"+"}",encodeURIComponent(String(i)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectDeleteNamespacedServiceProxyWithPath.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling connectDeleteNamespacedServiceProxyWithPath.")}if(i===null||i===undefined){throw new Error("Required parameter path was null or undefined when calling connectDeleteNamespacedServiceProxyWithPath.")}if(a!==undefined){o["path"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"DELETE",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectDeleteNodeProxy(e,t,i={}){const a=this.basePath+"/api/v1/nodes/{name}/proxy".replace("{"+"name"+"}",encodeURIComponent(String(e)));let r={};let s=Object.assign({},this.defaultHeaders);let o={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectDeleteNodeProxy.")}if(t!==undefined){r["path"]=ObjectSerializer.serialize(t,"string")}Object.assign(s,i.headers);let u=false;let l={method:"DELETE",qs:r,headers:s,uri:a,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(l);this.authentications.default.applyToRequest(l);if(Object.keys(o).length){if(u){l.formData=o}else{l.form=o}}return new Promise((e,t)=>{n(l,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectDeleteNodeProxyWithPath(e,t,i,a={}){const r=this.basePath+"/api/v1/nodes/{name}/proxy/{path}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"path"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectDeleteNodeProxyWithPath.")}if(t===null||t===undefined){throw new Error("Required parameter path was null or undefined when calling connectDeleteNodeProxyWithPath.")}if(i!==undefined){s["path"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"DELETE",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectGetNamespacedPodAttach(e,t,i,a,r,s,o,u={}){const l=this.basePath+"/api/v1/namespaces/{namespace}/pods/{name}/attach".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let c={};let d=Object.assign({},this.defaultHeaders);let p={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectGetNamespacedPodAttach.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling connectGetNamespacedPodAttach.")}if(i!==undefined){c["container"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){c["stderr"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){c["stdin"]=ObjectSerializer.serialize(r,"boolean")}if(s!==undefined){c["stdout"]=ObjectSerializer.serialize(s,"boolean")}if(o!==undefined){c["tty"]=ObjectSerializer.serialize(o,"boolean")}Object.assign(d,u.headers);let f=false;let h={method:"GET",qs:c,headers:d,uri:l,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(h);this.authentications.default.applyToRequest(h);if(Object.keys(p).length){if(f){h.formData=p}else{h.form=p}}return new Promise((e,t)=>{n(h,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectGetNamespacedPodExec(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/api/v1/namespaces/{namespace}/pods/{name}/exec".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectGetNamespacedPodExec.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling connectGetNamespacedPodExec.")}if(i!==undefined){d["command"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){d["container"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){d["stderr"]=ObjectSerializer.serialize(r,"boolean")}if(s!==undefined){d["stdin"]=ObjectSerializer.serialize(s,"boolean")}if(o!==undefined){d["stdout"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["tty"]=ObjectSerializer.serialize(u,"boolean")}Object.assign(p,l.headers);let h=false;let m={method:"GET",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectGetNamespacedPodPortforward(e,t,i,a={}){const r=this.basePath+"/api/v1/namespaces/{namespace}/pods/{name}/portforward".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectGetNamespacedPodPortforward.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling connectGetNamespacedPodPortforward.")}if(i!==undefined){s["ports"]=ObjectSerializer.serialize(i,"number")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectGetNamespacedPodProxy(e,t,i,a={}){const r=this.basePath+"/api/v1/namespaces/{namespace}/pods/{name}/proxy".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectGetNamespacedPodProxy.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling connectGetNamespacedPodProxy.")}if(i!==undefined){s["path"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectGetNamespacedPodProxyWithPath(e,t,i,a,r={}){const s=this.basePath+"/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t))).replace("{"+"path"+"}",encodeURIComponent(String(i)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectGetNamespacedPodProxyWithPath.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling connectGetNamespacedPodProxyWithPath.")}if(i===null||i===undefined){throw new Error("Required parameter path was null or undefined when calling connectGetNamespacedPodProxyWithPath.")}if(a!==undefined){o["path"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"GET",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectGetNamespacedServiceProxy(e,t,i,a={}){const r=this.basePath+"/api/v1/namespaces/{namespace}/services/{name}/proxy".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectGetNamespacedServiceProxy.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling connectGetNamespacedServiceProxy.")}if(i!==undefined){s["path"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectGetNamespacedServiceProxyWithPath(e,t,i,a,r={}){const s=this.basePath+"/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t))).replace("{"+"path"+"}",encodeURIComponent(String(i)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectGetNamespacedServiceProxyWithPath.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling connectGetNamespacedServiceProxyWithPath.")}if(i===null||i===undefined){throw new Error("Required parameter path was null or undefined when calling connectGetNamespacedServiceProxyWithPath.")}if(a!==undefined){o["path"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"GET",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectGetNodeProxy(e,t,i={}){const a=this.basePath+"/api/v1/nodes/{name}/proxy".replace("{"+"name"+"}",encodeURIComponent(String(e)));let r={};let s=Object.assign({},this.defaultHeaders);let o={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectGetNodeProxy.")}if(t!==undefined){r["path"]=ObjectSerializer.serialize(t,"string")}Object.assign(s,i.headers);let u=false;let l={method:"GET",qs:r,headers:s,uri:a,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(l);this.authentications.default.applyToRequest(l);if(Object.keys(o).length){if(u){l.formData=o}else{l.form=o}}return new Promise((e,t)=>{n(l,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectGetNodeProxyWithPath(e,t,i,a={}){const r=this.basePath+"/api/v1/nodes/{name}/proxy/{path}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"path"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectGetNodeProxyWithPath.")}if(t===null||t===undefined){throw new Error("Required parameter path was null or undefined when calling connectGetNodeProxyWithPath.")}if(i!==undefined){s["path"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectHeadNamespacedPodProxy(e,t,i,a={}){const r=this.basePath+"/api/v1/namespaces/{namespace}/pods/{name}/proxy".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectHeadNamespacedPodProxy.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling connectHeadNamespacedPodProxy.")}if(i!==undefined){s["path"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"HEAD",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectHeadNamespacedPodProxyWithPath(e,t,i,a,r={}){const s=this.basePath+"/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t))).replace("{"+"path"+"}",encodeURIComponent(String(i)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectHeadNamespacedPodProxyWithPath.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling connectHeadNamespacedPodProxyWithPath.")}if(i===null||i===undefined){throw new Error("Required parameter path was null or undefined when calling connectHeadNamespacedPodProxyWithPath.")}if(a!==undefined){o["path"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"HEAD",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectHeadNamespacedServiceProxy(e,t,i,a={}){const r=this.basePath+"/api/v1/namespaces/{namespace}/services/{name}/proxy".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectHeadNamespacedServiceProxy.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling connectHeadNamespacedServiceProxy.")}if(i!==undefined){s["path"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"HEAD",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectHeadNamespacedServiceProxyWithPath(e,t,i,a,r={}){const s=this.basePath+"/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t))).replace("{"+"path"+"}",encodeURIComponent(String(i)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectHeadNamespacedServiceProxyWithPath.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling connectHeadNamespacedServiceProxyWithPath.")}if(i===null||i===undefined){throw new Error("Required parameter path was null or undefined when calling connectHeadNamespacedServiceProxyWithPath.")}if(a!==undefined){o["path"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"HEAD",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectHeadNodeProxy(e,t,i={}){const a=this.basePath+"/api/v1/nodes/{name}/proxy".replace("{"+"name"+"}",encodeURIComponent(String(e)));let r={};let s=Object.assign({},this.defaultHeaders);let o={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectHeadNodeProxy.")}if(t!==undefined){r["path"]=ObjectSerializer.serialize(t,"string")}Object.assign(s,i.headers);let u=false;let l={method:"HEAD",qs:r,headers:s,uri:a,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(l);this.authentications.default.applyToRequest(l);if(Object.keys(o).length){if(u){l.formData=o}else{l.form=o}}return new Promise((e,t)=>{n(l,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectHeadNodeProxyWithPath(e,t,i,a={}){const r=this.basePath+"/api/v1/nodes/{name}/proxy/{path}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"path"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectHeadNodeProxyWithPath.")}if(t===null||t===undefined){throw new Error("Required parameter path was null or undefined when calling connectHeadNodeProxyWithPath.")}if(i!==undefined){s["path"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"HEAD",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectOptionsNamespacedPodProxy(e,t,i,a={}){const r=this.basePath+"/api/v1/namespaces/{namespace}/pods/{name}/proxy".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectOptionsNamespacedPodProxy.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling connectOptionsNamespacedPodProxy.")}if(i!==undefined){s["path"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"OPTIONS",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectOptionsNamespacedPodProxyWithPath(e,t,i,a,r={}){const s=this.basePath+"/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t))).replace("{"+"path"+"}",encodeURIComponent(String(i)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectOptionsNamespacedPodProxyWithPath.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling connectOptionsNamespacedPodProxyWithPath.")}if(i===null||i===undefined){throw new Error("Required parameter path was null or undefined when calling connectOptionsNamespacedPodProxyWithPath.")}if(a!==undefined){o["path"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"OPTIONS",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectOptionsNamespacedServiceProxy(e,t,i,a={}){const r=this.basePath+"/api/v1/namespaces/{namespace}/services/{name}/proxy".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectOptionsNamespacedServiceProxy.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling connectOptionsNamespacedServiceProxy.")}if(i!==undefined){s["path"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"OPTIONS",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectOptionsNamespacedServiceProxyWithPath(e,t,i,a,r={}){const s=this.basePath+"/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t))).replace("{"+"path"+"}",encodeURIComponent(String(i)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectOptionsNamespacedServiceProxyWithPath.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling connectOptionsNamespacedServiceProxyWithPath.")}if(i===null||i===undefined){throw new Error("Required parameter path was null or undefined when calling connectOptionsNamespacedServiceProxyWithPath.")}if(a!==undefined){o["path"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"OPTIONS",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectOptionsNodeProxy(e,t,i={}){const a=this.basePath+"/api/v1/nodes/{name}/proxy".replace("{"+"name"+"}",encodeURIComponent(String(e)));let r={};let s=Object.assign({},this.defaultHeaders);let o={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectOptionsNodeProxy.")}if(t!==undefined){r["path"]=ObjectSerializer.serialize(t,"string")}Object.assign(s,i.headers);let u=false;let l={method:"OPTIONS",qs:r,headers:s,uri:a,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(l);this.authentications.default.applyToRequest(l);if(Object.keys(o).length){if(u){l.formData=o}else{l.form=o}}return new Promise((e,t)=>{n(l,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectOptionsNodeProxyWithPath(e,t,i,a={}){const r=this.basePath+"/api/v1/nodes/{name}/proxy/{path}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"path"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectOptionsNodeProxyWithPath.")}if(t===null||t===undefined){throw new Error("Required parameter path was null or undefined when calling connectOptionsNodeProxyWithPath.")}if(i!==undefined){s["path"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"OPTIONS",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectPatchNamespacedPodProxy(e,t,i,a={}){const r=this.basePath+"/api/v1/namespaces/{namespace}/pods/{name}/proxy".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectPatchNamespacedPodProxy.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling connectPatchNamespacedPodProxy.")}if(i!==undefined){s["path"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"PATCH",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectPatchNamespacedPodProxyWithPath(e,t,i,a,r={}){const s=this.basePath+"/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t))).replace("{"+"path"+"}",encodeURIComponent(String(i)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectPatchNamespacedPodProxyWithPath.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling connectPatchNamespacedPodProxyWithPath.")}if(i===null||i===undefined){throw new Error("Required parameter path was null or undefined when calling connectPatchNamespacedPodProxyWithPath.")}if(a!==undefined){o["path"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectPatchNamespacedServiceProxy(e,t,i,a={}){const r=this.basePath+"/api/v1/namespaces/{namespace}/services/{name}/proxy".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectPatchNamespacedServiceProxy.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling connectPatchNamespacedServiceProxy.")}if(i!==undefined){s["path"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"PATCH",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectPatchNamespacedServiceProxyWithPath(e,t,i,a,r={}){const s=this.basePath+"/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t))).replace("{"+"path"+"}",encodeURIComponent(String(i)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectPatchNamespacedServiceProxyWithPath.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling connectPatchNamespacedServiceProxyWithPath.")}if(i===null||i===undefined){throw new Error("Required parameter path was null or undefined when calling connectPatchNamespacedServiceProxyWithPath.")}if(a!==undefined){o["path"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectPatchNodeProxy(e,t,i={}){const a=this.basePath+"/api/v1/nodes/{name}/proxy".replace("{"+"name"+"}",encodeURIComponent(String(e)));let r={};let s=Object.assign({},this.defaultHeaders);let o={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectPatchNodeProxy.")}if(t!==undefined){r["path"]=ObjectSerializer.serialize(t,"string")}Object.assign(s,i.headers);let u=false;let l={method:"PATCH",qs:r,headers:s,uri:a,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(l);this.authentications.default.applyToRequest(l);if(Object.keys(o).length){if(u){l.formData=o}else{l.form=o}}return new Promise((e,t)=>{n(l,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectPatchNodeProxyWithPath(e,t,i,a={}){const r=this.basePath+"/api/v1/nodes/{name}/proxy/{path}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"path"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectPatchNodeProxyWithPath.")}if(t===null||t===undefined){throw new Error("Required parameter path was null or undefined when calling connectPatchNodeProxyWithPath.")}if(i!==undefined){s["path"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"PATCH",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectPostNamespacedPodAttach(e,t,i,a,r,s,o,u={}){const l=this.basePath+"/api/v1/namespaces/{namespace}/pods/{name}/attach".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let c={};let d=Object.assign({},this.defaultHeaders);let p={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectPostNamespacedPodAttach.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling connectPostNamespacedPodAttach.")}if(i!==undefined){c["container"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){c["stderr"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){c["stdin"]=ObjectSerializer.serialize(r,"boolean")}if(s!==undefined){c["stdout"]=ObjectSerializer.serialize(s,"boolean")}if(o!==undefined){c["tty"]=ObjectSerializer.serialize(o,"boolean")}Object.assign(d,u.headers);let f=false;let h={method:"POST",qs:c,headers:d,uri:l,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(h);this.authentications.default.applyToRequest(h);if(Object.keys(p).length){if(f){h.formData=p}else{h.form=p}}return new Promise((e,t)=>{n(h,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectPostNamespacedPodExec(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/api/v1/namespaces/{namespace}/pods/{name}/exec".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectPostNamespacedPodExec.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling connectPostNamespacedPodExec.")}if(i!==undefined){d["command"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){d["container"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){d["stderr"]=ObjectSerializer.serialize(r,"boolean")}if(s!==undefined){d["stdin"]=ObjectSerializer.serialize(s,"boolean")}if(o!==undefined){d["stdout"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["tty"]=ObjectSerializer.serialize(u,"boolean")}Object.assign(p,l.headers);let h=false;let m={method:"POST",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectPostNamespacedPodPortforward(e,t,i,a={}){const r=this.basePath+"/api/v1/namespaces/{namespace}/pods/{name}/portforward".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectPostNamespacedPodPortforward.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling connectPostNamespacedPodPortforward.")}if(i!==undefined){s["ports"]=ObjectSerializer.serialize(i,"number")}Object.assign(o,a.headers);let l=false;let c={method:"POST",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectPostNamespacedPodProxy(e,t,i,a={}){const r=this.basePath+"/api/v1/namespaces/{namespace}/pods/{name}/proxy".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectPostNamespacedPodProxy.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling connectPostNamespacedPodProxy.")}if(i!==undefined){s["path"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"POST",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectPostNamespacedPodProxyWithPath(e,t,i,a,r={}){const s=this.basePath+"/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t))).replace("{"+"path"+"}",encodeURIComponent(String(i)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectPostNamespacedPodProxyWithPath.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling connectPostNamespacedPodProxyWithPath.")}if(i===null||i===undefined){throw new Error("Required parameter path was null or undefined when calling connectPostNamespacedPodProxyWithPath.")}if(a!==undefined){o["path"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectPostNamespacedServiceProxy(e,t,i,a={}){const r=this.basePath+"/api/v1/namespaces/{namespace}/services/{name}/proxy".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectPostNamespacedServiceProxy.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling connectPostNamespacedServiceProxy.")}if(i!==undefined){s["path"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"POST",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectPostNamespacedServiceProxyWithPath(e,t,i,a,r={}){const s=this.basePath+"/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t))).replace("{"+"path"+"}",encodeURIComponent(String(i)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectPostNamespacedServiceProxyWithPath.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling connectPostNamespacedServiceProxyWithPath.")}if(i===null||i===undefined){throw new Error("Required parameter path was null or undefined when calling connectPostNamespacedServiceProxyWithPath.")}if(a!==undefined){o["path"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectPostNodeProxy(e,t,i={}){const a=this.basePath+"/api/v1/nodes/{name}/proxy".replace("{"+"name"+"}",encodeURIComponent(String(e)));let r={};let s=Object.assign({},this.defaultHeaders);let o={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectPostNodeProxy.")}if(t!==undefined){r["path"]=ObjectSerializer.serialize(t,"string")}Object.assign(s,i.headers);let u=false;let l={method:"POST",qs:r,headers:s,uri:a,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(l);this.authentications.default.applyToRequest(l);if(Object.keys(o).length){if(u){l.formData=o}else{l.form=o}}return new Promise((e,t)=>{n(l,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectPostNodeProxyWithPath(e,t,i,a={}){const r=this.basePath+"/api/v1/nodes/{name}/proxy/{path}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"path"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectPostNodeProxyWithPath.")}if(t===null||t===undefined){throw new Error("Required parameter path was null or undefined when calling connectPostNodeProxyWithPath.")}if(i!==undefined){s["path"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"POST",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectPutNamespacedPodProxy(e,t,i,a={}){const r=this.basePath+"/api/v1/namespaces/{namespace}/pods/{name}/proxy".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectPutNamespacedPodProxy.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling connectPutNamespacedPodProxy.")}if(i!==undefined){s["path"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"PUT",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectPutNamespacedPodProxyWithPath(e,t,i,a,r={}){const s=this.basePath+"/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t))).replace("{"+"path"+"}",encodeURIComponent(String(i)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectPutNamespacedPodProxyWithPath.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling connectPutNamespacedPodProxyWithPath.")}if(i===null||i===undefined){throw new Error("Required parameter path was null or undefined when calling connectPutNamespacedPodProxyWithPath.")}if(a!==undefined){o["path"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectPutNamespacedServiceProxy(e,t,i,a={}){const r=this.basePath+"/api/v1/namespaces/{namespace}/services/{name}/proxy".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectPutNamespacedServiceProxy.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling connectPutNamespacedServiceProxy.")}if(i!==undefined){s["path"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"PUT",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectPutNamespacedServiceProxyWithPath(e,t,i,a,r={}){const s=this.basePath+"/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t))).replace("{"+"path"+"}",encodeURIComponent(String(i)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectPutNamespacedServiceProxyWithPath.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling connectPutNamespacedServiceProxyWithPath.")}if(i===null||i===undefined){throw new Error("Required parameter path was null or undefined when calling connectPutNamespacedServiceProxyWithPath.")}if(a!==undefined){o["path"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectPutNodeProxy(e,t,i={}){const a=this.basePath+"/api/v1/nodes/{name}/proxy".replace("{"+"name"+"}",encodeURIComponent(String(e)));let r={};let s=Object.assign({},this.defaultHeaders);let o={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectPutNodeProxy.")}if(t!==undefined){r["path"]=ObjectSerializer.serialize(t,"string")}Object.assign(s,i.headers);let u=false;let l={method:"PUT",qs:r,headers:s,uri:a,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(l);this.authentications.default.applyToRequest(l);if(Object.keys(o).length){if(u){l.formData=o}else{l.form=o}}return new Promise((e,t)=>{n(l,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectPutNodeProxyWithPath(e,t,i,a={}){const r=this.basePath+"/api/v1/nodes/{name}/proxy/{path}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"path"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectPutNodeProxyWithPath.")}if(t===null||t===undefined){throw new Error("Required parameter path was null or undefined when calling connectPutNodeProxyWithPath.")}if(i!==undefined){s["path"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"PUT",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespace(e,t,i,a,r={}){const s=this.basePath+"/api/v1/namespaces";let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespace.")}if(t!==undefined){o["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(e,"V1Namespace")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Namespace");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedBinding(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/bindings".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedBinding.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedBinding.")}if(i!==undefined){u["dryRun"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["pretty"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1Binding")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Binding");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedConfigMap(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/configmaps".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedConfigMap.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedConfigMap.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1ConfigMap")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ConfigMap");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedEndpoints(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/endpoints".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedEndpoints.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedEndpoints.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1Endpoints")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Endpoints");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedEvent(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/events".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedEvent.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedEvent.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1Event")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Event");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedLimitRange(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/limitranges".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedLimitRange.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedLimitRange.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1LimitRange")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1LimitRange");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedPersistentVolumeClaim(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/persistentvolumeclaims".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedPersistentVolumeClaim.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedPersistentVolumeClaim.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1PersistentVolumeClaim")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1PersistentVolumeClaim");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedPod(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/pods".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedPod.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedPod.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1Pod")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Pod");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedPodBinding(e,t,i,a,r,s,o={}){const u=this.basePath+"/api/v1/namespaces/{namespace}/pods/{name}/binding".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let l={};let c=Object.assign({},this.defaultHeaders);let d={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling createNamespacedPodBinding.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedPodBinding.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedPodBinding.")}if(a!==undefined){l["dryRun"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){l["includeUninitialized"]=ObjectSerializer.serialize(r,"boolean")}if(s!==undefined){l["pretty"]=ObjectSerializer.serialize(s,"string")}Object.assign(c,o.headers);let p=false;let f={method:"POST",qs:l,headers:c,uri:u,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1Binding")};this.authentications.BearerToken.applyToRequest(f);this.authentications.default.applyToRequest(f);if(Object.keys(d).length){if(p){f.formData=d}else{f.form=d}}return new Promise((e,t)=>{n(f,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Binding");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedPodEviction(e,t,i,a,r,s,o={}){const u=this.basePath+"/api/v1/namespaces/{namespace}/pods/{name}/eviction".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let l={};let c=Object.assign({},this.defaultHeaders);let d={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling createNamespacedPodEviction.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedPodEviction.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedPodEviction.")}if(a!==undefined){l["dryRun"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){l["includeUninitialized"]=ObjectSerializer.serialize(r,"boolean")}if(s!==undefined){l["pretty"]=ObjectSerializer.serialize(s,"string")}Object.assign(c,o.headers);let p=false;let f={method:"POST",qs:l,headers:c,uri:u,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1beta1Eviction")};this.authentications.BearerToken.applyToRequest(f);this.authentications.default.applyToRequest(f);if(Object.keys(d).length){if(p){f.formData=d}else{f.form=d}}return new Promise((e,t)=>{n(f,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1Eviction");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedPodTemplate(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/podtemplates".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedPodTemplate.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedPodTemplate.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1PodTemplate")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1PodTemplate");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedReplicationController(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/replicationcontrollers".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedReplicationController.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedReplicationController.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1ReplicationController")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ReplicationController");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedResourceQuota(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/resourcequotas".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedResourceQuota.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedResourceQuota.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1ResourceQuota")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ResourceQuota");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedSecret(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/secrets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedSecret.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedSecret.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1Secret")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Secret");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedService(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/services".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedService.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedService.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1Service")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Service");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedServiceAccount(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/serviceaccounts".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedServiceAccount.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedServiceAccount.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1ServiceAccount")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ServiceAccount");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNode(e,t,i,a,r={}){const s=this.basePath+"/api/v1/nodes";let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter body was null or undefined when calling createNode.")}if(t!==undefined){o["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(e,"V1Node")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Node");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createPersistentVolume(e,t,i,a,r={}){const s=this.basePath+"/api/v1/persistentvolumes";let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter body was null or undefined when calling createPersistentVolume.")}if(t!==undefined){o["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(e,"V1PersistentVolume")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1PersistentVolume");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedConfigMap(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/api/v1/namespaces/{namespace}/configmaps".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedConfigMap.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedEndpoints(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/api/v1/namespaces/{namespace}/endpoints".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedEndpoints.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedEvent(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/api/v1/namespaces/{namespace}/events".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedEvent.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedLimitRange(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/api/v1/namespaces/{namespace}/limitranges".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedLimitRange.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedPersistentVolumeClaim(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/api/v1/namespaces/{namespace}/persistentvolumeclaims".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedPersistentVolumeClaim.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedPod(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/api/v1/namespaces/{namespace}/pods".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedPod.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedPodTemplate(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/api/v1/namespaces/{namespace}/podtemplates".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedPodTemplate.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedReplicationController(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/api/v1/namespaces/{namespace}/replicationcontrollers".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedReplicationController.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedResourceQuota(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/api/v1/namespaces/{namespace}/resourcequotas".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedResourceQuota.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedSecret(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/api/v1/namespaces/{namespace}/secrets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedSecret.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedServiceAccount(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/api/v1/namespaces/{namespace}/serviceaccounts".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedServiceAccount.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNode(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/api/v1/nodes";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"DELETE",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionPersistentVolume(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/api/v1/persistentvolumes";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"DELETE",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespace(e,t,i,a,r,s,o,u={}){const l=this.basePath+"/api/v1/namespaces/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let c={};let d=Object.assign({},this.defaultHeaders);let p={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespace.")}if(t!==undefined){c["pretty"]=ObjectSerializer.serialize(t,"string")}if(a!==undefined){c["dryRun"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){c["gracePeriodSeconds"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){c["orphanDependents"]=ObjectSerializer.serialize(s,"boolean")}if(o!==undefined){c["propagationPolicy"]=ObjectSerializer.serialize(o,"string")}Object.assign(d,u.headers);let f=false;let h={method:"DELETE",qs:c,headers:d,uri:l,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(h);this.authentications.default.applyToRequest(h);if(Object.keys(p).length){if(f){h.formData=p}else{h.form=p}}return new Promise((e,t)=>{n(h,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedConfigMap(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/api/v1/namespaces/{namespace}/configmaps/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedConfigMap.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedConfigMap.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedEndpoints(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/api/v1/namespaces/{namespace}/endpoints/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedEndpoints.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedEndpoints.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedEvent(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/api/v1/namespaces/{namespace}/events/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedEvent.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedEvent.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedLimitRange(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/api/v1/namespaces/{namespace}/limitranges/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedLimitRange.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedLimitRange.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedPersistentVolumeClaim(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedPersistentVolumeClaim.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedPersistentVolumeClaim.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedPod(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/api/v1/namespaces/{namespace}/pods/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedPod.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedPod.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedPodTemplate(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/api/v1/namespaces/{namespace}/podtemplates/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedPodTemplate.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedPodTemplate.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedReplicationController(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/api/v1/namespaces/{namespace}/replicationcontrollers/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedReplicationController.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedReplicationController.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedResourceQuota(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/api/v1/namespaces/{namespace}/resourcequotas/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedResourceQuota.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedResourceQuota.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedSecret(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/api/v1/namespaces/{namespace}/secrets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedSecret.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedSecret.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedService(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/api/v1/namespaces/{namespace}/services/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedService.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedService.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedServiceAccount(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/api/v1/namespaces/{namespace}/serviceaccounts/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedServiceAccount.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedServiceAccount.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNode(e,t,i,a,r,s,o,u={}){const l=this.basePath+"/api/v1/nodes/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let c={};let d=Object.assign({},this.defaultHeaders);let p={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNode.")}if(t!==undefined){c["pretty"]=ObjectSerializer.serialize(t,"string")}if(a!==undefined){c["dryRun"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){c["gracePeriodSeconds"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){c["orphanDependents"]=ObjectSerializer.serialize(s,"boolean")}if(o!==undefined){c["propagationPolicy"]=ObjectSerializer.serialize(o,"string")}Object.assign(d,u.headers);let f=false;let h={method:"DELETE",qs:c,headers:d,uri:l,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(h);this.authentications.default.applyToRequest(h);if(Object.keys(p).length){if(f){h.formData=p}else{h.form=p}}return new Promise((e,t)=>{n(h,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deletePersistentVolume(e,t,i,a,r,s,o,u={}){const l=this.basePath+"/api/v1/persistentvolumes/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let c={};let d=Object.assign({},this.defaultHeaders);let p={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deletePersistentVolume.")}if(t!==undefined){c["pretty"]=ObjectSerializer.serialize(t,"string")}if(a!==undefined){c["dryRun"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){c["gracePeriodSeconds"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){c["orphanDependents"]=ObjectSerializer.serialize(s,"boolean")}if(o!==undefined){c["propagationPolicy"]=ObjectSerializer.serialize(o,"string")}Object.assign(d,u.headers);let f=false;let h={method:"DELETE",qs:c,headers:d,uri:l,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(h);this.authentications.default.applyToRequest(h);if(Object.keys(p).length){if(f){h.formData=p}else{h.form=p}}return new Promise((e,t)=>{n(h,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/api/v1/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listComponentStatus(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/api/v1/componentstatuses";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ComponentStatusList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listConfigMapForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/api/v1/configmaps";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ConfigMapList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listEndpointsForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/api/v1/endpoints";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1EndpointsList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listEventForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/api/v1/events";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1EventList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listLimitRangeForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/api/v1/limitranges";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1LimitRangeList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespace(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/api/v1/namespaces";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1NamespaceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedConfigMap(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/api/v1/namespaces/{namespace}/configmaps".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedConfigMap.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ConfigMapList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedEndpoints(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/api/v1/namespaces/{namespace}/endpoints".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedEndpoints.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1EndpointsList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedEvent(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/api/v1/namespaces/{namespace}/events".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedEvent.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1EventList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedLimitRange(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/api/v1/namespaces/{namespace}/limitranges".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedLimitRange.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1LimitRangeList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedPersistentVolumeClaim(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/api/v1/namespaces/{namespace}/persistentvolumeclaims".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedPersistentVolumeClaim.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1PersistentVolumeClaimList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedPod(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/api/v1/namespaces/{namespace}/pods".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedPod.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1PodList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedPodTemplate(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/api/v1/namespaces/{namespace}/podtemplates".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedPodTemplate.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1PodTemplateList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedReplicationController(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/api/v1/namespaces/{namespace}/replicationcontrollers".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedReplicationController.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ReplicationControllerList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedResourceQuota(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/api/v1/namespaces/{namespace}/resourcequotas".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedResourceQuota.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ResourceQuotaList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedSecret(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/api/v1/namespaces/{namespace}/secrets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedSecret.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1SecretList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedService(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/api/v1/namespaces/{namespace}/services".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedService.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ServiceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedServiceAccount(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/api/v1/namespaces/{namespace}/serviceaccounts".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedServiceAccount.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ServiceAccountList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNode(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/api/v1/nodes";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1NodeList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listPersistentVolume(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/api/v1/persistentvolumes";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1PersistentVolumeList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listPersistentVolumeClaimForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/api/v1/persistentvolumeclaims";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1PersistentVolumeClaimList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listPodForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/api/v1/pods";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1PodList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listPodTemplateForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/api/v1/podtemplates";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1PodTemplateList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listReplicationControllerForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/api/v1/replicationcontrollers";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ReplicationControllerList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listResourceQuotaForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/api/v1/resourcequotas";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ResourceQuotaList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listSecretForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/api/v1/secrets";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1SecretList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listServiceAccountForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/api/v1/serviceaccounts";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ServiceAccountList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listServiceForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/api/v1/services";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ServiceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespace(e,t,i,a,r={}){const s=this.basePath+"/api/v1/namespaces/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespace.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespace.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"any")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Namespace");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespaceStatus(e,t,i,a,r={}){const s=this.basePath+"/api/v1/namespaces/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespaceStatus.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespaceStatus.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"any")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Namespace");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedConfigMap(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/configmaps/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedConfigMap.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedConfigMap.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedConfigMap.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ConfigMap");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedEndpoints(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/endpoints/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedEndpoints.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedEndpoints.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedEndpoints.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Endpoints");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedEvent(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/events/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedEvent.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedEvent.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedEvent.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Event");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedLimitRange(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/limitranges/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedLimitRange.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedLimitRange.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedLimitRange.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1LimitRange");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedPersistentVolumeClaim(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedPersistentVolumeClaim.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedPersistentVolumeClaim.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedPersistentVolumeClaim.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1PersistentVolumeClaim");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedPersistentVolumeClaimStatus(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedPersistentVolumeClaimStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedPersistentVolumeClaimStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedPersistentVolumeClaimStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1PersistentVolumeClaim");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedPod(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/pods/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedPod.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedPod.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedPod.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Pod");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedPodStatus(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/pods/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedPodStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedPodStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedPodStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Pod");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedPodTemplate(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/podtemplates/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedPodTemplate.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedPodTemplate.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedPodTemplate.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1PodTemplate");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedReplicationController(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/replicationcontrollers/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedReplicationController.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedReplicationController.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedReplicationController.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ReplicationController");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedReplicationControllerScale(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedReplicationControllerScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedReplicationControllerScale.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedReplicationControllerScale.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedReplicationControllerStatus(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedReplicationControllerStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedReplicationControllerStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedReplicationControllerStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ReplicationController");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedResourceQuota(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/resourcequotas/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedResourceQuota.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedResourceQuota.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedResourceQuota.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ResourceQuota");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedResourceQuotaStatus(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/resourcequotas/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedResourceQuotaStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedResourceQuotaStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedResourceQuotaStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ResourceQuota");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedSecret(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/secrets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedSecret.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedSecret.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedSecret.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Secret");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedService(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/services/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedService.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedService.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedService.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Service");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedServiceAccount(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/serviceaccounts/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedServiceAccount.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedServiceAccount.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedServiceAccount.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ServiceAccount");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedServiceStatus(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/services/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedServiceStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedServiceStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedServiceStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Service");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNode(e,t,i,a,r={}){const s=this.basePath+"/api/v1/nodes/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNode.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling patchNode.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"any")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Node");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNodeStatus(e,t,i,a,r={}){const s=this.basePath+"/api/v1/nodes/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNodeStatus.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling patchNodeStatus.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"any")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Node");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchPersistentVolume(e,t,i,a,r={}){const s=this.basePath+"/api/v1/persistentvolumes/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchPersistentVolume.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling patchPersistentVolume.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"any")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1PersistentVolume");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchPersistentVolumeStatus(e,t,i,a,r={}){const s=this.basePath+"/api/v1/persistentvolumes/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchPersistentVolumeStatus.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling patchPersistentVolumeStatus.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"any")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1PersistentVolume");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readComponentStatus(e,t,i={}){const a=this.basePath+"/api/v1/componentstatuses/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let r={};let s=Object.assign({},this.defaultHeaders);let o={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readComponentStatus.")}if(t!==undefined){r["pretty"]=ObjectSerializer.serialize(t,"string")}Object.assign(s,i.headers);let u=false;let l={method:"GET",qs:r,headers:s,uri:a,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(l);this.authentications.default.applyToRequest(l);if(Object.keys(o).length){if(u){l.formData=o}else{l.form=o}}return new Promise((e,t)=>{n(l,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ComponentStatus");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespace(e,t,i,a,r={}){const s=this.basePath+"/api/v1/namespaces/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespace.")}if(t!==undefined){o["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){o["exact"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){o["export"]=ObjectSerializer.serialize(a,"boolean")}Object.assign(u,r.headers);let c=false;let d={method:"GET",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Namespace");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespaceStatus(e,t,i={}){const a=this.basePath+"/api/v1/namespaces/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e)));let r={};let s=Object.assign({},this.defaultHeaders);let o={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespaceStatus.")}if(t!==undefined){r["pretty"]=ObjectSerializer.serialize(t,"string")}Object.assign(s,i.headers);let u=false;let l={method:"GET",qs:r,headers:s,uri:a,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(l);this.authentications.default.applyToRequest(l);if(Object.keys(o).length){if(u){l.formData=o}else{l.form=o}}return new Promise((e,t)=>{n(l,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Namespace");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedConfigMap(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/configmaps/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedConfigMap.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedConfigMap.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ConfigMap");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedEndpoints(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/endpoints/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedEndpoints.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedEndpoints.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Endpoints");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedEvent(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/events/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedEvent.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedEvent.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Event");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedLimitRange(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/limitranges/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedLimitRange.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedLimitRange.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1LimitRange");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedPersistentVolumeClaim(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedPersistentVolumeClaim.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedPersistentVolumeClaim.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1PersistentVolumeClaim");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedPersistentVolumeClaimStatus(e,t,i,a={}){const r=this.basePath+"/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedPersistentVolumeClaimStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedPersistentVolumeClaimStatus.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1PersistentVolumeClaim");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedPod(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/pods/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedPod.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedPod.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Pod");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedPodLog(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/api/v1/namespaces/{namespace}/pods/{name}/log".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedPodLog.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedPodLog.")}if(i!==undefined){f["container"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["follow"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){f["limitBytes"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){f["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["previous"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){f["sinceSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){f["tailLines"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["timestamps"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedPodStatus(e,t,i,a={}){const r=this.basePath+"/api/v1/namespaces/{namespace}/pods/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedPodStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedPodStatus.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Pod");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedPodTemplate(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/podtemplates/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedPodTemplate.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedPodTemplate.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1PodTemplate");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedReplicationController(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/replicationcontrollers/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedReplicationController.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedReplicationController.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ReplicationController");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedReplicationControllerScale(e,t,i,a={}){const r=this.basePath+"/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedReplicationControllerScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedReplicationControllerScale.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedReplicationControllerStatus(e,t,i,a={}){const r=this.basePath+"/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedReplicationControllerStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedReplicationControllerStatus.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ReplicationController");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedResourceQuota(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/resourcequotas/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedResourceQuota.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedResourceQuota.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ResourceQuota");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedResourceQuotaStatus(e,t,i,a={}){const r=this.basePath+"/api/v1/namespaces/{namespace}/resourcequotas/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedResourceQuotaStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedResourceQuotaStatus.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ResourceQuota");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedSecret(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/secrets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedSecret.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedSecret.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Secret");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedService(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/services/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedService.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedService.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Service");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedServiceAccount(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/serviceaccounts/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedServiceAccount.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedServiceAccount.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ServiceAccount");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedServiceStatus(e,t,i,a={}){const r=this.basePath+"/api/v1/namespaces/{namespace}/services/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedServiceStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedServiceStatus.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Service");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNode(e,t,i,a,r={}){const s=this.basePath+"/api/v1/nodes/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNode.")}if(t!==undefined){o["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){o["exact"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){o["export"]=ObjectSerializer.serialize(a,"boolean")}Object.assign(u,r.headers);let c=false;let d={method:"GET",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Node");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNodeStatus(e,t,i={}){const a=this.basePath+"/api/v1/nodes/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e)));let r={};let s=Object.assign({},this.defaultHeaders);let o={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNodeStatus.")}if(t!==undefined){r["pretty"]=ObjectSerializer.serialize(t,"string")}Object.assign(s,i.headers);let u=false;let l={method:"GET",qs:r,headers:s,uri:a,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(l);this.authentications.default.applyToRequest(l);if(Object.keys(o).length){if(u){l.formData=o}else{l.form=o}}return new Promise((e,t)=>{n(l,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Node");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readPersistentVolume(e,t,i,a,r={}){const s=this.basePath+"/api/v1/persistentvolumes/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readPersistentVolume.")}if(t!==undefined){o["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){o["exact"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){o["export"]=ObjectSerializer.serialize(a,"boolean")}Object.assign(u,r.headers);let c=false;let d={method:"GET",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1PersistentVolume");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readPersistentVolumeStatus(e,t,i={}){const a=this.basePath+"/api/v1/persistentvolumes/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e)));let r={};let s=Object.assign({},this.defaultHeaders);let o={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readPersistentVolumeStatus.")}if(t!==undefined){r["pretty"]=ObjectSerializer.serialize(t,"string")}Object.assign(s,i.headers);let u=false;let l={method:"GET",qs:r,headers:s,uri:a,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(l);this.authentications.default.applyToRequest(l);if(Object.keys(o).length){if(u){l.formData=o}else{l.form=o}}return new Promise((e,t)=>{n(l,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1PersistentVolume");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespace(e,t,i,a,r={}){const s=this.basePath+"/api/v1/namespaces/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespace.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespace.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1Namespace")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Namespace");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespaceFinalize(e,t,i,a,r={}){const s=this.basePath+"/api/v1/namespaces/{name}/finalize".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespaceFinalize.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespaceFinalize.")}if(i!==undefined){o["dryRun"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["pretty"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1Namespace")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Namespace");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespaceStatus(e,t,i,a,r={}){const s=this.basePath+"/api/v1/namespaces/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespaceStatus.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespaceStatus.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1Namespace")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Namespace");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedConfigMap(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/configmaps/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedConfigMap.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedConfigMap.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedConfigMap.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1ConfigMap")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ConfigMap");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedEndpoints(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/endpoints/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedEndpoints.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedEndpoints.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedEndpoints.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1Endpoints")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Endpoints");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedEvent(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/events/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedEvent.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedEvent.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedEvent.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1Event")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Event");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedLimitRange(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/limitranges/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedLimitRange.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedLimitRange.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedLimitRange.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1LimitRange")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1LimitRange");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedPersistentVolumeClaim(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedPersistentVolumeClaim.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedPersistentVolumeClaim.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedPersistentVolumeClaim.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1PersistentVolumeClaim")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1PersistentVolumeClaim");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedPersistentVolumeClaimStatus(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedPersistentVolumeClaimStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedPersistentVolumeClaimStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedPersistentVolumeClaimStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1PersistentVolumeClaim")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1PersistentVolumeClaim");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedPod(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/pods/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedPod.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedPod.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedPod.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1Pod")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Pod");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedPodStatus(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/pods/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedPodStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedPodStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedPodStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1Pod")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Pod");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedPodTemplate(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/podtemplates/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedPodTemplate.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedPodTemplate.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedPodTemplate.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1PodTemplate")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1PodTemplate");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedReplicationController(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/replicationcontrollers/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedReplicationController.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedReplicationController.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedReplicationController.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1ReplicationController")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ReplicationController");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedReplicationControllerScale(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedReplicationControllerScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedReplicationControllerScale.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedReplicationControllerScale.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1Scale")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedReplicationControllerStatus(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedReplicationControllerStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedReplicationControllerStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedReplicationControllerStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1ReplicationController")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ReplicationController");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedResourceQuota(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/resourcequotas/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedResourceQuota.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedResourceQuota.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedResourceQuota.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1ResourceQuota")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ResourceQuota");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedResourceQuotaStatus(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/resourcequotas/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedResourceQuotaStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedResourceQuotaStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedResourceQuotaStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1ResourceQuota")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ResourceQuota");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedSecret(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/secrets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedSecret.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedSecret.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedSecret.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1Secret")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Secret");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedService(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/services/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedService.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedService.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedService.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1Service")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Service");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedServiceAccount(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/serviceaccounts/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedServiceAccount.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedServiceAccount.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedServiceAccount.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1ServiceAccount")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ServiceAccount");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedServiceStatus(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/services/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedServiceStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedServiceStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedServiceStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1Service")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Service");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNode(e,t,i,a,r={}){const s=this.basePath+"/api/v1/nodes/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNode.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNode.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1Node")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Node");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNodeStatus(e,t,i,a,r={}){const s=this.basePath+"/api/v1/nodes/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNodeStatus.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNodeStatus.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1Node")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Node");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replacePersistentVolume(e,t,i,a,r={}){const s=this.basePath+"/api/v1/persistentvolumes/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replacePersistentVolume.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replacePersistentVolume.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1PersistentVolume")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1PersistentVolume");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replacePersistentVolumeStatus(e,t,i,a,r={}){const s=this.basePath+"/api/v1/persistentvolumes/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replacePersistentVolumeStatus.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replacePersistentVolumeStatus.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1PersistentVolume")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1PersistentVolume");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.CoreV1Api=CoreV1Api;var H;(function(e){e[e["BearerToken"]=0]="BearerToken"})(H=t.CustomObjectsApiApiKeys||(t.CustomObjectsApiApiKeys={}));class CustomObjectsApi{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[H[e]].apiKey=t}createClusterCustomObject(e,t,i,a,r,s={}){const o=this.basePath+"/apis/{group}/{version}/{plural}".replace("{"+"group"+"}",encodeURIComponent(String(e))).replace("{"+"version"+"}",encodeURIComponent(String(t))).replace("{"+"plural"+"}",encodeURIComponent(String(i)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter group was null or undefined when calling createClusterCustomObject.")}if(t===null||t===undefined){throw new Error("Required parameter version was null or undefined when calling createClusterCustomObject.")}if(i===null||i===undefined){throw new Error("Required parameter plural was null or undefined when calling createClusterCustomObject.")}if(a===null||a===undefined){throw new Error("Required parameter body was null or undefined when calling createClusterCustomObject.")}if(r!==undefined){u["pretty"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"any");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedCustomObject(e,t,i,a,r,s,o={}){const u=this.basePath+"/apis/{group}/{version}/namespaces/{namespace}/{plural}".replace("{"+"group"+"}",encodeURIComponent(String(e))).replace("{"+"version"+"}",encodeURIComponent(String(t))).replace("{"+"namespace"+"}",encodeURIComponent(String(i))).replace("{"+"plural"+"}",encodeURIComponent(String(a)));let l={};let c=Object.assign({},this.defaultHeaders);let d={};if(e===null||e===undefined){throw new Error("Required parameter group was null or undefined when calling createNamespacedCustomObject.")}if(t===null||t===undefined){throw new Error("Required parameter version was null or undefined when calling createNamespacedCustomObject.")}if(i===null||i===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedCustomObject.")}if(a===null||a===undefined){throw new Error("Required parameter plural was null or undefined when calling createNamespacedCustomObject.")}if(r===null||r===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedCustomObject.")}if(s!==undefined){l["pretty"]=ObjectSerializer.serialize(s,"string")}Object.assign(c,o.headers);let p=false;let f={method:"POST",qs:l,headers:c,uri:u,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(r,"any")};this.authentications.BearerToken.applyToRequest(f);this.authentications.default.applyToRequest(f);if(Object.keys(d).length){if(p){f.formData=d}else{f.form=d}}return new Promise((e,t)=>{n(f,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"any");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteClusterCustomObject(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/{group}/{version}/{plural}/{name}".replace("{"+"group"+"}",encodeURIComponent(String(e))).replace("{"+"version"+"}",encodeURIComponent(String(t))).replace("{"+"plural"+"}",encodeURIComponent(String(i))).replace("{"+"name"+"}",encodeURIComponent(String(a)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter group was null or undefined when calling deleteClusterCustomObject.")}if(t===null||t===undefined){throw new Error("Required parameter version was null or undefined when calling deleteClusterCustomObject.")}if(i===null||i===undefined){throw new Error("Required parameter plural was null or undefined when calling deleteClusterCustomObject.")}if(a===null||a===undefined){throw new Error("Required parameter name was null or undefined when calling deleteClusterCustomObject.")}if(r===null||r===undefined){throw new Error("Required parameter body was null or undefined when calling deleteClusterCustomObject.")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(r,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"any");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedCustomObject(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}".replace("{"+"group"+"}",encodeURIComponent(String(e))).replace("{"+"version"+"}",encodeURIComponent(String(t))).replace("{"+"namespace"+"}",encodeURIComponent(String(i))).replace("{"+"plural"+"}",encodeURIComponent(String(a))).replace("{"+"name"+"}",encodeURIComponent(String(r)));let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e===null||e===undefined){throw new Error("Required parameter group was null or undefined when calling deleteNamespacedCustomObject.")}if(t===null||t===undefined){throw new Error("Required parameter version was null or undefined when calling deleteNamespacedCustomObject.")}if(i===null||i===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedCustomObject.")}if(a===null||a===undefined){throw new Error("Required parameter plural was null or undefined when calling deleteNamespacedCustomObject.")}if(r===null||r===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedCustomObject.")}if(s===null||s===undefined){throw new Error("Required parameter body was null or undefined when calling deleteNamespacedCustomObject.")}if(o!==undefined){p["gracePeriodSeconds"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){p["orphanDependents"]=ObjectSerializer.serialize(u,"boolean")}if(l!==undefined){p["propagationPolicy"]=ObjectSerializer.serialize(l,"string")}Object.assign(f,c.headers);let m=false;let b={method:"DELETE",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(s,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"any");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getClusterCustomObject(e,t,i,a,r={}){const s=this.basePath+"/apis/{group}/{version}/{plural}/{name}".replace("{"+"group"+"}",encodeURIComponent(String(e))).replace("{"+"version"+"}",encodeURIComponent(String(t))).replace("{"+"plural"+"}",encodeURIComponent(String(i))).replace("{"+"name"+"}",encodeURIComponent(String(a)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter group was null or undefined when calling getClusterCustomObject.")}if(t===null||t===undefined){throw new Error("Required parameter version was null or undefined when calling getClusterCustomObject.")}if(i===null||i===undefined){throw new Error("Required parameter plural was null or undefined when calling getClusterCustomObject.")}if(a===null||a===undefined){throw new Error("Required parameter name was null or undefined when calling getClusterCustomObject.")}Object.assign(u,r.headers);let c=false;let d={method:"GET",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"any");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getClusterCustomObjectScale(e,t,i,a,r={}){const s=this.basePath+"/apis/{group}/{version}/{plural}/{name}/scale".replace("{"+"group"+"}",encodeURIComponent(String(e))).replace("{"+"version"+"}",encodeURIComponent(String(t))).replace("{"+"plural"+"}",encodeURIComponent(String(i))).replace("{"+"name"+"}",encodeURIComponent(String(a)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter group was null or undefined when calling getClusterCustomObjectScale.")}if(t===null||t===undefined){throw new Error("Required parameter version was null or undefined when calling getClusterCustomObjectScale.")}if(i===null||i===undefined){throw new Error("Required parameter plural was null or undefined when calling getClusterCustomObjectScale.")}if(a===null||a===undefined){throw new Error("Required parameter name was null or undefined when calling getClusterCustomObjectScale.")}Object.assign(u,r.headers);let c=false;let d={method:"GET",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"any");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getClusterCustomObjectStatus(e,t,i,a,r={}){const s=this.basePath+"/apis/{group}/{version}/{plural}/{name}/status".replace("{"+"group"+"}",encodeURIComponent(String(e))).replace("{"+"version"+"}",encodeURIComponent(String(t))).replace("{"+"plural"+"}",encodeURIComponent(String(i))).replace("{"+"name"+"}",encodeURIComponent(String(a)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter group was null or undefined when calling getClusterCustomObjectStatus.")}if(t===null||t===undefined){throw new Error("Required parameter version was null or undefined when calling getClusterCustomObjectStatus.")}if(i===null||i===undefined){throw new Error("Required parameter plural was null or undefined when calling getClusterCustomObjectStatus.")}if(a===null||a===undefined){throw new Error("Required parameter name was null or undefined when calling getClusterCustomObjectStatus.")}Object.assign(u,r.headers);let c=false;let d={method:"GET",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"any");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getNamespacedCustomObject(e,t,i,a,r,s={}){const o=this.basePath+"/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}".replace("{"+"group"+"}",encodeURIComponent(String(e))).replace("{"+"version"+"}",encodeURIComponent(String(t))).replace("{"+"namespace"+"}",encodeURIComponent(String(i))).replace("{"+"plural"+"}",encodeURIComponent(String(a))).replace("{"+"name"+"}",encodeURIComponent(String(r)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter group was null or undefined when calling getNamespacedCustomObject.")}if(t===null||t===undefined){throw new Error("Required parameter version was null or undefined when calling getNamespacedCustomObject.")}if(i===null||i===undefined){throw new Error("Required parameter namespace was null or undefined when calling getNamespacedCustomObject.")}if(a===null||a===undefined){throw new Error("Required parameter plural was null or undefined when calling getNamespacedCustomObject.")}if(r===null||r===undefined){throw new Error("Required parameter name was null or undefined when calling getNamespacedCustomObject.")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"any");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getNamespacedCustomObjectScale(e,t,i,a,r,s={}){const o=this.basePath+"/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/scale".replace("{"+"group"+"}",encodeURIComponent(String(e))).replace("{"+"version"+"}",encodeURIComponent(String(t))).replace("{"+"namespace"+"}",encodeURIComponent(String(i))).replace("{"+"plural"+"}",encodeURIComponent(String(a))).replace("{"+"name"+"}",encodeURIComponent(String(r)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter group was null or undefined when calling getNamespacedCustomObjectScale.")}if(t===null||t===undefined){throw new Error("Required parameter version was null or undefined when calling getNamespacedCustomObjectScale.")}if(i===null||i===undefined){throw new Error("Required parameter namespace was null or undefined when calling getNamespacedCustomObjectScale.")}if(a===null||a===undefined){throw new Error("Required parameter plural was null or undefined when calling getNamespacedCustomObjectScale.")}if(r===null||r===undefined){throw new Error("Required parameter name was null or undefined when calling getNamespacedCustomObjectScale.")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"any");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getNamespacedCustomObjectStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/status".replace("{"+"group"+"}",encodeURIComponent(String(e))).replace("{"+"version"+"}",encodeURIComponent(String(t))).replace("{"+"namespace"+"}",encodeURIComponent(String(i))).replace("{"+"plural"+"}",encodeURIComponent(String(a))).replace("{"+"name"+"}",encodeURIComponent(String(r)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter group was null or undefined when calling getNamespacedCustomObjectStatus.")}if(t===null||t===undefined){throw new Error("Required parameter version was null or undefined when calling getNamespacedCustomObjectStatus.")}if(i===null||i===undefined){throw new Error("Required parameter namespace was null or undefined when calling getNamespacedCustomObjectStatus.")}if(a===null||a===undefined){throw new Error("Required parameter plural was null or undefined when calling getNamespacedCustomObjectStatus.")}if(r===null||r===undefined){throw new Error("Required parameter name was null or undefined when calling getNamespacedCustomObjectStatus.")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"any");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listClusterCustomObject(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/{group}/{version}/{plural}".replace("{"+"group"+"}",encodeURIComponent(String(e))).replace("{"+"version"+"}",encodeURIComponent(String(t))).replace("{"+"plural"+"}",encodeURIComponent(String(i)));let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e===null||e===undefined){throw new Error("Required parameter group was null or undefined when calling listClusterCustomObject.")}if(t===null||t===undefined){throw new Error("Required parameter version was null or undefined when calling listClusterCustomObject.")}if(i===null||i===undefined){throw new Error("Required parameter plural was null or undefined when calling listClusterCustomObject.")}if(a!==undefined){p["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"any");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedCustomObject(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/{group}/{version}/namespaces/{namespace}/{plural}".replace("{"+"group"+"}",encodeURIComponent(String(e))).replace("{"+"version"+"}",encodeURIComponent(String(t))).replace("{"+"namespace"+"}",encodeURIComponent(String(i))).replace("{"+"plural"+"}",encodeURIComponent(String(a)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter group was null or undefined when calling listNamespacedCustomObject.")}if(t===null||t===undefined){throw new Error("Required parameter version was null or undefined when calling listNamespacedCustomObject.")}if(i===null||i===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedCustomObject.")}if(a===null||a===undefined){throw new Error("Required parameter plural was null or undefined when calling listNamespacedCustomObject.")}if(r!==undefined){f["pretty"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["labelSelector"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"any");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchClusterCustomObject(e,t,i,a,r,s={}){const o=this.basePath+"/apis/{group}/{version}/{plural}/{name}".replace("{"+"group"+"}",encodeURIComponent(String(e))).replace("{"+"version"+"}",encodeURIComponent(String(t))).replace("{"+"plural"+"}",encodeURIComponent(String(i))).replace("{"+"name"+"}",encodeURIComponent(String(a)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter group was null or undefined when calling patchClusterCustomObject.")}if(t===null||t===undefined){throw new Error("Required parameter version was null or undefined when calling patchClusterCustomObject.")}if(i===null||i===undefined){throw new Error("Required parameter plural was null or undefined when calling patchClusterCustomObject.")}if(a===null||a===undefined){throw new Error("Required parameter name was null or undefined when calling patchClusterCustomObject.")}if(r===null||r===undefined){throw new Error("Required parameter body was null or undefined when calling patchClusterCustomObject.")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(r,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"any");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchClusterCustomObjectScale(e,t,i,a,r,s={}){const o=this.basePath+"/apis/{group}/{version}/{plural}/{name}/scale".replace("{"+"group"+"}",encodeURIComponent(String(e))).replace("{"+"version"+"}",encodeURIComponent(String(t))).replace("{"+"plural"+"}",encodeURIComponent(String(i))).replace("{"+"name"+"}",encodeURIComponent(String(a)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter group was null or undefined when calling patchClusterCustomObjectScale.")}if(t===null||t===undefined){throw new Error("Required parameter version was null or undefined when calling patchClusterCustomObjectScale.")}if(i===null||i===undefined){throw new Error("Required parameter plural was null or undefined when calling patchClusterCustomObjectScale.")}if(a===null||a===undefined){throw new Error("Required parameter name was null or undefined when calling patchClusterCustomObjectScale.")}if(r===null||r===undefined){throw new Error("Required parameter body was null or undefined when calling patchClusterCustomObjectScale.")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(r,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"any");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchClusterCustomObjectStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/{group}/{version}/{plural}/{name}/status".replace("{"+"group"+"}",encodeURIComponent(String(e))).replace("{"+"version"+"}",encodeURIComponent(String(t))).replace("{"+"plural"+"}",encodeURIComponent(String(i))).replace("{"+"name"+"}",encodeURIComponent(String(a)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter group was null or undefined when calling patchClusterCustomObjectStatus.")}if(t===null||t===undefined){throw new Error("Required parameter version was null or undefined when calling patchClusterCustomObjectStatus.")}if(i===null||i===undefined){throw new Error("Required parameter plural was null or undefined when calling patchClusterCustomObjectStatus.")}if(a===null||a===undefined){throw new Error("Required parameter name was null or undefined when calling patchClusterCustomObjectStatus.")}if(r===null||r===undefined){throw new Error("Required parameter body was null or undefined when calling patchClusterCustomObjectStatus.")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(r,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"any");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedCustomObject(e,t,i,a,r,s,o={}){const u=this.basePath+"/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}".replace("{"+"group"+"}",encodeURIComponent(String(e))).replace("{"+"version"+"}",encodeURIComponent(String(t))).replace("{"+"namespace"+"}",encodeURIComponent(String(i))).replace("{"+"plural"+"}",encodeURIComponent(String(a))).replace("{"+"name"+"}",encodeURIComponent(String(r)));let l={};let c=Object.assign({},this.defaultHeaders);let d={};if(e===null||e===undefined){throw new Error("Required parameter group was null or undefined when calling patchNamespacedCustomObject.")}if(t===null||t===undefined){throw new Error("Required parameter version was null or undefined when calling patchNamespacedCustomObject.")}if(i===null||i===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedCustomObject.")}if(a===null||a===undefined){throw new Error("Required parameter plural was null or undefined when calling patchNamespacedCustomObject.")}if(r===null||r===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedCustomObject.")}if(s===null||s===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedCustomObject.")}Object.assign(c,o.headers);let p=false;let f={method:"PATCH",qs:l,headers:c,uri:u,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(s,"any")};this.authentications.BearerToken.applyToRequest(f);this.authentications.default.applyToRequest(f);if(Object.keys(d).length){if(p){f.formData=d}else{f.form=d}}return new Promise((e,t)=>{n(f,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"any");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedCustomObjectScale(e,t,i,a,r,s,o={}){const u=this.basePath+"/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/scale".replace("{"+"group"+"}",encodeURIComponent(String(e))).replace("{"+"version"+"}",encodeURIComponent(String(t))).replace("{"+"namespace"+"}",encodeURIComponent(String(i))).replace("{"+"plural"+"}",encodeURIComponent(String(a))).replace("{"+"name"+"}",encodeURIComponent(String(r)));let l={};let c=Object.assign({},this.defaultHeaders);let d={};if(e===null||e===undefined){throw new Error("Required parameter group was null or undefined when calling patchNamespacedCustomObjectScale.")}if(t===null||t===undefined){throw new Error("Required parameter version was null or undefined when calling patchNamespacedCustomObjectScale.")}if(i===null||i===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedCustomObjectScale.")}if(a===null||a===undefined){throw new Error("Required parameter plural was null or undefined when calling patchNamespacedCustomObjectScale.")}if(r===null||r===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedCustomObjectScale.")}if(s===null||s===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedCustomObjectScale.")}Object.assign(c,o.headers);let p=false;let f={method:"PATCH",qs:l,headers:c,uri:u,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(s,"any")};this.authentications.BearerToken.applyToRequest(f);this.authentications.default.applyToRequest(f);if(Object.keys(d).length){if(p){f.formData=d}else{f.form=d}}return new Promise((e,t)=>{n(f,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"any");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedCustomObjectStatus(e,t,i,a,r,s,o={}){const u=this.basePath+"/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/status".replace("{"+"group"+"}",encodeURIComponent(String(e))).replace("{"+"version"+"}",encodeURIComponent(String(t))).replace("{"+"namespace"+"}",encodeURIComponent(String(i))).replace("{"+"plural"+"}",encodeURIComponent(String(a))).replace("{"+"name"+"}",encodeURIComponent(String(r)));let l={};let c=Object.assign({},this.defaultHeaders);let d={};if(e===null||e===undefined){throw new Error("Required parameter group was null or undefined when calling patchNamespacedCustomObjectStatus.")}if(t===null||t===undefined){throw new Error("Required parameter version was null or undefined when calling patchNamespacedCustomObjectStatus.")}if(i===null||i===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedCustomObjectStatus.")}if(a===null||a===undefined){throw new Error("Required parameter plural was null or undefined when calling patchNamespacedCustomObjectStatus.")}if(r===null||r===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedCustomObjectStatus.")}if(s===null||s===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedCustomObjectStatus.")}Object.assign(c,o.headers);let p=false;let f={method:"PATCH",qs:l,headers:c,uri:u,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(s,"any")};this.authentications.BearerToken.applyToRequest(f);this.authentications.default.applyToRequest(f);if(Object.keys(d).length){if(p){f.formData=d}else{f.form=d}}return new Promise((e,t)=>{n(f,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"any");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceClusterCustomObject(e,t,i,a,r,s={}){const o=this.basePath+"/apis/{group}/{version}/{plural}/{name}".replace("{"+"group"+"}",encodeURIComponent(String(e))).replace("{"+"version"+"}",encodeURIComponent(String(t))).replace("{"+"plural"+"}",encodeURIComponent(String(i))).replace("{"+"name"+"}",encodeURIComponent(String(a)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter group was null or undefined when calling replaceClusterCustomObject.")}if(t===null||t===undefined){throw new Error("Required parameter version was null or undefined when calling replaceClusterCustomObject.")}if(i===null||i===undefined){throw new Error("Required parameter plural was null or undefined when calling replaceClusterCustomObject.")}if(a===null||a===undefined){throw new Error("Required parameter name was null or undefined when calling replaceClusterCustomObject.")}if(r===null||r===undefined){throw new Error("Required parameter body was null or undefined when calling replaceClusterCustomObject.")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(r,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"any");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceClusterCustomObjectScale(e,t,i,a,r,s={}){const o=this.basePath+"/apis/{group}/{version}/{plural}/{name}/scale".replace("{"+"group"+"}",encodeURIComponent(String(e))).replace("{"+"version"+"}",encodeURIComponent(String(t))).replace("{"+"plural"+"}",encodeURIComponent(String(i))).replace("{"+"name"+"}",encodeURIComponent(String(a)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter group was null or undefined when calling replaceClusterCustomObjectScale.")}if(t===null||t===undefined){throw new Error("Required parameter version was null or undefined when calling replaceClusterCustomObjectScale.")}if(i===null||i===undefined){throw new Error("Required parameter plural was null or undefined when calling replaceClusterCustomObjectScale.")}if(a===null||a===undefined){throw new Error("Required parameter name was null or undefined when calling replaceClusterCustomObjectScale.")}if(r===null||r===undefined){throw new Error("Required parameter body was null or undefined when calling replaceClusterCustomObjectScale.")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(r,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"any");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceClusterCustomObjectStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/{group}/{version}/{plural}/{name}/status".replace("{"+"group"+"}",encodeURIComponent(String(e))).replace("{"+"version"+"}",encodeURIComponent(String(t))).replace("{"+"plural"+"}",encodeURIComponent(String(i))).replace("{"+"name"+"}",encodeURIComponent(String(a)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter group was null or undefined when calling replaceClusterCustomObjectStatus.")}if(t===null||t===undefined){throw new Error("Required parameter version was null or undefined when calling replaceClusterCustomObjectStatus.")}if(i===null||i===undefined){throw new Error("Required parameter plural was null or undefined when calling replaceClusterCustomObjectStatus.")}if(a===null||a===undefined){throw new Error("Required parameter name was null or undefined when calling replaceClusterCustomObjectStatus.")}if(r===null||r===undefined){throw new Error("Required parameter body was null or undefined when calling replaceClusterCustomObjectStatus.")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(r,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"any");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedCustomObject(e,t,i,a,r,s,o={}){const u=this.basePath+"/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}".replace("{"+"group"+"}",encodeURIComponent(String(e))).replace("{"+"version"+"}",encodeURIComponent(String(t))).replace("{"+"namespace"+"}",encodeURIComponent(String(i))).replace("{"+"plural"+"}",encodeURIComponent(String(a))).replace("{"+"name"+"}",encodeURIComponent(String(r)));let l={};let c=Object.assign({},this.defaultHeaders);let d={};if(e===null||e===undefined){throw new Error("Required parameter group was null or undefined when calling replaceNamespacedCustomObject.")}if(t===null||t===undefined){throw new Error("Required parameter version was null or undefined when calling replaceNamespacedCustomObject.")}if(i===null||i===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedCustomObject.")}if(a===null||a===undefined){throw new Error("Required parameter plural was null or undefined when calling replaceNamespacedCustomObject.")}if(r===null||r===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedCustomObject.")}if(s===null||s===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedCustomObject.")}Object.assign(c,o.headers);let p=false;let f={method:"PUT",qs:l,headers:c,uri:u,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(s,"any")};this.authentications.BearerToken.applyToRequest(f);this.authentications.default.applyToRequest(f);if(Object.keys(d).length){if(p){f.formData=d}else{f.form=d}}return new Promise((e,t)=>{n(f,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"any");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedCustomObjectScale(e,t,i,a,r,s,o={}){const u=this.basePath+"/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/scale".replace("{"+"group"+"}",encodeURIComponent(String(e))).replace("{"+"version"+"}",encodeURIComponent(String(t))).replace("{"+"namespace"+"}",encodeURIComponent(String(i))).replace("{"+"plural"+"}",encodeURIComponent(String(a))).replace("{"+"name"+"}",encodeURIComponent(String(r)));let l={};let c=Object.assign({},this.defaultHeaders);let d={};if(e===null||e===undefined){throw new Error("Required parameter group was null or undefined when calling replaceNamespacedCustomObjectScale.")}if(t===null||t===undefined){throw new Error("Required parameter version was null or undefined when calling replaceNamespacedCustomObjectScale.")}if(i===null||i===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedCustomObjectScale.")}if(a===null||a===undefined){throw new Error("Required parameter plural was null or undefined when calling replaceNamespacedCustomObjectScale.")}if(r===null||r===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedCustomObjectScale.")}if(s===null||s===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedCustomObjectScale.")}Object.assign(c,o.headers);let p=false;let f={method:"PUT",qs:l,headers:c,uri:u,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(s,"any")};this.authentications.BearerToken.applyToRequest(f);this.authentications.default.applyToRequest(f);if(Object.keys(d).length){if(p){f.formData=d}else{f.form=d}}return new Promise((e,t)=>{n(f,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"any");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedCustomObjectStatus(e,t,i,a,r,s,o={}){const u=this.basePath+"/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/status".replace("{"+"group"+"}",encodeURIComponent(String(e))).replace("{"+"version"+"}",encodeURIComponent(String(t))).replace("{"+"namespace"+"}",encodeURIComponent(String(i))).replace("{"+"plural"+"}",encodeURIComponent(String(a))).replace("{"+"name"+"}",encodeURIComponent(String(r)));let l={};let c=Object.assign({},this.defaultHeaders);let d={};if(e===null||e===undefined){throw new Error("Required parameter group was null or undefined when calling replaceNamespacedCustomObjectStatus.")}if(t===null||t===undefined){throw new Error("Required parameter version was null or undefined when calling replaceNamespacedCustomObjectStatus.")}if(i===null||i===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedCustomObjectStatus.")}if(a===null||a===undefined){throw new Error("Required parameter plural was null or undefined when calling replaceNamespacedCustomObjectStatus.")}if(r===null||r===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedCustomObjectStatus.")}if(s===null||s===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedCustomObjectStatus.")}Object.assign(c,o.headers);let p=false;let f={method:"PUT",qs:l,headers:c,uri:u,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(s,"any")};this.authentications.BearerToken.applyToRequest(f);this.authentications.default.applyToRequest(f);if(Object.keys(d).length){if(p){f.formData=d}else{f.form=d}}return new Promise((e,t)=>{n(f,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"any");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.CustomObjectsApi=CustomObjectsApi;var Q;(function(e){e[e["BearerToken"]=0]="BearerToken"})(Q=t.EventsApiApiKeys||(t.EventsApiApiKeys={}));class EventsApi{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[Q[e]].apiKey=t}getAPIGroup(e={}){const t=this.basePath+"/apis/events.k8s.io/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIGroup");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.EventsApi=EventsApi;var W;(function(e){e[e["BearerToken"]=0]="BearerToken"})(W=t.EventsV1beta1ApiApiKeys||(t.EventsV1beta1ApiApiKeys={}));class EventsV1beta1Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[W[e]].apiKey=t}createNamespacedEvent(e,t,i,a,r,s={}){const o=this.basePath+"/apis/events.k8s.io/v1beta1/namespaces/{namespace}/events".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedEvent.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedEvent.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1beta1Event")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1Event");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedEvent(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/events.k8s.io/v1beta1/namespaces/{namespace}/events".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedEvent.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedEvent(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/events.k8s.io/v1beta1/namespaces/{namespace}/events/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedEvent.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedEvent.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/apis/events.k8s.io/v1beta1/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listEventForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/events.k8s.io/v1beta1/events";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1EventList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedEvent(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/events.k8s.io/v1beta1/namespaces/{namespace}/events".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedEvent.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1EventList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedEvent(e,t,i,a,r,s={}){const o=this.basePath+"/apis/events.k8s.io/v1beta1/namespaces/{namespace}/events/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedEvent.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedEvent.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedEvent.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1Event");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedEvent(e,t,i,a,r,s={}){const o=this.basePath+"/apis/events.k8s.io/v1beta1/namespaces/{namespace}/events/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedEvent.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedEvent.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1Event");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedEvent(e,t,i,a,r,s={}){const o=this.basePath+"/apis/events.k8s.io/v1beta1/namespaces/{namespace}/events/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedEvent.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedEvent.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedEvent.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1beta1Event")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1Event");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.EventsV1beta1Api=EventsV1beta1Api;var G;(function(e){e[e["BearerToken"]=0]="BearerToken"})(G=t.ExtensionsApiApiKeys||(t.ExtensionsApiApiKeys={}));class ExtensionsApi{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[G[e]].apiKey=t}getAPIGroup(e={}){const t=this.basePath+"/apis/extensions/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIGroup");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.ExtensionsApi=ExtensionsApi;var K;(function(e){e[e["BearerToken"]=0]="BearerToken"})(K=t.ExtensionsV1beta1ApiApiKeys||(t.ExtensionsV1beta1ApiApiKeys={}));class ExtensionsV1beta1Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[K[e]].apiKey=t}createNamespacedDaemonSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedDaemonSet.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedDaemonSet.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1beta1DaemonSet")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1DaemonSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedDeployment(e,t,i,a,r,s={}){const o=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/deployments".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedDeployment.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedDeployment.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"ExtensionsV1beta1Deployment")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"ExtensionsV1beta1Deployment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedDeploymentRollback(e,t,i,a,r,s,o={}){const u=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/rollback".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let l={};let c=Object.assign({},this.defaultHeaders);let d={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling createNamespacedDeploymentRollback.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedDeploymentRollback.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedDeploymentRollback.")}if(a!==undefined){l["dryRun"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){l["includeUninitialized"]=ObjectSerializer.serialize(r,"boolean")}if(s!==undefined){l["pretty"]=ObjectSerializer.serialize(s,"string")}Object.assign(c,o.headers);let p=false;let f={method:"POST",qs:l,headers:c,uri:u,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"ExtensionsV1beta1DeploymentRollback")};this.authentications.BearerToken.applyToRequest(f);this.authentications.default.applyToRequest(f);if(Object.keys(d).length){if(p){f.formData=d}else{f.form=d}}return new Promise((e,t)=>{n(f,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedIngress(e,t,i,a,r,s={}){const o=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/ingresses".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedIngress.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedIngress.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1beta1Ingress")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1Ingress");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedNetworkPolicy(e,t,i,a,r,s={}){const o=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedNetworkPolicy.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedNetworkPolicy.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1beta1NetworkPolicy")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1NetworkPolicy");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedReplicaSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/replicasets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedReplicaSet.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedReplicaSet.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1beta1ReplicaSet")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1ReplicaSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createPodSecurityPolicy(e,t,i,a,r={}){const s=this.basePath+"/apis/extensions/v1beta1/podsecuritypolicies";let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter body was null or undefined when calling createPodSecurityPolicy.")}if(t!==undefined){o["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(e,"ExtensionsV1beta1PodSecurityPolicy")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"ExtensionsV1beta1PodSecurityPolicy");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedDaemonSet(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedDaemonSet.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedDeployment(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/deployments".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedDeployment.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedIngress(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/ingresses".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedIngress.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedNetworkPolicy(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedNetworkPolicy.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedReplicaSet(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/replicasets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedReplicaSet.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionPodSecurityPolicy(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/extensions/v1beta1/podsecuritypolicies";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"DELETE",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedDaemonSet(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedDaemonSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedDaemonSet.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedDeployment(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedDeployment.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedDeployment.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedIngress(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedIngress.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedIngress.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedNetworkPolicy(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedNetworkPolicy.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedNetworkPolicy.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedReplicaSet(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedReplicaSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedReplicaSet.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deletePodSecurityPolicy(e,t,i,a,r,s,o,u={}){const l=this.basePath+"/apis/extensions/v1beta1/podsecuritypolicies/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let c={};let d=Object.assign({},this.defaultHeaders);let p={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deletePodSecurityPolicy.")}if(t!==undefined){c["pretty"]=ObjectSerializer.serialize(t,"string")}if(a!==undefined){c["dryRun"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){c["gracePeriodSeconds"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){c["orphanDependents"]=ObjectSerializer.serialize(s,"boolean")}if(o!==undefined){c["propagationPolicy"]=ObjectSerializer.serialize(o,"string")}Object.assign(d,u.headers);let f=false;let h={method:"DELETE",qs:c,headers:d,uri:l,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(h);this.authentications.default.applyToRequest(h);if(Object.keys(p).length){if(f){h.formData=p}else{h.form=p}}return new Promise((e,t)=>{n(h,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/apis/extensions/v1beta1/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listDaemonSetForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/extensions/v1beta1/daemonsets";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1DaemonSetList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listDeploymentForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/extensions/v1beta1/deployments";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"ExtensionsV1beta1DeploymentList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listIngressForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/extensions/v1beta1/ingresses";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1IngressList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedDaemonSet(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedDaemonSet.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1DaemonSetList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedDeployment(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/deployments".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedDeployment.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"ExtensionsV1beta1DeploymentList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedIngress(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/ingresses".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedIngress.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1IngressList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedNetworkPolicy(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedNetworkPolicy.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1NetworkPolicyList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedReplicaSet(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/replicasets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedReplicaSet.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1ReplicaSetList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNetworkPolicyForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/extensions/v1beta1/networkpolicies";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1NetworkPolicyList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listPodSecurityPolicy(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/extensions/v1beta1/podsecuritypolicies";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"ExtensionsV1beta1PodSecurityPolicyList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listReplicaSetForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/extensions/v1beta1/replicasets";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1ReplicaSetList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedDaemonSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedDaemonSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedDaemonSet.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedDaemonSet.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1DaemonSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedDaemonSetStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedDaemonSetStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedDaemonSetStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedDaemonSetStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1DaemonSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedDeployment(e,t,i,a,r,s={}){const o=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedDeployment.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedDeployment.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedDeployment.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"ExtensionsV1beta1Deployment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedDeploymentScale(e,t,i,a,r,s={}){const o=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedDeploymentScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedDeploymentScale.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedDeploymentScale.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"ExtensionsV1beta1Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedDeploymentStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedDeploymentStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedDeploymentStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedDeploymentStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"ExtensionsV1beta1Deployment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedIngress(e,t,i,a,r,s={}){const o=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedIngress.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedIngress.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedIngress.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1Ingress");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedIngressStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedIngressStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedIngressStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedIngressStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1Ingress");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedNetworkPolicy(e,t,i,a,r,s={}){const o=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedNetworkPolicy.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedNetworkPolicy.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedNetworkPolicy.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1NetworkPolicy");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedReplicaSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedReplicaSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedReplicaSet.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedReplicaSet.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1ReplicaSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedReplicaSetScale(e,t,i,a,r,s={}){const o=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedReplicaSetScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedReplicaSetScale.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedReplicaSetScale.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"ExtensionsV1beta1Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedReplicaSetStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedReplicaSetStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedReplicaSetStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedReplicaSetStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1ReplicaSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedReplicationControllerDummyScale(e,t,i,a,r,s={}){const o=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/replicationcontrollers/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedReplicationControllerDummyScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedReplicationControllerDummyScale.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedReplicationControllerDummyScale.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"ExtensionsV1beta1Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchPodSecurityPolicy(e,t,i,a,r={}){const s=this.basePath+"/apis/extensions/v1beta1/podsecuritypolicies/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchPodSecurityPolicy.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling patchPodSecurityPolicy.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"any")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"ExtensionsV1beta1PodSecurityPolicy");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedDaemonSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedDaemonSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedDaemonSet.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1DaemonSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedDaemonSetStatus(e,t,i,a={}){const r=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedDaemonSetStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedDaemonSetStatus.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1DaemonSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedDeployment(e,t,i,a,r,s={}){const o=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedDeployment.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedDeployment.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"ExtensionsV1beta1Deployment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedDeploymentScale(e,t,i,a={}){const r=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedDeploymentScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedDeploymentScale.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"ExtensionsV1beta1Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedDeploymentStatus(e,t,i,a={}){const r=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedDeploymentStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedDeploymentStatus.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"ExtensionsV1beta1Deployment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedIngress(e,t,i,a,r,s={}){const o=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedIngress.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedIngress.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1Ingress");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedIngressStatus(e,t,i,a={}){const r=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedIngressStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedIngressStatus.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1Ingress");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedNetworkPolicy(e,t,i,a,r,s={}){const o=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedNetworkPolicy.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedNetworkPolicy.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1NetworkPolicy");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedReplicaSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedReplicaSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedReplicaSet.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1ReplicaSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedReplicaSetScale(e,t,i,a={}){const r=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedReplicaSetScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedReplicaSetScale.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"ExtensionsV1beta1Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedReplicaSetStatus(e,t,i,a={}){const r=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedReplicaSetStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedReplicaSetStatus.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1ReplicaSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedReplicationControllerDummyScale(e,t,i,a={}){const r=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/replicationcontrollers/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedReplicationControllerDummyScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedReplicationControllerDummyScale.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"ExtensionsV1beta1Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readPodSecurityPolicy(e,t,i,a,r={}){const s=this.basePath+"/apis/extensions/v1beta1/podsecuritypolicies/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readPodSecurityPolicy.")}if(t!==undefined){o["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){o["exact"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){o["export"]=ObjectSerializer.serialize(a,"boolean")}Object.assign(u,r.headers);let c=false;let d={method:"GET",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"ExtensionsV1beta1PodSecurityPolicy");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedDaemonSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedDaemonSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedDaemonSet.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedDaemonSet.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1beta1DaemonSet")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1DaemonSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedDaemonSetStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedDaemonSetStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedDaemonSetStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedDaemonSetStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1beta1DaemonSet")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1DaemonSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedDeployment(e,t,i,a,r,s={}){const o=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedDeployment.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedDeployment.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedDeployment.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"ExtensionsV1beta1Deployment")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"ExtensionsV1beta1Deployment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedDeploymentScale(e,t,i,a,r,s={}){const o=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedDeploymentScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedDeploymentScale.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedDeploymentScale.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"ExtensionsV1beta1Scale")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"ExtensionsV1beta1Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedDeploymentStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedDeploymentStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedDeploymentStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedDeploymentStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"ExtensionsV1beta1Deployment")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"ExtensionsV1beta1Deployment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedIngress(e,t,i,a,r,s={}){const o=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedIngress.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedIngress.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedIngress.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1beta1Ingress")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1Ingress");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedIngressStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedIngressStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedIngressStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedIngressStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1beta1Ingress")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1Ingress");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedNetworkPolicy(e,t,i,a,r,s={}){const o=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedNetworkPolicy.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedNetworkPolicy.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedNetworkPolicy.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1beta1NetworkPolicy")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1NetworkPolicy");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedReplicaSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedReplicaSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedReplicaSet.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedReplicaSet.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1beta1ReplicaSet")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1ReplicaSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedReplicaSetScale(e,t,i,a,r,s={}){const o=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedReplicaSetScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedReplicaSetScale.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedReplicaSetScale.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"ExtensionsV1beta1Scale")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"ExtensionsV1beta1Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedReplicaSetStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedReplicaSetStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedReplicaSetStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedReplicaSetStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1beta1ReplicaSet")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1ReplicaSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedReplicationControllerDummyScale(e,t,i,a,r,s={}){const o=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/replicationcontrollers/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedReplicationControllerDummyScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedReplicationControllerDummyScale.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedReplicationControllerDummyScale.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"ExtensionsV1beta1Scale")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"ExtensionsV1beta1Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replacePodSecurityPolicy(e,t,i,a,r={}){const s=this.basePath+"/apis/extensions/v1beta1/podsecuritypolicies/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replacePodSecurityPolicy.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replacePodSecurityPolicy.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"ExtensionsV1beta1PodSecurityPolicy")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"ExtensionsV1beta1PodSecurityPolicy");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.ExtensionsV1beta1Api=ExtensionsV1beta1Api;var J;(function(e){e[e["BearerToken"]=0]="BearerToken"})(J=t.LogsApiApiKeys||(t.LogsApiApiKeys={}));class LogsApi{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[J[e]].apiKey=t}logFileHandler(e,t={}){const i=this.basePath+"/logs/{logpath}".replace("{"+"logpath"+"}",encodeURIComponent(String(e)));let a={};let r=Object.assign({},this.defaultHeaders);let s={};if(e===null||e===undefined){throw new Error("Required parameter logpath was null or undefined when calling logFileHandler.")}Object.assign(r,t.headers);let o=false;let u={method:"GET",qs:a,headers:r,uri:i,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(u);this.authentications.default.applyToRequest(u);if(Object.keys(s).length){if(o){u.formData=s}else{u.form=s}}return new Promise((e,t)=>{n(u,(i,n,a)=>{if(i){t(i)}else{if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}logFileListHandler(e={}){const t=this.basePath+"/logs/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.LogsApi=LogsApi;var F;(function(e){e[e["BearerToken"]=0]="BearerToken"})(F=t.NetworkingApiApiKeys||(t.NetworkingApiApiKeys={}));class NetworkingApi{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[F[e]].apiKey=t}getAPIGroup(e={}){const t=this.basePath+"/apis/networking.k8s.io/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIGroup");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.NetworkingApi=NetworkingApi;var Y;(function(e){e[e["BearerToken"]=0]="BearerToken"})(Y=t.NetworkingV1ApiApiKeys||(t.NetworkingV1ApiApiKeys={}));class NetworkingV1Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[Y[e]].apiKey=t}createNamespacedNetworkPolicy(e,t,i,a,r,s={}){const o=this.basePath+"/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedNetworkPolicy.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedNetworkPolicy.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1NetworkPolicy")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1NetworkPolicy");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedNetworkPolicy(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedNetworkPolicy.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedNetworkPolicy(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedNetworkPolicy.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedNetworkPolicy.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/apis/networking.k8s.io/v1/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedNetworkPolicy(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedNetworkPolicy.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1NetworkPolicyList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNetworkPolicyForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/networking.k8s.io/v1/networkpolicies";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1NetworkPolicyList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedNetworkPolicy(e,t,i,a,r,s={}){const o=this.basePath+"/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedNetworkPolicy.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedNetworkPolicy.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedNetworkPolicy.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1NetworkPolicy");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedNetworkPolicy(e,t,i,a,r,s={}){const o=this.basePath+"/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedNetworkPolicy.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedNetworkPolicy.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1NetworkPolicy");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedNetworkPolicy(e,t,i,a,r,s={}){const o=this.basePath+"/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedNetworkPolicy.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedNetworkPolicy.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedNetworkPolicy.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1NetworkPolicy")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1NetworkPolicy");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.NetworkingV1Api=NetworkingV1Api;var X;(function(e){e[e["BearerToken"]=0]="BearerToken"})(X=t.PolicyApiApiKeys||(t.PolicyApiApiKeys={}));class PolicyApi{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[X[e]].apiKey=t}getAPIGroup(e={}){const t=this.basePath+"/apis/policy/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIGroup");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.PolicyApi=PolicyApi;var Z;(function(e){e[e["BearerToken"]=0]="BearerToken"})(Z=t.PolicyV1beta1ApiApiKeys||(t.PolicyV1beta1ApiApiKeys={}));class PolicyV1beta1Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[Z[e]].apiKey=t}createNamespacedPodDisruptionBudget(e,t,i,a,r,s={}){const o=this.basePath+"/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedPodDisruptionBudget.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedPodDisruptionBudget.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1beta1PodDisruptionBudget")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1PodDisruptionBudget");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createPodSecurityPolicy(e,t,i,a,r={}){const s=this.basePath+"/apis/policy/v1beta1/podsecuritypolicies";let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter body was null or undefined when calling createPodSecurityPolicy.")}if(t!==undefined){o["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(e,"PolicyV1beta1PodSecurityPolicy")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"PolicyV1beta1PodSecurityPolicy");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedPodDisruptionBudget(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedPodDisruptionBudget.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionPodSecurityPolicy(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/policy/v1beta1/podsecuritypolicies";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"DELETE",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedPodDisruptionBudget(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedPodDisruptionBudget.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedPodDisruptionBudget.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deletePodSecurityPolicy(e,t,i,a,r,s,o,u={}){const l=this.basePath+"/apis/policy/v1beta1/podsecuritypolicies/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let c={};let d=Object.assign({},this.defaultHeaders);let p={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deletePodSecurityPolicy.")}if(t!==undefined){c["pretty"]=ObjectSerializer.serialize(t,"string")}if(a!==undefined){c["dryRun"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){c["gracePeriodSeconds"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){c["orphanDependents"]=ObjectSerializer.serialize(s,"boolean")}if(o!==undefined){c["propagationPolicy"]=ObjectSerializer.serialize(o,"string")}Object.assign(d,u.headers);let f=false;let h={method:"DELETE",qs:c,headers:d,uri:l,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(h);this.authentications.default.applyToRequest(h);if(Object.keys(p).length){if(f){h.formData=p}else{h.form=p}}return new Promise((e,t)=>{n(h,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/apis/policy/v1beta1/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedPodDisruptionBudget(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedPodDisruptionBudget.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1PodDisruptionBudgetList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listPodDisruptionBudgetForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/policy/v1beta1/poddisruptionbudgets";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1PodDisruptionBudgetList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listPodSecurityPolicy(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/policy/v1beta1/podsecuritypolicies";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"PolicyV1beta1PodSecurityPolicyList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedPodDisruptionBudget(e,t,i,a,r,s={}){const o=this.basePath+"/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedPodDisruptionBudget.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedPodDisruptionBudget.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedPodDisruptionBudget.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1PodDisruptionBudget");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedPodDisruptionBudgetStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedPodDisruptionBudgetStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedPodDisruptionBudgetStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedPodDisruptionBudgetStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1PodDisruptionBudget");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchPodSecurityPolicy(e,t,i,a,r={}){const s=this.basePath+"/apis/policy/v1beta1/podsecuritypolicies/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchPodSecurityPolicy.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling patchPodSecurityPolicy.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"any")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"PolicyV1beta1PodSecurityPolicy");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedPodDisruptionBudget(e,t,i,a,r,s={}){const o=this.basePath+"/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedPodDisruptionBudget.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedPodDisruptionBudget.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1PodDisruptionBudget");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedPodDisruptionBudgetStatus(e,t,i,a={}){const r=this.basePath+"/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedPodDisruptionBudgetStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedPodDisruptionBudgetStatus.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1PodDisruptionBudget");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readPodSecurityPolicy(e,t,i,a,r={}){const s=this.basePath+"/apis/policy/v1beta1/podsecuritypolicies/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readPodSecurityPolicy.")}if(t!==undefined){o["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){o["exact"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){o["export"]=ObjectSerializer.serialize(a,"boolean")}Object.assign(u,r.headers);let c=false;let d={method:"GET",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"PolicyV1beta1PodSecurityPolicy");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedPodDisruptionBudget(e,t,i,a,r,s={}){const o=this.basePath+"/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedPodDisruptionBudget.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedPodDisruptionBudget.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedPodDisruptionBudget.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1beta1PodDisruptionBudget")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1PodDisruptionBudget");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedPodDisruptionBudgetStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedPodDisruptionBudgetStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedPodDisruptionBudgetStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedPodDisruptionBudgetStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1beta1PodDisruptionBudget")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1PodDisruptionBudget");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replacePodSecurityPolicy(e,t,i,a,r={}){const s=this.basePath+"/apis/policy/v1beta1/podsecuritypolicies/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replacePodSecurityPolicy.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replacePodSecurityPolicy.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"PolicyV1beta1PodSecurityPolicy")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"PolicyV1beta1PodSecurityPolicy");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.PolicyV1beta1Api=PolicyV1beta1Api;var $;(function(e){e[e["BearerToken"]=0]="BearerToken"})($=t.RbacAuthorizationApiApiKeys||(t.RbacAuthorizationApiApiKeys={}));class RbacAuthorizationApi{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[$[e]].apiKey=t}getAPIGroup(e={}){const t=this.basePath+"/apis/rbac.authorization.k8s.io/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIGroup");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.RbacAuthorizationApi=RbacAuthorizationApi;var ee;(function(e){e[e["BearerToken"]=0]="BearerToken"})(ee=t.RbacAuthorizationV1ApiApiKeys||(t.RbacAuthorizationV1ApiApiKeys={}));class RbacAuthorizationV1Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[ee[e]].apiKey=t}createClusterRole(e,t,i,a,r={}){const s=this.basePath+"/apis/rbac.authorization.k8s.io/v1/clusterroles";let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter body was null or undefined when calling createClusterRole.")}if(t!==undefined){o["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(e,"V1ClusterRole")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ClusterRole");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createClusterRoleBinding(e,t,i,a,r={}){const s=this.basePath+"/apis/rbac.authorization.k8s.io/v1/clusterrolebindings";let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter body was null or undefined when calling createClusterRoleBinding.")}if(t!==undefined){o["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(e,"V1ClusterRoleBinding")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ClusterRoleBinding");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedRole(e,t,i,a,r,s={}){const o=this.basePath+"/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedRole.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedRole.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1Role")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Role");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedRoleBinding(e,t,i,a,r,s={}){const o=this.basePath+"/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedRoleBinding.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedRoleBinding.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1RoleBinding")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1RoleBinding");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteClusterRole(e,t,i,a,r,s,o,u={}){const l=this.basePath+"/apis/rbac.authorization.k8s.io/v1/clusterroles/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let c={};let d=Object.assign({},this.defaultHeaders);let p={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteClusterRole.")}if(t!==undefined){c["pretty"]=ObjectSerializer.serialize(t,"string")}if(a!==undefined){c["dryRun"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){c["gracePeriodSeconds"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){c["orphanDependents"]=ObjectSerializer.serialize(s,"boolean")}if(o!==undefined){c["propagationPolicy"]=ObjectSerializer.serialize(o,"string")}Object.assign(d,u.headers);let f=false;let h={method:"DELETE",qs:c,headers:d,uri:l,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(h);this.authentications.default.applyToRequest(h);if(Object.keys(p).length){if(f){h.formData=p}else{h.form=p}}return new Promise((e,t)=>{n(h,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteClusterRoleBinding(e,t,i,a,r,s,o,u={}){const l=this.basePath+"/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let c={};let d=Object.assign({},this.defaultHeaders);let p={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteClusterRoleBinding.")}if(t!==undefined){c["pretty"]=ObjectSerializer.serialize(t,"string")}if(a!==undefined){c["dryRun"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){c["gracePeriodSeconds"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){c["orphanDependents"]=ObjectSerializer.serialize(s,"boolean")}if(o!==undefined){c["propagationPolicy"]=ObjectSerializer.serialize(o,"string")}Object.assign(d,u.headers);let f=false;let h={method:"DELETE",qs:c,headers:d,uri:l,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(h);this.authentications.default.applyToRequest(h);if(Object.keys(p).length){if(f){h.formData=p}else{h.form=p}}return new Promise((e,t)=>{n(h,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionClusterRole(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/rbac.authorization.k8s.io/v1/clusterroles";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"DELETE",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionClusterRoleBinding(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/rbac.authorization.k8s.io/v1/clusterrolebindings";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"DELETE",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedRole(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedRole.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedRoleBinding(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedRoleBinding.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedRole(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedRole.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedRole.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedRoleBinding(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedRoleBinding.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedRoleBinding.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/apis/rbac.authorization.k8s.io/v1/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listClusterRole(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/rbac.authorization.k8s.io/v1/clusterroles";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ClusterRoleList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listClusterRoleBinding(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/rbac.authorization.k8s.io/v1/clusterrolebindings";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ClusterRoleBindingList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedRole(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedRole.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1RoleList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedRoleBinding(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedRoleBinding.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1RoleBindingList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listRoleBindingForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/rbac.authorization.k8s.io/v1/rolebindings";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1RoleBindingList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listRoleForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/rbac.authorization.k8s.io/v1/roles";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1RoleList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchClusterRole(e,t,i,a,r={}){const s=this.basePath+"/apis/rbac.authorization.k8s.io/v1/clusterroles/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchClusterRole.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling patchClusterRole.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"any")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ClusterRole");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchClusterRoleBinding(e,t,i,a,r={}){const s=this.basePath+"/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchClusterRoleBinding.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling patchClusterRoleBinding.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"any")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ClusterRoleBinding");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedRole(e,t,i,a,r,s={}){const o=this.basePath+"/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedRole.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedRole.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedRole.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Role");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedRoleBinding(e,t,i,a,r,s={}){const o=this.basePath+"/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedRoleBinding.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedRoleBinding.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedRoleBinding.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1RoleBinding");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readClusterRole(e,t,i={}){const a=this.basePath+"/apis/rbac.authorization.k8s.io/v1/clusterroles/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let r={};let s=Object.assign({},this.defaultHeaders);let o={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readClusterRole.")}if(t!==undefined){r["pretty"]=ObjectSerializer.serialize(t,"string")}Object.assign(s,i.headers);let u=false;let l={method:"GET",qs:r,headers:s,uri:a,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(l);this.authentications.default.applyToRequest(l);if(Object.keys(o).length){if(u){l.formData=o}else{l.form=o}}return new Promise((e,t)=>{n(l,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ClusterRole");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readClusterRoleBinding(e,t,i={}){const a=this.basePath+"/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let r={};let s=Object.assign({},this.defaultHeaders);let o={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readClusterRoleBinding.")}if(t!==undefined){r["pretty"]=ObjectSerializer.serialize(t,"string")}Object.assign(s,i.headers);let u=false;let l={method:"GET",qs:r,headers:s,uri:a,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(l);this.authentications.default.applyToRequest(l);if(Object.keys(o).length){if(u){l.formData=o}else{l.form=o}}return new Promise((e,t)=>{n(l,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ClusterRoleBinding");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedRole(e,t,i,a={}){const r=this.basePath+"/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedRole.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedRole.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Role");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedRoleBinding(e,t,i,a={}){const r=this.basePath+"/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedRoleBinding.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedRoleBinding.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1RoleBinding");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceClusterRole(e,t,i,a,r={}){const s=this.basePath+"/apis/rbac.authorization.k8s.io/v1/clusterroles/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceClusterRole.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replaceClusterRole.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1ClusterRole")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ClusterRole");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceClusterRoleBinding(e,t,i,a,r={}){const s=this.basePath+"/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceClusterRoleBinding.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replaceClusterRoleBinding.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1ClusterRoleBinding")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ClusterRoleBinding");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedRole(e,t,i,a,r,s={}){const o=this.basePath+"/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedRole.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedRole.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedRole.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1Role")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Role");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedRoleBinding(e,t,i,a,r,s={}){const o=this.basePath+"/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedRoleBinding.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedRoleBinding.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedRoleBinding.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1RoleBinding")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1RoleBinding");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.RbacAuthorizationV1Api=RbacAuthorizationV1Api;var te;(function(e){e[e["BearerToken"]=0]="BearerToken"})(te=t.RbacAuthorizationV1alpha1ApiApiKeys||(t.RbacAuthorizationV1alpha1ApiApiKeys={}));class RbacAuthorizationV1alpha1Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[te[e]].apiKey=t}createClusterRole(e,t,i,a,r={}){const s=this.basePath+"/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles";let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter body was null or undefined when calling createClusterRole.")}if(t!==undefined){o["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(e,"V1alpha1ClusterRole")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1ClusterRole");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createClusterRoleBinding(e,t,i,a,r={}){const s=this.basePath+"/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings";let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter body was null or undefined when calling createClusterRoleBinding.")}if(t!==undefined){o["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(e,"V1alpha1ClusterRoleBinding")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1ClusterRoleBinding");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedRole(e,t,i,a,r,s={}){const o=this.basePath+"/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedRole.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedRole.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1alpha1Role")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1Role");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedRoleBinding(e,t,i,a,r,s={}){const o=this.basePath+"/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedRoleBinding.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedRoleBinding.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1alpha1RoleBinding")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1RoleBinding");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteClusterRole(e,t,i,a,r,s,o,u={}){const l=this.basePath+"/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let c={};let d=Object.assign({},this.defaultHeaders);let p={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteClusterRole.")}if(t!==undefined){c["pretty"]=ObjectSerializer.serialize(t,"string")}if(a!==undefined){c["dryRun"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){c["gracePeriodSeconds"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){c["orphanDependents"]=ObjectSerializer.serialize(s,"boolean")}if(o!==undefined){c["propagationPolicy"]=ObjectSerializer.serialize(o,"string")}Object.assign(d,u.headers);let f=false;let h={method:"DELETE",qs:c,headers:d,uri:l,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(h);this.authentications.default.applyToRequest(h);if(Object.keys(p).length){if(f){h.formData=p}else{h.form=p}}return new Promise((e,t)=>{n(h,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteClusterRoleBinding(e,t,i,a,r,s,o,u={}){const l=this.basePath+"/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let c={};let d=Object.assign({},this.defaultHeaders);let p={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteClusterRoleBinding.")}if(t!==undefined){c["pretty"]=ObjectSerializer.serialize(t,"string")}if(a!==undefined){c["dryRun"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){c["gracePeriodSeconds"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){c["orphanDependents"]=ObjectSerializer.serialize(s,"boolean")}if(o!==undefined){c["propagationPolicy"]=ObjectSerializer.serialize(o,"string")}Object.assign(d,u.headers);let f=false;let h={method:"DELETE",qs:c,headers:d,uri:l,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(h);this.authentications.default.applyToRequest(h);if(Object.keys(p).length){if(f){h.formData=p}else{h.form=p}}return new Promise((e,t)=>{n(h,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionClusterRole(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"DELETE",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionClusterRoleBinding(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"DELETE",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedRole(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedRole.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedRoleBinding(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedRoleBinding.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedRole(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedRole.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedRole.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedRoleBinding(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedRoleBinding.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedRoleBinding.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/apis/rbac.authorization.k8s.io/v1alpha1/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listClusterRole(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1ClusterRoleList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listClusterRoleBinding(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1ClusterRoleBindingList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedRole(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedRole.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1RoleList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedRoleBinding(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedRoleBinding.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1RoleBindingList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listRoleBindingForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/rbac.authorization.k8s.io/v1alpha1/rolebindings";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1RoleBindingList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listRoleForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/rbac.authorization.k8s.io/v1alpha1/roles";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1RoleList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchClusterRole(e,t,i,a,r={}){const s=this.basePath+"/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchClusterRole.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling patchClusterRole.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"any")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1ClusterRole");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchClusterRoleBinding(e,t,i,a,r={}){const s=this.basePath+"/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchClusterRoleBinding.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling patchClusterRoleBinding.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"any")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1ClusterRoleBinding");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedRole(e,t,i,a,r,s={}){const o=this.basePath+"/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedRole.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedRole.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedRole.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1Role");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedRoleBinding(e,t,i,a,r,s={}){const o=this.basePath+"/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedRoleBinding.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedRoleBinding.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedRoleBinding.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1RoleBinding");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readClusterRole(e,t,i={}){const a=this.basePath+"/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let r={};let s=Object.assign({},this.defaultHeaders);let o={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readClusterRole.")}if(t!==undefined){r["pretty"]=ObjectSerializer.serialize(t,"string")}Object.assign(s,i.headers);let u=false;let l={method:"GET",qs:r,headers:s,uri:a,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(l);this.authentications.default.applyToRequest(l);if(Object.keys(o).length){if(u){l.formData=o}else{l.form=o}}return new Promise((e,t)=>{n(l,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1ClusterRole");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readClusterRoleBinding(e,t,i={}){const a=this.basePath+"/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let r={};let s=Object.assign({},this.defaultHeaders);let o={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readClusterRoleBinding.")}if(t!==undefined){r["pretty"]=ObjectSerializer.serialize(t,"string")}Object.assign(s,i.headers);let u=false;let l={method:"GET",qs:r,headers:s,uri:a,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(l);this.authentications.default.applyToRequest(l);if(Object.keys(o).length){if(u){l.formData=o}else{l.form=o}}return new Promise((e,t)=>{n(l,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1ClusterRoleBinding");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedRole(e,t,i,a={}){const r=this.basePath+"/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedRole.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedRole.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1Role");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedRoleBinding(e,t,i,a={}){const r=this.basePath+"/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedRoleBinding.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedRoleBinding.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1RoleBinding");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceClusterRole(e,t,i,a,r={}){const s=this.basePath+"/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceClusterRole.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replaceClusterRole.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1alpha1ClusterRole")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1ClusterRole");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceClusterRoleBinding(e,t,i,a,r={}){const s=this.basePath+"/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceClusterRoleBinding.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replaceClusterRoleBinding.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1alpha1ClusterRoleBinding")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1ClusterRoleBinding");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedRole(e,t,i,a,r,s={}){const o=this.basePath+"/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedRole.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedRole.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedRole.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1alpha1Role")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1Role");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedRoleBinding(e,t,i,a,r,s={}){const o=this.basePath+"/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedRoleBinding.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedRoleBinding.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedRoleBinding.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1alpha1RoleBinding")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1RoleBinding");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.RbacAuthorizationV1alpha1Api=RbacAuthorizationV1alpha1Api;var ie;(function(e){e[e["BearerToken"]=0]="BearerToken"})(ie=t.RbacAuthorizationV1beta1ApiApiKeys||(t.RbacAuthorizationV1beta1ApiApiKeys={}));class RbacAuthorizationV1beta1Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[ie[e]].apiKey=t}createClusterRole(e,t,i,a,r={}){const s=this.basePath+"/apis/rbac.authorization.k8s.io/v1beta1/clusterroles";let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter body was null or undefined when calling createClusterRole.")}if(t!==undefined){o["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(e,"V1beta1ClusterRole")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1ClusterRole");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createClusterRoleBinding(e,t,i,a,r={}){const s=this.basePath+"/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings";let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter body was null or undefined when calling createClusterRoleBinding.")}if(t!==undefined){o["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(e,"V1beta1ClusterRoleBinding")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1ClusterRoleBinding");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedRole(e,t,i,a,r,s={}){const o=this.basePath+"/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedRole.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedRole.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1beta1Role")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1Role");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedRoleBinding(e,t,i,a,r,s={}){const o=this.basePath+"/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedRoleBinding.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedRoleBinding.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1beta1RoleBinding")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1RoleBinding");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteClusterRole(e,t,i,a,r,s,o,u={}){const l=this.basePath+"/apis/rbac.authorization.k8s.io/v1beta1/clusterroles/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let c={};let d=Object.assign({},this.defaultHeaders);let p={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteClusterRole.")}if(t!==undefined){c["pretty"]=ObjectSerializer.serialize(t,"string")}if(a!==undefined){c["dryRun"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){c["gracePeriodSeconds"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){c["orphanDependents"]=ObjectSerializer.serialize(s,"boolean")}if(o!==undefined){c["propagationPolicy"]=ObjectSerializer.serialize(o,"string")}Object.assign(d,u.headers);let f=false;let h={method:"DELETE",qs:c,headers:d,uri:l,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(h);this.authentications.default.applyToRequest(h);if(Object.keys(p).length){if(f){h.formData=p}else{h.form=p}}return new Promise((e,t)=>{n(h,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteClusterRoleBinding(e,t,i,a,r,s,o,u={}){const l=this.basePath+"/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let c={};let d=Object.assign({},this.defaultHeaders);let p={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteClusterRoleBinding.")}if(t!==undefined){c["pretty"]=ObjectSerializer.serialize(t,"string")}if(a!==undefined){c["dryRun"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){c["gracePeriodSeconds"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){c["orphanDependents"]=ObjectSerializer.serialize(s,"boolean")}if(o!==undefined){c["propagationPolicy"]=ObjectSerializer.serialize(o,"string")}Object.assign(d,u.headers);let f=false;let h={method:"DELETE",qs:c,headers:d,uri:l,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(h);this.authentications.default.applyToRequest(h);if(Object.keys(p).length){if(f){h.formData=p}else{h.form=p}}return new Promise((e,t)=>{n(h,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionClusterRole(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/rbac.authorization.k8s.io/v1beta1/clusterroles";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"DELETE",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionClusterRoleBinding(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"DELETE",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedRole(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedRole.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedRoleBinding(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedRoleBinding.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedRole(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedRole.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedRole.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedRoleBinding(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedRoleBinding.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedRoleBinding.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/apis/rbac.authorization.k8s.io/v1beta1/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listClusterRole(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/rbac.authorization.k8s.io/v1beta1/clusterroles";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1ClusterRoleList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listClusterRoleBinding(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1ClusterRoleBindingList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedRole(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedRole.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1RoleList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedRoleBinding(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedRoleBinding.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1RoleBindingList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listRoleBindingForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/rbac.authorization.k8s.io/v1beta1/rolebindings";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1RoleBindingList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listRoleForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/rbac.authorization.k8s.io/v1beta1/roles";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1RoleList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchClusterRole(e,t,i,a,r={}){const s=this.basePath+"/apis/rbac.authorization.k8s.io/v1beta1/clusterroles/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchClusterRole.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling patchClusterRole.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"any")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1ClusterRole");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchClusterRoleBinding(e,t,i,a,r={}){const s=this.basePath+"/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchClusterRoleBinding.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling patchClusterRoleBinding.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"any")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1ClusterRoleBinding");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedRole(e,t,i,a,r,s={}){const o=this.basePath+"/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedRole.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedRole.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedRole.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1Role");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedRoleBinding(e,t,i,a,r,s={}){const o=this.basePath+"/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedRoleBinding.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedRoleBinding.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedRoleBinding.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1RoleBinding");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readClusterRole(e,t,i={}){const a=this.basePath+"/apis/rbac.authorization.k8s.io/v1beta1/clusterroles/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let r={};let s=Object.assign({},this.defaultHeaders);let o={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readClusterRole.")}if(t!==undefined){r["pretty"]=ObjectSerializer.serialize(t,"string")}Object.assign(s,i.headers);let u=false;let l={method:"GET",qs:r,headers:s,uri:a,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(l);this.authentications.default.applyToRequest(l);if(Object.keys(o).length){if(u){l.formData=o}else{l.form=o}}return new Promise((e,t)=>{n(l,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1ClusterRole");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readClusterRoleBinding(e,t,i={}){const a=this.basePath+"/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let r={};let s=Object.assign({},this.defaultHeaders);let o={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readClusterRoleBinding.")}if(t!==undefined){r["pretty"]=ObjectSerializer.serialize(t,"string")}Object.assign(s,i.headers);let u=false;let l={method:"GET",qs:r,headers:s,uri:a,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(l);this.authentications.default.applyToRequest(l);if(Object.keys(o).length){if(u){l.formData=o}else{l.form=o}}return new Promise((e,t)=>{n(l,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1ClusterRoleBinding");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedRole(e,t,i,a={}){const r=this.basePath+"/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedRole.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedRole.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1Role");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedRoleBinding(e,t,i,a={}){const r=this.basePath+"/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedRoleBinding.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedRoleBinding.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1RoleBinding");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceClusterRole(e,t,i,a,r={}){const s=this.basePath+"/apis/rbac.authorization.k8s.io/v1beta1/clusterroles/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceClusterRole.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replaceClusterRole.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1beta1ClusterRole")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1ClusterRole");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceClusterRoleBinding(e,t,i,a,r={}){const s=this.basePath+"/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceClusterRoleBinding.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replaceClusterRoleBinding.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1beta1ClusterRoleBinding")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1ClusterRoleBinding");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedRole(e,t,i,a,r,s={}){const o=this.basePath+"/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedRole.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedRole.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedRole.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1beta1Role")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1Role");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedRoleBinding(e,t,i,a,r,s={}){const o=this.basePath+"/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedRoleBinding.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedRoleBinding.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedRoleBinding.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1beta1RoleBinding")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1RoleBinding");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.RbacAuthorizationV1beta1Api=RbacAuthorizationV1beta1Api;var ne;(function(e){e[e["BearerToken"]=0]="BearerToken"})(ne=t.SchedulingApiApiKeys||(t.SchedulingApiApiKeys={}));class SchedulingApi{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[ne[e]].apiKey=t}getAPIGroup(e={}){const t=this.basePath+"/apis/scheduling.k8s.io/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIGroup");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.SchedulingApi=SchedulingApi;var ae;(function(e){e[e["BearerToken"]=0]="BearerToken"})(ae=t.SchedulingV1alpha1ApiApiKeys||(t.SchedulingV1alpha1ApiApiKeys={}));class SchedulingV1alpha1Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[ae[e]].apiKey=t}createPriorityClass(e,t,i,a,r={}){const s=this.basePath+"/apis/scheduling.k8s.io/v1alpha1/priorityclasses";let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter body was null or undefined when calling createPriorityClass.")}if(t!==undefined){o["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(e,"V1alpha1PriorityClass")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1PriorityClass");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionPriorityClass(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/scheduling.k8s.io/v1alpha1/priorityclasses";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"DELETE",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deletePriorityClass(e,t,i,a,r,s,o,u={}){const l=this.basePath+"/apis/scheduling.k8s.io/v1alpha1/priorityclasses/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let c={};let d=Object.assign({},this.defaultHeaders);let p={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deletePriorityClass.")}if(t!==undefined){c["pretty"]=ObjectSerializer.serialize(t,"string")}if(a!==undefined){c["dryRun"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){c["gracePeriodSeconds"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){c["orphanDependents"]=ObjectSerializer.serialize(s,"boolean")}if(o!==undefined){c["propagationPolicy"]=ObjectSerializer.serialize(o,"string")}Object.assign(d,u.headers);let f=false;let h={method:"DELETE",qs:c,headers:d,uri:l,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(h);this.authentications.default.applyToRequest(h);if(Object.keys(p).length){if(f){h.formData=p}else{h.form=p}}return new Promise((e,t)=>{n(h,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/apis/scheduling.k8s.io/v1alpha1/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listPriorityClass(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/scheduling.k8s.io/v1alpha1/priorityclasses";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1PriorityClassList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchPriorityClass(e,t,i,a,r={}){const s=this.basePath+"/apis/scheduling.k8s.io/v1alpha1/priorityclasses/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchPriorityClass.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling patchPriorityClass.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"any")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1PriorityClass");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readPriorityClass(e,t,i,a,r={}){const s=this.basePath+"/apis/scheduling.k8s.io/v1alpha1/priorityclasses/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readPriorityClass.")}if(t!==undefined){o["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){o["exact"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){o["export"]=ObjectSerializer.serialize(a,"boolean")}Object.assign(u,r.headers);let c=false;let d={method:"GET",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1PriorityClass");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replacePriorityClass(e,t,i,a,r={}){const s=this.basePath+"/apis/scheduling.k8s.io/v1alpha1/priorityclasses/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replacePriorityClass.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replacePriorityClass.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1alpha1PriorityClass")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1PriorityClass");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.SchedulingV1alpha1Api=SchedulingV1alpha1Api;var re;(function(e){e[e["BearerToken"]=0]="BearerToken"})(re=t.SchedulingV1beta1ApiApiKeys||(t.SchedulingV1beta1ApiApiKeys={}));class SchedulingV1beta1Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[re[e]].apiKey=t}createPriorityClass(e,t,i,a,r={}){const s=this.basePath+"/apis/scheduling.k8s.io/v1beta1/priorityclasses";let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter body was null or undefined when calling createPriorityClass.")}if(t!==undefined){o["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(e,"V1beta1PriorityClass")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1PriorityClass");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionPriorityClass(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/scheduling.k8s.io/v1beta1/priorityclasses";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"DELETE",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deletePriorityClass(e,t,i,a,r,s,o,u={}){const l=this.basePath+"/apis/scheduling.k8s.io/v1beta1/priorityclasses/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let c={};let d=Object.assign({},this.defaultHeaders);let p={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deletePriorityClass.")}if(t!==undefined){c["pretty"]=ObjectSerializer.serialize(t,"string")}if(a!==undefined){c["dryRun"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){c["gracePeriodSeconds"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){c["orphanDependents"]=ObjectSerializer.serialize(s,"boolean")}if(o!==undefined){c["propagationPolicy"]=ObjectSerializer.serialize(o,"string")}Object.assign(d,u.headers);let f=false;let h={method:"DELETE",qs:c,headers:d,uri:l,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(h);this.authentications.default.applyToRequest(h);if(Object.keys(p).length){if(f){h.formData=p}else{h.form=p}}return new Promise((e,t)=>{n(h,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/apis/scheduling.k8s.io/v1beta1/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listPriorityClass(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/scheduling.k8s.io/v1beta1/priorityclasses";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1PriorityClassList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchPriorityClass(e,t,i,a,r={}){const s=this.basePath+"/apis/scheduling.k8s.io/v1beta1/priorityclasses/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchPriorityClass.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling patchPriorityClass.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"any")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1PriorityClass");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readPriorityClass(e,t,i,a,r={}){const s=this.basePath+"/apis/scheduling.k8s.io/v1beta1/priorityclasses/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readPriorityClass.")}if(t!==undefined){o["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){o["exact"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){o["export"]=ObjectSerializer.serialize(a,"boolean")}Object.assign(u,r.headers);let c=false;let d={method:"GET",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1PriorityClass");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replacePriorityClass(e,t,i,a,r={}){const s=this.basePath+"/apis/scheduling.k8s.io/v1beta1/priorityclasses/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replacePriorityClass.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replacePriorityClass.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1beta1PriorityClass")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1PriorityClass");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.SchedulingV1beta1Api=SchedulingV1beta1Api;var se;(function(e){e[e["BearerToken"]=0]="BearerToken"})(se=t.SettingsApiApiKeys||(t.SettingsApiApiKeys={}));class SettingsApi{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[se[e]].apiKey=t}getAPIGroup(e={}){const t=this.basePath+"/apis/settings.k8s.io/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIGroup");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.SettingsApi=SettingsApi;var oe;(function(e){e[e["BearerToken"]=0]="BearerToken"})(oe=t.SettingsV1alpha1ApiApiKeys||(t.SettingsV1alpha1ApiApiKeys={}));class SettingsV1alpha1Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[oe[e]].apiKey=t}createNamespacedPodPreset(e,t,i,a,r,s={}){const o=this.basePath+"/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedPodPreset.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedPodPreset.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1alpha1PodPreset")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1PodPreset");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedPodPreset(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedPodPreset.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedPodPreset(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedPodPreset.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedPodPreset.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/apis/settings.k8s.io/v1alpha1/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedPodPreset(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedPodPreset.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1PodPresetList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listPodPresetForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/settings.k8s.io/v1alpha1/podpresets";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1PodPresetList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedPodPreset(e,t,i,a,r,s={}){const o=this.basePath+"/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedPodPreset.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedPodPreset.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedPodPreset.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1PodPreset");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedPodPreset(e,t,i,a,r,s={}){const o=this.basePath+"/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedPodPreset.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedPodPreset.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1PodPreset");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedPodPreset(e,t,i,a,r,s={}){const o=this.basePath+"/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedPodPreset.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedPodPreset.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedPodPreset.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1alpha1PodPreset")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1PodPreset");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.SettingsV1alpha1Api=SettingsV1alpha1Api;var ue;(function(e){e[e["BearerToken"]=0]="BearerToken"})(ue=t.StorageApiApiKeys||(t.StorageApiApiKeys={}));class StorageApi{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[ue[e]].apiKey=t}getAPIGroup(e={}){const t=this.basePath+"/apis/storage.k8s.io/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIGroup");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.StorageApi=StorageApi;var le;(function(e){e[e["BearerToken"]=0]="BearerToken"})(le=t.StorageV1ApiApiKeys||(t.StorageV1ApiApiKeys={}));class StorageV1Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[le[e]].apiKey=t}createStorageClass(e,t,i,a,r={}){const s=this.basePath+"/apis/storage.k8s.io/v1/storageclasses";let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter body was null or undefined when calling createStorageClass.")}if(t!==undefined){o["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(e,"V1StorageClass")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1StorageClass");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createVolumeAttachment(e,t,i,a,r={}){const s=this.basePath+"/apis/storage.k8s.io/v1/volumeattachments";let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter body was null or undefined when calling createVolumeAttachment.")}if(t!==undefined){o["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(e,"V1VolumeAttachment")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1VolumeAttachment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionStorageClass(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/storage.k8s.io/v1/storageclasses";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"DELETE",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionVolumeAttachment(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/storage.k8s.io/v1/volumeattachments";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"DELETE",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteStorageClass(e,t,i,a,r,s,o,u={}){const l=this.basePath+"/apis/storage.k8s.io/v1/storageclasses/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let c={};let d=Object.assign({},this.defaultHeaders);let p={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteStorageClass.")}if(t!==undefined){c["pretty"]=ObjectSerializer.serialize(t,"string")}if(a!==undefined){c["dryRun"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){c["gracePeriodSeconds"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){c["orphanDependents"]=ObjectSerializer.serialize(s,"boolean")}if(o!==undefined){c["propagationPolicy"]=ObjectSerializer.serialize(o,"string")}Object.assign(d,u.headers);let f=false;let h={method:"DELETE",qs:c,headers:d,uri:l,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(h);this.authentications.default.applyToRequest(h);if(Object.keys(p).length){if(f){h.formData=p}else{h.form=p}}return new Promise((e,t)=>{n(h,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteVolumeAttachment(e,t,i,a,r,s,o,u={}){const l=this.basePath+"/apis/storage.k8s.io/v1/volumeattachments/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let c={};let d=Object.assign({},this.defaultHeaders);let p={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteVolumeAttachment.")}if(t!==undefined){c["pretty"]=ObjectSerializer.serialize(t,"string")}if(a!==undefined){c["dryRun"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){c["gracePeriodSeconds"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){c["orphanDependents"]=ObjectSerializer.serialize(s,"boolean")}if(o!==undefined){c["propagationPolicy"]=ObjectSerializer.serialize(o,"string")}Object.assign(d,u.headers);let f=false;let h={method:"DELETE",qs:c,headers:d,uri:l,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(h);this.authentications.default.applyToRequest(h);if(Object.keys(p).length){if(f){h.formData=p}else{h.form=p}}return new Promise((e,t)=>{n(h,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/apis/storage.k8s.io/v1/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listStorageClass(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/storage.k8s.io/v1/storageclasses";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1StorageClassList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listVolumeAttachment(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/storage.k8s.io/v1/volumeattachments";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1VolumeAttachmentList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchStorageClass(e,t,i,a,r={}){const s=this.basePath+"/apis/storage.k8s.io/v1/storageclasses/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchStorageClass.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling patchStorageClass.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"any")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1StorageClass");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchVolumeAttachment(e,t,i,a,r={}){const s=this.basePath+"/apis/storage.k8s.io/v1/volumeattachments/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchVolumeAttachment.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling patchVolumeAttachment.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"any")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1VolumeAttachment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchVolumeAttachmentStatus(e,t,i,a,r={}){const s=this.basePath+"/apis/storage.k8s.io/v1/volumeattachments/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchVolumeAttachmentStatus.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling patchVolumeAttachmentStatus.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"any")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1VolumeAttachment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readStorageClass(e,t,i,a,r={}){const s=this.basePath+"/apis/storage.k8s.io/v1/storageclasses/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readStorageClass.")}if(t!==undefined){o["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){o["exact"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){o["export"]=ObjectSerializer.serialize(a,"boolean")}Object.assign(u,r.headers);let c=false;let d={method:"GET",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1StorageClass");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readVolumeAttachment(e,t,i,a,r={}){const s=this.basePath+"/apis/storage.k8s.io/v1/volumeattachments/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readVolumeAttachment.")}if(t!==undefined){o["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){o["exact"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){o["export"]=ObjectSerializer.serialize(a,"boolean")}Object.assign(u,r.headers);let c=false;let d={method:"GET",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1VolumeAttachment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readVolumeAttachmentStatus(e,t,i={}){const a=this.basePath+"/apis/storage.k8s.io/v1/volumeattachments/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e)));let r={};let s=Object.assign({},this.defaultHeaders);let o={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readVolumeAttachmentStatus.")}if(t!==undefined){r["pretty"]=ObjectSerializer.serialize(t,"string")}Object.assign(s,i.headers);let u=false;let l={method:"GET",qs:r,headers:s,uri:a,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(l);this.authentications.default.applyToRequest(l);if(Object.keys(o).length){if(u){l.formData=o}else{l.form=o}}return new Promise((e,t)=>{n(l,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1VolumeAttachment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceStorageClass(e,t,i,a,r={}){const s=this.basePath+"/apis/storage.k8s.io/v1/storageclasses/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceStorageClass.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replaceStorageClass.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1StorageClass")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1StorageClass");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceVolumeAttachment(e,t,i,a,r={}){const s=this.basePath+"/apis/storage.k8s.io/v1/volumeattachments/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceVolumeAttachment.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replaceVolumeAttachment.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1VolumeAttachment")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1VolumeAttachment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceVolumeAttachmentStatus(e,t,i,a,r={}){const s=this.basePath+"/apis/storage.k8s.io/v1/volumeattachments/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceVolumeAttachmentStatus.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replaceVolumeAttachmentStatus.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1VolumeAttachment")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1VolumeAttachment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.StorageV1Api=StorageV1Api;var ce;(function(e){e[e["BearerToken"]=0]="BearerToken"})(ce=t.StorageV1alpha1ApiApiKeys||(t.StorageV1alpha1ApiApiKeys={}));class StorageV1alpha1Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[ce[e]].apiKey=t}createVolumeAttachment(e,t,i,a,r={}){const s=this.basePath+"/apis/storage.k8s.io/v1alpha1/volumeattachments";let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter body was null or undefined when calling createVolumeAttachment.")}if(t!==undefined){o["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(e,"V1alpha1VolumeAttachment")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1VolumeAttachment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionVolumeAttachment(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/storage.k8s.io/v1alpha1/volumeattachments";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"DELETE",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteVolumeAttachment(e,t,i,a,r,s,o,u={}){const l=this.basePath+"/apis/storage.k8s.io/v1alpha1/volumeattachments/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let c={};let d=Object.assign({},this.defaultHeaders);let p={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteVolumeAttachment.")}if(t!==undefined){c["pretty"]=ObjectSerializer.serialize(t,"string")}if(a!==undefined){c["dryRun"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){c["gracePeriodSeconds"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){c["orphanDependents"]=ObjectSerializer.serialize(s,"boolean")}if(o!==undefined){c["propagationPolicy"]=ObjectSerializer.serialize(o,"string")}Object.assign(d,u.headers);let f=false;let h={method:"DELETE",qs:c,headers:d,uri:l,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(h);this.authentications.default.applyToRequest(h);if(Object.keys(p).length){if(f){h.formData=p}else{h.form=p}}return new Promise((e,t)=>{n(h,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/apis/storage.k8s.io/v1alpha1/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listVolumeAttachment(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/storage.k8s.io/v1alpha1/volumeattachments";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1VolumeAttachmentList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchVolumeAttachment(e,t,i,a,r={}){const s=this.basePath+"/apis/storage.k8s.io/v1alpha1/volumeattachments/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchVolumeAttachment.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling patchVolumeAttachment.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"any")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1VolumeAttachment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readVolumeAttachment(e,t,i,a,r={}){const s=this.basePath+"/apis/storage.k8s.io/v1alpha1/volumeattachments/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readVolumeAttachment.")}if(t!==undefined){o["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){o["exact"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){o["export"]=ObjectSerializer.serialize(a,"boolean")}Object.assign(u,r.headers);let c=false;let d={method:"GET",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1VolumeAttachment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceVolumeAttachment(e,t,i,a,r={}){const s=this.basePath+"/apis/storage.k8s.io/v1alpha1/volumeattachments/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceVolumeAttachment.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replaceVolumeAttachment.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1alpha1VolumeAttachment")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1VolumeAttachment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.StorageV1alpha1Api=StorageV1alpha1Api;var de;(function(e){e[e["BearerToken"]=0]="BearerToken"})(de=t.StorageV1beta1ApiApiKeys||(t.StorageV1beta1ApiApiKeys={}));class StorageV1beta1Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[de[e]].apiKey=t}createStorageClass(e,t,i,a,r={}){const s=this.basePath+"/apis/storage.k8s.io/v1beta1/storageclasses";let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter body was null or undefined when calling createStorageClass.")}if(t!==undefined){o["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(e,"V1beta1StorageClass")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1StorageClass");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createVolumeAttachment(e,t,i,a,r={}){const s=this.basePath+"/apis/storage.k8s.io/v1beta1/volumeattachments";let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter body was null or undefined when calling createVolumeAttachment.")}if(t!==undefined){o["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(e,"V1beta1VolumeAttachment")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1VolumeAttachment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionStorageClass(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/storage.k8s.io/v1beta1/storageclasses";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"DELETE",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionVolumeAttachment(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/storage.k8s.io/v1beta1/volumeattachments";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"DELETE",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteStorageClass(e,t,i,a,r,s,o,u={}){const l=this.basePath+"/apis/storage.k8s.io/v1beta1/storageclasses/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let c={};let d=Object.assign({},this.defaultHeaders);let p={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteStorageClass.")}if(t!==undefined){c["pretty"]=ObjectSerializer.serialize(t,"string")}if(a!==undefined){c["dryRun"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){c["gracePeriodSeconds"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){c["orphanDependents"]=ObjectSerializer.serialize(s,"boolean")}if(o!==undefined){c["propagationPolicy"]=ObjectSerializer.serialize(o,"string")}Object.assign(d,u.headers);let f=false;let h={method:"DELETE",qs:c,headers:d,uri:l,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(h);this.authentications.default.applyToRequest(h);if(Object.keys(p).length){if(f){h.formData=p}else{h.form=p}}return new Promise((e,t)=>{n(h,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteVolumeAttachment(e,t,i,a,r,s,o,u={}){const l=this.basePath+"/apis/storage.k8s.io/v1beta1/volumeattachments/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let c={};let d=Object.assign({},this.defaultHeaders);let p={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteVolumeAttachment.")}if(t!==undefined){c["pretty"]=ObjectSerializer.serialize(t,"string")}if(a!==undefined){c["dryRun"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){c["gracePeriodSeconds"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){c["orphanDependents"]=ObjectSerializer.serialize(s,"boolean")}if(o!==undefined){c["propagationPolicy"]=ObjectSerializer.serialize(o,"string")}Object.assign(d,u.headers);let f=false;let h={method:"DELETE",qs:c,headers:d,uri:l,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(h);this.authentications.default.applyToRequest(h);if(Object.keys(p).length){if(f){h.formData=p}else{h.form=p}}return new Promise((e,t)=>{n(h,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/apis/storage.k8s.io/v1beta1/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listStorageClass(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/storage.k8s.io/v1beta1/storageclasses";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1StorageClassList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listVolumeAttachment(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/storage.k8s.io/v1beta1/volumeattachments";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1VolumeAttachmentList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchStorageClass(e,t,i,a,r={}){const s=this.basePath+"/apis/storage.k8s.io/v1beta1/storageclasses/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchStorageClass.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling patchStorageClass.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"any")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1StorageClass");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchVolumeAttachment(e,t,i,a,r={}){const s=this.basePath+"/apis/storage.k8s.io/v1beta1/volumeattachments/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchVolumeAttachment.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling patchVolumeAttachment.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"any")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1VolumeAttachment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readStorageClass(e,t,i,a,r={}){const s=this.basePath+"/apis/storage.k8s.io/v1beta1/storageclasses/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readStorageClass.")}if(t!==undefined){o["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){o["exact"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){o["export"]=ObjectSerializer.serialize(a,"boolean")}Object.assign(u,r.headers);let c=false;let d={method:"GET",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1StorageClass");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readVolumeAttachment(e,t,i,a,r={}){const s=this.basePath+"/apis/storage.k8s.io/v1beta1/volumeattachments/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readVolumeAttachment.")}if(t!==undefined){o["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){o["exact"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){o["export"]=ObjectSerializer.serialize(a,"boolean")}Object.assign(u,r.headers);let c=false;let d={method:"GET",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1VolumeAttachment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceStorageClass(e,t,i,a,r={}){const s=this.basePath+"/apis/storage.k8s.io/v1beta1/storageclasses/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceStorageClass.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replaceStorageClass.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1beta1StorageClass")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1StorageClass");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceVolumeAttachment(e,t,i,a,r={}){const s=this.basePath+"/apis/storage.k8s.io/v1beta1/volumeattachments/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceVolumeAttachment.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replaceVolumeAttachment.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1beta1VolumeAttachment")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1VolumeAttachment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.StorageV1beta1Api=StorageV1beta1Api;var pe;(function(e){e[e["BearerToken"]=0]="BearerToken"})(pe=t.VersionApiApiKeys||(t.VersionApiApiKeys={}));class VersionApi{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[pe[e]].apiKey=t}getCode(e={}){const t=this.basePath+"/version/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"VersionInfo");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.VersionApi=VersionApi},,,function(e){e.exports=require("buffer")},,function(e){e.exports=(()=>Math.floor(Date.now()/1e3))},,,function(e,t,i){const n=i(874);const a=(e,t,i)=>n(e,t,i)===0;e.exports=a},,,function(e,t,i){"use strict";const n=i(353);const a=i(903);const r=i(104);const{kStatusCode:s,NOOP:o}=i(799);const u=Buffer.from([0,0,255,255]);const l=Buffer.from([0]);const c=Symbol("permessage-deflate");const d=Symbol("total-length");const p=Symbol("callback");const f=Symbol("buffers");const h=Symbol("error");let m;class PerMessageDeflate{constructor(e,t,i){this._maxPayload=i|0;this._options=e||{};this._threshold=this._options.threshold!==undefined?this._options.threshold:1024;this._isServer=!!t;this._deflate=null;this._inflate=null;this.params=null;if(!m){const e=this._options.concurrencyLimit!==undefined?this._options.concurrencyLimit:10;m=new n({concurrency:e})}}static get extensionName(){return"permessage-deflate"}offer(){const e={};if(this._options.serverNoContextTakeover){e.server_no_context_takeover=true}if(this._options.clientNoContextTakeover){e.client_no_context_takeover=true}if(this._options.serverMaxWindowBits){e.server_max_window_bits=this._options.serverMaxWindowBits}if(this._options.clientMaxWindowBits){e.client_max_window_bits=this._options.clientMaxWindowBits}else if(this._options.clientMaxWindowBits==null){e.client_max_window_bits=true}return e}accept(e){e=this.normalizeParams(e);this.params=this._isServer?this.acceptAsServer(e):this.acceptAsClient(e);return this.params}cleanup(){if(this._inflate){this._inflate.close();this._inflate=null}if(this._deflate){this._deflate.close();this._deflate=null}}acceptAsServer(e){const t=this._options;const i=e.find(e=>{if(t.serverNoContextTakeover===false&&e.server_no_context_takeover||e.server_max_window_bits&&(t.serverMaxWindowBits===false||typeof t.serverMaxWindowBits==="number"&&t.serverMaxWindowBits>e.server_max_window_bits)||typeof t.clientMaxWindowBits==="number"&&!e.client_max_window_bits){return false}return true});if(!i){throw new Error("None of the extension offers can be accepted")}if(t.serverNoContextTakeover){i.server_no_context_takeover=true}if(t.clientNoContextTakeover){i.client_no_context_takeover=true}if(typeof t.serverMaxWindowBits==="number"){i.server_max_window_bits=t.serverMaxWindowBits}if(typeof t.clientMaxWindowBits==="number"){i.client_max_window_bits=t.clientMaxWindowBits}else if(i.client_max_window_bits===true||t.clientMaxWindowBits===false){delete i.client_max_window_bits}return i}acceptAsClient(e){const t=e[0];if(this._options.clientNoContextTakeover===false&&t.client_no_context_takeover){throw new Error('Unexpected parameter "client_no_context_takeover"')}if(!t.client_max_window_bits){if(typeof this._options.clientMaxWindowBits==="number"){t.client_max_window_bits=this._options.clientMaxWindowBits}}else if(this._options.clientMaxWindowBits===false||typeof this._options.clientMaxWindowBits==="number"&&t.client_max_window_bits>this._options.clientMaxWindowBits){throw new Error('Unexpected or invalid parameter "client_max_window_bits"')}return t}normalizeParams(e){e.forEach(e=>{Object.keys(e).forEach(t=>{var i=e[t];if(i.length>1){throw new Error(`Parameter "${t}" must have only a single value`)}i=i[0];if(t==="client_max_window_bits"){if(i!==true){const e=+i;if(!Number.isInteger(e)||e<8||e>15){throw new TypeError(`Invalid value for parameter "${t}": ${i}`)}i=e}else if(!this._isServer){throw new TypeError(`Invalid value for parameter "${t}": ${i}`)}}else if(t==="server_max_window_bits"){const e=+i;if(!Number.isInteger(e)||e<8||e>15){throw new TypeError(`Invalid value for parameter "${t}": ${i}`)}i=e}else if(t==="client_no_context_takeover"||t==="server_no_context_takeover"){if(i!==true){throw new TypeError(`Invalid value for parameter "${t}": ${i}`)}}else{throw new Error(`Unknown parameter "${t}"`)}e[t]=i})});return e}decompress(e,t,i){m.push(n=>{this._decompress(e,t,(e,t)=>{n();i(e,t)})})}compress(e,t,i){m.push(n=>{this._compress(e,t,(e,t)=>{n();i(e,t)})})}_decompress(e,t,i){const n=this._isServer?"client":"server";if(!this._inflate){const e=`${n}_max_window_bits`;const t=typeof this.params[e]!=="number"?a.Z_DEFAULT_WINDOWBITS:this.params[e];this._inflate=a.createInflateRaw(Object.assign({},this._options.zlibInflateOptions,{windowBits:t}));this._inflate[c]=this;this._inflate[d]=0;this._inflate[f]=[];this._inflate.on("error",inflateOnError);this._inflate.on("data",inflateOnData)}this._inflate[p]=i;this._inflate.write(e);if(t)this._inflate.write(u);this._inflate.flush(()=>{const e=this._inflate[h];if(e){this._inflate.close();this._inflate=null;i(e);return}const a=r.concat(this._inflate[f],this._inflate[d]);if(t&&this.params[`${n}_no_context_takeover`]){this._inflate.close();this._inflate=null}else{this._inflate[d]=0;this._inflate[f]=[]}i(null,a)})}_compress(e,t,i){if(!e||e.length===0){process.nextTick(i,null,l);return}const n=this._isServer?"server":"client";if(!this._deflate){const e=`${n}_max_window_bits`;const t=typeof this.params[e]!=="number"?a.Z_DEFAULT_WINDOWBITS:this.params[e];this._deflate=a.createDeflateRaw(Object.assign({},this._options.zlibDeflateOptions,{windowBits:t}));this._deflate[d]=0;this._deflate[f]=[];this._deflate.on("error",o);this._deflate.on("data",deflateOnData)}this._deflate.write(e);this._deflate.flush(a.Z_SYNC_FLUSH,()=>{if(!this._deflate){return}var e=r.concat(this._deflate[f],this._deflate[d]);if(t)e=e.slice(0,e.length-4);if(t&&this.params[`${n}_no_context_takeover`]){this._deflate.close();this._deflate=null}else{this._deflate[d]=0;this._deflate[f]=[]}i(null,e)})}}e.exports=PerMessageDeflate;function deflateOnData(e){this[f].push(e);this[d]+=e.length}function inflateOnData(e){this[d]+=e.length;if(this[c]._maxPayload<1||this[d]<=this[c]._maxPayload){this[f].push(e);return}this[h]=new RangeError("Max payload size exceeded");this[h][s]=1009;this.removeListener("data",inflateOnData);this.reset()}function inflateOnError(e){this[c]._inflate=null;e[s]=1007;this[p](e)}},function(e,t,i){e.exports=realpath;realpath.realpath=realpath;realpath.sync=realpathSync;realpath.realpathSync=realpathSync;realpath.monkeypatch=monkeypatch;realpath.unmonkeypatch=unmonkeypatch;var n=i(747);var a=n.realpath;var r=n.realpathSync;var s=process.version;var o=/^v[0-5]\./.test(s);var u=i(117);function newError(e){return e&&e.syscall==="realpath"&&(e.code==="ELOOP"||e.code==="ENOMEM"||e.code==="ENAMETOOLONG")}function realpath(e,t,i){if(o){return a(e,t,i)}if(typeof t==="function"){i=t;t=null}a(e,t,function(n,a){if(newError(n)){u.realpath(e,t,i)}else{i(n,a)}})}function realpathSync(e,t){if(o){return r(e,t)}try{return r(e,t)}catch(i){if(newError(i)){return u.realpathSync(e,t)}else{throw i}}}function monkeypatch(){n.realpath=realpath;n.realpathSync=realpathSync}function unmonkeypatch(){n.realpath=a;n.realpathSync=r}},function(e,t,i){"use strict";const n=i(614);const a=i(205);const r=e=>{const t={redis:"@keyv/redis",mongodb:"@keyv/mongo",mongo:"@keyv/mongo",sqlite:"@keyv/sqlite",postgresql:"@keyv/postgres",postgres:"@keyv/postgres",mysql:"@keyv/mysql"};if(e.adapter||e.uri){const i=e.adapter||/^[^:]*/.exec(e.uri)[0];return new(require(t[i]))(e)}return new Map};class Keyv extends n{constructor(e,t){super();this.opts=Object.assign({namespace:"keyv",serialize:a.stringify,deserialize:a.parse},typeof e==="string"?{uri:e}:e,t);if(!this.opts.store){const e=Object.assign({},this.opts);this.opts.store=r(e)}if(typeof this.opts.store.on==="function"){this.opts.store.on("error",e=>this.emit("error",e))}this.opts.store.namespace=this.opts.namespace}_getKeyPrefix(e){return`${this.opts.namespace}:${e}`}get(e){e=this._getKeyPrefix(e);const t=this.opts.store;return Promise.resolve().then(()=>t.get(e)).then(t=>{t=typeof t==="string"?this.opts.deserialize(t):t;if(t===undefined){return undefined}if(typeof t.expires==="number"&&Date.now()>t.expires){this.delete(e);return undefined}return t.value})}set(e,t,i){e=this._getKeyPrefix(e);if(typeof i==="undefined"){i=this.opts.ttl}if(i===0){i=undefined}const n=this.opts.store;return Promise.resolve().then(()=>{const a=typeof i==="number"?Date.now()+i:null;t={value:t,expires:a};return n.set(e,this.opts.serialize(t),i)}).then(()=>true)}delete(e){e=this._getKeyPrefix(e);const t=this.opts.store;return Promise.resolve().then(()=>t.delete(e))}clear(){const e=this.opts.store;return Promise.resolve().then(()=>e.clear())}}e.exports=Keyv},,,function(e,t,i){var n=i(896);var a=i(621);e.exports=expandTop;var r="\0SLASH"+Math.random()+"\0";var s="\0OPEN"+Math.random()+"\0";var o="\0CLOSE"+Math.random()+"\0";var u="\0COMMA"+Math.random()+"\0";var l="\0PERIOD"+Math.random()+"\0";function numeric(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function escapeBraces(e){return e.split("\\\\").join(r).split("\\{").join(s).split("\\}").join(o).split("\\,").join(u).split("\\.").join(l)}function unescapeBraces(e){return e.split(r).join("\\").split(s).join("{").split(o).join("}").split(u).join(",").split(l).join(".")}function parseCommaParts(e){if(!e)return[""];var t=[];var i=a("{","}",e);if(!i)return e.split(",");var n=i.pre;var r=i.body;var s=i.post;var o=n.split(",");o[o.length-1]+="{"+r+"}";var u=parseCommaParts(s);if(s.length){o[o.length-1]+=u.shift();o.push.apply(o,u)}t.push.apply(t,o);return t}function expandTop(e){if(!e)return[];if(e.substr(0,2)==="{}"){e="\\{\\}"+e.substr(2)}return expand(escapeBraces(e),true).map(unescapeBraces)}function identity(e){return e}function embrace(e){return"{"+e+"}"}function isPadded(e){return/^-?0\d/.test(e)}function lte(e,t){return e<=t}function gte(e,t){return e>=t}function expand(e,t){var i=[];var r=a("{","}",e);if(!r||/\$$/.test(r.pre))return[e];var s=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(r.body);var u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(r.body);var l=s||u;var c=r.body.indexOf(",")>=0;if(!l&&!c){if(r.post.match(/,.*\}/)){e=r.pre+"{"+r.body+o+r.post;return expand(e)}return[e]}var d;if(l){d=r.body.split(/\.\./)}else{d=parseCommaParts(r.body);if(d.length===1){d=expand(d[0],false).map(embrace);if(d.length===1){var p=r.post.length?expand(r.post,false):[""];return p.map(function(e){return r.pre+d[0]+e})}}}var f=r.pre;var p=r.post.length?expand(r.post,false):[""];var h;if(l){var m=numeric(d[0]);var b=numeric(d[1]);var g=Math.max(d[0].length,d[1].length);var y=d.length==3?Math.abs(numeric(d[2])):1;var S=lte;var w=b0){var k=new Array(O+1).join("0");if(z<0)j="-"+k+j.slice(1);else j=k+j}}}h.push(j)}}else{h=n(d,function(e){return expand(e,false)})}for(var C=0;C{try{t=new n(t,i)}catch(e){return false}return t.test(e)};e.exports=a},,function(e,t,i){const n=i(867);const a=i(696);class Endpoint{constructor(e){this.name=e.name;this.splits=e.splits;this.pathItem=e.pathItem}}class Component{constructor(e){e=Object.assign({splits:[],parameters:[]},e);let t;if(e.templated){t=(i=>{const n=t.splits.concat([i]);const a=new this.constructor({backend:t.backend,getNames:e.getNames,splits:n,parameters:e.parameters.concat([i])});t.templatedEndpoints.forEach(e=>{a._addEndpoint(e)});return a});t.templatedEndpoints=[];Object.setPrototypeOf(t,this.constructor.prototype)}else{t=this;t.templatedEndpoints=null}t.parameters=e.parameters;t.templated=e.templated;t.splits=e.splits.slice();t.backend=e.backend;t.getNames=e.getNames||(e=>[e]);t.children=[];return t}getPath(){return`/${this.splits.join("/")}`}getPathnameParameters(){const e=this.swaggerName.split("/").filter(e=>e.startsWith("{")).map(e=>e.slice(1,-1));return e.reduce((e,t,i)=>{e[t]=this.parameters[i];return e},{})}_addSpec(e){Object.keys(e.paths).map(t=>{const i=/(^\/)|(\/$)/g;const n=t.replace(i,"").split("/");return new Endpoint({name:t,splits:n,pathItem:e.paths[t]})}).sort((e,t)=>{return t.splits.length-e.splits.length}).forEach(e=>{this._addEndpoint(e)})}_addChild(e,t){this.getNames(e,this.splits).forEach(e=>{this[e]=t;this.children.push(e)})}_walkSplits(e){const t=this.splits.slice();const i=e.splits.slice();let n=this;while(i.length){const a=i.shift();t.push(a);let r=null;if(i.length&&i[0].startsWith("{")){r=i.shift().slice(1,-1)}if(!(a in n)){const e=new this.constructor({getNames:this.getNames,backend:this.backend,parameters:this.parameters,templated:Boolean(r),splits:t});n._addChild(a,e)}n=n[a];if(r){if(!n.templated){throw new Error("Created Component, but require templated one. "+"This is a bug. Please report: "+"https://github.com/silasbw/fluent-openapi/issues")}n.templatedEndpoints.push(new Endpoint({name:e.name,splits:i,pathItem:e.pathItem}));return null}}return n}_addEndpoint(e){const t=this._walkSplits(e);if(!t)return null;t.pathItemObject=e.pathItem;t.swaggerName=e.name;const i=["get","put","post","delete","patch"];i.filter(t=>e.pathItem[t]).forEach(e=>{t[e]=t["_"+e];if(e==="get")t.getStream=t._getStream});return t}_requestAsync(e,t){return this.backend.http(Object.assign({method:e,pathItemObject:this.pathItemObject,pathname:this.getPath(),pathnameParameters:this.getPathnameParameters()},t))}_getStream(e){return this._requestAsync("GET",Object.assign({stream:true},e))}_get(e){return this._requestAsync("GET",e)}_delete(e){return this._requestAsync("DELETE",e)}_patch(e){return this._requestAsync("PATCH",n({headers:{"content-type":"application/strategic-merge-patch+json"}},e,{isMergeableObject:a}))}_post(e){return this._requestAsync("POST",n({headers:{"content-type":"application/json"}},e,{isMergeableObject:a}))}_put(e){return this._requestAsync("PUT",n({headers:{"content-type":"application/json"}},e,{isMergeableObject:a}))}}e.exports=Component},function(e,t){function reverse(e){const t={};Object.keys(e).forEach(function(i){if((i|0)==i){i=i|0}const n=e[i];t[n]=i});return t}t.tagClass={0:"universal",1:"application",2:"context",3:"private"};t.tagClassByName=reverse(t.tagClass);t.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"};t.tagByName=reverse(t.tag)},function(e,t,i){const n=i(508);e.exports=n.KubeConfig},function(e){if(typeof Object.create==="function"){e.exports=function inherits(e,t){if(t){e.super_=t;e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}})}}}else{e.exports=function inherits(e,t){if(t){e.super_=t;var i=function(){};i.prototype=t.prototype;e.prototype=new i;e.prototype.constructor=e}}}},,,,function(e){e.exports={$id:"log.json#",$schema:"http://json-schema.org/draft-06/schema#",type:"object",required:["version","creator","entries"],properties:{version:{type:"string"},creator:{$ref:"creator.json#"},browser:{$ref:"browser.json#"},pages:{type:"array",items:{$ref:"page.json#"}},entries:{type:"array",items:{$ref:"entry.json#"}},comment:{type:"string"}}}},function(e,t,i){function __ncc_wildcard$0(e){if(e==="cmd")return i(889);else if(e==="openid")return i(251)}"use strict";const{convertKubeconfig:n}=i(264);const a=i(418)("kubernetes-client");const r=i(262);const s=i(453);const o=i(13);const u=i(878);const l=i(683);const c=i(667);function refreshAuth(e,t){return new Promise((i,n)=>{const a=__ncc_wildcard$0(e);a.refresh(t).then(e=>{const t={bearer:e};return i(t)}).catch(e=>n(e))})}const d=["stdin","stdout","stderr","error","resize"];function isUpgradeRequired(e){return e.status==="Failure"&&e.code===400&&e.message==="Upgrade request required"}function upgradeRequest(e,t){const i=o.stringify(e.qs,{indices:false});const n=l(e.baseUrl,e.uri,`?${i}`);const a="base64.channel.k8s.io";e.headers={...e.headers,authorization:`Bearer ${e.auth.bearer}`};const r=new c(n,a,e);const s=[];r.on("message",e=>{const t=d[e.slice(0,1)];const i=Buffer.from(e.slice(1),"base64").toString("ascii");s.push({channel:t,message:i})});r.on("error",e=>{e.messages=s;t(e,s)});r.on("close",(e,i)=>t(null,{messages:s,body:s.map(({message:e})=>e).join(""),code:e,reason:i}));return r}class Request{constructor(e){this.requestOptions=e.request||{};let t;if(!e.kubeconfig){a("Request() without a .kubeconfig option, see "+"https://github.com/godaddy/kubernetes-client/blob/master/merging-with-kubernetes.md");t=e}else{t=n(e.kubeconfig)}this.requestOptions.qsStringifyOptions={indices:false};this.requestOptions.baseUrl=t.url;this.requestOptions.ca=t.ca;this.requestOptions.cert=t.cert;this.requestOptions.key=t.key;if("insecureSkipTlsVerify"in t){this.requestOptions.strictSSL=!t.insecureSkipTlsVerify}if("timeout"in t){this.requestOptions.timeout=t.timeout}this.authProvider={type:null};if(t.auth){this.requestOptions.auth=t.auth;if(t.auth.provider){this.requestOptions.auth=t.auth.request;this.authProvider=t.auth.provider}}}_request(e,t){const i=this.authProvider;return u(e,(n,a,r)=>{if(n)return t(n);if(r&&isUpgradeRequired(r)){return upgradeRequest(e,t)}if((a.statusCode===401||a.statusCode===403)&&i.type){return refreshAuth(i.type,i.config).then(i=>{this.requestOptions.auth=i;e.auth=i;return u(e,(e,i,n)=>{if(e)return t(e);return t(null,{statusCode:i.statusCode,body:n})})}).catch(e=>t(e))}return t(null,{statusCode:a.statusCode,body:r})})}async getLogByteStream(e){return this.http(Object.assign({stream:true},e))}async getWatchObjectStream(e){const t=new r;const i=this.http(Object.assign({stream:true},e));s(i,t);return t}async getWebSocket(e){throw new Error("Request.getWebSocket not implemented")}http(e){const t=e.pathname;const i=Object.assign({method:e.method,uri:t,body:e.body,json:"json"in e?Boolean(e.json):true,qs:e.parameters||e.qs,headers:e.headers},this.requestOptions);if(e.noAuth){delete i.auth}if(e.stream)return u(i);return new Promise((e,t)=>{this._request(i,(i,n)=>{if(i)return t(i);if(n.statusCode<200||n.statusCode>299){const e=new Error(n.body.message||n.body);e.code=n.statusCode;e.statusCode=n.statusCode;return t(e)}e(n)})})}}e.exports=Request},function(e){"use strict";e.exports=((e,t=1,i)=>{i={indent:" ",includeEmptyLines:false,...i};if(typeof e!=="string"){throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``)}if(typeof t!=="number"){throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``)}if(typeof i.indent!=="string"){throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof i.indent}\``)}if(t===0){return e}const n=i.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return e.replace(n,i.indent.repeat(t))})},function(e,t,i){const n=i(466);const a=i(849);const r=i(592);const{KeyStore:s}=i(926);e.exports=((e,t=false)=>{if(e instanceof a){return e}if(e instanceof s){if(!t){throw new TypeError("key argument for this operation must not be a JWKS.KeyStore instance")}return e}try{return r(e)}catch(e){if(e instanceof n.JOSEError&&!(e instanceof n.JWKImportFailed)){throw e}let i;if(t){i="key must be an instance of a key instantiated by JWK.asKey, a valid JWK.asKey input, or a JWKS.KeyStore instance"}else{i="key must be an instance of a key instantiated by JWK.asKey, or a valid JWK.asKey input"}throw new TypeError(i)}})},function(e,t,i){const n=i(462);const a=(e,t,i)=>n(e,t,"<",i);e.exports=a},,function(e,t,i){var n=i(249);e.exports={Ber:n,BerReader:n.Reader,BerWriter:n.Writer}},function(e){e.exports={$id:"cookie.json#",$schema:"http://json-schema.org/draft-06/schema#",type:"object",required:["name","value"],properties:{name:{type:"string"},value:{type:"string"},path:{type:"string"},domain:{type:"string"},expires:{type:["string","null"],format:"date-time"},httpOnly:{type:"boolean"},secure:{type:"boolean"},comment:{type:"string"}}}},,,,function(e){"use strict";const t=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0];function push(e,t,i){if(Object.prototype.hasOwnProperty.call(e,t))e[t].push(i);else e[t]=[i]}function parse(e){const i={};if(e===undefined||e==="")return i;var n={};var a=false;var r=false;var s=false;var o;var u;var l=-1;var c=-1;for(var d=0;d{var i=e[t];if(!Array.isArray(i))i=[i];return i.map(e=>{return[t].concat(Object.keys(e).map(t=>{var i=e[t];if(!Array.isArray(i))i=[i];return i.map(e=>e===true?t:`${t}=${e}`).join("; ")})).join("; ")}).join(", ")}).join(", ")}e.exports={format:format,parse:parse}},function(e,t,i){const n=i(274);const a=i(38);const r=i(0);const s=i(322);const o=i(570);const u=i(518).isString.bind(undefined,TypeError);const l=e=>{if(typeof e.iat!=="boolean"){throw new TypeError("options.iat must be a boolean")}if(typeof e.kid!=="boolean"){throw new TypeError("options.kid must be a boolean")}u(e.subject,"options.subject");u(e.issuer,"options.issuer");if(e.audience!==undefined&&((typeof e.audience!=="string"||!e.audience)&&(!Array.isArray(e.audience)||e.audience.length===0||e.audience.some(e=>!e||typeof e!=="string")))){throw new TypeError("options.audience must be a string or an array of strings")}if(!n(e.header)){throw new TypeError("options.header must be an object")}u(e.algorithm,"options.algorithm");u(e.expiresIn,"options.expiresIn");u(e.notBefore,"options.notBefore");u(e.jti,"options.jti");u(e.nonce,"options.nonce");if(e.now!==undefined&&(!(e.now instanceof Date)||!e.now.getTime())){throw new TypeError("options.now must be a valid Date object")}};e.exports=((e,t,i={})=>{if(!n(i)){throw new TypeError("options must be an object")}const{algorithm:u,audience:c,expiresIn:d,header:p={},iat:f=true,issuer:h,jti:m,kid:b=true,nonce:g,notBefore:y,subject:S,now:w}=i;l({algorithm:u,audience:c,expiresIn:d,header:p,iat:f,issuer:h,jti:m,kid:b,nonce:g,notBefore:y,now:w,subject:S});if(!n(e)){throw new TypeError("payload must be an object")}let v;if(d||y||f){v=r(w||new Date)}e={...e,sub:S||e.sub,aud:c||e.aud,iss:h||e.iss,jti:m||e.jti,iat:f?v:e.iat,nonce:g||e.nonce,exp:d?v+a(d):e.exp,nbf:y?v+a(y):e.nbf};t=s(t);let z;if(typeof i.kid==="boolean"){z=b}else{z=!t.secret}return o.sign(JSON.stringify(e),t,{...p,alg:u||p.alg,kid:z?t.kid:p.kid})})},,,function(e,t,i){e.exports={parallel:i(424),serial:i(91),serialOrdered:i(892)}},function(e,t,i){const{inherits:n}=i(669);const{Reporter:a}=i(410);function DecoderBuffer(e,t){a.call(this,t);if(!Buffer.isBuffer(e)){this.error("Input not Buffer");return}this.base=e;this.offset=0;this.length=e.length}n(DecoderBuffer,a);DecoderBuffer.isDecoderBuffer=function isDecoderBuffer(e){if(e instanceof DecoderBuffer){return true}const t=typeof e==="object"&&Buffer.isBuffer(e.base)&&e.constructor.name==="DecoderBuffer"&&typeof e.offset==="number"&&typeof e.length==="number"&&typeof e.save==="function"&&typeof e.restore==="function"&&typeof e.isEmpty==="function"&&typeof e.readUInt8==="function"&&typeof e.skip==="function"&&typeof e.raw==="function";return t};DecoderBuffer.prototype.save=function save(){return{offset:this.offset,reporter:a.prototype.save.call(this)}};DecoderBuffer.prototype.restore=function restore(e){const t=new DecoderBuffer(this.base);t.offset=e.offset;t.length=this.offset;this.offset=e.offset;a.prototype.restore.call(this,e.reporter);return t};DecoderBuffer.prototype.isEmpty=function isEmpty(){return this.offset===this.length};DecoderBuffer.prototype.readUInt8=function readUInt8(e){if(this.offset+1<=this.length){return this.base.readUInt8(this.offset++,true)}else{return this.error(e||"DecoderBuffer overrun")}};DecoderBuffer.prototype.skip=function skip(e,t){if(!(this.offset+e<=this.length)){return this.error(t||"DecoderBuffer overrun")}const i=new DecoderBuffer(this.base);i._reporterState=this._reporterState;i.offset=this.offset;i.length=this.offset+e;this.offset+=e;return i};DecoderBuffer.prototype.raw=function raw(e){return this.base.slice(e?e.offset:this.offset,this.length)};function EncoderBuffer(e,t){if(Array.isArray(e)){this.length=0;this.value=e.map(function(e){if(!EncoderBuffer.isEncoderBuffer(e)){e=new EncoderBuffer(e,t)}this.length+=e.length;return e},this)}else if(typeof e==="number"){if(!(e>=0&&e<=255)){return t.error("non-byte EncoderBuffer value")}this.value=e;this.length=1}else if(typeof e==="string"){this.value=e;this.length=Buffer.byteLength(e)}else if(Buffer.isBuffer(e)){this.value=e;this.length=e.length}else{return t.error(`Unsupported type: ${typeof e}`)}}EncoderBuffer.isEncoderBuffer=function isEncoderBuffer(e){if(e instanceof EncoderBuffer){return true}const t=typeof e==="object"&&e.constructor.name==="EncoderBuffer"&&typeof e.length==="number"&&typeof e.join==="function";return t};EncoderBuffer.prototype.join=function join(e,t){if(!e){e=Buffer.alloc(this.length)}if(!t){t=0}if(this.length===0){return e}if(Array.isArray(this.value)){this.value.forEach(function(i){i.join(e,t);t+=i.length})}else{if(typeof this.value==="number"){e[t]=this.value}else if(typeof this.value==="string"){e.write(this.value,t)}else if(Buffer.isBuffer(this.value)){this.value.copy(e,t)}t+=this.length}return e};e.exports={DecoderBuffer:DecoderBuffer,EncoderBuffer:EncoderBuffer}},,function(e){e.exports={$schema:"http://json-schema.org/draft-06/schema#",$id:"http://json-schema.org/draft-06/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:true,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},title:{type:"string"},description:{type:"string"},default:{},examples:{type:"array",items:{}},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:false},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:{},enum:{type:"array",minItems:1,uniqueItems:true},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:true}]},format:{type:"string"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:{}}},function(e,t,i){"use strict";const n=i(774);const a=i(794);const r=i(916);const s=i(523);const o=i(821);const u=i(879);const l=e=>e.stream?a(e):r(e);const c=["get","post","put","patch","head","delete"];const d=e=>{e=o({},e);s.preNormalize(e.options);if(!e.handler){e.handler=((e,t)=>t(e))}function got(t,i){try{return e.handler(s(t,i,e),l)}catch(e){if(i&&i.stream){throw e}else{return Promise.reject(e)}}}got.create=d;got.extend=(t=>{let i;if(t&&Reflect.has(t,"mutableDefaults")){i=t.mutableDefaults;delete t.mutableDefaults}else{i=e.mutableDefaults}return d({options:o.options(e.options,t),handler:e.handler,mutableDefaults:i})});got.mergeInstances=((...e)=>d(o.instances(e)));got.stream=((e,t)=>got(e,{...t,stream:true}));for(const e of c){got[e]=((t,i)=>got(t,{...i,method:e}));got.stream[e]=((t,i)=>got.stream(t,{...i,method:e}))}Object.assign(got,{...n,mergeOptions:o.options});Object.defineProperty(got,"defaults",{value:e.mutableDefaults?e:u(e),writable:e.mutableDefaults,configurable:e.mutableDefaults,enumerable:true});return got};e.exports=d},function(e){e.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON Schema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:false}},function(e,t,i){var n=i(602);var a=i(747);n.register("sort",_sort,{canReceivePipe:true,cmdOptions:{r:"reverse",n:"numerical"}});function parseNumber(e){var t=e.match(/^\s*(\d*)\s*(.*)$/);return{num:Number(t[1]),value:t[2]}}function unixCmp(e,t){var i=e.toLowerCase();var n=t.toLowerCase();return i===n?-1*e.localeCompare(t):i.localeCompare(n)}function numericalCmp(e,t){var i=parseNumber(e);var n=parseNumber(t);if(i.hasOwnProperty("num")&&n.hasOwnProperty("num")){return i.num!==n.num?i.num-n.num:unixCmp(i.value,n.value)}else{return unixCmp(i.value,n.value)}}function _sort(e,t){var i=n.readFromPipe();if(!t&&!i)n.error("no files given");t=[].slice.call(arguments,1);if(i){t.unshift("-")}var r=t.reduce(function(e,t){if(t!=="-"){if(!a.existsSync(t)){n.error("no such file or directory: "+t,{continue:true});return e}else if(n.statFollowLinks(t).isDirectory()){n.error("read failed: "+t+": Is a directory",{continue:true});return e}}var r=t==="-"?i:a.readFileSync(t,"utf8");return e.concat(r.trimRight().split("\n"))},[]);var s=r.sort(e.numerical?numericalCmp:unixCmp);if(e.reverse){s=s.reverse()}return s.join("\n")+"\n"}e.exports=_sort},function(e){"use strict";e.exports=function generate__limit(e,t,i){var n=" ";var a=e.level;var r=e.dataLevel;var s=e.schema[t];var o=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var l=!e.opts.allErrors;var c;var d="data"+(r||"");var p=e.opts.$data&&s&&s.$data,f;if(p){n+=" var schema"+a+" = "+e.util.getData(s.$data,r,e.dataPathArr)+"; ";f="schema"+a}else{f=s}var h=t=="maximum",m=h?"exclusiveMaximum":"exclusiveMinimum",b=e.schema[m],g=e.opts.$data&&b&&b.$data,y=h?"<":">",S=h?">":"<",c=undefined;if(!(p||typeof s=="number"||s===undefined)){throw new Error(t+" must be number")}if(!(g||b===undefined||typeof b=="number"||typeof b=="boolean")){throw new Error(m+" must be number or boolean")}if(g){var w=e.util.getData(b.$data,r,e.dataPathArr),v="exclusive"+a,z="exclType"+a,j="exclIsNumber"+a,O="op"+a,k="' + "+O+" + '";n+=" var schemaExcl"+a+" = "+w+"; ";w="schemaExcl"+a;n+=" var "+v+"; var "+z+" = typeof "+w+"; if ("+z+" != 'boolean' && "+z+" != 'undefined' && "+z+" != 'number') { ";var c=m;var C=C||[];C.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+(c||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ";if(e.opts.messages!==false){n+=" , message: '"+m+" should be boolean' "}if(e.opts.verbose){n+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}n+=" } "}else{n+=" {} "}var T=n;n=C.pop();if(!e.compositeRule&&l){if(e.async){n+=" throw new ValidationError(["+T+"]); "}else{n+=" validate.errors = ["+T+"]; return false; "}}else{n+=" var err = "+T+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+=" } else if ( ";if(p){n+=" ("+f+" !== undefined && typeof "+f+" != 'number') || "}n+=" "+z+" == 'number' ? ( ("+v+" = "+f+" === undefined || "+w+" "+y+"= "+f+") ? "+d+" "+S+"= "+w+" : "+d+" "+S+" "+f+" ) : ( ("+v+" = "+w+" === true) ? "+d+" "+S+"= "+f+" : "+d+" "+S+" "+f+" ) || "+d+" !== "+d+") { var op"+a+" = "+v+" ? '"+y+"' : '"+y+"='; ";if(s===undefined){c=m;u=e.errSchemaPath+"/"+m;f=w;p=g}}else{var j=typeof b=="number",k=y;if(j&&p){var O="'"+k+"'";n+=" if ( ";if(p){n+=" ("+f+" !== undefined && typeof "+f+" != 'number') || "}n+=" ( "+f+" === undefined || "+b+" "+y+"= "+f+" ? "+d+" "+S+"= "+b+" : "+d+" "+S+" "+f+" ) || "+d+" !== "+d+") { "}else{if(j&&s===undefined){v=true;c=m;u=e.errSchemaPath+"/"+m;f=b;S+="="}else{if(j)f=Math[h?"min":"max"](b,s);if(b===(j?f:true)){v=true;c=m;u=e.errSchemaPath+"/"+m;S+="="}else{v=false;k+="="}}var O="'"+k+"'";n+=" if ( ";if(p){n+=" ("+f+" !== undefined && typeof "+f+" != 'number') || "}n+=" "+d+" "+S+" "+f+" || "+d+" !== "+d+") { "}}c=c||t;var C=C||[];C.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+(c||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { comparison: "+O+", limit: "+f+", exclusive: "+v+" } ";if(e.opts.messages!==false){n+=" , message: 'should be "+k+" ";if(p){n+="' + "+f}else{n+=""+f+"'"}}if(e.opts.verbose){n+=" , schema: ";if(p){n+="validate.schema"+o}else{n+=""+s}n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}n+=" } "}else{n+=" {} "}var T=n;n=C.pop();if(!e.compositeRule&&l){if(e.async){n+=" throw new ValidationError(["+T+"]); "}else{n+=" validate.errors = ["+T+"]; return false; "}}else{n+=" var err = "+T+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+=" } ";if(l){n+=" else { "}return n}},function(e,t,i){var n=i(872);var a=i(669);var r=i(909);var s=r.HASH_ALGOS;var o=r.PK_ALGOS;var u=r.HttpSignatureError;var l=r.InvalidAlgorithmError;var c=r.validateAlgorithm;var d={New:0,Params:1};var p={Name:0,Quote:1,Value:2,Comma:3};function ExpiredRequestError(e){u.call(this,e,ExpiredRequestError)}a.inherits(ExpiredRequestError,u);function InvalidHeaderError(e){u.call(this,e,InvalidHeaderError)}a.inherits(InvalidHeaderError,u);function InvalidParamsError(e){u.call(this,e,InvalidParamsError)}a.inherits(InvalidParamsError,u);function MissingHeaderError(e){u.call(this,e,MissingHeaderError)}a.inherits(MissingHeaderError,u);function StrictParsingError(e){u.call(this,e,StrictParsingError)}a.inherits(StrictParsingError,u);e.exports={parseRequest:function parseRequest(e,t){n.object(e,"request");n.object(e.headers,"request.headers");if(t===undefined){t={}}if(t.headers===undefined){t.headers=[e.headers["x-date"]?"x-date":"date"]}n.object(t,"options");n.arrayOfString(t.headers,"options.headers");n.optionalFinite(t.clockSkew,"options.clockSkew");var i=t.authorizationHeaderName||"authorization";if(!e.headers[i]){throw new MissingHeaderError("no "+i+" header "+"present in the request")}t.clockSkew=t.clockSkew||300;var a=0;var r=d.New;var s=p.Name;var o="";var u="";var f={scheme:"",params:{},signingString:""};var h=e.headers[i];for(a=0;a=65&&b<=90||b>=97&&b<=122){o+=m}else if(m==="="){if(o.length===0)throw new InvalidHeaderError("bad param format");s=p.Quote}else{throw new InvalidHeaderError("bad param format")}break;case p.Quote:if(m==='"'){u="";s=p.Value}else{throw new InvalidHeaderError("bad param format")}break;case p.Value:if(m==='"'){f.params[o]=u;s=p.Comma}else{u+=m}break;case p.Comma:if(m===","){o="";s=p.Name}else{throw new InvalidHeaderError("bad param format")}break;default:throw new Error("Invalid substate")}break;default:throw new Error("Invalid substate")}}if(!f.params.headers||f.params.headers===""){if(e.headers["x-date"]){f.params.headers=["x-date"]}else{f.params.headers=["date"]}}else{f.params.headers=f.params.headers.split(" ")}if(!f.scheme||f.scheme!=="Signature")throw new InvalidHeaderError('scheme was not "Signature"');if(!f.params.keyId)throw new InvalidHeaderError("keyId was not specified");if(!f.params.algorithm)throw new InvalidHeaderError("algorithm was not specified");if(!f.params.signature)throw new InvalidHeaderError("signature was not specified");f.params.algorithm=f.params.algorithm.toLowerCase();try{c(f.params.algorithm)}catch(e){if(e instanceof l)throw new InvalidParamsError(f.params.algorithm+" is not "+"supported");else throw e}for(a=0;at.clockSkew*1e3){throw new ExpiredRequestError("clock skew of "+v/1e3+"s was greater than "+t.clockSkew+"s")}}t.headers.forEach(function(e){if(f.params.headers.indexOf(e.toLowerCase())<0)throw new MissingHeaderError(e+" was not a signed header")});if(t.algorithms){if(t.algorithms.indexOf(f.params.algorithm)===-1)throw new InvalidParamsError(f.params.algorithm+" is not a supported algorithm")}f.algorithm=f.params.algorithm.toUpperCase();f.keyId=f.params.keyId;return f}}},function(e){"use strict";e.exports=function generate_properties(e,t,i){var n=" ";var a=e.level;var r=e.dataLevel;var s=e.schema[t];var o=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var l=!e.opts.allErrors;var c="data"+(r||"");var d="errs__"+a;var p=e.util.copy(e);var f="";p.level++;var h="valid"+p.level;var m="key"+a,b="idx"+a,g=p.dataLevel=e.dataLevel+1,y="data"+g,S="dataProperties"+a;var w=Object.keys(s||{}).filter(notProto),v=e.schema.patternProperties||{},z=Object.keys(v).filter(notProto),j=e.schema.additionalProperties,O=w.length||z.length,k=j===false,C=typeof j=="object"&&Object.keys(j).length,T=e.opts.removeAdditional,R=k||C||T,E=e.opts.ownProperties,A=e.baseId;var x=e.schema.required;if(x&&!(e.opts.$data&&x.$data)&&x.length8){n+=" || validate.schema"+o+".hasOwnProperty("+m+") "}else{var V=w;if(V){var P,D=-1,I=V.length-1;while(D0:e.util.schemaHasRules($,e.RULES.all)){var ee=e.util.getProperty(P),K=c+ee,te=F&&$.default!==undefined;p.schema=$;p.schemaPath=o+ee;p.errSchemaPath=u+"/"+e.util.escapeFragment(P);p.errorPath=e.util.getPath(e.errorPath,P,e.opts.jsonPointers);p.dataPathArr[g]=e.util.toQuotedString(P);var J=e.validate(p);p.baseId=A;if(e.util.varOccurences(J,y)<2){J=e.util.varReplace(J,y,K);var ie=K}else{var ie=y;n+=" var "+y+" = "+K+"; "}if(te){n+=" "+J+" "}else{if(N&&N[P]){n+=" if ( "+ie+" === undefined ";if(E){n+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(P)+"') "}n+=") { "+h+" = false; ";var U=e.errorPath,H=u,ne=e.util.escapeQuotes(P);if(e.opts._errorDataPathProperty){e.errorPath=e.util.getPath(U,P,e.opts.jsonPointers)}u=e.errSchemaPath+"/required";var Q=Q||[];Q.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+"required"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+ne+"' } ";if(e.opts.messages!==false){n+=" , message: '";if(e.opts._errorDataPathProperty){n+="is a required property"}else{n+="should have required property \\'"+ne+"\\'"}n+="' "}if(e.opts.verbose){n+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}n+=" } "}else{n+=" {} "}var W=n;n=Q.pop();if(!e.compositeRule&&l){if(e.async){n+=" throw new ValidationError(["+W+"]); "}else{n+=" validate.errors = ["+W+"]; return false; "}}else{n+=" var err = "+W+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}u=H;e.errorPath=U;n+=" } else { "}else{if(l){n+=" if ( "+ie+" === undefined ";if(E){n+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(P)+"') "}n+=") { "+h+" = true; } else { "}else{n+=" if ("+ie+" !== undefined ";if(E){n+=" && Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(P)+"') "}n+=" ) { "}}n+=" "+J+" } "}}if(l){n+=" if ("+h+") { ";f+="}"}}}}if(z.length){var ae=z;if(ae){var q,re=-1,se=ae.length-1;while(re0:e.util.schemaHasRules($,e.RULES.all)){p.schema=$;p.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(q);p.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(q);if(E){n+=" "+S+" = "+S+" || Object.keys("+c+"); for (var "+b+"=0; "+b+"<"+S+".length; "+b+"++) { var "+m+" = "+S+"["+b+"]; "}else{n+=" for (var "+m+" in "+c+") { "}n+=" if ("+e.usePattern(q)+".test("+m+")) { ";p.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);var K=c+"["+m+"]";p.dataPathArr[g]=m;var J=e.validate(p);p.baseId=A;if(e.util.varOccurences(J,y)<2){n+=" "+e.util.varReplace(J,y,K)+" "}else{n+=" var "+y+" = "+K+"; "+J+" "}if(l){n+=" if (!"+h+") break; "}n+=" } ";if(l){n+=" else "+h+" = true; "}n+=" } ";if(l){n+=" if ("+h+") { ";f+="}"}}}}}if(l){n+=" "+f+" if ("+d+" == errors) {"}return n}},,,,,function(e,t,i){var n=i(872);var a=i(669);var r=i(697);var s=i(956);var o=i(703);t.deepCopy=deepCopy;t.deepEqual=deepEqual;t.isEmpty=isEmpty;t.hasKey=hasKey;t.forEachKey=forEachKey;t.pluck=pluck;t.flattenObject=flattenObject;t.flattenIter=flattenIter;t.validateJsonObject=validateJsonObjectJS;t.validateJsonObjectJS=validateJsonObjectJS;t.randElt=randElt;t.extraProperties=extraProperties;t.mergeObjects=mergeObjects;t.startsWith=startsWith;t.endsWith=endsWith;t.parseInteger=parseInteger;t.iso8601=iso8601;t.rfc1123=rfc1123;t.parseDateTime=parseDateTime;t.hrtimediff=hrtimeDiff;t.hrtimeDiff=hrtimeDiff;t.hrtimeAccum=hrtimeAccum;t.hrtimeAdd=hrtimeAdd;t.hrtimeNanosec=hrtimeNanosec;t.hrtimeMicrosec=hrtimeMicrosec;t.hrtimeMillisec=hrtimeMillisec;function deepCopy(e){var t,i;var n="__deepCopy";if(e&&e[n])throw new Error("attempted deep copy of cyclic object");if(e&&e.constructor==Object){t={};e[n]=true;for(i in e){if(i==n)continue;t[i]=deepCopy(e[i])}delete e[n];return t}if(e&&e.constructor==Array){t=[];e[n]=true;for(i=0;i=0);for(s in e){r=i.slice(0);r.push(s);doFlattenIter(e[s],t-1,r,a)}}function flattenObject(e,t){if(t===0)return[e];n.ok(e!==null);n.equal(typeof e,"object");n.equal(typeof t,"number");n.ok(t>=0);var i=[];var a;for(a in e){flattenObject(e[a],t-1).forEach(function(e){i.push([a].concat(e))})}return i}function startsWith(e,t){return e.substr(0,t.length)==t}function endsWith(e,t){return e.substr(e.length-t.length,t.length)==t}function iso8601(e){if(typeof e=="number")e=new Date(e);n.ok(e.constructor===Date);return r.sprintf("%4d-%02d-%02dT%02d:%02d:%02d.%03dZ",e.getUTCFullYear(),e.getUTCMonth()+1,e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())}var u=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];var l=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];function rfc1123(e){return r.sprintf("%s, %02d %s %04d %02d:%02d:%02d GMT",l[e.getUTCDay()],e.getUTCDate(),u[e.getUTCMonth()],e.getUTCFullYear(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds())}function parseDateTime(e){var t=+e;if(!isNaN(t)){return new Date(t)}else{return new Date(e)}}var c=Number.MAX_SAFE_INTEGER||9007199254740991;var d=Number.MIN_SAFE_INTEGER||-9007199254740991;var p={base:10,allowSign:true,allowPrefix:false,allowTrailing:false,allowImprecise:false,trimWhitespace:false,leadingZeroIsOctal:false};var f=48;var h=57;var m=65;var b=66;var g=79;var y=84;var S=88;var w=90;var v=97;var z=98;var j=111;var O=116;var k=120;var C=122;var T=48;var R=55;var E=87;function parseInteger(e,t){n.string(e,"str");n.optionalObject(t,"options");var i=false;var a=p;if(t){i=hasKey(t,"base");a=mergeObjects(a,t);n.number(a.base,"options.base");n.ok(a.base>=2,"options.base >= 2");n.ok(a.base<=36,"options.base <= 36");n.bool(a.allowSign,"options.allowSign");n.bool(a.allowPrefix,"options.allowPrefix");n.bool(a.allowTrailing,"options.allowTrailing");n.bool(a.allowImprecise,"options.allowImprecise");n.bool(a.trimWhitespace,"options.trimWhitespace");n.bool(a.leadingZeroIsOctal,"options.leadingZeroIsOctal");if(a.leadingZeroIsOctal){n.ok(!i,'"base" and "leadingZeroIsOctal" are '+"mutually exclusive")}}var r;var s=-1;var o=a.base;var u;var l=1;var f=0;var h=0;var m=e.length;if(a.trimWhitespace){while(hc||b=f&&e<=h){return e-T}else if(e>=m&&e<=w){return e-R}else if(e>=v&&e<=C){return e-E}else{return-1}}function isSpace(e){return e===32||e>=9&&e<=13||e===160||e===5760||e===6158||e>=8192&&e<=8202||e===8232||e===8233||e===8239||e===8287||e===12288||e===65279}function prefixToBase(e){if(e===z||e===b){return 2}else if(e===j||e===g){return 8}else if(e===O||e===y){return 10}else if(e===k||e===S){return 16}else{return-1}}function validateJsonObjectJS(e,t){var i=o.validate(t,e);if(i.errors.length===0)return null;var n=i.errors[0];var a=n["property"];var r=n["message"].toLowerCase();var u,l;if((u=r.indexOf("the property "))!=-1&&(l=r.indexOf(" is not defined in the schema and the "+"schema does not allow additional properties"))!=-1){u+="the property ".length;if(a==="")a=r.substr(u,l-u);else a=a+"."+r.substr(u,l-u);r="unsupported property"}var c=new s.VError('property "%s": %s',a,r);c.jsv_details=n;return c}function randElt(e){n.ok(Array.isArray(e)&&e.length>0,"randElt argument must be a non-empty array");return e[Math.floor(Math.random()*e.length)]}function assertHrtime(e){n.ok(e[0]>=0&&e[1]>=0,"negative numbers not allowed in hrtimes");n.ok(e[1]<1e9,"nanoseconds column overflow")}function hrtimeDiff(e,t){assertHrtime(e);assertHrtime(t);n.ok(e[0]>t[0]||e[0]==t[0]&&e[1]>=t[1],"negative differences not allowed");var i=[e[0]-t[0],0];if(e[1]>=t[1]){i[1]=e[1]-t[1]}else{i[0]--;i[1]=1e9-(t[1]-e[1])}return i}function hrtimeNanosec(e){assertHrtime(e);return Math.floor(e[0]*1e9+e[1])}function hrtimeMicrosec(e){assertHrtime(e);return Math.floor(e[0]*1e6+e[1]/1e3)}function hrtimeMillisec(e){assertHrtime(e);return Math.floor(e[0]*1e3+e[1]/1e6)}function hrtimeAccum(e,t){assertHrtime(e);assertHrtime(t);e[1]+=t[1];if(e[1]>=1e9){e[0]++;e[1]-=1e9}e[0]+=t[0];return e}function hrtimeAdd(e,t){assertHrtime(e);var i=[e[0],e[1]];return hrtimeAccum(i,t)}function extraProperties(e,t){n.ok(typeof e==="object"&&e!==null,"obj argument must be a non-null object");n.ok(Array.isArray(t),"allowed argument must be an array of strings");for(var i=0;i{if(e.length===t){return e}const i=Buffer.alloc(t);e.copy(i);return i};const r=(e,t)=>{const i=Math.max(e.length,t.length);return n(a(e,i),a(t,i))};e.exports=r},,function(e){e.exports=require("assert")},function(e,t,i){const n=i(232);function defaults(e,t,...i){for(const a of i){if(!n(a)){continue}for(const[i,r]of Object.entries(a)){if(i==="__proto__"||i==="constructor"){continue}if(typeof t[i]==="undefined"&&typeof r!=="undefined"){t[i]=r}if(e&&n(t[i])&&n(r)){defaults(true,t[i],r)}}}return t}e.exports=defaults.bind(undefined,false);e.exports.deep=defaults.bind(undefined,true)},function(e,t,i){var n=i(622);var a=i(602);a.register("pwd",_pwd,{allowGlobbing:false});function _pwd(){var e=n.resolve(process.cwd());return e}e.exports=_pwd},,,function(e){e.exports={EOC:0,Boolean:1,Integer:2,BitString:3,OctetString:4,Null:5,OID:6,ObjectDescriptor:7,External:8,Real:9,Enumeration:10,PDV:11,Utf8String:12,RelativeOID:13,Sequence:16,Set:17,NumericString:18,PrintableString:19,T61String:20,VideotexString:21,IA5String:22,UTCTime:23,GeneralizedTime:24,GraphicString:25,VisibleString:26,GeneralString:28,UniversalString:29,CharacterString:30,BMPString:31,Constructor:32,Context:128}},function(e){e.exports=require("http")},,function(e,t,i){"use strict";const{Transform:n}=i(413);e.exports={download(e,t,i){let a=0;return new n({transform(e,n,r){a+=e.length;const s=i?a/i:0;if(s<1){t.emit("downloadProgress",{percent:s,transferred:a,total:i})}r(null,e)},flush(e){t.emit("downloadProgress",{percent:1,transferred:a,total:i});e()}})},upload(e,t,i){const n=150;let a=0;let r;t.emit("uploadProgress",{percent:0,transferred:0,total:i});e.once("error",()=>{clearInterval(r)});e.once("response",()=>{clearInterval(r);t.emit("uploadProgress",{percent:1,transferred:a,total:i})});e.once("socket",s=>{const o=()=>{r=setInterval(()=>{const n=a;const r=e._header?Buffer.byteLength(e._header):0;a=s.bytesWritten-r;if(a===n||a===i){return}t.emit("uploadProgress",{percent:i?a/i:0,transferred:a,total:i})},n)};if(s.connecting){s.once("connect",o)}else if(s.writable){o()}})}}},function(e){"use strict";var t=e.exports=function Cache(){this._cache={}};t.prototype.put=function Cache_put(e,t){this._cache[e]=t};t.prototype.get=function Cache_get(e){return this._cache[e]};t.prototype.del=function Cache_del(e){delete this._cache[e]};t.prototype.clear=function Cache_clear(){this._cache={}}},,function(e,t,i){const{createHash:n,randomBytes:a}=i(373);const{encode:r}=i(549);const s=(e=32)=>r(a(e));e.exports={random:s,state:s,nonce:s,codeVerifier:s,codeChallenge:e=>r(n("sha256").update(e).digest())}},function(e){"use strict";e.exports=function generate_dependencies(e,t,i){var n=" ";var a=e.level;var r=e.dataLevel;var s=e.schema[t];var o=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var l=!e.opts.allErrors;var c="data"+(r||"");var d="errs__"+a;var p=e.util.copy(e);var f="";p.level++;var h="valid"+p.level;var m={},b={},g=e.opts.ownProperties;for(v in s){if(v=="__proto__")continue;var y=s[v];var S=Array.isArray(y)?b:m;S[v]=y}n+="var "+d+" = errors;";var w=e.errorPath;n+="var missing"+a+";";for(var v in b){S=b[v];if(S.length){n+=" if ( "+c+e.util.getProperty(v)+" !== undefined ";if(g){n+=" && Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(v)+"') "}if(l){n+=" && ( ";var z=S;if(z){var j,O=-1,k=z.length-1;while(O0:e.util.schemaHasRules(y,e.RULES.all)){n+=" "+h+" = true; if ( "+c+e.util.getProperty(v)+" !== undefined ";if(g){n+=" && Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(v)+"') "}n+=") { ";p.schema=y;p.schemaPath=o+e.util.getProperty(v);p.errSchemaPath=u+"/"+e.util.escapeFragment(v);n+=" "+e.validate(p)+" ";p.baseId=D;n+=" } ";if(l){n+=" if ("+h+") { ";f+="}"}}}if(l){n+=" "+f+" if ("+d+" == errors) {"}return n}},,,function(e,t,i){const{inflateRawSync:n}=i(903);const a=i(208);const r=i(322);const{KeyStore:s}=i(851);const o=i(466);const{check:u,decrypt:l,keyManagementDecrypt:c}=i(179);const d=i(715);const{createSecretKey:p}=i(40);const f=i(201);const h=i(17);const{detect:m}=i(975);const b=new Set(["compact","flattened"]);const g=(e={},t={},i={})=>{if(typeof e==="string"){e=a.JSON.decode(e)}const n=e.p2s||t.p2s||i.p2s;const r=e.apu||t.apu||i.apu;const s=e.apv||t.apv||i.apv;const o=e.iv||t.iv||i.iv;const u=e.tag||t.tag||i.tag;return{...e,...t,...i,...typeof n==="string"?{p2s:a.decodeToBuffer(n)}:undefined,...typeof r==="string"?{apu:a.decodeToBuffer(r)}:undefined,...typeof s==="string"?{apv:a.decodeToBuffer(s)}:undefined,...typeof o==="string"?{iv:a.decodeToBuffer(o)}:undefined,...typeof u==="string"?{tag:a.decodeToBuffer(u)}:undefined}};const y=(e,t,i,S,{crit:w=[],complete:v=false,algorithms:z}={})=>{S=r(S,true);if(z!==undefined&&(!Array.isArray(z)||z.some(e=>typeof e!=="string"||!e))){throw new TypeError('"algorithms" option must be an array of non-empty strings')}else if(z){z=new Set(z)}if(!Array.isArray(w)||w.some(e=>typeof e!=="string"||!e)){throw new TypeError('"crit" option must be an array of non-empty strings')}if(!t){t=m(i)}let j,O,k,C,T,R,E,A,x,N,V,P;if(t==="general"&&i.recipients.length===1){t="flattened";const{recipients:e,...n}=i;i={...n,...e[0]}}if(b.has(t)){if(t==="compact"){[E,C,T,O,A]=i.split(".")}else{({protected:E,encrypted_key:C,iv:T,ciphertext:O,tag:A,unprotected:x,aad:V,header:P}=i)}if(!e){h(E,x,[{header:P}],true,w)}R=g(E,x,P);({alg:j,enc:k}=R);if(z&&!z.has(j==="dir"?k:j)){throw new o.JOSEAlgNotWhitelisted("alg not whitelisted")}if(S instanceof s){const e=S;let n;if(R.alg==="dir"){n=e.all({kid:R.kid,alg:R.enc,key_ops:["decrypt"]})}else{n=e.all({kid:R.kid,alg:R.alg,key_ops:["unwrapKey"]})}switch(n.length){case 0:throw new o.JWKSNoMatchingKey;case 1:S=n[0];break;default:{const e=[];for(const a of n){try{return y(true,t,i,a,{crit:w,complete:v,algorithms:z?[...z]:undefined})}catch(t){e.push(t);continue}}const a=new o.JOSEMultiError(e);if([...a].some(e=>e instanceof o.JWEDecryptionFailed)){throw new o.JWEDecryptionFailed}throw a}}}u(S,...j==="dir"?["decrypt",k]:["keyManagementDecrypt",j]);try{if(j==="dir"){N=d.asKey(S,{alg:k,use:"enc"})}else if(j==="ECDH-ES"){const e=c(j,S,undefined,R);N=d.asKey(p(e),{alg:k,use:"enc"})}else{const e=c(j,S,a.decodeToBuffer(C),R);N=d.asKey(p(e),{alg:k,use:"enc"})}}catch(e){N=f(k)}let r;if(V){r=Buffer.concat([Buffer.from(E||""),Buffer.from("."),Buffer.from(V)])}else{r=Buffer.from(E||"")}try{T=a.decodeToBuffer(T)}catch(e){}try{A=a.decodeToBuffer(A)}catch(e){}let m=l(k,N,a.decodeToBuffer(O),{iv:T,tag:A,aad:r});if(R.zip){m=n(m)}if(v){const e={cleartext:m,key:S,cek:N};if(V)e.aad=V;if(P)e.header=P;if(x)e.unprotected=x;if(E)e.protected=a.JSON.decode(E);return e}return m}h(i.protected,i.unprotected,i.recipients.map(({header:e})=>({header:e})),true,w);const{recipients:D,...I}=i;const _=[];for(const e of D){try{return y(true,"flattened",{...I,...e},S,{crit:w,complete:v,algorithms:z?[...z]:undefined})}catch(e){_.push(e);continue}}const q=new o.JOSEMultiError(_);if([...q].some(e=>e instanceof o.JWEDecryptionFailed)){throw new o.JWEDecryptionFailed}else if([...q].every(e=>e instanceof o.JWKSNoMatchingKey)){throw new o.JWKSNoMatchingKey}throw q};e.exports=y.bind(undefined,false,undefined)},function(e){e.exports=require("crypto")},function(e){"use strict";var t=Object.prototype.hasOwnProperty;var i=Object.prototype.toString;var n=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var r=function isArray(e){if(typeof Array.isArray==="function"){return Array.isArray(e)}return i.call(e)==="[object Array]"};var s=function isPlainObject(e){if(!e||i.call(e)!=="[object Object]"){return false}var n=t.call(e,"constructor");var a=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!a){return false}var r;for(r in e){}return typeof r==="undefined"||t.call(e,r)};var o=function setProperty(e,t){if(n&&t.name==="__proto__"){n(e,t.name,{enumerable:true,configurable:true,value:t.newValue,writable:true})}else{e[t.name]=t.newValue}};var u=function getProperty(e,i){if(i==="__proto__"){if(!t.call(e,i)){return void 0}else if(a){return a(e,i).value}}return e[i]};e.exports=function extend(){var e,t,i,n,a,l;var c=arguments[0];var d=1;var p=arguments.length;var f=false;if(typeof c==="boolean"){f=c;c=arguments[1]||{};d=2}if(c==null||typeof c!=="object"&&typeof c!=="function"){c={}}for(;d{e={...e};const{array:t}=e;let{encoding:i}=e;const a=i==="buffer";let r=false;if(t){r=!(i||a)}else{i=i||"utf8"}if(a){i=null}const s=new n({objectMode:r});if(i){s.setEncoding(i)}let o=0;const u=[];s.on("data",e=>{u.push(e);if(r){o=u.length}else{o+=e.length}});s.getBufferedValue=(()=>{if(t){return u}return a?Buffer.concat(u,o):u.join("")});s.getBufferedLength=(()=>o);return s})},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=i(262);const a=i(878);class DefaultRequest{webRequest(e,t){return a(e,t)}}t.DefaultRequest=DefaultRequest;class Watch{constructor(e,t){this.config=e;if(t){this.requestImpl=t}else{this.requestImpl=new DefaultRequest}}watch(e,t,i,a){const r=this.config.getCurrentCluster();if(!r){throw new Error("No currently active cluster")}const s=r.server+e;t.watch=true;const o={};const u={method:"GET",qs:t,headers:o,uri:s,useQuerystring:true,json:true};this.config.applyToRequest(u);const l=new n;l.on("data",e=>i(e.type,e.object));const c=this.requestImpl.webRequest(u,(e,t,i)=>{if(e){a(e)}else{a(null)}});c.pipe(l);return c}}t.Watch=Watch},,function(e,t,i){e.exports=Identity;var n=i(872);var a=i(98);var r=i(373);var s=i(400);var o=i(575);var u=i(753);var l=i(669);var c=i(270);var d=i(325);var p=i(215).Buffer;var f=/^([*]|[a-z0-9][a-z0-9\-]{0,62})(?:\.([*]|[a-z0-9][a-z0-9\-]{0,62}))*$/i;var h={};h.cn="2.5.4.3";h.o="2.5.4.10";h.ou="2.5.4.11";h.l="2.5.4.7";h.s="2.5.4.8";h.c="2.5.4.6";h.sn="2.5.4.4";h.postalCode="2.5.4.17";h.serialNumber="2.5.4.5";h.street="2.5.4.9";h.x500UniqueIdentifier="2.5.4.45";h.role="2.5.4.72";h.telephoneNumber="2.5.4.20";h.description="2.5.4.13";h.dc="0.9.2342.19200300.100.1.25";h.uid="0.9.2342.19200300.100.1.1";h.mail="0.9.2342.19200300.100.1.3";h.title="2.5.4.12";h.gn="2.5.4.42";h.initials="2.5.4.43";h.pseudonym="2.5.4.65";h.emailAddress="1.2.840.113549.1.9.1";var m={};Object.keys(h).forEach(function(e){m[h[e]]=e});function Identity(e){var t=this;n.object(e,"options");n.arrayOfObject(e.components,"options.components");this.components=e.components;this.componentLookup={};this.components.forEach(function(e){if(e.name&&!e.oid)e.oid=h[e.name];if(e.oid&&!e.name)e.name=m[e.oid];if(t.componentLookup[e.name]===undefined)t.componentLookup[e.name]=[];t.componentLookup[e.name].push(e)});if(this.componentLookup.cn&&this.componentLookup.cn.length>0){this.cn=this.componentLookup.cn[0].value}n.optionalString(e.type,"options.type");if(e.type===undefined){if(this.components.length===1&&this.componentLookup.cn&&this.componentLookup.cn.length===1&&this.componentLookup.cn[0].value.match(f)){this.type="host";this.hostname=this.componentLookup.cn[0].value}else if(this.componentLookup.dc&&this.components.length===this.componentLookup.dc.length){this.type="host";this.hostname=this.componentLookup.dc.map(function(e){return e.value}).join(".")}else if(this.componentLookup.uid&&this.components.length===this.componentLookup.uid.length){this.type="user";this.uid=this.componentLookup.uid[0].value}else if(this.componentLookup.cn&&this.componentLookup.cn.length===1&&this.componentLookup.cn[0].value.match(f)){this.type="host";this.hostname=this.componentLookup.cn[0].value}else if(this.componentLookup.uid&&this.componentLookup.uid.length===1){this.type="user";this.uid=this.componentLookup.uid[0].value}else if(this.componentLookup.mail&&this.componentLookup.mail.length===1){this.type="email";this.email=this.componentLookup.mail[0].value}else if(this.componentLookup.cn&&this.componentLookup.cn.length===1){this.type="user";this.uid=this.componentLookup.cn[0].value}else{this.type="unknown"}}else{this.type=e.type;if(this.type==="host")this.hostname=e.hostname;else if(this.type==="user")this.uid=e.uid;else if(this.type==="email")this.email=e.email;else throw new Error("Unknown type "+this.type)}}Identity.prototype.toString=function(){return this.components.map(function(e){var t=e.name.toUpperCase();t=t.replace(/=/g,"\\=");var i=e.value;i=i.replace(/,/g,"\\,");return t+"="+i}).join(", ")};Identity.prototype.get=function(e,t){n.string(e,"name");var i=this.componentLookup[e];if(i===undefined||i.length===0)return undefined;if(!t&&i.length>1)throw new Error("Multiple values for attribute "+e);if(!t)return i[0].value;return i.map(function(e){return e.value})};Identity.prototype.toArray=function(e){return this.components.map(function(e){return{name:e.name,value:e.value}})};var b=/[^a-zA-Z0-9 '(),+.\/:=?-]/;var g=/[^\x00-\x7f]/;Identity.prototype.toAsn1=function(e,t){e.startSequence(t);this.components.forEach(function(t){e.startSequence(d.Ber.Constructor|d.Ber.Set);e.startSequence();e.writeOID(t.oid);if(t.asn1type===d.Ber.Utf8String||t.value.match(g)){var i=p.from(t.value,"utf8");e.writeBuffer(i,d.Ber.Utf8String)}else if(t.asn1type===d.Ber.IA5String||t.value.match(b)){e.writeString(t.value,d.Ber.IA5String)}else{var n=d.Ber.PrintableString;if(t.asn1type!==undefined)n=t.asn1type;e.writeString(t.value,n)}e.endSequence();e.endSequence()});e.endSequence()};function globMatch(e,t){if(e==="**"||t==="**")return true;var i=e.split(".");var n=t.split(".");if(i.length!==n.length)return false;for(var a=0;a0){var r;if((r=/^,/.exec(a))!==null){t[++i]="";a=a.slice(r[0].length)}else if((r=/^\\,/.exec(a))!==null){t[i]+=",";a=a.slice(r[0].length)}else if((r=/^\\./.exec(a))!==null){t[i]+=r[0];a=a.slice(r[0].length)}else if((r=/^[^\\,]+/.exec(a))!==null){t[i]+=r[0];a=a.slice(r[0].length)}else{throw new Error("Failed to parse DN")}}var s=t.map(function(e){e=e.trim();var t=e.indexOf("=");while(t>0&&e.charAt(t-1)==="\\")t=e.indexOf("=",t+1);if(t===-1){throw new Error("Failed to parse DN")}var i=e.slice(0,t).toLowerCase().replace(/\\=/g,"=");var n=e.slice(t+1);return{name:i,value:n}});return new Identity({components:s})};Identity.fromArray=function(e){n.arrayOfObject(e,"components");e.forEach(function(e){n.object(e,"component");n.string(e.name,"component.name");if(!p.isBuffer(e.value)&&!(typeof e.value==="string")){throw new Error("Invalid component value")}});return new Identity({components:e})};Identity.parseAsn1=function(e,t){var i=[];e.readSequence(t);var n=e.offset+e.length;while(e.offset 1e-"+e.opts.multipleOfPrecision+" "}else{n+=" division"+a+" !== parseInt(division"+a+") "}n+=" ) ";if(d){n+=" ) "}n+=" ) { ";var f=f||[];f.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+"multipleOf"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { multipleOf: "+p+" } ";if(e.opts.messages!==false){n+=" , message: 'should be multiple of ";if(d){n+="' + "+p}else{n+=""+p+"'"}}if(e.opts.verbose){n+=" , schema: ";if(d){n+="validate.schema"+o}else{n+=""+s}n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}n+=" } "}else{n+=" {} "}var h=n;n=f.pop();if(!e.compositeRule&&l){if(e.async){n+=" throw new ValidationError(["+h+"]); "}else{n+=" validate.errors = ["+h+"]; return false; "}}else{n+=" var err = "+h+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+="} ";if(l){n+=" else { "}return n}},,,function(e,t,i){e.exports=Fingerprint;var n=i(872);var a=i(215).Buffer;var r=i(98);var s=i(373);var o=i(753);var u=i(852);var l=i(502);var c=i(966);var d=i(270);var p=o.FingerprintFormatError;var f=o.InvalidAlgorithmError;function Fingerprint(e){n.object(e,"options");n.string(e.type,"options.type");n.buffer(e.hash,"options.hash");n.string(e.algorithm,"options.algorithm");this.algorithm=e.algorithm.toLowerCase();if(r.hashAlgs[this.algorithm]!==true)throw new f(this.algorithm);this.hash=e.hash;this.type=e.type;this.hashType=e.hashType}Fingerprint.prototype.toString=function(e){if(e===undefined){if(this.algorithm==="md5"||this.hashType==="spki")e="hex";else e="base64"}n.string(e);switch(e){case"hex":if(this.hashType==="spki")return this.hash.toString("hex");return addColons(this.hash.toString("hex"));case"base64":if(this.hashType==="spki")return this.hash.toString("base64");return sshBase64Format(this.algorithm,this.hash.toString("base64"));default:throw new p(undefined,e)}};Fingerprint.prototype.matches=function(e){n.object(e,"key or certificate");if(this.type==="key"&&this.hashType!=="ssh"){d.assertCompatible(e,u,[1,7],"key with spki");if(l.isPrivateKey(e)){d.assertCompatible(e,l,[1,6],"privatekey with spki support")}}else if(this.type==="key"){d.assertCompatible(e,u,[1,0],"key")}else{d.assertCompatible(e,c,[1,0],"certificate")}var t=e.hash(this.algorithm,this.hashType);var i=s.createHash(this.algorithm).update(t).digest("base64");if(this.hash2===undefined)this.hash2=s.createHash(this.algorithm).update(this.hash).digest("base64");return this.hash2===i};var h=/^[A-Za-z0-9+\/=]+$/;var m=/^[a-fA-F0-9]+$/;Fingerprint.parse=function(e,t){n.string(e,"fingerprint");var i,s,o;if(Array.isArray(t)){o=t;t={}}n.optionalObject(t,"options");if(t===undefined)t={};if(t.enAlgs!==undefined)o=t.enAlgs;if(t.algorithms!==undefined)o=t.algorithms;n.optionalArrayOfString(o,"algorithms");var u="ssh";if(t.hashType!==undefined)u=t.hashType;n.string(u,"options.hashType");var l=e.split(":");if(l.length==2){i=l[0].toLowerCase();if(!h.test(l[1]))throw new p(e);try{s=a.from(l[1],"base64")}catch(t){throw new p(e)}}else if(l.length>2){i="md5";if(l[0].toLowerCase()==="md5")l=l.slice(1);l=l.map(function(t){while(t.length<2)t="0"+t;if(t.length>2)throw new p(e);return t});l=l.join("");if(!m.test(l)||l.length%2!==0)throw new p(e);try{s=a.from(l,"hex")}catch(t){throw new p(e)}}else{if(m.test(e)){s=a.from(e,"hex")}else if(h.test(e)){s=a.from(e,"base64")}else{throw new p(e)}switch(s.length){case 32:i="sha256";break;case 16:i="md5";break;case 20:i="sha1";break;case 64:i="sha512";break;default:throw new p(e)}if(t.hashType===undefined)u="spki"}if(i===undefined)throw new p(e);if(r.hashAlgs[i]===undefined)throw new f(i);if(o!==undefined){o=o.map(function(e){return e.toLowerCase()});if(o.indexOf(i)===-1)throw new f(i)}return new Fingerprint({algorithm:i,hash:s,type:t.type||"key",hashType:u})};function addColons(e){return e.replace(/(.{2})(?=.)/g,"$1:")}function base64Strip(e){return e.replace(/=*$/,"")}function sshBase64Format(e,t){return e.toUpperCase()+":"+base64Strip(t)}Fingerprint.isFingerprint=function(e,t){return d.isCompatible(e,Fingerprint,t)};Fingerprint.prototype._sshpkApiVersion=[1,2];Fingerprint._oldVersionDetect=function(e){n.func(e.toString);n.func(e.matches);return[1,0]}},function(e,t,i){const n=i(255);e.exports=function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").explicit(0).optional().choice({namedCurve:this.objid(n)}),this.key("publicKey").explicit(1).optional().bitstr())}},function(e,t,i){e.exports=glob;var n=i(747);var a=i(302);var r=i(595);var s=r.Minimatch;var o=i(689);var u=i(614).EventEmitter;var l=i(622);var c=i(357);var d=i(681);var p=i(245);var f=i(856);var h=f.alphasort;var m=f.alphasorti;var b=f.setopts;var g=f.ownProp;var y=i(674);var S=i(669);var w=f.childrenIgnored;var v=f.isIgnored;var z=i(49);function glob(e,t,i){if(typeof t==="function")i=t,t={};if(!t)t={};if(t.sync){if(i)throw new TypeError("callback provided to sync glob");return p(e,t)}return new Glob(e,t,i)}glob.sync=p;var j=glob.GlobSync=p.GlobSync;glob.glob=glob;function extend(e,t){if(t===null||typeof t!=="object"){return e}var i=Object.keys(t);var n=i.length;while(n--){e[i[n]]=t[i[n]]}return e}glob.hasMagic=function(e,t){var i=extend({},t);i.noprocess=true;var n=new Glob(e,i);var a=n.minimatch.set;if(!e)return false;if(a.length>1)return true;for(var r=0;rthis.maxLength)return t();if(!this.stat&&g(this.cache,i)){var r=this.cache[i];if(Array.isArray(r))r="DIR";if(!a||r==="DIR")return t(null,r);if(a&&r==="FILE")return t()}var s;var o=this.statCache[i];if(o!==undefined){if(o===false)return t(null,o);else{var u=o.isDirectory()?"DIR":"FILE";if(a&&u==="FILE")return t();else return t(null,u,o)}}var l=this;var c=y("stat\0"+i,lstatcb_);if(c)n.lstat(i,c);function lstatcb_(a,r){if(r&&r.isSymbolicLink()){return n.stat(i,function(n,a){if(n)l._stat2(e,i,null,r,t);else l._stat2(e,i,n,a,t)})}else{l._stat2(e,i,a,r,t)}}};Glob.prototype._stat2=function(e,t,i,n,a){if(i&&(i.code==="ENOENT"||i.code==="ENOTDIR")){this.statCache[t]=false;return a()}var r=e.slice(-1)==="/";this.statCache[t]=n;if(t.slice(-1)==="/"&&n&&!n.isDirectory())return a(null,false,n);var s=true;if(n)s=n.isDirectory()?"DIR":"FILE";this.cache[t]=this.cache[t]||s;if(r&&s==="FILE")return a();return a(null,s,n)}},function(e,t,i){const n=i(232);function merge(e,...t){for(const i of t){if(!n(i)){continue}for(const[t,a]of Object.entries(i)){if(t==="__proto__"||t==="constructor"){continue}if(n(e[t])&&n(a)){e[t]=merge(e[t],a)}else if(typeof a!=="undefined"){e[t]=a}}}return e}e.exports=merge},,,,,function(e,t,i){const{createCipheriv:n,createDecipheriv:a,getCiphers:r}=i(373);const{KEYOBJECT:s}=i(771);const{JWEInvalid:o,JWEDecryptionFailed:u}=i(466);const{asInput:l}=i(40);const c=function(e,t,i){if(t.length!==12){throw new o("invalid iv")}if(arguments.length===3){if(i.length!==16){throw new o("invalid tag")}}};const d=(e,{[s]:t},i,{iv:a,aad:r=Buffer.alloc(0)})=>{const o=l(t,false);c(e,a);const u=n(`aes-${e}-gcm`,o,a,{authTagLength:16});u.setAAD(r);const d=Buffer.concat([u.update(i),u.final()]);const p=u.getAuthTag();return{ciphertext:d,tag:p}};const p=(e,{[s]:t},i,{iv:n,tag:r=Buffer.alloc(0),aad:o=Buffer.alloc(0)})=>{const d=l(t,false);c(e,n,r);try{const t=a(`aes-${e}-gcm`,d,n,{authTagLength:16});t.setAuthTag(r);t.setAAD(o);return Buffer.concat([t.update(i),t.final()])}catch(e){throw new u}};e.exports=((e,t)=>{["A128GCM","A192GCM","A256GCM"].forEach(i=>{const n=parseInt(i.substr(1,3),10);if(r().includes(`aes-${n}-gcm`)){e.encrypt.set(i,d.bind(undefined,n));e.decrypt.set(i,p.bind(undefined,n));t.oct.encrypt[i]=t.oct.decrypt[i]=(e=>(e.use==="enc"||e.use===undefined)&&e.length===n)}})})},function(){},function(e,t,i){const{inherits:n}=i(669);function Reporter(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}Reporter.prototype.isError=function isError(e){return e instanceof ReporterError};Reporter.prototype.save=function save(){const e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}};Reporter.prototype.restore=function restore(e){const t=this._reporterState;t.obj=e.obj;t.path=t.path.slice(0,e.pathLen)};Reporter.prototype.enterKey=function enterKey(e){return this._reporterState.path.push(e)};Reporter.prototype.exitKey=function exitKey(e){const t=this._reporterState;t.path=t.path.slice(0,e-1)};Reporter.prototype.leaveKey=function leaveKey(e,t,i){const n=this._reporterState;this.exitKey(e);if(n.obj!==null){n.obj[t]=i}};Reporter.prototype.path=function path(){return this._reporterState.path.join("/")};Reporter.prototype.enterObject=function enterObject(){const e=this._reporterState;const t=e.obj;e.obj={};return t};Reporter.prototype.leaveObject=function leaveObject(e){const t=this._reporterState;const i=t.obj;t.obj=e;return i};Reporter.prototype.error=function error(e){let t;const i=this._reporterState;const n=e instanceof ReporterError;if(n){t=e}else{t=new ReporterError(i.path.map(function(e){return`[${JSON.stringify(e)}]`}).join(""),e.message||e,e.stack)}if(!i.options.partial){throw t}if(!n){i.errors.push(t)}return t};Reporter.prototype.wrapResult=function wrapResult(e){const t=this._reporterState;if(!t.options.partial){return e}return{result:this.isError(e)?null:e,errors:t.errors}};function ReporterError(e,t){this.path=e;this.rethrow(t)}n(ReporterError,Error);ReporterError.prototype.rethrow=function rethrow(e){this.message=`${e} at: ${this.path||"(shallow)"}`;if(Error.captureStackTrace){Error.captureStackTrace(this,ReporterError)}if(!this.stack){try{throw new Error(this.message)}catch(e){this.stack=e.stack}}return this};t.Reporter=Reporter},,,function(e){e.exports=require("stream")},function(e,t,i){"use strict";var n=i(819);e.exports=n},,function(e,t,i){"use strict";var n=i(747);var a=i(191);var r=i(846);var s=i(374);function Har(e){this.request=e}Har.prototype.reducer=function(e,t){if(e[t.name]===undefined){e[t.name]=t.value;return e}var i=[e[t.name],t.value];e[t.name]=i;return e};Har.prototype.prep=function(e){e.queryObj={};e.headersObj={};e.postData.jsonObj=false;e.postData.paramsObj=false;if(e.queryString&&e.queryString.length){e.queryObj=e.queryString.reduce(this.reducer,{})}if(e.headers&&e.headers.length){e.headersObj=e.headers.reduceRight(function(e,t){e[t.name]=t.value;return e},{})}if(e.cookies&&e.cookies.length){var t=e.cookies.map(function(e){return e.name+"="+e.value});if(t.length){e.headersObj.cookie=t.join("; ")}}function some(t){return t.some(function(t){return e.postData.mimeType.indexOf(t)===0})}if(some(["multipart/mixed","multipart/related","multipart/form-data","multipart/alternative"])){e.postData.mimeType="multipart/form-data"}else if(some(["application/x-www-form-urlencoded"])){if(!e.postData.params){e.postData.text=""}else{e.postData.paramsObj=e.postData.params.reduce(this.reducer,{});e.postData.text=a.stringify(e.postData.paramsObj)}}else if(some(["text/json","text/x-json","application/json","application/x-json"])){e.postData.mimeType="application/json";if(e.postData.text){try{e.postData.jsonObj=JSON.parse(e.postData.text)}catch(t){this.request.debug(t);e.postData.mimeType="text/plain"}}}return e};Har.prototype.options=function(e){if(!e.har){return e}var t={};s(t,e.har);if(t.log&&t.log.entries){t=t.log.entries[0]}t.url=t.url||e.url||e.uri||e.baseUrl||"/";t.httpVersion=t.httpVersion||"HTTP/1.1";t.queryString=t.queryString||[];t.headers=t.headers||[];t.cookies=t.cookies||[];t.postData=t.postData||{};t.postData.mimeType=t.postData.mimeType||"application/octet-stream";t.bodySize=0;t.headersSize=0;t.postData.size=0;if(!r.request(t)){return e}var i=this.prep(t);if(i.url){e.url=i.url}if(i.method){e.method=i.method}if(Object.keys(i.queryObj).length){e.qs=i.queryObj}if(Object.keys(i.headersObj).length){e.headers=i.headersObj}function test(e){return i.postData.mimeType.indexOf(e)===0}if(test("application/x-www-form-urlencoded")){e.form=i.postData.paramsObj}else if(test("application/json")){if(i.postData.jsonObj){e.body=i.postData.jsonObj;e.json=true}}else if(test("multipart/form-data")){e.formData={};i.postData.params.forEach(function(t){var i={};if(!t.fileName&&!t.contentType){e.formData[t.name]=t.value;return}if(t.fileName&&!t.value){i.value=n.createReadStream(t.fileName)}else if(t.value){i.value=t.value}if(t.fileName){i.options={filename:t.fileName,contentType:t.contentType?t.contentType:null}}e.formData[t.name]=i})}else{if(i.postData.text){e.body=i.postData.text}}return e};t.Har=Har},function(e,t,i){"use strict";var n=i(128);var a=i(945);var r=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?"+"|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?"+"|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*"+"|[-+]?\\.(?:inf|Inf|INF)"+"|\\.(?:nan|NaN|NAN))$");function resolveYamlFloat(e){if(e===null)return false;if(!r.test(e)||e[e.length-1]==="_"){return false}return true}function constructYamlFloat(e){var t,i,n,a;t=e.replace(/_/g,"").toLowerCase();i=t[0]==="-"?-1:1;a=[];if("+-".indexOf(t[0])>=0){t=t.slice(1)}if(t===".inf"){return i===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY}else if(t===".nan"){return NaN}else if(t.indexOf(":")>=0){t.split(":").forEach(function(e){a.unshift(parseFloat(e,10))});t=0;n=1;a.forEach(function(e){t+=e*n;n*=60});return i*t}return i*parseFloat(t,10)}var s=/^[-+]?[0-9]+e/;function representYamlFloat(e,t){var i;if(isNaN(e)){switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}}else if(Number.POSITIVE_INFINITY===e){switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}}else if(Number.NEGATIVE_INFINITY===e){switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}}else if(n.isNegativeZero(e)){return"-0.0"}i=e.toString(10);return s.test(i)?i.replace("e",".e"):i}function isFloat(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||n.isNegativeZero(e))}e.exports=new a("tag:yaml.org,2002:float",{kind:"scalar",resolve:resolveYamlFloat,construct:constructYamlFloat,predicate:isFloat,represent:representYamlFloat,defaultStyle:"lowercase"})},function(e,t,i){var n=i(622).relative;e.exports=depd;var a=process.cwd();function containsNamespace(e,t){var i=e.split(/[ ,]+/);var n=String(t).toLowerCase();for(var a=0;a0}function isignored(e){if(process.noDeprecation){return true}var t=process.env.NO_DEPRECATION||"";return containsNamespace(t,e)}function istraced(e){if(process.traceDeprecation){return true}var t=process.env.TRACE_DEPRECATION||"";return containsNamespace(t,e)}function log(e,t){var i=eehaslisteners(process,"deprecation");if(!i&&this._ignored){return}var n;var a;var r;var s;var o=0;var u=false;var l=getStack();var c=this._file;if(t){s=t;r=callSiteLocation(l[1]);r.name=s.name;c=r[0]}else{o=2;s=callSiteLocation(l[o]);r=s}for(;o";var i=e.getLineNumber();var n=e.getColumnNumber();if(e.isEval()){t=e.getEvalOrigin()+", "+t}var a=[t,i,n];a.callSite=e;a.name=e.getFunctionName();return a}function defaultMessage(e){var t=e.callSite;var i=e.name;if(!i){i=""}var n=t.getThis();var a=n&&t.getTypeName();if(a==="Object"){a=undefined}if(a==="Function"){a=n.name||a}return a&&t.getMethodName()?a+"."+i:i}function formatPlain(e,t,i){var n=(new Date).toUTCString();var a=n+" "+this._namespace+" deprecated "+e;if(this._traced){for(var r=0;r=0;o--)if(s=e[o])r=(a<3?s(r):a>3?s(t,i,r):s(t,i))||r;return a>3&&r&&Object.defineProperty(t,i,r),r};r=function(e,t){return function(i,n){t(i,n,e)}};s=function(e,t){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(e,t)};o=function(e,t,i,n){function adopt(e){return e instanceof i?e:new i(function(t){t(e)})}return new(i||(i=Promise))(function(i,a){function fulfilled(e){try{step(n.next(e))}catch(e){a(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){a(e)}}function step(e){e.done?i(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};u=function(e,t){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,a,r,s;return s={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function verb(e){return function(t){return step([e,t])}}function step(s){if(n)throw new TypeError("Generator is already executing.");while(i)try{if(n=1,a&&(r=s[0]&2?a["return"]:s[0]?a["throw"]||((r=a["return"])&&r.call(a),0):a.next)&&!(r=r.call(a,s[1])).done)return r;if(a=0,r)s=[s[0]&2,r.value];switch(s[0]){case 0:case 1:r=s;break;case 4:i.label++;return{value:s[1],done:false};case 5:i.label++;a=s[1];s=[0];continue;case 7:s=i.ops.pop();i.trys.pop();continue;default:if(!(r=i.trys,r=r.length>0&&r[r.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!r||s[1]>r[0]&&s[1]=e.length)e=void 0;return{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};d=function(e,t){var i=typeof Symbol==="function"&&e[Symbol.iterator];if(!i)return e;var n=i.call(e),a,r=[],s;try{while((t===void 0||t-- >0)&&!(a=n.next()).done)r.push(a.value)}catch(e){s={error:e}}finally{try{if(a&&!a.done&&(i=n["return"]))i.call(n)}finally{if(s)throw s.error}}return r};p=function(){for(var e=[],t=0;t1||resume(e,t)})}}function resume(e,t){try{step(n[e](t))}catch(e){settle(r[0][3],e)}}function step(e){e.value instanceof h?Promise.resolve(e.value.v).then(fulfill,reject):settle(r[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,t){if(e(t),r.shift(),r.length)resume(r[0][0],r[0][1])}};b=function(e){var t,i;return t={},verb("next"),verb("throw",function(e){throw e}),verb("return"),t[Symbol.iterator]=function(){return this},t;function verb(n,a){t[n]=e[n]?function(t){return(i=!i)?{value:h(e[n](t)),done:n==="return"}:a?a(t):t}:a}};g=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],i;return t?t.call(e):(e=typeof c==="function"?c(e):e[Symbol.iterator](),i={},verb("next"),verb("throw"),verb("return"),i[Symbol.asyncIterator]=function(){return this},i);function verb(t){i[t]=e[t]&&function(i){return new Promise(function(n,a){i=e[t](i),settle(n,a,i.done,i.value)})}}function settle(e,t,i,n){Promise.resolve(n).then(function(t){e({value:t,done:i})},t)}};y=function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};S=function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)if(Object.hasOwnProperty.call(e,i))t[i]=e[i];t["default"]=e;return t};w=function(e){return e&&e.__esModule?e:{default:e}};v=function(e,t){if(!t.has(e)){throw new TypeError("attempted to get private field on non-instance")}return t.get(e)};z=function(e,t,i){if(!t.has(e)){throw new TypeError("attempted to set private field on non-instance")}t.set(e,i);return i};e("__extends",t);e("__assign",i);e("__rest",n);e("__decorate",a);e("__param",r);e("__metadata",s);e("__awaiter",o);e("__generator",u);e("__exportStar",l);e("__createBinding",j);e("__values",c);e("__read",d);e("__spread",p);e("__spreadArrays",f);e("__await",h);e("__asyncGenerator",m);e("__asyncDelegator",b);e("__asyncValues",g);e("__makeTemplateObject",y);e("__importStar",S);e("__importDefault",w);e("__classPrivateFieldGet",v);e("__classPrivateFieldSet",z)})},,function(e,t,i){var n=i(157),a=i(147),r=i(939);e.exports=parallel;function parallel(e,t,i){var s=a(e);while(s.index<(s["keyedList"]||e).length){n(e,t,s,function(e,t){if(e){i(e,t);return}if(Object.keys(s.jobs).length===0){i(null,s.results);return}});s.index++}return r.bind(s,i)}},,,,function(e,t,i){var n=i(872);var a=i(373);var r=i(650);var s=i(909);var o=s.HASH_ALGOS;var u=s.PK_ALGOS;var l=s.InvalidAlgorithmError;var c=s.HttpSignatureError;var d=s.validateAlgorithm;e.exports={verifySignature:function verifySignature(e,t){n.object(e,"parsedSignature");if(typeof t==="string"||Buffer.isBuffer(t))t=r.parseKey(t);n.ok(r.Key.isKey(t,[1,1]),"pubkey must be a sshpk.Key");var i=d(e.algorithm);if(i[0]==="hmac"||i[0]!==t.type)return false;var a=t.createVerify(i[1]);a.update(e.signingString);return a.verify(e.params.signature,"base64")},verifyHMAC:function verifyHMAC(e,t){n.object(e,"parsedHMAC");n.string(t,"secret");var i=d(e.algorithm);if(i[0]!=="hmac")return false;var r=i[1].toUpperCase();var s=a.createHmac(r,t);s.update(e.signingString);var o=a.createHmac(r,t);o.update(s.digest());o=o.digest();var u=a.createHmac(r,t);u.update(new Buffer(e.params.signature,"base64"));u=u.digest();if(typeof o==="string")return o===u;if(Buffer.isBuffer(o)&&!o.equals)return o.toString("binary")===u.toString("binary");return o.equals(u)}}},,,function(e,t,i){"use strict";var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)if(Object.hasOwnProperty.call(e,i))t[i]=e[i];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const a=n(i(87));const r=i(82);function issueCommand(e,t,i){const n=new Command(e,t,i);process.stdout.write(n.toString()+a.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const s="::";class Command{constructor(e,t,i){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=i}toString(){let e=s+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const i in this.properties){if(this.properties.hasOwnProperty(i)){const n=this.properties[i];if(n){if(t){t=false}else{e+=","}e+=`${i}=${escapeProperty(n)}`}}}}e+=`${s}${escapeData(this.message)}`;return e}}function escapeData(e){return r.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return r.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},function(e,t,i){const{improvedDH:n}=i(915);const{KEYLENGTHS:a}=i(962);const{generateSync:r}=i(626);const{name:s}=i(997);const o=i(68);const u=(e,t,{enc:i})=>{const n=r(e.kty,e.crv);const s=o(i,a.get(i),n,e);return{wrapped:s,header:{epk:{kty:e.kty,crv:e.crv,x:n.x,y:n.y}}}};const l=(e,t,i)=>{const{enc:n,epk:r}=i;return o(n,a.get(n),e,r,i)};e.exports=((e,t)=>{e.keyManagementEncrypt.set("ECDH-ES",u);e.keyManagementDecrypt.set("ECDH-ES",l);t.EC.deriveKey["ECDH-ES"]=(e=>(e.use==="enc"||e.use===undefined)&&e.crv!==s);if(n){t.OKP.deriveKey["ECDH-ES"]=(e=>(e.use==="enc"||e.use===undefined)&&e.keyObject.asymmetricKeyType.startsWith("x"))}})},function(e){"use strict";e.exports=["beforeError","init","beforeRequest","beforeRedirect","beforeRetry","afterResponse"]},function(e){"use strict";e.exports=function generate_uniqueItems(e,t,i){var n=" ";var a=e.level;var r=e.dataLevel;var s=e.schema[t];var o=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var l=!e.opts.allErrors;var c="data"+(r||"");var d="valid"+a;var p=e.opts.$data&&s&&s.$data,f;if(p){n+=" var schema"+a+" = "+e.util.getData(s.$data,r,e.dataPathArr)+"; ";f="schema"+a}else{f=s}if((s||p)&&e.opts.uniqueItems!==false){if(p){n+=" var "+d+"; if ("+f+" === false || "+f+" === undefined) "+d+" = true; else if (typeof "+f+" != 'boolean') "+d+" = false; else { "}n+=" var i = "+c+".length , "+d+" = true , j; if (i > 1) { ";var h=e.schema.items&&e.schema.items.type,m=Array.isArray(h);if(!h||h=="object"||h=="array"||m&&(h.indexOf("object")>=0||h.indexOf("array")>=0)){n+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+c+"[i], "+c+"[j])) { "+d+" = false; break outer; } } } "}else{n+=" var itemIndices = {}, item; for (;i--;) { var item = "+c+"[i]; ";var b="checkDataType"+(m?"s":"");n+=" if ("+e.util[b](h,"item",e.opts.strictNumbers,true)+") continue; ";if(m){n+=" if (typeof item == 'string') item = '\"' + item; "}n+=" if (typeof itemIndices[item] == 'number') { "+d+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}n+=" } ";if(p){n+=" } "}n+=" if (!"+d+") { ";var g=g||[];g.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+"uniqueItems"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { i: i, j: j } ";if(e.opts.messages!==false){n+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "}if(e.opts.verbose){n+=" , schema: ";if(p){n+="validate.schema"+o}else{n+=""+s}n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}n+=" } "}else{n+=" {} "}var y=n;n=g.pop();if(!e.compositeRule&&l){if(e.async){n+=" throw new ValidationError(["+y+"]); "}else{n+=" validate.errors = ["+y+"]; return false; "}}else{n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+=" } ";if(l){n+=" else { "}}else{if(l){n+=" if (true) { "}}return n}},function(e,t,i){"use strict";const n=i(534);e.exports=(e=>{const t={protocol:e.protocol,hostname:e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,href:e.href};if(n.string(e.port)&&e.port.length>0){t.port=Number(e.port)}if(e.username||e.password){t.auth=`${e.username}:${e.password}`}t.path=n.null(e.search)?e.pathname:`${e.pathname}${e.search}`;return t})},,,function(e){"use strict";e.exports=function generate_pattern(e,t,i){var n=" ";var a=e.level;var r=e.dataLevel;var s=e.schema[t];var o=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var l=!e.opts.allErrors;var c="data"+(r||"");var d=e.opts.$data&&s&&s.$data,p;if(d){n+=" var schema"+a+" = "+e.util.getData(s.$data,r,e.dataPathArr)+"; ";p="schema"+a}else{p=s}var f=d?"(new RegExp("+p+"))":e.usePattern(s);n+="if ( ";if(d){n+=" ("+p+" !== undefined && typeof "+p+" != 'string') || "}n+=" !"+f+".test("+c+") ) { ";var h=h||[];h.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+"pattern"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { pattern: ";if(d){n+=""+p}else{n+=""+e.util.toQuotedString(s)}n+=" } ";if(e.opts.messages!==false){n+=" , message: 'should match pattern \"";if(d){n+="' + "+p+" + '"}else{n+=""+e.util.escapeQuotes(s)}n+="\"' "}if(e.opts.verbose){n+=" , schema: ";if(d){n+="validate.schema"+o}else{n+=""+e.util.toQuotedString(s)}n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}n+=" } "}else{n+=" {} "}var m=n;n=h.pop();if(!e.compositeRule&&l){if(e.async){n+=" throw new ValidationError(["+m+"]); "}else{n+=" validate.errors = ["+m+"]; return false; "}}else{n+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+="} ";if(l){n+=" else { "}return n}},,function(e){"use strict";class Event{constructor(e,t){this.target=t;this.type=e}}class MessageEvent extends Event{constructor(e,t){super("message",t);this.data=e}}class CloseEvent extends Event{constructor(e,t,i){super("close",i);this.wasClean=i._closeFrameReceived&&i._closeFrameSent;this.reason=t;this.code=e}}class OpenEvent extends Event{constructor(e){super("open",e)}}class ErrorEvent extends Event{constructor(e,t){super("error",t);this.message=e.message;this.error=e}}const t={addEventListener(e,t,i){if(typeof t!=="function")return;function onMessage(e){t.call(this,new MessageEvent(e,this))}function onClose(e,i){t.call(this,new CloseEvent(e,i,this))}function onError(e){t.call(this,new ErrorEvent(e,this))}function onOpen(){t.call(this,new OpenEvent(this))}const n=i&&i.once?"once":"on";if(e==="message"){onMessage._listener=t;this[n](e,onMessage)}else if(e==="close"){onClose._listener=t;this[n](e,onClose)}else if(e==="error"){onError._listener=t;this[n](e,onError)}else if(e==="open"){onOpen._listener=t;this[n](e,onOpen)}else{this[n](e,t)}},removeEventListener(e,t){const i=this.listeners(e);for(let n=0;n{if(!e.name){throw new Error(`clusters[${t}].name is missing`)}if(!e.cluster){throw new Error(`clusters[${t}].cluster is missing`)}if(!e.cluster.server){throw new Error(`clusters[${t}].cluster.server is missing`)}return{caData:e.cluster["certificate-authority-data"],caFile:e.cluster["certificate-authority"],name:e.name,server:e.cluster.server,skipTLSVerify:e.cluster["insecure-skip-tls-verify"]===true}}}function newUsers(e){return a.map(e,userIterator())}t.newUsers=newUsers;function userIterator(){return(e,t,i)=>{if(!e.name){throw new Error(`users[${t}].name is missing`)}return{authProvider:e.user?e.user["auth-provider"]:null,certData:e.user?e.user["client-certificate-data"]:null,certFile:e.user?e.user["client-certificate"]:null,exec:e.user?e.user.exec:null,keyData:e.user?e.user["client-key-data"]:null,keyFile:e.user?e.user["client-key"]:null,name:e.name,token:findToken(e.user),password:e.user?e.user.password:null,username:e.user?e.user.username:null}}}function findToken(e){if(e){if(e.token){return e.token}if(e["token-file"]){return n.readFileSync(e["token-file"]).toString()}}}function newContexts(e){return a.map(e,contextIterator())}t.newContexts=newContexts;function contextIterator(){return(e,t,i)=>{if(!e.name){throw new Error(`contexts[${t}].name is missing`)}if(!e.context){throw new Error(`contexts[${t}].context is missing`)}if(!e.context.cluster){throw new Error(`contexts[${t}].context.cluster is missing`)}return{cluster:e.context.cluster,name:e.name,user:e.context.user||undefined,namespace:e.context.namespace||undefined}}}},,,,,function(e,t,i){e.exports={read:read,readPkcs1:readPkcs1,write:write,writePkcs1:writePkcs1};var n=i(872);var a=i(325);var r=i(215).Buffer;var s=i(98);var o=i(270);var u=i(852);var l=i(502);var c=i(268);var d=i(707);var p=d.readECDSACurve;function read(e,t){return c.read(e,t,"pkcs1")}function write(e,t){return c.write(e,t,"pkcs1")}function readMPInt(e,t){n.strictEqual(e.peek(),a.Ber.Integer,t+" is not an Integer");return o.mpNormalize(e.readString(a.Ber.Integer,true))}function readPkcs1(e,t,i){switch(e){case"RSA":if(t==="public")return readPkcs1RSAPublic(i);else if(t==="private")return readPkcs1RSAPrivate(i);throw new Error("Unknown key type: "+t);case"DSA":if(t==="public")return readPkcs1DSAPublic(i);else if(t==="private")return readPkcs1DSAPrivate(i);throw new Error("Unknown key type: "+t);case"EC":case"ECDSA":if(t==="private")return readPkcs1ECDSAPrivate(i);else if(t==="public")return readPkcs1ECDSAPublic(i);throw new Error("Unknown key type: "+t);case"EDDSA":case"EdDSA":if(t==="private")return readPkcs1EdDSAPrivate(i);throw new Error(t+" keys not supported with EdDSA");default:throw new Error("Unknown key algo: "+e)}}function readPkcs1RSAPublic(e){var t=readMPInt(e,"modulus");var i=readMPInt(e,"exponent");var n={type:"rsa",parts:[{name:"e",data:i},{name:"n",data:t}]};return new u(n)}function readPkcs1RSAPrivate(e){var t=readMPInt(e,"version");n.strictEqual(t[0],0);var i=readMPInt(e,"modulus");var a=readMPInt(e,"public exponent");var r=readMPInt(e,"private exponent");var s=readMPInt(e,"prime1");var o=readMPInt(e,"prime2");var u=readMPInt(e,"exponent1");var c=readMPInt(e,"exponent2");var d=readMPInt(e,"iqmp");var p={type:"rsa",parts:[{name:"n",data:i},{name:"e",data:a},{name:"d",data:r},{name:"iqmp",data:d},{name:"p",data:s},{name:"q",data:o},{name:"dmodp",data:u},{name:"dmodq",data:c}]};return new l(p)}function readPkcs1DSAPrivate(e){var t=readMPInt(e,"version");n.strictEqual(t.readUInt8(0),0);var i=readMPInt(e,"p");var a=readMPInt(e,"q");var r=readMPInt(e,"g");var s=readMPInt(e,"y");var o=readMPInt(e,"x");var u={type:"dsa",parts:[{name:"p",data:i},{name:"q",data:a},{name:"g",data:r},{name:"y",data:s},{name:"x",data:o}]};return new l(u)}function readPkcs1EdDSAPrivate(e){var t=readMPInt(e,"version");n.strictEqual(t.readUInt8(0),1);var i=e.readString(a.Ber.OctetString,true);e.readSequence(160);var r=e.readOID();n.strictEqual(r,"1.3.101.112","the ed25519 curve identifier");e.readSequence(161);var s=o.readBitString(e);var u={type:"ed25519",parts:[{name:"A",data:o.zeroPadToLength(s,32)},{name:"k",data:i}]};return new l(u)}function readPkcs1DSAPublic(e){var t=readMPInt(e,"y");var i=readMPInt(e,"p");var n=readMPInt(e,"q");var a=readMPInt(e,"g");var r={type:"dsa",parts:[{name:"y",data:t},{name:"p",data:i},{name:"q",data:n},{name:"g",data:a}]};return new u(r)}function readPkcs1ECDSAPublic(e){e.readSequence();var t=e.readOID();n.strictEqual(t,"1.2.840.10045.2.1","must be ecPublicKey");var i=e.readOID();var l;var c=Object.keys(s.curves);for(var d=0;d=1e9){throw new Error(`Generated versionCode ${i} is dangerously close to the maximum allowed number 2100000000. Consider a different versioning scheme to be able to continue updating your application.`)}Object(s.info)(`Using android versionCode ${i}`);return i}}class Platform{static get default(){return Platform.types.StandaloneWindows64}static get types(){return{StandaloneOSX:"StandaloneOSX",StandaloneWindows:"StandaloneWindows",StandaloneWindows64:"StandaloneWindows64",StandaloneLinux64:"StandaloneLinux64",iOS:"iOS",Android:"Android",WebGL:"WebGL",WSAPlayer:"WSAPlayer",PS4:"PS4",XboxOne:"XboxOne",tvOS:"tvOS",Switch:"Switch",Lumin:"Lumin",BJM:"BJM",Stadia:"Stadia",Facebook:"Facebook",NoTarget:"NoTarget",Test:"Test"}}static isWindows(e){switch(e){case Platform.types.StandaloneWindows:case Platform.types.StandaloneWindows64:return true;default:return false}}static isAndroid(e){switch(e){case Platform.types.Android:return true;default:return false}}}var u=Platform;const l=i(470);class input_Input{static get unityVersion(){return l.getInput("unityVersion")}static get customImage(){return l.getInput("customImage")}static get targetPlatform(){return l.getInput("targetPlatform")||u.default}static get projectPath(){const e=l.getInput("projectPath")||".";return e.replace(/\/$/,"")}static get buildName(){return l.getInput("buildName")||this.targetPlatform}static get buildsPath(){return l.getInput("buildsPath")||"build"}static get buildMethod(){return l.getInput("buildMethod")}static get versioningStrategy(){return l.getInput("versioning")||"Semantic"}static get specifiedVersion(){return l.getInput("version")||""}static get androidVersionCode(){return l.getInput("androidVersionCode")}static get androidAppBundle(){const e=l.getInput("androidAppBundle")||false;return e==="true"}static get androidKeystoreName(){return l.getInput("androidKeystoreName")||""}static get androidKeystoreBase64(){return l.getInput("androidKeystoreBase64")||""}static get androidKeystorePass(){return l.getInput("androidKeystorePass")||""}static get androidKeyaliasName(){return l.getInput("androidKeyaliasName")||""}static get androidKeyaliasPass(){return l.getInput("androidKeyaliasPass")||""}static get allowDirtyBuild(){const e=l.getInput("allowDirtyBuild")||false;return e==="true"}static get customParameters(){return l.getInput("customParameters")||""}static get kubeConfig(){return l.getInput("kubeConfig")||""}static get githubToken(){return l.getInput("githubToken")||""}static get kubeContainerMemory(){return l.getInput("kubeContainerMemory")||"800M"}static get kubeContainerCPU(){return l.getInput("kubeContainerCPU")||"0.25"}static get kubeVolumeSize(){return l.getInput("kubeVolumeSize")||"5Gi"}static get kubeVolume(){return l.getInput("kubeVolume")||""}}var c=input_Input;class NotImplementedException extends Error{constructor(e){super(e);this.name="NotImplementedException"}}var d=NotImplementedException;class ValidationError extends Error{constructor(e){super(e);this.name="ValidationError"}}var p=ValidationError;var f=i(986);class system_System{static async run(e,t,i){let n="";let a="";let r="";const o={stdout:e=>{n+=e.toString()},stderr:e=>{a+=e.toString()},debug:e=>{r+=e.toString()}};const u=()=>{if(r!==""){Object(s.debug)(r)}if(n!==""){Object(s.info)(n)}if(a!==""){Object(s.warning)(a)}};const l=i=>{let n=e;if(Array.isArray(t)){n+=` ${t.join(" ")}`}else if(typeof t==="string"){n+=` ${t}`}throw new Error(`Failed to run "${n}".\n ${i}`)};try{const n=await Object(f.exec)(e,t,{silent:true,listeners:o,...i});u();if(n!==0){l(`Command returned non-zero exit code.\nError: ${a}`)}}catch(e){u();l(`In-command error caught: ${e}`)}return n}}var h=system_System;class versioning_Versioning{static get projectPath(){return c.projectPath}static get isDirtyAllowed(){return c.allowDirtyBuild}static get strategies(){return{None:"None",Semantic:"Semantic",Tag:"Tag",Custom:"Custom"}}static get branch(){return this.headRef||this.ref&&this.ref.slice(11)}static get headRef(){return process.env.GITHUB_HEAD_REF}static get ref(){return process.env.GITHUB_REF}static get sha(){return process.env.GITHUB_SHA}static get maxDiffLines(){return 60}static async logDiff(){const e=`git --no-pager diff | head -n ${this.maxDiffLines.toString()}`;await h.run("sh",undefined,{input:Buffer.from(e),silent:true})}static get descriptionRegex(){return/^v([\d.]+)-(\d+)-g(\w+)-?(\w+)*/g}static async determineVersion(e,t){if(!Object.hasOwnProperty.call(this.strategies,e)){throw new p(`Versioning strategy should be one of ${Object.values(this.strategies).join(", ")}.`)}let i;switch(e){case this.strategies.None:i="none";break;case this.strategies.Custom:i=t;break;case this.strategies.Semantic:i=await this.generateSemanticVersion();break;case this.strategies.Tag:i=await this.generateTagVersion();break;default:throw new d(`Strategy ${e} is not implemented.`)}return i}static async generateSemanticVersion(){await this.fetch();await this.logDiff();if(await this.isDirty()&&!this.isDirtyAllowed){throw new Error("Branch is dirty. Refusing to base semantic version on uncommitted changes")}if(!await this.hasAnyVersionTags()){const e=`0.0.${await this.getTotalNumberOfCommits()}`;Object(s.info)(`Generated version ${e} (no version tags found).`);return e}const{tag:e,commits:t,hash:i}=await this.parseSemanticVersion();Object(s.info)(`Found semantic version ${e}.${t} for ${this.branch}@${i}`);return`${e}.${t}`}static async generateTagVersion(){let e=await this.getTag();if(e.charAt(0)==="v"){e=e.slice(1)}return e}static async parseSemanticVersion(){const e=await this.getVersionDescription();try{const[t,i,n,a]=this.descriptionRegex.exec(e);return{match:t,tag:i,commits:n,hash:a}}catch(t){throw new Error(`Failed to parse git describe output: "${e}".`)}}static async fetch(){try{await this.git(["fetch","--unshallow"])}catch(e){Object(s.warning)(`Fetch --unshallow caught: ${e}`);await this.git(["fetch"])}}static async getVersionDescription(){return this.git(["describe","--long","--tags","--always","--debug",this.sha])}static async isDirty(){const e=await this.git(["status","--porcelain"]);return e!==""}static async getTag(){return this.git(["tag","--points-at","HEAD"])}static async hasAnyVersionTags(){const e=await h.run("sh",undefined,{input:Buffer.from("git tag --list --merged HEAD | grep v[0-9]* | wc -l"),silent:false});const t=Number.parseInt(e,10);return t!==0}static async getTotalNumberOfCommits(){const e=await this.git(["rev-list","--count",this.sha]);return Number.parseInt(e,10)}static async git(e,t={}){return h.run("git",e,{cwd:this.projectPath,...t})}}class build_parameters_BuildParameters{static async create(){const e=this.parseBuildFile(c.buildName,c.targetPlatform,c.androidAppBundle);const t=await versioning_Versioning.determineVersion(c.versioningStrategy,c.specifiedVersion);const i=android_versioning_AndroidVersioning.determineVersionCode(t,c.androidVersionCode);return{version:c.unityVersion,customImage:c.customImage,runnerTempPath:process.env.RUNNER_TEMP,platform:c.targetPlatform,projectPath:c.projectPath,buildName:c.buildName,buildPath:`${c.buildsPath}/${c.targetPlatform}`,buildFile:e,buildMethod:c.buildMethod,buildVersion:t,androidVersionCode:i,androidKeystoreName:c.androidKeystoreName,androidKeystoreBase64:c.androidKeystoreBase64,androidKeystorePass:c.androidKeystorePass,androidKeyaliasName:c.androidKeyaliasName,androidKeyaliasPass:c.androidKeyaliasPass,customParameters:c.customParameters,kubeConfig:c.kubeConfig,githubToken:c.githubToken,kubeContainerMemory:c.kubeContainerMemory,kubeContainerCPU:c.kubeContainerCPU,kubeVolumeSize:c.kubeVolumeSize,kubeVolume:c.kubeVolume}}static parseBuildFile(e,t,i){if(u.isWindows(t)){return`${e}.exe`}if(u.isAndroid(t)){return i?`${e}.aab`:`${e}.apk`}return e}}var m=build_parameters_BuildParameters;var b=i(747);var g=i.n(b);class Unity{static get libraryFolder(){return"Library"}}var y=Unity;class project_Project{static get relativePath(){const{projectPath:e}=c;return`${e}`}static get absolutePath(){const{workspace:e}=r;return`${e}/${this.relativePath}`}static get libraryFolder(){return`${this.relativePath}/${y.libraryFolder}`}}var S=project_Project;class cache_Cache{static verify(){if(!g().existsSync(S.libraryFolder)){this.notifyAboutCachingPossibility()}}static notifyAboutCachingPossibility(){if(r.isRunningLocally){return}Object(s.warning)(`\n Library folder does not exist.\n Consider setting up caching to speed up your workflow,\n if this is not your first build.\n `)}}var w=cache_Cache;var v=typeof global=="object"&&global&&global.Object===Object&&global;var z=v;var j=typeof self=="object"&&self&&self.Object===Object&&self;var O=z||j||Function("return this")();var k=O;var C=k.Symbol;var T=C;var R=Object.prototype;var E=R.hasOwnProperty;var A=R.toString;var x=T?T.toStringTag:undefined;function getRawTag(e){var t=E.call(e,x),i=e[x];try{e[x]=undefined;var n=true}catch(e){}var a=A.call(e);if(n){if(t){e[x]=i}else{delete e[x]}}return a}var N=getRawTag;var V=Object.prototype;var P=V.toString;function objectToString(e){return P.call(e)}var D=objectToString;var I="[object Null]",_="[object Undefined]";var q=T?T.toStringTag:undefined;function baseGetTag(e){if(e==null){return e===undefined?_:I}return q&&q in Object(e)?N(e):D(e)}var B=baseGetTag;function isObjectLike(e){return e!=null&&typeof e=="object"}var M=isObjectLike;var U="[object Symbol]";function isSymbol(e){return typeof e=="symbol"||M(e)&&B(e)==U}var L=isSymbol;var H=0/0;function baseToNumber(e){if(typeof e=="number"){return e}if(L(e)){return H}return+e}var Q=baseToNumber;function arrayMap(e,t){var i=-1,n=e==null?0:e.length,a=Array(n);while(++i0){if(++t>=wt){return arguments[0]}}else{t=0}return e.apply(undefined,arguments)}}var jt=shortOut;var Ot=jt(He);var kt=Ot;var Ct=/\{\n\/\* \[wrapped with (.+)\] \*/,Tt=/,? & /;function getWrapDetails(e){var t=e.match(Ct);return t?t[1].split(Tt):[]}var Rt=getWrapDetails;var Et=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function insertWrapDetails(e,t){var i=t.length;if(!i){return e}var n=i-1;t[n]=(i>1?"& ":"")+t[n];t=t.join(i>2?", ":" ");return e.replace(Et,"{\n/* [wrapped with "+t+"] */\n")}var At=insertWrapDetails;function constant(e){return function(){return e}}var xt=constant;var Nt=function(){try{var e=_e(Object,"defineProperty");e({},"",{});return e}catch(e){}}();var Vt=Nt;var Pt=!Vt?me:function(e,t){return Vt(e,"toString",{configurable:true,enumerable:false,value:xt(t),writable:true})};var Dt=Pt;var It=jt(Dt);var _t=It;function arrayEach(e,t){var i=-1,n=e==null?0:e.length;while(++i-1}var Ht=arrayIncludes;var Qt=1,Wt=2,Gt=8,Kt=16,Jt=32,Ft=64,Yt=128,Xt=256,Zt=512;var $t=[["ary",Yt],["bind",Qt],["bindKey",Wt],["curry",Gt],["curryRight",Kt],["flip",Zt],["partial",Jt],["partialRight",Ft],["rearg",Xt]];function updateWrapDetails(e,t){qt($t,function(i){var n="_."+i[0];if(t&i[1]&&!Ht(e,n)){e.push(n)}});return e.sort()}var ei=updateWrapDetails;function setWrapToString(e,t,i){var n=t+"";return _t(e,At(n,ei(Rt(n),i)))}var ti=setWrapToString;var ii=1,ni=2,ai=4,ri=8,si=32,oi=64;function createRecurry(e,t,i,n,a,r,s,o,u,l){var c=t&ri,d=c?s:undefined,p=c?undefined:s,f=c?r:undefined,h=c?undefined:r;t|=c?si:oi;t&=~(c?oi:si);if(!(t&ai)){t&=~(ii|ni)}var m=[e,t,a,f,d,h,p,o,u,l];var b=i.apply(undefined,m);if(St(e)){kt(b,m)}b.placeholder=n;return ti(b,e,t)}var ui=createRecurry;function getHolder(e){var t=e;return t.placeholder}var li=getHolder;var ci=9007199254740991;var di=/^(?:0|[1-9]\d*)$/;function isIndex(e,t){var i=typeof e;t=t==null?ci:t;return!!t&&(i=="number"||i!="symbol"&&di.test(e))&&(e>-1&&e%1==0&&e1){g.reverse()}if(c&&u-1&&e%1==0&&e<=nn}var an=isLength;function isArrayLike(e){return e!=null&&an(e.length)&&!we(e)}var rn=isArrayLike;function isIterateeCall(e,t,i){if(!te(i)){return false}var n=typeof t;if(n=="number"?rn(i)&&pi(t,i.length):n=="string"&&t in i){return Ji(i[t],e)}return false}var sn=isIterateeCall;function createAssigner(e){return tn(function(t,i){var n=-1,a=i.length,r=a>1?i[a-1]:undefined,s=a>2?i[2]:undefined;r=e.length>3&&typeof r=="function"?(a--,r):undefined;if(s&&sn(i[0],i[1],s)){r=a<3?undefined:r;a=1}t=Object(t);while(++n-1}var ir=listCacheHas;function listCacheSet(e,t){var i=this.__data__,n=Xa(i,e);if(n<0){++this.size;i.push([e,t])}else{i[n][1]=t}return this}var nr=listCacheSet;function ListCache(e){var t=-1,i=e==null?0:e.length;this.clear();while(++t0&&i(o)){if(t>1){baseFlatten(o,t-1,i,n,a)}else{Ar(a,o)}}else if(!n){a[a.length]=o}}return a}var Vr=baseFlatten;function flatten(e){var t=e==null?0:e.length;return t?Vr(e,1):[]}var Pr=flatten;function flatRest(e){return _t(en(e,undefined,Pr),e+"")}var Dr=flatRest;var Ir=Dr(Er);var _r=Ir;var qr=da(Object.getPrototypeOf,Object);var Br=qr;var Mr="[object Object]";var Ur=Function.prototype,Lr=Object.prototype;var Hr=Ur.toString;var Qr=Lr.hasOwnProperty;var Wr=Hr.call(Object);function isPlainObject(e){if(!M(e)||B(e)!=Mr){return false}var t=Br(e);if(t===null){return true}var i=Qr.call(t,"constructor")&&t.constructor;return typeof i=="function"&&i instanceof i&&Hr.call(i)==Wr}var Gr=isPlainObject;var Kr="[object DOMException]",Jr="[object Error]";function isError(e){if(!M(e)){return false}var t=B(e);return t==Jr||t==Kr||typeof e.message=="string"&&typeof e.name=="string"&&!Gr(e)}var Fr=isError;var Yr=tn(function(e,t){try{return Ye(e,undefined,t)}catch(e){return Fr(e)?e:new Error(e)}});var Xr=Yr;var Zr="Expected a function";function before(e,t){var i;if(typeof t!="function"){throw new TypeError(Zr)}e=pe(e);return function(){if(--e>0){i=t.apply(this,arguments)}if(e<=1){t=undefined}return i}}var $r=before;var es=1,ts=32;var is=tn(function(e,t,i){var n=es;if(i.length){var a=bi(i,li(is));n|=ts}return Qi(e,n,t,i,a)});is.placeholder={};var ns=is;var as=Dr(function(e,t){qt(t,function(t){t=Cr(t);Ki(e,t,ns(e[t],e))});return e});var rs=as;var ss=1,os=2,us=32;var ls=tn(function(e,t,i){var n=ss|os;if(i.length){var a=bi(i,li(ls));n|=us}return Qi(t,n,e,i,a)});ls.placeholder={};var cs=ls;function baseSlice(e,t,i){var n=-1,a=e.length;if(t<0){t=-t>a?0:a+t}i=i>a?a:i;if(i<0){i+=a}a=t>i?0:i-t>>>0;t>>>=0;var r=Array(a);while(++n=n?e:ds(e,t,i)}var ps=castSlice;var fs="\\ud800-\\udfff",hs="\\u0300-\\u036f",ms="\\ufe20-\\ufe2f",bs="\\u20d0-\\u20ff",gs=hs+ms+bs,ys="\\ufe0e\\ufe0f";var Ss="\\u200d";var ws=RegExp("["+Ss+fs+gs+ys+"]");function hasUnicode(e){return ws.test(e)}var vs=hasUnicode;function asciiToArray(e){return e.split("")}var zs=asciiToArray;var js="\\ud800-\\udfff",Os="\\u0300-\\u036f",ks="\\ufe20-\\ufe2f",Cs="\\u20d0-\\u20ff",Ts=Os+ks+Cs,Rs="\\ufe0e\\ufe0f";var Es="["+js+"]",As="["+Ts+"]",xs="\\ud83c[\\udffb-\\udfff]",Ns="(?:"+As+"|"+xs+")",Vs="[^"+js+"]",Ps="(?:\\ud83c[\\udde6-\\uddff]){2}",Ds="[\\ud800-\\udbff][\\udc00-\\udfff]",Is="\\u200d";var _s=Ns+"?",qs="["+Rs+"]?",Bs="(?:"+Is+"(?:"+[Vs,Ps,Ds].join("|")+")"+qs+_s+")*",Ms=qs+_s+Bs,Us="(?:"+[Vs+As+"?",As,Ps,Ds,Es].join("|")+")";var Ls=RegExp(xs+"(?="+xs+")|"+Us+Ms,"g");function unicodeToArray(e){return e.match(Ls)||[]}var Hs=unicodeToArray;function stringToArray(e){return vs(e)?Hs(e):zs(e)}var Qs=stringToArray;function createCaseFirst(e){return function(t){t=jr(t);var i=vs(t)?Qs(t):undefined;var n=i?i[0]:t.charAt(0);var a=i?ps(i,1).join(""):t.slice(1);return n[e]()+a}}var Ws=createCaseFirst;var Gs=Ws("toUpperCase");var Ks=Gs;function capitalize(e){return Ks(jr(e).toLowerCase())}var Js=capitalize;function arrayReduce(e,t,i,n){var a=-1,r=e==null?0:e.length;if(n&&r){i=e[++a]}while(++a=t?e:t}}return e}var bu=baseClamp;function clamp(e,t,i){if(i===undefined){i=t;t=undefined}if(i!==undefined){i=ue(i);i=i===i?i:0}if(t!==undefined){t=ue(t);t=t===t?t:0}return bu(ue(e),t,i)}var gu=clamp;function stackClear(){this.__data__=new ar;this.size=0}var yu=stackClear;function stackDelete(e){var t=this.__data__,i=t["delete"](e);this.size=t.size;return i}var Su=stackDelete;function stackGet(e){return this.__data__.get(e)}var wu=stackGet;function stackHas(e){return this.__data__.has(e)}var vu=stackHas;var zu=200;function stackSet(e,t){var i=this.__data__;if(i instanceof ar){var n=i.__data__;if(!sr||n.lengtho)){return false}var l=r.get(e);if(l&&r.get(t)){return l==t}var c=-1,d=true,p=i&ed?new Yc:undefined;r.set(e,t);r.set(t,e);while(++c=t||i<0||d&&n>=r}function timerExpired(){var e=zp();if(shouldInvoke(e)){return trailingEdge(e)}o=setTimeout(timerExpired,remainingWait(e))}function trailingEdge(e){o=undefined;if(p&&n){return invokeFunc(e)}n=a=undefined;return s}function cancel(){if(o!==undefined){clearTimeout(o)}l=0;n=u=a=o=undefined}function flush(){return o===undefined?s:trailingEdge(zp())}function debounced(){var e=zp(),i=shouldInvoke(e);n=arguments;a=this;u=e;if(i){if(o===undefined){return leadingEdge(u)}if(d){clearTimeout(o);o=setTimeout(timerExpired,t);return invokeFunc(u)}}if(o===undefined){o=setTimeout(timerExpired,t)}return s}debounced.cancel=cancel;debounced.flush=flush;return debounced}var Cp=debounce;function defaultTo(e,t){return e==null||e!==e?t:e}var Tp=defaultTo;var Rp=Object.prototype;var Ep=Rp.hasOwnProperty;var Ap=tn(function(e,t){e=Object(e);var i=-1;var n=t.length;var a=n>2?t[2]:undefined;if(a&&sn(t[0],t[1],a)){n=1}while(++i=Yp){r=Zc;s=false;t=new Yc(t)}e:while(++a=0&&e.slice(i,a)==t}var zf=endsWith;function baseToPairs(e,t){return W(t,function(t){return[t,e[t]]})}var jf=baseToPairs;function setToPairs(e){var t=-1,i=Array(e.size);e.forEach(function(e){i[++t]=[e,e]});return i}var Of=setToPairs;var kf="[object Map]",Cf="[object Set]";function createToPairs(e){return function(t){var i=pl(t);if(i==kf){return id(t)}if(i==Cf){return Of(t)}return jf(t,e(t))}}var Tf=createToPairs;var Rf=Tf(ga);var Ef=Rf;var Af=Tf(Ca);var xf=Af;var Nf={"&":"&","<":"<",">":">",'"':""","'":"'"};var Vf=Ys(Nf);var Pf=Vf;var Df=/[&<>"']/g,If=RegExp(Df.source);function escape_escape(e){e=jr(e);return e&&If.test(e)?e.replace(Df,Pf):e}var _f=escape_escape;var qf=/[\\^$.*+?()[\]{}|]/g,Bf=RegExp(qf.source);function escapeRegExp(e){e=jr(e);return e&&Bf.test(e)?e.replace(qf,"\\$&"):e}var Mf=escapeRegExp;function arrayEvery(e,t){var i=-1,n=e==null?0:e.length;while(++ia?0:a+i}n=n===undefined||n>a?a:pe(n);if(n<0){n+=a}n=i>n?0:Wf(n);while(i-1?a[r?t[s]:s]:undefined}}var Yf=createFind;var Xf=Math.max;function findIndex(e,t,i){var n=e==null?0:e.length;if(!n){return-1}var a=i==null?0:pe(i);if(a<0){a=Xf(n+a,0)}return Bt(e,Jd(t,3),a)}var Zf=findIndex;var $f=Yf(Zf);var eh=$f;function baseFindKey(e,t,i){var n;i(e,function(e,i,a){if(t(e,i,a)){n=i;return false}});return n}var th=baseFindKey;function findKey(e,t){return th(e,Jd(t,3),sp)}var ih=findKey;var nh=Math.max,ah=Math.min;function findLastIndex(e,t,i){var n=e==null?0:e.length;if(!n){return-1}var a=n-1;if(i!==undefined){a=pe(i);a=i<0?nh(n+a,0):ah(a,n-1)}return Bt(e,Jd(t,3),a,true)}var rh=findLastIndex;var sh=Yf(rh);var oh=sh;function findLastKey(e,t){return th(e,Jd(t,3),yf)}var uh=findLastKey;function head(e){return e&&e.length?e[0]:undefined}var lh=head;function baseMap(e,t){var i=-1,n=rn(e)?Array(e.length):[];lp(e,function(e,a,r){n[++i]=t(e,a,r)});return n}var ch=baseMap;function map_map(e,t){var i=K(e)?W:ch;return i(e,Jd(t,3))}var dh=map_map;function flatMap(e,t){return Vr(dh(e,t),1)}var ph=flatMap;var fh=1/0;function flatMapDeep(e,t){return Vr(dh(e,t),fh)}var hh=flatMapDeep;function flatMapDepth(e,t,i){i=i===undefined?1:pe(i);return Vr(dh(e,t),i)}var mh=flatMapDepth;var bh=1/0;function flattenDeep(e){var t=e==null?0:e.length;return t?Vr(e,bh):[]}var gh=flattenDeep;function flattenDepth(e,t){var i=e==null?0:e.length;if(!i){return[]}t=t===undefined?1:pe(t);return Vr(e,t)}var yh=flattenDepth;var Sh=512;function flip(e){return Qi(e,Sh)}var wh=flip;var vh=lu("floor");var zh=vh;var jh="Expected a function";var Oh=8,kh=32,Ch=128,Th=256;function createFlow(e){return Dr(function(t){var i=t.length,n=i,a=ft.prototype.thru;if(e){t.reverse()}while(n--){var r=t[n];if(typeof r!="function"){throw new TypeError(jh)}if(a&&!s&&pt(r)=="wrapper"){var s=new ft([],true)}}n=s?n:i;while(++nt}var Wh=baseGt;function createRelationalOperation(e){return function(t,i){if(!(typeof t=="string"&&typeof i=="string")){t=ue(t);i=ue(i)}return e(t,i)}}var Gh=createRelationalOperation;var Kh=Gh(Wh);var Jh=Kh;var Fh=Gh(function(e,t){return e>=t});var Yh=Fh;var Xh=Object.prototype;var Zh=Xh.hasOwnProperty;function baseHas(e,t){return e!=null&&Zh.call(e,t)}var $h=baseHas;function has(e,t){return e!=null&&Md(e,t,$h)}var em=has;var tm=Math.max,im=Math.min;function baseInRange(e,t,i){return e>=im(t,i)&&e-1:!!a&&Lt(e,t,i)>-1}var cm=includes_includes;var dm=Math.max;function indexOf_indexOf(e,t,i){var n=e==null?0:e.length;if(!n){return-1}var a=i==null?0:pe(i);if(a<0){a=dm(n+a,0)}return Lt(e,t,a)}var pm=indexOf_indexOf;function initial(e){var t=e==null?0:e.length;return t?ds(e,0,-1):[]}var fm=initial;var hm=Math.min;function baseIntersection(e,t,i){var n=i?Fp:Ht,a=e[0].length,r=e.length,s=r,o=Array(r),u=Infinity,l=[];while(s--){var c=e[s];if(s&&t){c=W(c,Zn(t))}u=hm(c.length,u);o[s]=!i&&(t||a>=120&&c.length>=120)?new Yc(s&&c):undefined}c=e[0];var d=-1,p=o[0];e:while(++d=-kb&&e<=kb}var Cb=isSafeInteger;function isUndefined(e){return e===undefined}var Tb=isUndefined;var Rb="[object WeakMap]";function isWeakMap(e){return M(e)&&pl(e)==Rb}var Eb=isWeakMap;var Ab="[object WeakSet]";function isWeakSet(e){return M(e)&&B(e)==Ab}var xb=isWeakSet;var Nb=1;function iteratee_iteratee(e){return Jd(typeof e=="function"?e:Vc(e,Nb))}var Vb=iteratee_iteratee;var Pb=Array.prototype;var Db=Pb.join;function join(e,t){return e==null?"":Db.call(e,t)}var Ib=join;var _b=nu(function(e,t,i){return e+(i?"-":"")+t.toLowerCase()});var qb=_b;var Bb=dp(function(e,t,i){Ki(e,i,t)});var Mb=Bb;function strictLastIndexOf(e,t,i){var n=i+1;while(n--){if(e[n]===t){return n}}return n}var Ub=strictLastIndexOf;var Lb=Math.max,Hb=Math.min;function lastIndexOf(e,t,i){var n=e==null?0:e.length;if(!n){return-1}var a=n;if(i!==undefined){a=pe(i);a=a<0?Lb(n+a,0):Hb(a,n-1)}return t===t?Ub(e,t,a):Bt(e,Mt,a,true)}var Qb=lastIndexOf;var Wb=nu(function(e,t,i){return e+(i?" ":"")+t.toLowerCase()});var Gb=Wb;var Kb=Ws("toLowerCase");var Jb=Kb;function baseLt(e,t){return e=this.__values__.length,t=e?undefined:this.__values__[this.__index__++];return{done:e,value:t}}var Ng=wrapperNext;function baseNth(e,t){var i=e.length;if(!i){return}t+=t<0?i:0;return pi(t,i)?e[t]:undefined}var Vg=baseNth;function nth(e,t){return e&&e.length?Vg(e,pe(t)):undefined}var Pg=nth;function nthArg(e){e=pe(e);return tn(function(t){return Vg(t,e)})}var Dg=nthArg;function baseUnset(e,t){t=Or(t,e);e=Pm(e,t);return e==null||delete e[Cr(ef(t))]}var Ig=baseUnset;function customOmitClone(e){return Gr(e)?undefined:e}var _g=customOmitClone;var qg=1,Bg=2,Mg=4;var Ug=Dr(function(e,t){var i={};if(e==null){return i}var n=false;t=W(t,function(t){t=Or(t,e);n||(n=t.length>1);return t});Zi(e,Ku(e),i);if(n){i=Vc(i,qg|Bg|Mg,_g)}var a=t.length;while(a--){Ig(i,t[a])}return i});var Lg=Ug;function baseSet(e,t,i,n){if(!te(e)){return e}t=Or(t,e);var a=-1,r=t.length,s=r-1,o=e;while(o!=null&&++at||r&&s&&u&&!o&&!l||n&&s&&u||!i&&u||!a){return 1}if(!n&&!r&&!l&&e=o){return u}var l=i[n];return u*(l=="desc"?-1:1)}}return e.index-t.index}var Yg=compareMultiple;function baseOrderBy(e,t,i){var n=-1;t=W(t.length?t:[me],Zn(Jd));var a=ch(e,function(e,i,a){var r=W(t,function(t){return t(e)});return{criteria:r,index:++n,value:e}});return Jg(a,function(e,t){return Yg(e,t,i)})}var Xg=baseOrderBy;function orderBy(e,t,i,n){if(e==null){return[]}if(!K(t)){t=t==null?[]:[t]}i=n?undefined:i;if(!K(i)){i=i==null?[]:[i]}return Xg(e,t,i)}var Zg=orderBy;function createOver(e){return Dr(function(t){t=W(t,Zn(Jd));return tn(function(i){var n=this;return e(t,function(e){return Ye(e,n,i)})})})}var $g=createOver;var ey=$g(W);var ty=ey;var iy=tn;var ny=iy;var ay=Math.min;var ry=ny(function(e,t){t=t.length==1&&K(t[0])?W(t[0],Zn(Jd)):W(Vr(t,1),Zn(Jd));var i=t.length;return tn(function(n){var a=-1,r=ay(n.length,i);while(++ady){return i}do{if(t%2){i+=e}t=py(t/2);if(t){e+=e}}while(t);return i}var fy=baseRepeat;var hy=Wd("length");var my=hy;var by="\\ud800-\\udfff",gy="\\u0300-\\u036f",yy="\\ufe20-\\ufe2f",Sy="\\u20d0-\\u20ff",wy=gy+yy+Sy,vy="\\ufe0e\\ufe0f";var zy="["+by+"]",jy="["+wy+"]",Oy="\\ud83c[\\udffb-\\udfff]",ky="(?:"+jy+"|"+Oy+")",Cy="[^"+by+"]",Ty="(?:\\ud83c[\\udde6-\\uddff]){2}",Ry="[\\ud800-\\udbff][\\udc00-\\udfff]",Ey="\\u200d";var Ay=ky+"?",xy="["+vy+"]?",Ny="(?:"+Ey+"(?:"+[Cy,Ty,Ry].join("|")+")"+xy+Ay+")*",Vy=xy+Ay+Ny,Py="(?:"+[Cy+jy+"?",jy,Ty,Ry,zy].join("|")+")";var Dy=RegExp(Oy+"(?="+Oy+")|"+Py+Vy,"g");function unicodeSize(e){var t=Dy.lastIndex=0;while(Dy.test(e)){++t}return t}var Iy=unicodeSize;function stringSize(e){return vs(e)?Iy(e):my(e)}var _y=stringSize;var qy=Math.ceil;function createPadding(e,t){t=t===undefined?" ":X(t);var i=t.length;if(i<2){return i?fy(t,e):t}var n=fy(t,qy(e/_y(t)));return vs(t)?ps(Qs(n),0,e).join(""):n.slice(0,e)}var By=createPadding;var My=Math.ceil,Uy=Math.floor;function pad(e,t,i){e=jr(e);t=pe(t);var n=t?_y(e):0;if(!t||n>=t){return e}var a=(t-n)/2;return By(Uy(a),i)+e+By(My(a),i)}var Ly=pad;function padEnd(e,t,i){e=jr(e);t=pe(t);var n=t?_y(e):0;return t&&n-1){if(o!==e){lS.call(o,u,1)}lS.call(e,u,1)}}return e}var cS=basePullAll;function pullAll(e,t){return e&&e.length&&t&&t.length?cS(e,t):e}var dS=pullAll;var pS=tn(dS);var fS=pS;function pullAllBy(e,t,i){return e&&e.length&&t&&t.length?cS(e,t,Jd(i,2)):e}var hS=pullAllBy;function pullAllWith(e,t,i){return e&&e.length&&t&&t.length?cS(e,t,undefined,i):e}var mS=pullAllWith;var bS=Array.prototype;var gS=bS.splice;function basePullAt(e,t){var i=e?t.length:0,n=i-1;while(i--){var a=t[i];if(i==n||a!==r){var r=a;if(pi(a)){gS.call(e,a,1)}else{Ig(e,a)}}}return e}var yS=basePullAt;var SS=Dr(function(e,t){var i=e==null?0:e.length,n=Er(e,t);yS(e,W(t,function(e){return pi(e,i)?+e:e}).sort(Fg));return n});var wS=SS;var vS=Math.floor,zS=Math.random;function baseRandom(e,t){return e+vS(zS()*(t-e+1))}var jS=baseRandom;var OS=parseFloat;var kS=Math.min,CS=Math.random;function random(e,t,i){if(i&&typeof i!="boolean"&&sn(e,t,i)){t=i=undefined}if(i===undefined){if(typeof t=="boolean"){i=t;t=undefined}else if(typeof e=="boolean"){i=e;e=undefined}}if(e===undefined&&t===undefined){e=0;t=1}else{e=de(e);if(t===undefined){t=e;e=0}else{t=de(t)}}if(e>t){var n=e;e=t;t=n}if(i||e%1||t%1){var a=CS();return kS(e+a*(t-e+OS("1e-"+((a+"").length-1))),t)}return jS(e,t)}var TS=random;var RS=Math.ceil,ES=Math.max;function baseRange(e,t,i,n){var a=-1,r=ES(RS((t-e)/(i||1)),0),s=Array(r);while(r--){s[n?r:++a]=e;e+=i}return s}var AS=baseRange;function createRange(e){return function(t,i,n){if(n&&typeof n!="number"&&sn(t,i,n)){i=n=undefined}t=de(t);if(i===undefined){i=t;t=0}else{i=de(i)}n=n===undefined?t1&&sn(e,t[0],t[1])){t=[]}else if(i>2&&sn(t[0],t[1],t[2])){t=[t[0]]}return Xg(e,Vr(t,1),[])});var zw=vw;var jw=4294967295,Ow=jw-1;var kw=Math.floor,Cw=Math.min;function baseSortedIndexBy(e,t,i,n){t=i(t);var a=0,r=e==null?0:e.length,s=t!==t,o=t===null,u=L(t),l=t===undefined;while(a>>1;function baseSortedIndex(e,t,i){var n=0,a=e==null?n:e.length;if(typeof t=="number"&&t===t&&a<=Ew){while(n>>1,s=e[r];if(s!==null&&!L(s)&&(i?s<=t:s>>0;if(!i){return[]}e=jr(e);if(e&&(typeof t=="string"||t!=null&&!Ob(t))){t=X(t);if(!t&&vs(e)){return ps(Qs(e),0,i)}}return e.split(t,i)}var Uw=split;var Lw="Expected a function";var Hw=Math.max;function spread(e,t){if(typeof e!="function"){throw new TypeError(Lw)}t=t==null?0:Hw(pe(t),0);return tn(function(i){var n=i[t],a=ps(i,0,t);if(n){Ar(a,n)}return Ye(e,this,a)})}var Qw=spread;var Ww=nu(function(e,t,i){return e+(i?" ":"")+Ks(t)});var Gw=Ww;function startsWith(e,t,i){e=jr(e);i=i==null?0:bu(pe(i),0,e.length);t=X(t);return e.slice(i,i+t.length)==t}var Kw=startsWith;function stubObject(){return{}}var Jw=stubObject;function stubString(){return""}var Fw=stubString;function stubTrue(){return true}var Yw=stubTrue;var Xw=Z(function(e,t){return e-t},0);var Zw=Xw;function sum(e){return e&&e.length?lg(e,me):0}var $w=sum;function sumBy(e,t){return e&&e.length?lg(e,Jd(t,2)):0}var ev=sumBy;function tail(e){var t=e==null?0:e.length;return t?ds(e,1,t):[]}var tv=tail;function take(e,t,i){if(!(e&&e.length)){return[]}t=i||t===undefined?1:pe(t);return ds(e,0,t<0?0:t)}var iv=take;function takeRight(e,t,i){var n=e==null?0:e.length;if(!n){return[]}t=i||t===undefined?1:pe(t);t=n-t;return ds(e,t<0?0:t,n)}var nv=takeRight;function takeRightWhile(e,t){return e&&e.length?cf(e,Jd(t,3),false,true):[]}var av=takeRightWhile;function takeWhile(e,t){return e&&e.length?cf(e,Jd(t,3)):[]}var rv=takeWhile;function tap(e,t){t(e);return e}var sv=tap;var ov=Object.prototype;var uv=ov.hasOwnProperty;function customDefaultsAssignIn(e,t,i,n){if(e===undefined||Ji(e,ov[i])&&!uv.call(n,i)){return t}return e}var lv=customDefaultsAssignIn;var cv={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function escapeStringChar(e){return"\\"+cv[e]}var dv=escapeStringChar;var pv=/<%=([\s\S]+?)%>/g;var fv=pv;var hv=/<%-([\s\S]+?)%>/g;var mv=hv;var bv=/<%([\s\S]+?)%>/g;var gv=bv;var yv={escape:mv,evaluate:gv,interpolate:fv,variable:"",imports:{_:{escape:_f}}};var Sv=yv;var wv=/\b__p \+= '';/g,vv=/\b(__p \+=) '' \+/g,zv=/(__e\(.*?\)|\b__t\)) \+\n'';/g;var jv=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;var Ov=/($^)/;var kv=/['\n\r\u2028\u2029\\]/g;var Cv=Object.prototype;var Tv=Cv.hasOwnProperty;function template(e,t,i){var n=Sv.imports._.templateSettings||Sv;if(i&&sn(e,t,i)){t=undefined}e=jr(e);t=Aa({},t,n,lv);var a=Aa({},t.imports,n.imports,lv),r=ga(a),s=om(a,r);var o,u,l=0,c=t.interpolate||Ov,d="__p += '";var p=RegExp((t.escape||Ov).source+"|"+c.source+"|"+(c===fv?jv:Ov).source+"|"+(t.evaluate||Ov).source+"|$","g");var f=Tv.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/[\r\n]/g," ")+"\n":"";e.replace(p,function(t,i,n,a,r,s){n||(n=a);d+=e.slice(l,s).replace(kv,dv);if(i){o=true;d+="' +\n__e("+i+") +\n'"}if(r){u=true;d+="';\n"+r+";\n__p += '"}if(n){d+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"}l=s+t.length;return t});d+="';\n";var h=Tv.call(t,"variable")&&t.variable;if(!h){d="with (obj) {\n"+d+"\n}\n"}d=(u?d.replace(wv,""):d).replace(vv,"$1").replace(zv,"$1;");d="function("+(h||"obj")+") {\n"+(h?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(u?", __j = Array.prototype.join;\n"+"function print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var m=Xr(function(){return Function(r,f+"return "+d).apply(undefined,s)});m.source=d;if(Fr(m)){throw m}return m}var Rv=template;var Ev="Expected a function";function throttle(e,t,i){var n=true,a=true;if(typeof e!="function"){throw new TypeError(Ev)}if(te(i)){n="leading"in i?!!i.leading:n;a="trailing"in i?!!i.trailing:a}return Cp(e,t,{leading:n,maxWait:t,trailing:a})}var Av=throttle;function thru(e,t){return t(e)}var xv=thru;var Nv=9007199254740991;var Vv=4294967295;var Pv=Math.min;function times(e,t){e=pe(e);if(e<1||e>Nv){return[]}var i=Vv,n=Pv(e,Vv);t=ff(t);e-=Vv;var a=cn(n,t);while(++i-1){}return i}var Wv=charsEndIndex;function charsStartIndex(e,t){var i=-1,n=e.length;while(++i-1){}return i}var Gv=charsStartIndex;var Kv=/^\s+|\s+$/g;function trim(e,t,i){e=jr(e);if(e&&(i||t===undefined)){return e.replace(Kv,"")}if(!e||!(t=X(t))){return e}var n=Qs(e),a=Qs(t),r=Gv(n,a),s=Wv(n,a)+1;return ps(n,r,s).join("")}var Jv=trim;var Fv=/\s+$/;function trimEnd(e,t,i){e=jr(e);if(e&&(i||t===undefined)){return e.replace(Fv,"")}if(!e||!(t=X(t))){return e}var n=Qs(e),a=Wv(n,Qs(t))+1;return ps(n,0,a).join("")}var Yv=trimEnd;var Xv=/^\s+/;function trimStart(e,t,i){e=jr(e);if(e&&(i||t===undefined)){return e.replace(Xv,"")}if(!e||!(t=X(t))){return e}var n=Qs(e),a=Gv(n,Qs(t));return ps(n,a).join("")}var Zv=trimStart;var $v=30,ez="...";var tz=/\w*$/;function truncate(e,t){var i=$v,n=ez;if(te(t)){var a="separator"in t?t.separator:a;i="length"in t?pe(t.length):i;n="omission"in t?X(t.omission):n}e=jr(e);var r=e.length;if(vs(e)){var s=Qs(e);r=s.length}if(i>=r){return e}var o=i-_y(n);if(o<1){return n}var u=s?ps(s,0,o).join(""):e.slice(0,o);if(a===undefined){return u+n}if(s){o+=u.length-o}if(Ob(a)){if(e.slice(o).search(a)){var l,c=u;if(!a.global){a=RegExp(a.source,jr(tz.exec(a))+"g")}a.lastIndex=0;while(l=a.exec(c)){var d=l.index}u=u.slice(0,d===undefined?o:d)}}else if(e.indexOf(X(a),o)!=o){var p=u.lastIndexOf(a);if(p>-1){u=u.slice(0,p)}}return u+n}var iz=truncate;function unary(e){return Gi(e,1)}var nz=unary;var az={"&":"&","<":"<",">":">",""":'"',"'":"'"};var rz=Ys(az);var sz=rz;var oz=/&(?:amp|lt|gt|quot|#39);/g,uz=RegExp(oz.source);function unescape_unescape(e){e=jr(e);return e&&uz.test(e)?e.replace(oz,sz):e}var lz=unescape_unescape;var cz=1/0;var dz=!($u&&1/nd(new $u([,-0]))[1]==cz)?rt:function(e){return new $u(e)};var pz=dz;var fz=200;function baseUniq(e,t,i){var n=-1,a=Ht,r=e.length,s=true,o=[],u=o;if(i){s=false;a=Fp}else if(r>=fz){var l=t?null:pz(e);if(l){return nd(l)}s=false;a=Zc;u=new Yc}else{u=t?[]:o}e:while(++n1||this.__actions__.length||!(n instanceof at)||!pi(i)){return this.thru(a)}n=n.slice(i,+i+(t?1:0));n.__actions__.push({func:xv,args:[a],thisArg:undefined});return new ft(n,this.__chain__).thru(function(e){if(t&&!e.length){e.push(undefined)}return e})});var Mz=Bz;function wrapperChain(){return pu(this)}var Uz=wrapperChain;function wrapperReverse(){var e=this.__wrapped__;if(e instanceof at){var t=e;if(this.__actions__.length){t=new at(this)}t=t.reverse();t.__actions__.push({func:xv,args:[ZS],thisArg:undefined});return new ft(t,this.__chain__)}return this.thru(ZS)}var Lz=wrapperReverse;function baseXor(e,t,i){var n=e.length;if(n<2){return n?hz(e[0]):[]}var a=-1,r=Array(n);while(++a1?e[t-1]:undefined;i=typeof i=="function"?(e.pop(),i):undefined;return Ez(e,i)});var ij=tj;var nj={chunk:mu,compact:Wc,concat:Gc,difference:$p,differenceBy:nf,differenceWith:rf,drop:uf,dropRight:lf,dropRightWhile:df,dropWhile:pf,fill:Kf,findIndex:Zf,findLastIndex:rh,first:lh,flatten:Pr,flattenDeep:gh,flattenDepth:yh,fromPairs:_h,head:lh,indexOf:pm,initial:fm,intersection:ym,intersectionBy:wm,intersectionWith:zm,join:Ib,last:ef,lastIndexOf:Qb,nth:Pg,pull:fS,pullAll:dS,pullAllBy:hS,pullAllWith:mS,pullAt:wS,remove:QS,reverse:ZS,slice:bw,sortedIndex:xw,sortedIndexBy:Nw,sortedIndexOf:Vw,sortedLastIndex:Pw,sortedLastIndexBy:Dw,sortedLastIndexOf:Iw,sortedUniq:qw,sortedUniqBy:Bw,tail:tv,take:iv,takeRight:nv,takeRightWhile:av,takeWhile:rv,union:bz,unionBy:yz,unionWith:wz,uniq:vz,uniqBy:zz,uniqWith:jz,unzip:Rz,unzipWith:Ez,without:_z,xor:Wz,xorBy:Kz,xorWith:Fz,zip:Xz,zipObject:$z,zipObjectDeep:ej,zipWith:ij};var aj={countBy:mp,each:hf,eachRight:vf,every:Hf,filter:Ff,find:eh,findLast:oh,flatMap:ph,flatMapDeep:hh,flatMapDepth:mh,forEach:hf,forEachRight:vf,groupBy:Qh,includes:cm,invokeMap:Bm,keyBy:Mb,map:dh,orderBy:Zg,partition:tS,reduce:MS,reduceRight:LS,reject:HS,sample:nw,sampleSize:ow,shuffle:pw,size:mw,some:ww,sortBy:zw};var rj={now:zp};var sj={after:he,ary:Gi,before:$r,bind:ns,bindKey:cs,curry:yp,curryRight:wp,debounce:Cp,defer:Gp,delay:Jp,flip:wh,memoize:br,negate:Cg,once:Kg,overArgs:sy,partial:Yy,partialRight:$y,rearg:qS,rest:JS,spread:Qw,throttle:Av,unary:nz,wrap:qz};var oj={castArray:su,clone:Dc,cloneDeep:qc,cloneDeepWith:Uc,cloneWith:Hc,conformsTo:tp,eq:Ji,gt:Jh,gte:Yh,isArguments:gn,isArray:K,isArrayBuffer:Qm,isArrayLike:rn,isArrayLikeObject:Vp,isBoolean:Gm,isBuffer:kn,isDate:Xm,isElement:Zm,isEmpty:nb,isEqual:ab,isEqualWith:rb,isError:Fr,isFinite:ob,isFunction:we,isInteger:ub,isLength:an,isMap:Xl,isMatch:lb,isMatchWith:cb,isNaN:fb,isNative:gb,isNil:yb,isNull:Sb,isNumber:pb,isObject:te,isObjectLike:M,isPlainObject:Gr,isRegExp:Ob,isSafeInteger:Cb,isSet:ic,isString:sm,isSymbol:L,isTypedArray:oa,isUndefined:Tb,isWeakMap:Eb,isWeakSet:xb,lt:Xb,lte:$b,toArray:xg,toFinite:de,toInteger:pe,toLength:Wf,toNumber:ue,toPlainObject:Dp,toSafeInteger:Lv,toString:jr};var uj={add:ee,ceil:du,divide:of,floor:zh,max:og,maxBy:ug,mean:pg,meanBy:fg,min:wg,minBy:vg,multiply:Og,round:ew,subtract:Zw,sum:$w,sumBy:ev};var lj={clamp:gu,inRange:am,random:TS};var cj={assign:va,assignIn:Ra,assignInWith:Aa,assignWith:Na,at:_r,create:bp,defaults:xp,defaultsDeep:Lp,entries:Ef,entriesIn:xf,extend:Ra,extendWith:Aa,findKey:ih,findLastKey:uh,forIn:Vh,forInRight:Ph,forOwn:Dh,forOwnRight:Ih,functions:Bh,functionsIn:Mh,get:Rr,has:em,hasIn:Ud,invert:Rm,invertBy:Vm,invoke:_m,keys:ga,keysIn:Ca,mapKeys:eg,mapValues:tg,merge:mg,mergeWith:Mp,omit:Lg,omitBy:Gg,pick:aS,pickBy:Wg,result:FS,set:uw,setWith:lw,toPairs:Ef,toPairsIn:xf,transform:Qv,unset:Cz,update:xz,updateWith:Nz,values:um,valuesIn:Dz};var dj={at:Mz,chain:pu,commit:Qc,lodash:yt,next:Ng,plant:rS,reverse:Lz,tap:sv,thru:xv,toIterator:Iv,toJSON:qv,value:qv,valueOf:qv,wrapperChain:Uz};var pj={camelCase:ru,capitalize:Js,deburr:oo,endsWith:zf,escape:_f,escapeRegExp:Mf,kebabCase:qb,lowerCase:Gb,lowerFirst:Jb,pad:Ly,padEnd:Hy,padStart:Qy,parseInt:Ky,repeat:WS,replace:GS,snakeCase:yw,split:Uw,startCase:Gw,startsWith:Kw,template:Rv,templateSettings:Sv,toLower:Bv,toUpper:Hv,trim:Jv,trimEnd:Yv,trimStart:Zv,truncate:iz,unescape:lz,upperCase:Pz,upperFirst:Ks,words:eu};var fj={attempt:Xr,bindAll:rs,cond:Yd,conforms:ep,constant:xt,defaultTo:Tp,flow:Ah,flowRight:Nh,identity:me,iteratee:Vb,matches:ng,matchesProperty:rg,method:gg,methodOf:Sg,mixin:zg,noop:rt,nthArg:Dg,over:ty,overEvery:uy,overSome:cy,property:Kd,propertyOf:sS,range:VS,rangeRight:DS,stubArray:Pu,stubFalse:yn,stubObject:Jw,stubString:Fw,stubTrue:Yw,times:Dv,toPath:Mv,uniqueId:kz};function lazyClone(){var e=new at(this.__wrapped__);e.__actions__=ht(this.__actions__);e.__dir__=this.__dir__;e.__filtered__=this.__filtered__;e.__iteratees__=ht(this.__iteratees__);e.__takeCount__=this.__takeCount__;e.__views__=ht(this.__views__);return e}var hj=lazyClone;function lazyReverse(){if(this.__filtered__){var e=new at(this);e.__dir__=-1;e.__filtered__=true}else{e=this.clone();e.__dir__*=-1}return e}var mj=lazyReverse;var bj=Math.max,gj=Math.min;function getView(e,t,i){var n=-1,a=i.length;while(++n0||t<0)){return new at(i)}if(e<0){i=i.takeRight(-e)}else if(e){i=i.drop(e)}if(t!==undefined){t=pe(t);i=t<0?i.dropRight(-t):i.take(t-e)}return i};at.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()};at.prototype.toArray=function(){return this.take(Tj)};sp(at.prototype,function(e,t){var i=/^(?:filter|find|map|reject)|While$/.test(t),n=/^(?:head|last)$/.test(t),a=yt[n?"take"+(t=="last"?"Right":""):t],r=n||/^find/.test(t);if(!a){return}yt.prototype[t]=function(){var t=this.__wrapped__,s=n?[1]:arguments,o=t instanceof at,u=s[0],l=o||K(t);var c=function(e){var t=a.apply(yt,Ar([e],s));return n&&d?t[0]:t};if(l&&i&&typeof u=="function"&&u.length!=1){o=l=false}var d=this.__chain__,p=!!this.__actions__.length,f=r&&!d,h=o&&!p;if(!r&&l){t=h?t:new at(this);var m=e.apply(t,s);m.__actions__.push({func:xv,args:[c],thisArg:undefined});return new ft(m,d)}if(f&&h){return e.apply(this,s)}m=this.thru(c);return f?n?m.value()[0]:m.value():m}});qt(["pop","push","shift","sort","splice","unshift"],function(e){var t=Rj[e],i=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);yt.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var a=this.value();return t.apply(K(a)?a:[],e)}return this[i](function(i){return t.apply(K(i)?i:[],e)})}});sp(at.prototype,function(e,t){var i=yt[t];if(i){var n=i.name+"";if(!Aj.call(lt,n)){lt[n]=[]}lt[n].push({name:t,func:i})}});lt[ji(undefined,Oj).name]=[{name:"wrapper",func:undefined}];at.prototype.clone=hj;at.prototype.reverse=mj;at.prototype.value=zj;yt.prototype.at=dj.at;yt.prototype.chain=dj.wrapperChain;yt.prototype.commit=dj.commit;yt.prototype.next=dj.next;yt.prototype.plant=dj.plant;yt.prototype.reverse=dj.reverse;yt.prototype.toJSON=yt.prototype.valueOf=yt.prototype.value=dj.value;yt.prototype.first=yt.prototype.head;if(xj){yt.prototype[xj]=dj.toIterator}var Dj=yt;class image_tag_ImageTag{constructor(e){const{repository:t="unityci",name:i="editor",version:n="2019.2.11f1",platform:a,customImage:r}=e;if(!image_tag_ImageTag.versionPattern.test(n)){throw new Error(`Invalid version "${n}".`)}if(!em(image_tag_ImageTag.targetPlatformToImageSuffixMap,a)){throw new Error(`Platform "${a}" is currently not supported.`)}const s=Rr(image_tag_ImageTag.targetPlatformToImageSuffixMap,a,image_tag_ImageTag.imageSuffixes.generic);Object.assign(this,{repository:t,name:i,version:n,platform:a,builderPlatform:s,customImage:r})}static get versionPattern(){return/^20\d{2}\.\d\.\w{3,4}|3$/}static get imageSuffixes(){return{generic:"",webgl:"webgl",mac:"mac-mono",windows:"windows-mono",linux:"base",android:"android",ios:"ios",facebook:"facebook"}}static get targetPlatformToImageSuffixMap(){const{generic:e,webgl:t,mac:i,windows:n,linux:a,android:r,ios:s,facebook:o}=image_tag_ImageTag.imageSuffixes;return{[u.types.StandaloneOSX]:i,[u.types.StandaloneWindows]:n,[u.types.StandaloneWindows64]:n,[u.types.StandaloneLinux64]:a,[u.types.iOS]:s,[u.types.Android]:r,[u.types.WebGL]:t,[u.types.WSAPlayer]:n,[u.types.PS4]:n,[u.types.XboxOne]:n,[u.types.tvOS]:n,[u.types.Switch]:n,[u.types.Lumin]:n,[u.types.BJM]:n,[u.types.Stadia]:n,[u.types.Facebook]:o,[u.types.NoTarget]:e,[u.types.Test]:e}}get tag(){return Yv(`${this.version}-${this.builderPlatform}`,"-")}get image(){return Zv(`${this.repository}/${this.name}`,"/")}toString(){const{image:e,tag:t}=this;if(this.customImage&&this.customImage!==""){return this.customImage}return`${e}:${t}-0`}}var Ij=image_tag_ImageTag;class docker_Docker{static async build(e,t=false){const{path:i,dockerfile:n,baseImage:a}=e;const{version:r,platform:s}=a;const o=new Ij({repository:"",name:"unity-builder",version:r,platform:s});const u=`docker build ${i} --file ${n} --build-arg IMAGE=${a} --tag ${o}`;await Object(f.exec)(u,undefined,{silent:t});return o}static async run(e,t,i=false){const{version:n,workspace:a,runnerTempPath:r,platform:s,projectPath:o,buildName:u,buildPath:l,buildFile:c,buildMethod:d,buildVersion:p,androidVersionCode:h,androidKeystoreName:m,androidKeystoreBase64:b,androidKeystorePass:g,androidKeyaliasName:y,androidKeyaliasPass:S,customParameters:w}=t;const v=`docker run --workdir /github/workspace --rm --env UNITY_LICENSE --env UNITY_LICENSE_FILE --env UNITY_EMAIL --env UNITY_PASSWORD --env UNITY_SERIAL --env UNITY_VERSION="${n}" --env PROJECT_PATH="${o}" --env BUILD_TARGET="${s}" --env BUILD_NAME="${u}" --env BUILD_PATH="${l}" --env BUILD_FILE="${c}" --env BUILD_METHOD="${d}" --env VERSION="${p}" --env ANDROID_VERSION_CODE="${h}" --env ANDROID_KEYSTORE_NAME="${m}" --env ANDROID_KEYSTORE_BASE64="${b}" --env ANDROID_KEYSTORE_PASS="${g}" --env ANDROID_KEYALIAS_NAME="${y}" --env ANDROID_KEYALIAS_PASS="${S}" --env CUSTOM_PARAMETERS="${w}" --env HOME=/github/home --env GITHUB_REF --env GITHUB_SHA --env GITHUB_REPOSITORY --env GITHUB_ACTOR --env GITHUB_WORKFLOW --env GITHUB_HEAD_REF --env GITHUB_BASE_REF --env GITHUB_EVENT_NAME --env GITHUB_WORKSPACE=/github/workspace --env GITHUB_ACTION --env GITHUB_EVENT_PATH --env RUNNER_OS --env RUNNER_TOOL_CACHE --env RUNNER_TEMP --env RUNNER_WORKSPACE --volume "/var/run/docker.sock":"/var/run/docker.sock" --volume "${r}/_github_home":"/github/home" --volume "${r}/_github_workflow":"/github/workflow" --volume "${a}":"/github/workspace" ${e}`;await Object(f.exec)(v,undefined,{silent:i})}}var _j=docker_Docker;const qj=i(470);class Output{static async setBuildVersion(e){await qj.setOutput("buildVersion",e)}}var Bj=Output;var Mj=i(868);var Uj=i(610);var Lj=i.n(Uj);const Hj=i(470);const Qj=i(870);const Wj=1e4;class kubernetes_Kubernetes{static async runBuildJob(e,t){const i=new Mj.KubeConfig;i.loadFromString(Qj.decode(e.kubeConfig));const n=new Lj.a({kubeconfig:i});const a=new Mj.Client(n);await a.loadSpec();const r=kubernetes_Kubernetes.uuidv4();const s=`unity-builder-pvc-${r}`;const o=`build-credentials-${r}`;const u=`unity-builder-job-${r}`;const l="default";Object.assign(this,{kubeClient:a,buildId:r,buildParameters:e,baseImage:t,pvcName:s,secretName:o,jobName:u,namespace:l});await kubernetes_Kubernetes.createSecret();await kubernetes_Kubernetes.createPersistentVolumeClaim();await kubernetes_Kubernetes.scheduleBuildJob();await kubernetes_Kubernetes.watchBuildJobUntilFinished();await kubernetes_Kubernetes.cleanup();Hj.setOutput("volume",s)}static async createSecret(){const e={apiVersion:"v1",kind:"Secret",metadata:{name:this.secretName},type:"Opaque",data:{GITHUB_TOKEN:Qj.encode(this.buildParameters.githubToken),UNITY_LICENSE:Qj.encode(process.env.UNITY_LICENSE),ANDROID_KEYSTORE_BASE64:Qj.encode(this.buildParameters.androidKeystoreBase64),ANDROID_KEYSTORE_PASS:Qj.encode(this.buildParameters.androidKeystorePass),ANDROID_KEYALIAS_PASS:Qj.encode(this.buildParameters.androidKeyaliasPass)}};await this.kubeClient.api.v1.namespaces(this.namespace).secrets.post({body:e})}static async createPersistentVolumeClaim(){if(this.buildParameters.kubeVolume){Hj.info(this.buildParameters.kubeVolume);this.pvcName=this.buildParameters.kubeVolume;return}const e={apiVersion:"v1",kind:"PersistentVolumeClaim",metadata:{name:this.pvcName},spec:{accessModes:["ReadWriteOnce"],volumeMode:"Filesystem",resources:{requests:{storage:this.buildParameters.kubeVolumeSize}}}};await this.kubeClient.api.v1.namespaces(this.namespace).persistentvolumeclaims.post({body:e});Hj.info("Persistent Volume created, waiting for ready state...");await kubernetes_Kubernetes.watchPersistentVolumeClaimUntilReady();Hj.info("Persistent Volume ready for claims")}static async watchPersistentVolumeClaimUntilReady(){await new Promise(e=>setTimeout(e,Wj));const e=await this.kubeClient.api.v1.namespaces(this.namespace).persistentvolumeclaims(this.pvcName).get();if(e.body.status.phase==="Pending"){await kubernetes_Kubernetes.watchPersistentVolumeClaimUntilReady()}}static async scheduleBuildJob(){Hj.info("Creating build job");const e={apiVersion:"batch/v1",kind:"Job",metadata:{name:this.jobName,labels:{app:"unity-builder"}},spec:{template:{backoffLimit:1,spec:{volumes:[{name:"data",persistentVolumeClaim:{claimName:this.pvcName}},{name:"credentials",secret:{secretName:this.secretName}}],initContainers:[{name:"clone",image:"alpine/git",command:["/bin/sh","-c",`apk update;\n apk add git-lfs;\n export GITHUB_TOKEN=$(cat /credentials/GITHUB_TOKEN);\n cd /data;\n git clone https://github.com/${process.env.GITHUB_REPOSITORY}.git repo;\n git clone https://github.com/webbertakken/unity-builder.git builder;\n cd repo;\n git checkout $GITHUB_SHA;\n ls`],volumeMounts:[{name:"data",mountPath:"/data"},{name:"credentials",mountPath:"/credentials",readOnly:true}],env:[{name:"GITHUB_SHA",value:this.buildId}]}],containers:[{name:"main",image:`${this.baseImage.toString()}`,command:["bin/bash","-c",`for f in ./credentials/*; do export $(basename $f)="$(cat $f)"; done\n cp -r /data/builder/action/default-build-script /UnityBuilderAction\n cp -r /data/builder/action/entrypoint.sh /entrypoint.sh\n cp -r /data/builder/action/steps /steps\n chmod -R +x /entrypoint.sh;\n chmod -R +x /steps;\n /entrypoint.sh;\n `],resources:{requests:{memory:this.buildParameters.kubeContainerMemory,cpu:this.buildParameters.kubeContainerCPU}},env:[{name:"GITHUB_WORKSPACE",value:"/data/repo"},{name:"PROJECT_PATH",value:this.buildParameters.projectPath},{name:"BUILD_PATH",value:this.buildParameters.buildPath},{name:"BUILD_FILE",value:this.buildParameters.buildFile},{name:"BUILD_NAME",value:this.buildParameters.buildName},{name:"BUILD_METHOD",value:this.buildParameters.buildMethod},{name:"CUSTOM_PARAMETERS",value:this.buildParameters.customParameters},{name:"BUILD_TARGET",value:this.buildParameters.platform},{name:"ANDROID_VERSION_CODE",value:this.buildParameters.androidVersionCode.toString()},{name:"ANDROID_KEYSTORE_NAME",value:this.buildParameters.androidKeystoreName},{name:"ANDROID_KEYALIAS_NAME",value:this.buildParameters.androidKeyaliasName}],volumeMounts:[{name:"data",mountPath:"/data"},{name:"credentials",mountPath:"/credentials",readOnly:true}],lifeCycle:{preStop:{exec:{command:["bin/bash","-c",`cd /data/builder/action/steps;\n chmod +x /return_license.sh;\n /return_license.sh;`]}}}}],restartPolicy:"Never"}}}};await this.kubeClient.apis.batch.v1.namespaces(this.namespace).jobs.post({body:e});Hj.info("Job created")}static async watchBuildJobUntilFinished(){let e;let t=false;while(!t){await new Promise(e=>setTimeout(e,Wj));const i=await this.kubeClient.api.v1.namespaces(this.namespace).pods.get();for(let n=0;nsetTimeout(e,Wj));const t=await this.kubeClient.api.v1.namespaces(this.namespace).pod(e).get();if(t.body.status.phase!=="Running"){n=true}const a=await this.kubeClient.api.v1.namespaces(this.namespace).pod(e).log.get({qs:{sinceTime:i,timestamps:true}});if(a.body!==undefined){const e=a.body.match(/[^\n\r]+/g).reverse();for(let t=0;t{const t=Math.random()*16|0;const i=e==="x"?t:t&3|8;return i.toString(16)})}}var Gj=kubernetes_Kubernetes;const Kj=i(470);async function src_action(){r.checkCompatibility();w.verify();const{dockerfile:e,workspace:t,actionFolder:i}=r;const n=await m.create();const a=new Ij(n);if(n.kubeConfig){Kj.info("Building with Kubernetes");await Gj.runBuildJob(n,a)}else{const r=await _j.build({path:i,dockerfile:e,baseImage:a});await _j.run(r,{workspace:t,...n})}await Bj.setBuildVersion(n.buildVersion)}src_action().catch(e=>{Kj.setFailed(e.message)})},function(e,t,i){var n=i(49);var a=i(3);var r=i(747);var s=function(){};var o=/^v?\.0/.test(process.version);var u=function(e){return typeof e==="function"};var l=function(e){if(!o)return false;if(!r)return false;return(e instanceof(r.ReadStream||s)||e instanceof(r.WriteStream||s))&&u(e.close)};var c=function(e){return e.setHeader&&u(e.abort)};var d=function(e,t,i,r){r=n(r);var o=false;e.on("close",function(){o=true});a(e,{readable:t,writable:i},function(e){if(e)return r(e);o=true;r()});var d=false;return function(t){if(o)return;if(d)return;d=true;if(l(e))return e.close(s);if(c(e))return e.abort();if(u(e.destroy))return e.destroy();r(t||new Error("stream was destroyed"))}};var p=function(e){e()};var f=function(e,t){return e.pipe(t)};var h=function(){var e=Array.prototype.slice.call(arguments);var t=u(e[e.length-1]||s)&&e.pop()||s;if(Array.isArray(e[0]))e=e[0];if(e.length<2)throw new Error("pump requires two streams per minimum");var i;var n=e.map(function(a,r){var s=r0;return d(a,s,o,function(e){if(!i)i=e;if(e)n.forEach(p);if(s)return;n.forEach(p);t(i)})});return e.reduce(f)};e.exports=h},,function(e,t,i){"use strict";var n=i(363);var a=i(211);var r=i(835);var s=i(669);var o=i(413);var u=i(903);var l=i(942);var c=i(658);var d=i(789);var p=i(779);var f=i(254);var h=i(792);var m=i(172);var b=i(374);var g=i(382);var y=i(944).strict;var S=i(810);var w=i(35);var v=i(721);var z=i(902).Querystring;var j=i(416).Har;var O=i(220).Auth;var k=i(287).OAuth;var C=i(964);var T=i(469).Multipart;var R=i(552).Redirect;var E=i(461).Tunnel;var A=i(742);var x=i(727).Buffer;var N=S.safeStringify;var V=S.isReadStream;var P=S.toBase64;var D=S.defer;var I=S.copy;var _=S.version;var q=w.jar();var B={};function filterForNonReserved(e,t){var i={};for(var n in t){var a=e.indexOf(n)===-1;if(a){i[n]=t[n]}}return i}function filterOutReservedFunctions(e,t){var i={};for(var n in t){var a=!(e.indexOf(n)===-1);var r=typeof t[n]==="function";if(!(a&&r)){i[n]=t[n]}}return i}function requestToJSON(){var e=this;return{uri:e.uri,method:e.method,headers:e.headers}}function responseToJSON(){var e=this;return{statusCode:e.statusCode,body:e.body,headers:e.headers,request:requestToJSON.call(e.request)}}function Request(e){var t=this;if(e.har){t._har=new j(t);e=t._har.options(e)}o.Stream.call(t);var i=Object.keys(Request.prototype);var n=filterForNonReserved(i,e);b(t,n);e=filterOutReservedFunctions(i,e);t.readable=true;t.writable=true;if(e.method){t.explicitMethod=true}t._qs=new z(t);t._auth=new O(t);t._oauth=new k(t);t._multipart=new T(t);t._redirect=new R(t);t._tunnel=new E(t);t.init(e)}s.inherits(Request,o.Stream);Request.debug=process.env.NODE_DEBUG&&/\brequest\b/.test(process.env.NODE_DEBUG);function debug(){if(Request.debug){console.error("REQUEST %s",s.format.apply(s,arguments))}}Request.prototype.debug=debug;Request.prototype.init=function(e){var t=this;if(!e){e={}}t.headers=t.headers?I(t.headers):{};for(var i in t.headers){if(typeof t.headers[i]==="undefined"){delete t.headers[i]}}f.httpify(t,t.headers);if(!t.method){t.method=e.method||"GET"}if(!t.localAddress){t.localAddress=e.localAddress}t._qs.init(e);debug(e);if(!t.pool&&t.pool!==false){t.pool=B}t.dests=t.dests||[];t.__isRequestRequest=true;if(!t._callback&&t.callback){t._callback=t.callback;t.callback=function(){if(t._callbackCalled){return}t._callbackCalled=true;t._callback.apply(t,arguments)};t.on("error",t.callback.bind());t.on("complete",t.callback.bind(t,null))}if(!t.uri&&t.url){t.uri=t.url;delete t.url}if(t.baseUrl){if(typeof t.baseUrl!=="string"){return t.emit("error",new Error("options.baseUrl must be a string"))}if(typeof t.uri!=="string"){return t.emit("error",new Error("options.uri must be a string when using options.baseUrl"))}if(t.uri.indexOf("//")===0||t.uri.indexOf("://")!==-1){return t.emit("error",new Error("options.uri must be a path when using options.baseUrl"))}var s=t.baseUrl.lastIndexOf("/")===t.baseUrl.length-1;var o=t.uri.indexOf("/")===0;if(s&&o){t.uri=t.baseUrl+t.uri.slice(1)}else if(s||o){t.uri=t.baseUrl+t.uri}else if(t.uri===""){t.uri=t.baseUrl}else{t.uri=t.baseUrl+"/"+t.uri}delete t.baseUrl}if(!t.uri){return t.emit("error",new Error("options.uri is a required argument"))}if(typeof t.uri==="string"){t.uri=r.parse(t.uri)}if(!t.uri.href){t.uri.href=r.format(t.uri)}if(t.uri.protocol==="unix:"){return t.emit("error",new Error("`unix://` URL scheme is no longer supported. Please use the format `http://unix:SOCKET:PATH`"))}if(t.uri.host==="unix"){t.enableUnixSocket()}if(t.strictSSL===false){t.rejectUnauthorized=false}if(!t.uri.pathname){t.uri.pathname="/"}if(!(t.uri.host||t.uri.hostname&&t.uri.port)&&!t.uri.isUnix){var u=r.format(t.uri);var l='Invalid URI "'+u+'"';if(Object.keys(e).length===0){l+=". This can be caused by a crappy redirection."}t.abort();return t.emit("error",new Error(l))}if(!t.hasOwnProperty("proxy")){t.proxy=v(t.uri)}t.tunnel=t._tunnel.isEnabled();if(t.proxy){t._tunnel.setup(e)}t._redirect.onRequest(e);t.setHost=false;if(!t.hasHeader("host")){var c=t.originalHostHeaderName||"host";t.setHeader(c,t.uri.host);if(t.uri.port){if(t.uri.port==="80"&&t.uri.protocol==="http:"||t.uri.port==="443"&&t.uri.protocol==="https:"){t.setHeader(c,t.uri.hostname)}}t.setHost=true}t.jar(t._jar||e.jar);if(!t.uri.port){if(t.uri.protocol==="http:"){t.uri.port=80}else if(t.uri.protocol==="https:"){t.uri.port=443}}if(t.proxy&&!t.tunnel){t.port=t.proxy.port;t.host=t.proxy.hostname}else{t.port=t.uri.port;t.host=t.uri.hostname}if(e.form){t.form(e.form)}if(e.formData){var d=e.formData;var m=t.form();var b=function(e,t){if(t&&t.hasOwnProperty("value")&&t.hasOwnProperty("options")){m.append(e,t.value,t.options)}else{m.append(e,t)}};for(var S in d){if(d.hasOwnProperty(S)){var w=d[S];if(w instanceof Array){for(var z=0;z=100&&e<200||e===204||e===304};var l;if(t.gzip&&!o(e.statusCode)){var c=e.headers["content-encoding"]||"identity";c=c.trim().toLowerCase();var d={flush:u.Z_SYNC_FLUSH,finishFlush:u.Z_SYNC_FLUSH};if(c==="gzip"){l=u.createGunzip(d);e.pipe(l)}else if(c==="deflate"){l=u.createInflate(d);e.pipe(l)}else{if(c!=="identity"){debug("ignoring unrecognized Content-Encoding "+c)}l=e}}else{l=e}if(t.encoding){if(t.dests.length!==0){console.error("Ignoring encoding parameter as this stream is being piped to another stream which makes the encoding option invalid.")}else{l.setEncoding(t.encoding)}}if(t._paused){l.pause()}t.responseContent=l;t.emit("response",e);t.dests.forEach(function(e){t.pipeDest(e)});l.on("data",function(i){if(t.timing&&!t.responseStarted){t.responseStartTime=(new Date).getTime();e.responseStartTime=t.responseStartTime}t._destdata=true;t.emit("data",i)});l.once("end",function(e){t.emit("end",e)});l.on("error",function(e){t.emit("error",e)});l.on("close",function(){t.emit("close")});if(t.callback){t.readResponseBody(e)}else{t.on("end",function(){if(t._aborted){debug("aborted",t.uri.href);return}t.emit("complete",e)})}}debug("finish init function",t.uri.href)};Request.prototype.readResponseBody=function(e){var t=this;debug("reading response's body");var i=[];var n=0;var a=[];t.on("data",function(e){if(!x.isBuffer(e)){a.push(e)}else if(e.length){n+=e.length;i.push(e)}});t.on("end",function(){debug("end event",t.uri.href);if(t._aborted){debug("aborted",t.uri.href);i=[];n=0;return}if(n){debug("has body",t.uri.href,n);e.body=x.concat(i,n);if(t.encoding!==null){e.body=e.body.toString(t.encoding)}i=[];n=0}else if(a.length){if(t.encoding==="utf8"&&a[0].length>0&&a[0][0]==="\ufeff"){a[0]=a[0].substring(1)}e.body=a.join("")}if(t._json){try{e.body=JSON.parse(e.body,t._jsonReviver)}catch(e){debug("invalid JSON received",t.uri.href)}}debug("emitting complete",t.uri.href);if(typeof e.body==="undefined"&&!t._json){e.body=t.encoding===null?x.alloc(0):""}t.emit("complete",e,e.body)})};Request.prototype.abort=function(){var e=this;e._aborted=true;if(e.req){e.req.abort()}else if(e.response){e.response.destroy()}e.clearTimeout();e.emit("abort")};Request.prototype.pipeDest=function(e){var t=this;var i=t.response;if(e.headers&&!e.headersSent){if(i.caseless.has("content-type")){var n=i.caseless.has("content-type");if(e.setHeader){e.setHeader(n,i.headers[n])}else{e.headers[n]=i.headers[n]}}if(i.caseless.has("content-length")){var a=i.caseless.has("content-length");if(e.setHeader){e.setHeader(a,i.headers[a])}else{e.headers[a]=i.headers[a]}}}if(e.setHeader&&!e.headersSent){for(var r in i.headers){if(!t.gzip||r!=="content-encoding"){e.setHeader(r,i.headers[r])}}e.statusCode=i.statusCode}if(t.pipefilter){t.pipefilter(i,e)}};Request.prototype.qs=function(e,t){var i=this;var n;if(!t&&i.uri.query){n=i._qs.parse(i.uri.query)}else{n={}}for(var a in e){n[a]=e[a]}var s=i._qs.stringify(n);if(s===""){return i}i.uri=r.parse(i.uri.href.split("?")[0]+"?"+s);i.url=i.uri;i.path=i.uri.path;if(i.uri.host==="unix"){i.enableUnixSocket()}return i};Request.prototype.form=function(e){var t=this;if(e){if(!/^application\/x-www-form-urlencoded\b/.test(t.getHeader("content-type"))){t.setHeader("content-type","application/x-www-form-urlencoded")}t.body=typeof e==="string"?t._qs.rfc3986(e.toString("utf8")):t._qs.stringify(e).toString("utf8");return t}t._form=new m;t._form.on("error",function(e){e.message="form-data: "+e.message;t.emit("error",e);t.abort()});return t._form};Request.prototype.multipart=function(e){var t=this;t._multipart.onRequest(e);if(!t._multipart.chunked){t.body=t._multipart.body}return t};Request.prototype.json=function(e){var t=this;if(!t.hasHeader("accept")){t.setHeader("accept","application/json")}if(typeof t.jsonReplacer==="function"){t._jsonReplacer=t.jsonReplacer}t._json=true;if(typeof e==="boolean"){if(t.body!==undefined){if(!/^application\/x-www-form-urlencoded\b/.test(t.getHeader("content-type"))){t.body=N(t.body,t._jsonReplacer)}else{t.body=t._qs.rfc3986(t.body)}if(!t.hasHeader("content-type")){t.setHeader("content-type","application/json")}}}else{t.body=N(e,t._jsonReplacer);if(!t.hasHeader("content-type")){t.setHeader("content-type","application/json")}}if(typeof t.jsonReviver==="function"){t._jsonReviver=t.jsonReviver}return t};Request.prototype.getHeader=function(e,t){var i=this;var n,a,r;if(!t){t=i.headers}Object.keys(t).forEach(function(i){if(i.length!==e.length){return}a=new RegExp(e,"i");r=i.match(a);if(r){n=t[i]}});return n};Request.prototype.enableUnixSocket=function(){var e=this.uri.path.split(":");var t=e[0];var i=e[1];this.socketPath=t;this.uri.pathname=i;this.uri.path=i;this.uri.host=t;this.uri.hostname=t;this.uri.isUnix=true};Request.prototype.auth=function(e,t,i,n){var a=this;a._auth.onRequest(e,t,i,n);return a};Request.prototype.aws=function(e,t){var i=this;if(!t){i._aws=e;return i}if(e.sign_version===4||e.sign_version==="4"){var n={host:i.uri.host,path:i.uri.path,method:i.method,headers:i.headers,body:i.body};if(e.service){n.service=e.service}var a=c.sign(n,{accessKeyId:e.key,secretAccessKey:e.secret,sessionToken:e.session});i.setHeader("authorization",a.headers.Authorization);i.setHeader("x-amz-date",a.headers["X-Amz-Date"]);if(a.headers["X-Amz-Security-Token"]){i.setHeader("x-amz-security-token",a.headers["X-Amz-Security-Token"])}}else{var r=new Date;i.setHeader("date",r.toUTCString());var s={key:e.key,secret:e.secret,verb:i.method.toUpperCase(),date:r,contentType:i.getHeader("content-type")||"",md5:i.getHeader("content-md5")||"",amazonHeaders:l.canonicalizeHeaders(i.headers)};var o=i.uri.path;if(e.bucket&&o){s.resource="/"+e.bucket+o}else if(e.bucket&&!o){s.resource="/"+e.bucket}else if(!e.bucket&&o){s.resource=o}else if(!e.bucket&&!o){s.resource="/"}s.resource=l.canonicalizeResource(s.resource);i.setHeader("authorization",l.authorization(s))}return i};Request.prototype.httpSignature=function(e){var t=this;d.signRequest({getHeader:function(e){return t.getHeader(e,t.headers)},setHeader:function(e,i){t.setHeader(e,i)},method:t.method,path:t.path},e);debug("httpSignature authorization",t.getHeader("authorization"));return t};Request.prototype.hawk=function(e){var t=this;t.setHeader("Authorization",C.header(t.uri,t.method,e))};Request.prototype.oauth=function(e){var t=this;t._oauth.onRequest(e);return t};Request.prototype.jar=function(e){var t=this;var i;if(t._redirect.redirectsFollowed===0){t.originalCookieHeader=t.getHeader("cookie")}if(!e){i=false;t._disableCookies=true}else{var n=e.getCookieString?e:q;var a=t.uri.href;if(n){i=n.getCookieString(a)}}if(i&&i.length){if(t.originalCookieHeader){t.setHeader("cookie",t.originalCookieHeader+"; "+i)}else{t.setHeader("cookie",i)}}t._jar=e;return t};Request.prototype.pipe=function(e,t){var i=this;if(i.response){if(i._destdata){i.emit("error",new Error("You cannot pipe after data has been emitted from the response."))}else if(i._ended){i.emit("error",new Error("You cannot pipe after the response has been ended."))}else{o.Stream.prototype.pipe.call(i,e,t);i.pipeDest(e);return e}}else{i.dests.push(e);o.Stream.prototype.pipe.call(i,e,t);return e}};Request.prototype.write=function(){var e=this;if(e._aborted){return}if(!e._started){e.start()}if(e.req){return e.req.write.apply(e.req,arguments)}};Request.prototype.end=function(e){var t=this;if(t._aborted){return}if(e){t.write(e)}if(!t._started){t.start()}if(t.req){t.req.end()}};Request.prototype.pause=function(){var e=this;if(!e.responseContent){e._paused=true}else{e.responseContent.pause.apply(e.responseContent,arguments)}};Request.prototype.resume=function(){var e=this;if(!e.responseContent){e._paused=false}else{e.responseContent.resume.apply(e.responseContent,arguments)}};Request.prototype.destroy=function(){var e=this;this.clearTimeout();if(!e._ended){e.end()}else if(e.response){e.response.destroy()}};Request.prototype.clearTimeout=function(){if(this.timeoutTimer){clearTimeout(this.timeoutTimer);this.timeoutTimer=null}};Request.defaultProxyHeaderWhiteList=E.defaultProxyHeaderWhiteList.slice();Request.defaultProxyHeaderExclusiveList=E.defaultProxyHeaderExclusiveList.slice();Request.prototype.toJSON=requestToJSON;e.exports=Request},function(e,t,i){const{randomBytes:n}=i(373);const{IVLENGTHS:a}=i(962);e.exports=(e=>n(a.get(e)/8))},function(e,t,i){"use strict";var n=i(128);var a=i(556);var r=i(93);var s=i(723);var o=i(910);var u=Object.prototype.hasOwnProperty;var l=1;var c=2;var d=3;var p=4;var f=1;var h=2;var m=3;var b=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;var g=/[\x85\u2028\u2029]/;var y=/[,\[\]\{\}]/;var S=/^(?:!|!!|![a-z\-]+!)$/i;var w=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function _class(e){return Object.prototype.toString.call(e)}function is_EOL(e){return e===10||e===13}function is_WHITE_SPACE(e){return e===9||e===32}function is_WS_OR_EOL(e){return e===9||e===32||e===10||e===13}function is_FLOW_INDICATOR(e){return e===44||e===91||e===93||e===123||e===125}function fromHexCode(e){var t;if(48<=e&&e<=57){return e-48}t=e|32;if(97<=t&&t<=102){return t-97+10}return-1}function escapedHexLen(e){if(e===120){return 2}if(e===117){return 4}if(e===85){return 8}return 0}function fromDecimalCode(e){if(48<=e&&e<=57){return e-48}return-1}function simpleEscapeSequence(e){return e===48?"\0":e===97?"":e===98?"\b":e===116?"\t":e===9?"\t":e===110?"\n":e===118?"\v":e===102?"\f":e===114?"\r":e===101?"":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"…":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function charFromCodepoint(e){if(e<=65535){return String.fromCharCode(e)}return String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var v=new Array(256);var z=new Array(256);for(var j=0;j<256;j++){v[j]=simpleEscapeSequence(j)?1:0;z[j]=simpleEscapeSequence(j)}function State(e,t){this.input=e;this.filename=t["filename"]||null;this.schema=t["schema"]||o;this.onWarning=t["onWarning"]||null;this.legacy=t["legacy"]||false;this.json=t["json"]||false;this.listener=t["listener"]||null;this.implicitTypes=this.schema.compiledImplicit;this.typeMap=this.schema.compiledTypeMap;this.length=e.length;this.position=0;this.line=0;this.lineStart=0;this.lineIndent=0;this.documents=[]}function generateError(e,t){return new a(t,new r(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function throwError(e,t){throw generateError(e,t)}function throwWarning(e,t){if(e.onWarning){e.onWarning.call(null,generateError(e,t))}}var O={YAML:function handleYamlDirective(e,t,i){var n,a,r;if(e.version!==null){throwError(e,"duplication of %YAML directive")}if(i.length!==1){throwError(e,"YAML directive accepts exactly one argument")}n=/^([0-9]+)\.([0-9]+)$/.exec(i[0]);if(n===null){throwError(e,"ill-formed argument of the YAML directive")}a=parseInt(n[1],10);r=parseInt(n[2],10);if(a!==1){throwError(e,"unacceptable YAML version of the document")}e.version=i[0];e.checkLineBreaks=r<2;if(r!==1&&r!==2){throwWarning(e,"unsupported YAML version of the document")}},TAG:function handleTagDirective(e,t,i){var n,a;if(i.length!==2){throwError(e,"TAG directive accepts exactly two arguments")}n=i[0];a=i[1];if(!S.test(n)){throwError(e,"ill-formed tag handle (first argument) of the TAG directive")}if(u.call(e.tagMap,n)){throwError(e,'there is a previously declared suffix for "'+n+'" tag handle')}if(!w.test(a)){throwError(e,"ill-formed tag prefix (second argument) of the TAG directive")}e.tagMap[n]=a}};function captureSegment(e,t,i,n){var a,r,s,o;if(t1){e.result+=n.repeat("\n",t-1)}}function readPlainScalar(e,t,i){var n,a,r,s,o,u,l,c,d=e.kind,p=e.result,f;f=e.input.charCodeAt(e.position);if(is_WS_OR_EOL(f)||is_FLOW_INDICATOR(f)||f===35||f===38||f===42||f===33||f===124||f===62||f===39||f===34||f===37||f===64||f===96){return false}if(f===63||f===45){a=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(a)||i&&is_FLOW_INDICATOR(a)){return false}}e.kind="scalar";e.result="";r=s=e.position;o=false;while(f!==0){if(f===58){a=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(a)||i&&is_FLOW_INDICATOR(a)){break}}else if(f===35){n=e.input.charCodeAt(e.position-1);if(is_WS_OR_EOL(n)){break}}else if(e.position===e.lineStart&&testDocumentSeparator(e)||i&&is_FLOW_INDICATOR(f)){break}else if(is_EOL(f)){u=e.line;l=e.lineStart;c=e.lineIndent;skipSeparationSpace(e,false,-1);if(e.lineIndent>=t){o=true;f=e.input.charCodeAt(e.position);continue}else{e.position=s;e.line=u;e.lineStart=l;e.lineIndent=c;break}}if(o){captureSegment(e,r,s,false);writeFoldedLines(e,e.line-u);r=s=e.position;o=false}if(!is_WHITE_SPACE(f)){s=e.position+1}f=e.input.charCodeAt(++e.position)}captureSegment(e,r,s,false);if(e.result){return true}e.kind=d;e.result=p;return false}function readSingleQuotedScalar(e,t){var i,n,a;i=e.input.charCodeAt(e.position);if(i!==39){return false}e.kind="scalar";e.result="";e.position++;n=a=e.position;while((i=e.input.charCodeAt(e.position))!==0){if(i===39){captureSegment(e,n,e.position,true);i=e.input.charCodeAt(++e.position);if(i===39){n=e.position;e.position++;a=e.position}else{return true}}else if(is_EOL(i)){captureSegment(e,n,a,true);writeFoldedLines(e,skipSeparationSpace(e,false,t));n=a=e.position}else if(e.position===e.lineStart&&testDocumentSeparator(e)){throwError(e,"unexpected end of the document within a single quoted scalar")}else{e.position++;a=e.position}}throwError(e,"unexpected end of the stream within a single quoted scalar")}function readDoubleQuotedScalar(e,t){var i,n,a,r,s,o;o=e.input.charCodeAt(e.position);if(o!==34){return false}e.kind="scalar";e.result="";e.position++;i=n=e.position;while((o=e.input.charCodeAt(e.position))!==0){if(o===34){captureSegment(e,i,e.position,true);e.position++;return true}else if(o===92){captureSegment(e,i,e.position,true);o=e.input.charCodeAt(++e.position);if(is_EOL(o)){skipSeparationSpace(e,false,t)}else if(o<256&&v[o]){e.result+=z[o];e.position++}else if((s=escapedHexLen(o))>0){a=s;r=0;for(;a>0;a--){o=e.input.charCodeAt(++e.position);if((s=fromHexCode(o))>=0){r=(r<<4)+s}else{throwError(e,"expected hexadecimal character")}}e.result+=charFromCodepoint(r);e.position++}else{throwError(e,"unknown escape sequence")}i=n=e.position}else if(is_EOL(o)){captureSegment(e,i,n,true);writeFoldedLines(e,skipSeparationSpace(e,false,t));i=n=e.position}else if(e.position===e.lineStart&&testDocumentSeparator(e)){throwError(e,"unexpected end of the document within a double quoted scalar")}else{e.position++;n=e.position}}throwError(e,"unexpected end of the stream within a double quoted scalar")}function readFlowCollection(e,t){var i=true,n,a=e.tag,r,s=e.anchor,o,u,c,d,p,f={},h,m,b,g;g=e.input.charCodeAt(e.position);if(g===91){u=93;p=false;r=[]}else if(g===123){u=125;p=true;r={}}else{return false}if(e.anchor!==null){e.anchorMap[e.anchor]=r}g=e.input.charCodeAt(++e.position);while(g!==0){skipSeparationSpace(e,true,t);g=e.input.charCodeAt(e.position);if(g===u){e.position++;e.tag=a;e.anchor=s;e.kind=p?"mapping":"sequence";e.result=r;return true}else if(!i){throwError(e,"missed comma between flow collection entries")}m=h=b=null;c=d=false;if(g===63){o=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(o)){c=d=true;e.position++;skipSeparationSpace(e,true,t)}}n=e.line;composeNode(e,t,l,false,true);m=e.tag;h=e.result;skipSeparationSpace(e,true,t);g=e.input.charCodeAt(e.position);if((d||e.line===n)&&g===58){c=true;g=e.input.charCodeAt(++e.position);skipSeparationSpace(e,true,t);composeNode(e,t,l,false,true);b=e.result}if(p){storeMappingPair(e,r,f,m,h,b)}else if(c){r.push(storeMappingPair(e,null,f,m,h,b))}else{r.push(h)}skipSeparationSpace(e,true,t);g=e.input.charCodeAt(e.position);if(g===44){i=true;g=e.input.charCodeAt(++e.position)}else{i=false}}throwError(e,"unexpected end of the stream within a flow collection")}function readBlockScalar(e,t){var i,a,r=f,s=false,o=false,u=t,l=0,c=false,d,p;p=e.input.charCodeAt(e.position);if(p===124){a=false}else if(p===62){a=true}else{return false}e.kind="scalar";e.result="";while(p!==0){p=e.input.charCodeAt(++e.position);if(p===43||p===45){if(f===r){r=p===43?m:h}else{throwError(e,"repeat of a chomping mode identifier")}}else if((d=fromDecimalCode(p))>=0){if(d===0){throwError(e,"bad explicit indentation width of a block scalar; it cannot be less than one")}else if(!o){u=t+d-1;o=true}else{throwError(e,"repeat of an indentation width identifier")}}else{break}}if(is_WHITE_SPACE(p)){do{p=e.input.charCodeAt(++e.position)}while(is_WHITE_SPACE(p));if(p===35){do{p=e.input.charCodeAt(++e.position)}while(!is_EOL(p)&&p!==0)}}while(p!==0){readLineBreak(e);e.lineIndent=0;p=e.input.charCodeAt(e.position);while((!o||e.lineIndentu){u=e.lineIndent}if(is_EOL(p)){l++;continue}if(e.lineIndentt)&&u!==0){throwError(e,"bad indentation of a sequence entry")}else if(e.lineIndentt){if(composeNode(e,t,p,true,a)){if(b){h=e.result}else{m=e.result}}if(!b){storeMappingPair(e,l,d,f,h,m,r,s);f=h=m=null}skipSeparationSpace(e,true,-1);y=e.input.charCodeAt(e.position)}if(e.lineIndent>t&&y!==0){throwError(e,"bad indentation of a mapping entry")}else if(e.lineIndentt){f=1}else if(e.lineIndent===t){f=0}else if(e.lineIndentt){f=1}else if(e.lineIndent===t){f=0}else if(e.lineIndent tag; it should be "scalar", not "'+e.kind+'"')}for(b=0,g=e.implicitTypes.length;b tag; it should be "'+y.kind+'", not "'+e.kind+'"')}if(!y.resolve(e.result)){throwError(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}else{e.result=y.construct(e.result);if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}}}else{throwError(e,"unknown tag !<"+e.tag+">")}}if(e.listener!==null){e.listener("close",e)}return e.tag!==null||e.anchor!==null||m}function readDocument(e){var t=e.position,i,n,a,r=false,s;e.version=null;e.checkLineBreaks=e.legacy;e.tagMap={};e.anchorMap={};while((s=e.input.charCodeAt(e.position))!==0){skipSeparationSpace(e,true,-1);s=e.input.charCodeAt(e.position);if(e.lineIndent>0||s!==37){break}r=true;s=e.input.charCodeAt(++e.position);i=e.position;while(s!==0&&!is_WS_OR_EOL(s)){s=e.input.charCodeAt(++e.position)}n=e.input.slice(i,e.position);a=[];if(n.length<1){throwError(e,"directive name must not be less than one character in length")}while(s!==0){while(is_WHITE_SPACE(s)){s=e.input.charCodeAt(++e.position)}if(s===35){do{s=e.input.charCodeAt(++e.position)}while(s!==0&&!is_EOL(s));break}if(is_EOL(s))break;i=e.position;while(s!==0&&!is_WS_OR_EOL(s)){s=e.input.charCodeAt(++e.position)}a.push(e.input.slice(i,e.position))}if(s!==0)readLineBreak(e);if(u.call(O,n)){O[n](e,n,a)}else{throwWarning(e,'unknown document directive "'+n+'"')}}skipSeparationSpace(e,true,-1);if(e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45){e.position+=3;skipSeparationSpace(e,true,-1)}else if(r){throwError(e,"directives end mark is expected")}composeNode(e,e.lineIndent-1,p,false,true);skipSeparationSpace(e,true,-1);if(e.checkLineBreaks&&g.test(e.input.slice(t,e.position))){throwWarning(e,"non-ASCII line breaks are interpreted as content")}e.documents.push(e.result);if(e.position===e.lineStart&&testDocumentSeparator(e)){if(e.input.charCodeAt(e.position)===46){e.position+=3;skipSeparationSpace(e,true,-1)}return}if(e.position{e=new n(e,p);t=new s(t,p);let f,h,m,b,g;switch(i){case">":f=u;h=c;m=l;b=">";g=">=";break;case"<":f=l;h=d;m=u;b="<";g="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(o(e,t,p)){return false}for(let i=0;i{if(e.semver===r){e=new a(">=0.0.0")}s=s||e;o=o||e;if(f(e.semver,s.semver,p)){s=e}else if(m(e.semver,o.semver,p)){o=e}});if(s.operator===b||s.operator===g){return false}if((!o.operator||o.operator===b)&&h(e,o.semver)){return false}else if(o.operator===g&&m(e,o.semver)){return false}}return true};e.exports=p},function(e,t,i){"use strict";const n=i(273);const a=i(557);class FilterError extends Error{}const r=(e,t)=>new a((i,a,r)=>{const{count:s,filter:o=(()=>true)}=t;if(!Number.isFinite(s)){a(new TypeError(`Expected a finite number, got ${typeof t.count}`));return}const u=[];const l=[];let c=0;let d=false;const p=new Set;const f=()=>{if(u.length===s){i(u);d=true}if(c-l.length{for(const t of e){if(!p.has(t)&&typeof t.cancel==="function"){t.cancel()}}};r(h);for(const t of e){c++;(async()=>{try{const e=await t;if(d){return}if(!o(e)){throw new FilterError("Value does not satisfy filter")}u.push(e)}catch(e){l.push(e)}finally{p.add(t);if(!d&&f()){h()}}})()}if(s>c){a(new RangeError(`Expected input to contain at least ${t.count} items, but contains ${c} items`));h()}});e.exports=r;e.exports.AggregateError=n;e.exports.FilterError=FilterError},,,function(e){const t={JOSEAlgNotWhitelisted:"ERR_JOSE_ALG_NOT_WHITELISTED",JOSECritNotUnderstood:"ERR_JOSE_CRIT_NOT_UNDERSTOOD",JOSEInvalidEncoding:"ERR_JOSE_INVALID_ENCODING",JOSEMultiError:"ERR_JOSE_MULTIPLE_ERRORS",JOSENotSupported:"ERR_JOSE_NOT_SUPPORTED",JWEDecryptionFailed:"ERR_JWE_DECRYPTION_FAILED",JWEInvalid:"ERR_JWE_INVALID",JWKImportFailed:"ERR_JWK_IMPORT_FAILED",JWKInvalid:"ERR_JWK_INVALID",JWKKeySupport:"ERR_JWK_KEY_SUPPORT",JWKSNoMatchingKey:"ERR_JWKS_NO_MATCHING_KEY",JWSInvalid:"ERR_JWS_INVALID",JWSVerificationFailed:"ERR_JWS_VERIFICATION_FAILED",JWTClaimInvalid:"ERR_JWT_CLAIM_INVALID",JWTExpired:"ERR_JWT_EXPIRED",JWTMalformed:"ERR_JWT_MALFORMED"};const i={JWEDecryptionFailed:"decryption operation failed",JWEInvalid:"JWE invalid",JWKSNoMatchingKey:"no matching key found in the KeyStore",JWSInvalid:"JWS invalid",JWSVerificationFailed:"signature verification failed"};class JOSEError extends Error{constructor(e){super(e);if(e===undefined){this.message=i[this.constructor.name]}this.name=this.constructor.name;this.code=t[this.constructor.name];Error.captureStackTrace(this,this.constructor)}}const n=e=>e instanceof JOSEMultiError;class JOSEMultiError extends JOSEError{constructor(e){super();let t;while((t=e.findIndex(n))&&t!==-1){e.splice(t,1,...e[t])}Object.defineProperty(this,"errors",{value:e})}*[Symbol.iterator](){for(const e of this.errors){yield e}}}e.exports.JOSEError=JOSEError;e.exports.JOSEAlgNotWhitelisted=class JOSEAlgNotWhitelisted extends JOSEError{};e.exports.JOSECritNotUnderstood=class JOSECritNotUnderstood extends JOSEError{};e.exports.JOSEInvalidEncoding=class JOSEInvalidEncoding extends JOSEError{};e.exports.JOSEMultiError=JOSEMultiError;e.exports.JOSENotSupported=class JOSENotSupported extends JOSEError{};e.exports.JWEDecryptionFailed=class JWEDecryptionFailed extends JOSEError{};e.exports.JWEInvalid=class JWEInvalid extends JOSEError{};e.exports.JWKImportFailed=class JWKImportFailed extends JOSEError{};e.exports.JWKInvalid=class JWKInvalid extends JOSEError{};e.exports.JWKKeySupport=class JWKKeySupport extends JOSEError{};e.exports.JWKSNoMatchingKey=class JWKSNoMatchingKey extends JOSEError{};e.exports.JWSInvalid=class JWSInvalid extends JOSEError{};e.exports.JWSVerificationFailed=class JWSVerificationFailed extends JOSEError{};class JWTClaimInvalid extends JOSEError{constructor(e,t="unspecified",i="unspecified"){super(e);this.claim=t;this.reason=i}}e.exports.JWTClaimInvalid=JWTClaimInvalid;e.exports.JWTExpired=class JWTExpired extends JWTClaimInvalid{};e.exports.JWTMalformed=class JWTMalformed extends JOSEError{}},,function(e){const t="/.well-known/openid-configuration";const i="/.well-known/oauth-authorization-server";const n="/.well-known/webfinger";const a="http://openid.net/specs/connect/1.0/issuer";const r=[`https://login.microsoftonline.com/common${t}`,`https://login.microsoftonline.com/common/v2.0${t}`,`https://login.microsoftonline.com/organizations/v2.0${t}`,`https://login.microsoftonline.com/consumers/v2.0${t}`];const s={grant_types:["authorization_code"],id_token_signed_response_alg:"RS256",authorization_signed_response_alg:"RS256",response_types:["code"],token_endpoint_auth_method:"client_secret_basic"};const o={claim_types_supported:["normal"],claims_parameter_supported:false,grant_types_supported:["authorization_code","implicit"],request_parameter_supported:false,request_uri_parameter_supported:true,require_request_uri_registration:false,response_modes_supported:["query","fragment"],token_endpoint_auth_methods_supported:["client_secret_basic"]};const u=["access_token","code","error","error_description","error_uri","expires_in","id_token","state","token_type","session_state","response"];const l=/^application\/jwt/;const c=Symbol("openid-client.custom.http-options");const d=Symbol("openid-client.custom.clock-tolerance");e.exports={AAD_MULTITENANT_DISCOVERY:r,CALLBACK_PROPERTIES:u,CLIENT_DEFAULTS:s,CLOCK_TOLERANCE:d,HTTP_OPTIONS:c,ISSUER_DEFAULTS:o,JWT_CONTENT:l,OAUTH2_DISCOVERY:i,OIDC_DISCOVERY:t,REL:a,WEBFINGER:n}},function(e,t,i){"use strict";var n=i(826);var a=i(547);var r=i(382);var s=i(727).Buffer;function Multipart(e){this.request=e;this.boundary=n();this.chunked=false;this.body=null}Multipart.prototype.isChunked=function(e){var t=this;var i=false;var n=e.data||e;if(!n.forEach){t.request.emit("error",new Error("Argument error, options.multipart."))}if(e.chunked!==undefined){i=e.chunked}if(t.request.getHeader("transfer-encoding")==="chunked"){i=true}if(!i){n.forEach(function(e){if(typeof e.body==="undefined"){t.request.emit("error",new Error("Body attribute missing in multipart."))}if(r(e.body)){i=true}})}return i};Multipart.prototype.setHeaders=function(e){var t=this;if(e&&!t.request.hasHeader("transfer-encoding")){t.request.setHeader("transfer-encoding","chunked")}var i=t.request.getHeader("content-type");if(!i||i.indexOf("multipart")===-1){t.request.setHeader("content-type","multipart/related; boundary="+t.boundary)}else{if(i.indexOf("boundary")!==-1){t.boundary=i.replace(/.*boundary=([^\s;]+).*/,"$1")}else{t.request.setHeader("content-type",i+"; boundary="+t.boundary)}}};Multipart.prototype.build=function(e,t){var i=this;var n=t?new a:[];function add(e){if(typeof e==="number"){e=e.toString()}return t?n.append(e):n.push(s.from(e))}if(i.request.preambleCRLF){add("\r\n")}e.forEach(function(e){var t="--"+i.boundary+"\r\n";Object.keys(e).forEach(function(i){if(i==="body"){return}t+=i+": "+e[i]+"\r\n"});t+="\r\n";add(t);add(e.body);add("\r\n")});add("--"+i.boundary+"--");if(i.request.postambleCRLF){add("\r\n")}return n};Multipart.prototype.onRequest=function(e){var t=this;var i=t.isChunked(e);var n=e.data||e;t.setHeaders(i);t.chunked=i;t.body=t.build(n,i)};t.Multipart=Multipart},function(e,t,i){"use strict";var n=this&&this.__awaiter||function(e,t,i,n){function adopt(e){return e instanceof i?e:new i(function(t){t(e)})}return new(i||(i=Promise))(function(i,a){function fulfilled(e){try{step(n.next(e))}catch(e){a(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){a(e)}}function step(e){e.done?i(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)if(Object.hasOwnProperty.call(e,i))t[i]=e[i];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const r=i(431);const s=i(102);const o=i(82);const u=a(i(87));const l=a(i(622));var c;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(c=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const i=o.toCommandValue(t);process.env[e]=i;const n=process.env["GITHUB_ENV"]||"";if(n){const t="_GitHubActionsFileCommandDelimeter_";const n=`${e}<<${t}${u.EOL}${i}${u.EOL}${t}`;s.issueCommand("ENV",n)}else{r.issueCommand("set-env",{name:e},i)}}t.exportVariable=exportVariable;function setSecret(e){r.issueCommand("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){s.issueCommand("PATH",e)}else{r.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${l.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const i=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!i){throw new Error(`Input required and not supplied: ${e}`)}return i.trim()}t.getInput=getInput;function setOutput(e,t){r.issueCommand("set-output",{name:e},t)}t.setOutput=setOutput;function setCommandEcho(e){r.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=c.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){r.issueCommand("debug",{},e)}t.debug=debug;function error(e){r.issue("error",e instanceof Error?e.toString():e)}t.error=error;function warning(e){r.issue("warning",e instanceof Error?e.toString():e)}t.warning=warning;function info(e){process.stdout.write(e+u.EOL)}t.info=info;function startGroup(e){r.issue("group",e)}t.startGroup=startGroup;function endGroup(){r.issue("endgroup")}t.endGroup=endGroup;function group(e,t){return n(this,void 0,void 0,function*(){startGroup(e);let i;try{i=yield t()}finally{endGroup()}return i})}t.group=group;function saveState(e,t){r.issueCommand("save-state",{name:e},t)}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState},,function(e,t,i){"use strict";var n=i(373);t=e.exports=objectHash;function objectHash(e,t){t=applyDefaults(e,t);return hash(e,t)}t.sha1=function(e){return objectHash(e)};t.keys=function(e){return objectHash(e,{excludeValues:true,algorithm:"sha1",encoding:"hex"})};t.MD5=function(e){return objectHash(e,{algorithm:"md5",encoding:"hex"})};t.keysMD5=function(e){return objectHash(e,{algorithm:"md5",encoding:"hex",excludeValues:true})};var a=n.getHashes?n.getHashes().slice():["sha1","md5"];a.push("passthrough");var r=["buffer","hex","binary","base64"];function applyDefaults(e,t){t=t||{};var i={};i.algorithm=t.algorithm||"sha1";i.encoding=t.encoding||"hex";i.excludeValues=t.excludeValues?true:false;i.algorithm=i.algorithm.toLowerCase();i.encoding=i.encoding.toLowerCase();i.ignoreUnknown=t.ignoreUnknown!==true?false:true;i.respectType=t.respectType===false?false:true;i.respectFunctionNames=t.respectFunctionNames===false?false:true;i.respectFunctionProperties=t.respectFunctionProperties===false?false:true;i.unorderedArrays=t.unorderedArrays!==true?false:true;i.unorderedSets=t.unorderedSets===false?false:true;i.unorderedObjects=t.unorderedObjects===false?false:true;i.replacer=t.replacer||undefined;i.excludeKeys=t.excludeKeys||undefined;if(typeof e==="undefined"){throw new Error("Object argument required.")}for(var n=0;n=0){return this.dispatch("[CIRCULAR:"+o+"]")}else{i.push(t)}if(typeof Buffer!=="undefined"&&Buffer.isBuffer&&Buffer.isBuffer(t)){n("buffer:");return n(t)}if(s!=="object"&&s!=="function"&&s!=="asyncfunction"){if(this["_"+s]){this["_"+s](t)}else if(e.ignoreUnknown){return n("["+s+"]")}else{throw new Error('Unknown object type "'+s+'"')}}else{var u=Object.keys(t);if(e.unorderedObjects){u=u.sort()}if(e.respectType!==false&&!isNativeFunction(t)){u.splice(0,0,"prototype","__proto__","constructor")}if(e.excludeKeys){u=u.filter(function(t){return!e.excludeKeys(t)})}n("object:"+u.length+":");var l=this;return u.forEach(function(i){l.dispatch(i);n(":");if(!e.excludeValues){l.dispatch(t[i])}n(",")})}},_array:function(t,a){a=typeof a!=="undefined"?a:e.unorderedArrays!==false;var r=this;n("array:"+t.length+":");if(!a||t.length<=1){return t.forEach(function(e){return r.dispatch(e)})}var s=[];var o=t.map(function(t){var n=new PassThrough;var a=i.slice();var r=typeHasher(e,n,a);r.dispatch(t);s=s.concat(a.slice(i.length));return n.read().toString()});i=i.concat(s);o.sort();return this._array(o,false)},_date:function(e){return n("date:"+e.toJSON())},_symbol:function(e){return n("symbol:"+e.toString())},_error:function(e){return n("error:"+e.toString())},_boolean:function(e){return n("bool:"+e.toString())},_string:function(e){n("string:"+e.length+":");n(e.toString())},_function:function(t){n("fn:");if(isNativeFunction(t)){this.dispatch("[native]")}else{this.dispatch(t.toString())}if(e.respectFunctionNames!==false){this.dispatch("function-name:"+String(t.name))}if(e.respectFunctionProperties){this._object(t)}},_number:function(e){return n("number:"+e.toString())},_xml:function(e){return n("xml:"+e.toString())},_null:function(){return n("Null")},_undefined:function(){return n("Undefined")},_regexp:function(e){return n("regex:"+e.toString())},_uint8array:function(e){n("uint8array:");return this.dispatch(Array.prototype.slice.call(e))},_uint8clampedarray:function(e){n("uint8clampedarray:");return this.dispatch(Array.prototype.slice.call(e))},_int8array:function(e){n("uint8array:");return this.dispatch(Array.prototype.slice.call(e))},_uint16array:function(e){n("uint16array:");return this.dispatch(Array.prototype.slice.call(e))},_int16array:function(e){n("uint16array:");return this.dispatch(Array.prototype.slice.call(e))},_uint32array:function(e){n("uint32array:");return this.dispatch(Array.prototype.slice.call(e))},_int32array:function(e){n("uint32array:");return this.dispatch(Array.prototype.slice.call(e))},_float32array:function(e){n("float32array:");return this.dispatch(Array.prototype.slice.call(e))},_float64array:function(e){n("float64array:");return this.dispatch(Array.prototype.slice.call(e))},_arraybuffer:function(e){n("arraybuffer:");return this.dispatch(new Uint8Array(e))},_url:function(e){return n("url:"+e.toString(),"utf8")},_map:function(t){n("map:");var i=Array.from(t);return this._array(i,e.unorderedSets!==false)},_set:function(t){n("set:");var i=Array.from(t);return this._array(i,e.unorderedSets!==false)},_blob:function(){if(e.ignoreUnknown){return n("[blob]")}throw Error("Hashing Blob objects is currently not supported\n"+"(see https://github.com/puleos/object-hash/issues/26)\n"+'Use "options.replacer" or "options.ignoreUnknown"\n')},_domwindow:function(){return n("domwindow")},_process:function(){return n("process")},_timer:function(){return n("timer")},_pipe:function(){return n("pipe")},_tcp:function(){return n("tcp")},_udp:function(){return n("udp")},_tty:function(){return n("tty")},_statwatcher:function(){return n("statwatcher")},_securecontext:function(){return n("securecontext")},_connection:function(){return n("connection")},_zlib:function(){return n("zlib")},_context:function(){return n("context")},_nodescript:function(){return n("nodescript")},_httpparser:function(){return n("httpparser")},_dataview:function(){return n("dataview")},_signal:function(){return n("signal")},_fsevent:function(){return n("fsevent")},_tlswrap:function(){return n("tlswrap")}}}function PassThrough(){return{buf:"",write:function(e){this.buf+=e},end:function(e){this.buf+=e},read:function(){return this.buf}}}},,function(e,t,i){e.exports={der:i(768),pem:i(782)}},function(e,t,i){"use strict";const n=i(482);const a=i(338);const r={options:{retry:{retries:2,methods:["GET","PUT","HEAD","DELETE","OPTIONS","TRACE"],statusCodes:[408,413,429,500,502,503,504],errorCodes:["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"]},headers:{"user-agent":`${n.name}/${n.version} (https://github.com/sindresorhus/got)`},hooks:{beforeRequest:[],beforeRedirect:[],beforeRetry:[],afterResponse:[]},decompress:true,throwHttpErrors:true,followRedirect:true,stream:false,form:false,json:false,cache:false,useElectronNet:false},mutableDefaults:false};const s=a(r);e.exports=s},,function(e,t,i){var n=i(602);var a=i(747);var r=i(622);var s=function(e){return{OTHER_EXEC:e.EXEC,OTHER_WRITE:e.WRITE,OTHER_READ:e.READ,GROUP_EXEC:e.EXEC<<3,GROUP_WRITE:e.WRITE<<3,GROUP_READ:e.READ<<3,OWNER_EXEC:e.EXEC<<6,OWNER_WRITE:e.WRITE<<6,OWNER_READ:e.READ<<6,STICKY:parseInt("01000",8),SETGID:parseInt("02000",8),SETUID:parseInt("04000",8),TYPE_MASK:parseInt("0770000",8)}}({EXEC:1,WRITE:2,READ:4});n.register("chmod",_chmod,{});function _chmod(e,t,i){if(!i){if(e.length>0&&e.charAt(0)==="-"){[].unshift.call(arguments,"")}else{n.error("You must specify a file.")}}e=n.parseOptions(e,{R:"recursive",c:"changes",v:"verbose"});i=[].slice.call(arguments,2);var o;if(e.recursive){o=[];i.forEach(function addFile(e){var t=n.statNoFollowLinks(e);if(!t.isSymbolicLink()){o.push(e);if(t.isDirectory()){a.readdirSync(e).forEach(function(t){addFile(e+"/"+t)})}}})}else{o=i}o.forEach(function innerChmod(i){i=r.resolve(i);if(!a.existsSync(i)){n.error("File not found: "+i)}if(e.recursive&&n.statNoFollowLinks(i).isSymbolicLink()){return}var o=n.statFollowLinks(i);var u=o.isDirectory();var l=o.mode;var c=l&s.TYPE_MASK;var d=l;if(isNaN(parseInt(t,8))){t.split(",").forEach(function(t){var r=/([ugoa]*)([=\+-])([rwxXst]*)/i;var o=r.exec(t);if(o){var p=o[1];var f=o[2];var h=o[3];var m=p.indexOf("u")!==-1||p==="a"||p==="";var b=p.indexOf("g")!==-1||p==="a"||p==="";var g=p.indexOf("o")!==-1||p==="a"||p==="";var y=h.indexOf("r")!==-1;var S=h.indexOf("w")!==-1;var w=h.indexOf("x")!==-1;var v=h.indexOf("X")!==-1;var z=h.indexOf("t")!==-1;var j=h.indexOf("s")!==-1;if(v&&u){w=true}var O=0;if(m){O|=(y?s.OWNER_READ:0)+(S?s.OWNER_WRITE:0)+(w?s.OWNER_EXEC:0)+(j?s.SETUID:0)}if(b){O|=(y?s.GROUP_READ:0)+(S?s.GROUP_WRITE:0)+(w?s.GROUP_EXEC:0)+(j?s.SETGID:0)}if(g){O|=(y?s.OTHER_READ:0)+(S?s.OTHER_WRITE:0)+(w?s.OTHER_EXEC:0)}if(z){O|=s.STICKY}switch(f){case"+":d|=O;break;case"-":d&=~O;break;case"=":d=c+O;if(n.statFollowLinks(i).isDirectory()){d|=s.SETUID+s.SETGID&l}break;default:n.error("Could not recognize operator: `"+f+"`")}if(e.verbose){console.log(i+" -> "+d.toString(8))}if(l!==d){if(!e.verbose&&e.changes){console.log(i+" -> "+d.toString(8))}a.chmodSync(i,d);l=d}}else{n.error("Invalid symbolic mode change: "+t)}})}else{d=c+parseInt(t,8);if(n.statFollowLinks(i).isDirectory()){d|=s.SETUID+s.SETGID&l}a.chmodSync(i,d)}});return""}e.exports=_chmod},,function(e){"use strict";e.exports=function generate_if(e,t,i){var n=" ";var a=e.level;var r=e.dataLevel;var s=e.schema[t];var o=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var l=!e.opts.allErrors;var c="data"+(r||"");var d="valid"+a;var p="errs__"+a;var f=e.util.copy(e);f.level++;var h="valid"+f.level;var m=e.schema["then"],b=e.schema["else"],g=m!==undefined&&(e.opts.strictKeywords?typeof m=="object"&&Object.keys(m).length>0:e.util.schemaHasRules(m,e.RULES.all)),y=b!==undefined&&(e.opts.strictKeywords?typeof b=="object"&&Object.keys(b).length>0:e.util.schemaHasRules(b,e.RULES.all)),S=f.baseId;if(g||y){var w;f.createErrors=false;f.schema=s;f.schemaPath=o;f.errSchemaPath=u;n+=" var "+p+" = errors; var "+d+" = true; ";var v=e.compositeRule;e.compositeRule=f.compositeRule=true;n+=" "+e.validate(f)+" ";f.baseId=S;f.createErrors=true;n+=" errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } ";e.compositeRule=f.compositeRule=v;if(g){n+=" if ("+h+") { ";f.schema=e.schema["then"];f.schemaPath=e.schemaPath+".then";f.errSchemaPath=e.errSchemaPath+"/then";n+=" "+e.validate(f)+" ";f.baseId=S;n+=" "+d+" = "+h+"; ";if(g&&y){w="ifClause"+a;n+=" var "+w+" = 'then'; "}else{w="'then'"}n+=" } ";if(y){n+=" else { "}}else{n+=" if (!"+h+") { "}if(y){f.schema=e.schema["else"];f.schemaPath=e.schemaPath+".else";f.errSchemaPath=e.errSchemaPath+"/else";n+=" "+e.validate(f)+" ";f.baseId=S;n+=" "+d+" = "+h+"; ";if(g&&y){w="ifClause"+a;n+=" var "+w+" = 'else'; "}else{w="'else'"}n+=" } "}n+=" if (!"+d+") { var err = ";if(e.createErrors!==false){n+=" { keyword: '"+"if"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { failingKeyword: "+w+" } ";if(e.opts.messages!==false){n+=" , message: 'should match \"' + "+w+" + '\" schema' "}if(e.opts.verbose){n+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}n+=" } "}else{n+=" {} "}n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(!e.compositeRule&&l){if(e.async){n+=" throw new ValidationError(vErrors); "}else{n+=" validate.errors = vErrors; return false; "}}n+=" } ";if(l){n+=" else { "}}else{if(l){n+=" if (true) { "}}return n}},function(e,t,i){const n=i(124);const a=(e,t)=>{try{return new n(e,t).range||"*"}catch(e){return null}};e.exports=a},function(e){e.exports=((e,t)=>(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(e),this.key("privateKey").use(t))}))},function(e){e.exports={name:"got",version:"9.6.0",description:"Simplified HTTP requests",license:"MIT",repository:"sindresorhus/got",main:"source",engines:{node:">=8.6"},scripts:{test:"xo && nyc ava",release:"np"},files:["source"],keywords:["http","https","get","got","url","uri","request","util","utility","simple","curl","wget","fetch","net","network","electron"],dependencies:{"@sindresorhus/is":"^0.14.0","@szmarczak/http-timer":"^1.1.2","cacheable-request":"^6.0.0","decompress-response":"^3.3.0",duplexer3:"^0.1.4","get-stream":"^4.1.0","lowercase-keys":"^1.0.1","mimic-response":"^1.0.1","p-cancelable":"^1.0.0","to-readable-stream":"^1.0.0","url-parse-lax":"^3.0.0"},devDependencies:{ava:"^1.1.0",coveralls:"^3.0.0",delay:"^4.1.0","form-data":"^2.3.3","get-port":"^4.0.0",np:"^3.1.0",nyc:"^13.1.0","p-event":"^2.1.0",pem:"^1.13.2",proxyquire:"^2.0.1",sinon:"^7.2.2","slow-stream":"0.0.4",tempfile:"^2.0.0",tempy:"^0.2.1","tough-cookie":"^3.0.0",xo:"^0.24.0"},ava:{concurrency:4},browser:{"decompress-response":false,electron:false}}},,,,function(e,t,i){const n=i(874);const a=(e,t,i)=>n(e,t,i)>0;e.exports=a},,,function(e,t,i){const n=i(65);const a=(e,t)=>new n(e,t).patch;e.exports=a},function(e){e.exports=((e={},t={})=>{const i=Object.keys(e);const n=new Set(Object.keys(t));return!i.some(e=>n.has(e))})},,,function(e){e.exports={name:"openid-client",version:"3.15.9",description:"OpenID Connect Relying Party (RP, Client) implementation for Node.js runtime, supports passportjs",keywords:["auth","authentication","basic","certified","client","connect","dynamic","electron","hybrid","identity","implicit","oauth","oauth2","oidc","openid","passport","relying party","strategy"],homepage:"https://github.com/panva/node-openid-client",repository:"panva/node-openid-client",license:"MIT",author:"Filip Skokan ",files:["lib","types/index.d.ts"],funding:"https://github.com/sponsors/panva",main:"lib/index.js",types:"types/index.d.ts",scripts:{coverage:"nyc mocha test/**/*.test.js",lint:"eslint lib test","lint-ts":"npx typescript@~3.6.0 --build types","lint-fix":"eslint lib test --fix",test:"mocha test/**/*.test.js"},dependencies:{"@types/got":"^9.6.9",base64url:"^3.0.1",got:"^9.6.0",jose:"^1.27.1","lru-cache":"^6.0.0","make-error":"^1.3.6","object-hash":"^2.0.1","oidc-token-hash":"^5.0.0","p-any":"^3.0.0"},devDependencies:{"@commitlint/cli":"^9.1.1","@commitlint/config-conventional":"^9.1.1","@types/passport":"^1.0.4",chai:"^4.2.0",eslint:"^7.4.0","eslint-config-airbnb-base":"^14.2.0","eslint-plugin-import":"^2.21.2",husky:"^4.0.0",mocha:"^8.0.1",nock:"^13.0.2",nyc:"^15.1.0","readable-mock-req":"^0.2.2",sinon:"^9.0.0",timekeeper:"^2.2.0"},engines:{node:"^10.13.0 || >=12.0.0"},commitlint:{extends:["@commitlint/config-conventional"]},husky:{hooks:{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},nyc:{reporter:["lcov","text-summary"]}}},,,function(e,t,i){"use strict";var n=i(894),a=i(855).toHash;e.exports=function rules(){var e=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}];var t=["type","$comment"];var i=["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"];var r=["number","integer","string","array","object","boolean","null"];e.all=a(t);e.types=a(r);e.forEach(function(i){i.rules=i.rules.map(function(i){var a;if(typeof i=="object"){var r=Object.keys(i)[0];a=i[r];i=r;a.forEach(function(i){t.push(i);e.all[i]=true})}t.push(i);var s=e.all[i]={keyword:i,code:n[i],implements:a};return s});e.all.$comment={keyword:"$comment",code:n.$comment};if(i.type)e.types[i.type]=i});e.keywords=a(t.concat(i));e.custom={};return e}},,,function(e,t,i){const n=i(65);const a=i(830);const{re:r,t:s}=i(976);const o=(e,t)=>{if(e instanceof n){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}t=t||{};let i=null;if(!t.rtl){i=e.match(r[s.COERCE])}else{let t;while((t=r[s.COERCERTL].exec(e))&&(!i||i.index+i[0].length!==e.length)){if(!i||t.index+t[0].length!==i.index+i[0].length){i=t}r[s.COERCERTL].lastIndex=t.index+t[1].length+t[2].length}r[s.COERCERTL].lastIndex=-1}if(i===null)return null;return a(`${i[2]}.${i[3]||"0"}.${i[4]||"0"}`,t)};e.exports=o},function(e){e.exports=defer;function defer(e){var t=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;if(t){t(e)}else{setTimeout(e,0)}}},,function(e,t,i){e.exports=PrivateKey;var n=i(872);var a=i(215).Buffer;var r=i(98);var s=i(373);var o=i(400);var u=i(575);var l=i(753);var c=i(669);var d=i(270);var p=i(532);var f=p.generateECDSA;var h=p.generateED25519;var m=i(635);var b=i(196);var g=i(852);var y=l.InvalidAlgorithmError;var S=l.KeyParseError;var w=l.KeyEncryptedError;var v={};v["auto"]=i(241);v["pem"]=i(268);v["pkcs1"]=i(449);v["pkcs8"]=i(707);v["rfc4253"]=i(538);v["ssh-private"]=i(78);v["openssh"]=v["ssh-private"];v["ssh"]=v["ssh-private"];v["dnssec"]=i(982);function PrivateKey(e){n.object(e,"options");g.call(this,e);this._pubCache=undefined}c.inherits(PrivateKey,g);PrivateKey.formats=v;PrivateKey.prototype.toBuffer=function(e,t){if(e===undefined)e="pkcs1";n.string(e,"format");n.object(v[e],"formats[format]");n.optionalObject(t,"options");return v[e].write(this,t)};PrivateKey.prototype.hash=function(e,t){return this.toPublic().hash(e,t)};PrivateKey.prototype.fingerprint=function(e,t){return this.toPublic().fingerprint(e,t)};PrivateKey.prototype.toPublic=function(){if(this._pubCache)return this._pubCache;var e=r.info[this.type];var t=[];for(var i=0;i{const i=n(e.trim().replace(/^[=v]+/,""),t);return i?i.version:null};e.exports=a},function(e,t,i){"use strict";const n=i(534);e.exports=(e=>n.nodeStream(e)&&n.function(e.getBoundary))},function(e,t,i){var n=i(602);var a=i(747);n.register("touch",_touch,{cmdOptions:{a:"atime_only",c:"no_create",d:"date",m:"mtime_only",r:"reference"}});function _touch(e,t){if(!t){n.error("no files given")}else if(typeof t==="string"){t=[].slice.call(arguments,1)}else{n.error("file arg should be a string file path or an Array of string file paths")}t.forEach(function(t){touchFile(e,t)});return""}function touchFile(e,t){var i=tryStatFile(t);if(i&&i.isDirectory()){return}if(!i&&e.no_create){return}a.closeSync(a.openSync(t,"a"));var r=new Date;var s=e.date||r;var o=e.date||r;if(e.reference){var u=tryStatFile(e.reference);if(!u){n.error("failed to get attributess of "+e.reference)}s=u.mtime;o=u.atime}else if(e.date){s=e.date;o=e.date}if(e.atime_only&&e.mtime_only){}else if(e.atime_only){s=i.mtime}else if(e.mtime_only){o=i.atime}a.utimesSync(t,o,s)}e.exports=_touch;function tryStatFile(e){try{return n.statFollowLinks(e)}catch(e){return null}}},,function(e,t,i){const n=i(456);const a=i(208);e.exports=((e,t)=>{["A128GCMKW","A192GCMKW","A256GCMKW"].forEach(i=>{const r=i.substr(0,7);const s=parseInt(i.substr(1,3),10);const o=e.encrypt.get(r);const u=e.decrypt.get(r);if(o&&u){e.keyManagementEncrypt.set(i,(e,t)=>{const r=n(i);const{ciphertext:s,tag:u}=o(e,t,{iv:r});return{wrapped:s,header:{tag:a.encodeBuffer(u),iv:a.encodeBuffer(r)}}});e.keyManagementDecrypt.set(i,u);t.oct.wrapKey[i]=t.oct.unwrapKey[i]=(e=>(e.use==="enc"||e.use===undefined)&&e.length===s)}})})},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=i(422);n.__exportStar(i(587),t);n.__exportStar(i(920),t);n.__exportStar(i(290),t);n.__exportStar(i(125),t);n.__exportStar(i(376),t);n.__exportStar(i(525),t);n.__exportStar(i(19),t);n.__exportStar(i(971),t);n.__exportStar(i(636),t);n.__exportStar(i(695),t)},function(e,t,i){"use strict";const n=i(614);const{createHash:a}=i(373);const{createServer:r,STATUS_CODES:s}=i(363);const o=i(850);const u=i(925);const{format:l,parse:c}=i(271);const{GUID:d,kWebSocket:p}=i(60);const f=/^[+\/0-9A-Za-z]{22}==$/;class WebSocketServer extends n{constructor(e,t){super();e={maxPayload:100*1024*1024,perMessageDeflate:false,handleProtocols:null,clientTracking:true,verifyClient:null,noServer:false,backlog:null,server:null,host:null,path:null,port:null,...e};if(e.port==null&&!e.server&&!e.noServer){throw new TypeError('One of the "port", "server", or "noServer" options must be specified')}if(e.port!=null){this._server=r((e,t)=>{const i=s[426];t.writeHead(426,{"Content-Length":i.length,"Content-Type":"text/plain"});t.end(i)});this._server.listen(e.port,e.host,e.backlog,t)}else if(e.server){this._server=e.server}if(this._server){this._removeListeners=addListeners(this._server,{listening:this.emit.bind(this,"listening"),error:this.emit.bind(this,"error"),upgrade:(e,t,i)=>{this.handleUpgrade(e,t,i,t=>{this.emit("connection",t,e)})}})}if(e.perMessageDeflate===true)e.perMessageDeflate={};if(e.clientTracking)this.clients=new Set;this.options=e}address(){if(this.options.noServer){throw new Error('The server is operating in "noServer" mode')}if(!this._server)return null;return this._server.address()}close(e){if(e)this.once("close",e);if(this.clients){for(const e of this.clients)e.terminate()}const t=this._server;if(t){this._removeListeners();this._removeListeners=this._server=null;if(this.options.port!=null){t.close(()=>this.emit("close"));return}}process.nextTick(emitClose,this)}shouldHandle(e){if(this.options.path){const t=e.url.indexOf("?");const i=t!==-1?e.url.slice(0,t):e.url;if(i!==this.options.path)return false}return true}handleUpgrade(e,t,i,n){t.on("error",socketOnError);const a=e.headers["sec-websocket-key"]!==undefined?e.headers["sec-websocket-key"].trim():false;const r=+e.headers["sec-websocket-version"];const s={};if(e.method!=="GET"||e.headers.upgrade.toLowerCase()!=="websocket"||!a||!f.test(a)||r!==8&&r!==13||!this.shouldHandle(e)){return abortHandshake(t,400)}if(this.options.perMessageDeflate){const i=new o(this.options.perMessageDeflate,true,this.options.maxPayload);try{const n=c(e.headers["sec-websocket-extensions"]);if(n[o.extensionName]){i.accept(n[o.extensionName]);s[o.extensionName]=i}}catch(e){return abortHandshake(t,400)}}if(this.options.verifyClient){const o={origin:e.headers[`${r===8?"sec-websocket-origin":"origin"}`],secure:!!(e.connection.authorized||e.connection.encrypted),req:e};if(this.options.verifyClient.length===2){this.options.verifyClient(o,(r,o,u,l)=>{if(!r){return abortHandshake(t,o||401,u,l)}this.completeUpgrade(a,s,e,t,i,n)});return}if(!this.options.verifyClient(o))return abortHandshake(t,401)}this.completeUpgrade(a,s,e,t,i,n)}completeUpgrade(e,t,i,n,r,s){if(!n.readable||!n.writable)return n.destroy();if(n[p]){throw new Error("server.handleUpgrade() was called more than once with the same "+"socket, possibly due to a misconfiguration")}const c=a("sha1").update(e+d).digest("base64");const f=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${c}`];const h=new u(null);let m=i.headers["sec-websocket-protocol"];if(m){m=m.trim().split(/ *, */);if(this.options.handleProtocols){m=this.options.handleProtocols(m,i)}else{m=m[0]}if(m){f.push(`Sec-WebSocket-Protocol: ${m}`);h.protocol=m}}if(t[o.extensionName]){const e=t[o.extensionName].params;const i=l({[o.extensionName]:[e]});f.push(`Sec-WebSocket-Extensions: ${i}`);h._extensions=t}this.emit("headers",f,i);n.write(f.concat("\r\n").join("\r\n"));n.removeListener("error",socketOnError);h.setSocket(n,r,this.options.maxPayload);if(this.clients){this.clients.add(h);h.on("close",()=>this.clients.delete(h))}s(h)}}e.exports=WebSocketServer;function addListeners(e,t){for(const i of Object.keys(t))e.on(i,t[i]);return function removeListeners(){for(const i of Object.keys(t)){e.removeListener(i,t[i])}}}function emitClose(e){e.emit("close")}function socketOnError(){this.destroy()}function abortHandshake(e,t,i,n){if(e.writable){i=i||s[t];n={Connection:"close","Content-Type":"text/html","Content-Length":Buffer.byteLength(i),...n};e.write(`HTTP/1.1 ${t} ${s[t]}\r\n`+Object.keys(n).map(e=>`${e}: ${n[e]}`).join("\r\n")+"\r\n\r\n"+i)}e.removeListener("error",socketOnError);e.destroy()}},function(e,t,i){const{deflateRawSync:n}=i(903);const{KEYOBJECT:a}=i(771);const r=i(456);const s=i(208);const o=i(322);const u=i(274);const{createSecretKey:l}=i(40);const c=i(545);const d=i(592);const{JWEInvalid:p}=i(466);const{check:f,keyManagementEncrypt:h,encrypt:m}=i(179);const b=i(975);const g=i(201);const y=i(17);const S=Symbol("PROCESS_RECIPIENT");class Encrypt{constructor(e,t,i,n){if(!Buffer.isBuffer(e)&&typeof e!=="string"){throw new TypeError("cleartext argument must be a Buffer or a string")}e=Buffer.from(e);if(n!==undefined&&!Buffer.isBuffer(n)&&typeof n!=="string"){throw new TypeError("aad argument must be a Buffer or a string when provided")}n=n?Buffer.from(n):undefined;if(t!==undefined&&!u(t)){throw new TypeError("protectedHeader argument must be a plain object when provided")}if(i!==undefined&&!u(i)){throw new TypeError("unprotectedHeader argument must be a plain object when provided")}this._recipients=[];this._cleartext=e;this._aad=n;this._unprotected=i?c(i):undefined;this._protected=t?c(t):undefined}recipient(e,t){e=o(e);if(t!==undefined&&!u(t)){throw new TypeError("header argument must be a plain object when provided")}this._recipients.push({key:e,header:t?c(t):undefined});return this}[S](e){const t=this._unprotected;const i=this._protected;const{length:n}=this._recipients;const r={...i,...t,...e.header};const{key:o}=e;const u=r.enc;let c=r.alg;if(o.use==="sig"){throw new TypeError('a key with "use":"sig" is not usable for encryption')}if(c==="dir"){f(o,"encrypt",u)}else if(c){f(o,"keyManagementEncrypt",c)}else{c=o.alg||[...o.algorithms("wrapKey")][0]||[...o.algorithms("deriveKey")][0];if(c==="ECDH-ES"&&n!==1){c=[...o.algorithms("deriveKey")][1]}if(!c){throw new p('could not resolve a usable "alg" for a recipient')}if(n===1){if(i){i.alg=c}else{this._protected={alg:c}}}else{if(e.header){e.header.alg=c}else{e.header={alg:c}}}}let m;let b;if(o.kty==="oct"&&c==="dir"){this._cek=d(o[a],{use:"enc",alg:u})}else{f(this._cek,"encrypt",u);({wrapped:m,header:b}=h(c,o,this._cek[a].export(),{enc:u,alg:c}));if(c==="ECDH-ES"){this._cek=d(l(m),{use:"enc",alg:u})}}if(c==="dir"||c==="ECDH-ES"){e.encrypted_key=""}else{e.encrypted_key=s.encodeBuffer(m)}if(b){e.generatedHeader=b}}encrypt(e){const t=b[e];if(!t){throw new TypeError('serialization must be one of "compact", "flattened", "general"')}if(!this._recipients.length){throw new p("missing recipients")}t.validate(this._protected,this._unprotected,this._aad,this._recipients);let i=y(this._protected,this._unprotected,this._recipients,false,this._protected?this._protected.crit:undefined);if(!i){i="A128CBC-HS256";if(this._protected){this._protected.enc=i}else{this._protected={enc:i}}}const a={};this._cek=g(i);for(const e of this._recipients){this[S](e)}const o=r(i);a.iv=s.encodeBuffer(o);if(this._recipients.length===1&&this._recipients[0].generatedHeader){const[{generatedHeader:e}]=this._recipients;delete this._recipients[0].generatedHeader;this._protected={...this._protected,...e}}if(this._protected){a.protected=s.JSON.encode(this._protected)}a.unprotected=this._unprotected;let u;if(this._aad){a.aad=s.encode(this._aad);u=Buffer.concat([Buffer.from(a.protected||""),Buffer.from("."),Buffer.from(a.aad)])}else{u=Buffer.from(a.protected||"")}let l=this._cleartext;if(this._protected&&"zip"in this._protected){l=n(l)}const{ciphertext:c,tag:d}=m(i,this._cek,l,{iv:o,aad:u});a.tag=s.encodeBuffer(d);a.ciphertext=s.encodeBuffer(c);return t(a,this._recipients)}}e.exports=Encrypt},,function(e){e.exports={"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana",charset:"UTF-8",compressible:true},"application/3gpp-ims+xml":{source:"iana",compressible:true},"application/a2l":{source:"iana"},"application/activemessage":{source:"iana"},"application/activity+json":{source:"iana",compressible:true},"application/alto-costmap+json":{source:"iana",compressible:true},"application/alto-costmapfilter+json":{source:"iana",compressible:true},"application/alto-directory+json":{source:"iana",compressible:true},"application/alto-endpointcost+json":{source:"iana",compressible:true},"application/alto-endpointcostparams+json":{source:"iana",compressible:true},"application/alto-endpointprop+json":{source:"iana",compressible:true},"application/alto-endpointpropparams+json":{source:"iana",compressible:true},"application/alto-error+json":{source:"iana",compressible:true},"application/alto-networkmap+json":{source:"iana",compressible:true},"application/alto-networkmapfilter+json":{source:"iana",compressible:true},"application/alto-updatestreamcontrol+json":{source:"iana",compressible:true},"application/alto-updatestreamparams+json":{source:"iana",compressible:true},"application/aml":{source:"iana"},"application/andrew-inset":{source:"iana",extensions:["ez"]},"application/applefile":{source:"iana"},"application/applixware":{source:"apache",extensions:["aw"]},"application/atf":{source:"iana"},"application/atfx":{source:"iana"},"application/atom+xml":{source:"iana",compressible:true,extensions:["atom"]},"application/atomcat+xml":{source:"iana",compressible:true,extensions:["atomcat"]},"application/atomdeleted+xml":{source:"iana",compressible:true,extensions:["atomdeleted"]},"application/atomicmail":{source:"iana"},"application/atomsvc+xml":{source:"iana",compressible:true,extensions:["atomsvc"]},"application/atsc-dwd+xml":{source:"iana",compressible:true,extensions:["dwd"]},"application/atsc-dynamic-event-message":{source:"iana"},"application/atsc-held+xml":{source:"iana",compressible:true,extensions:["held"]},"application/atsc-rdt+json":{source:"iana",compressible:true},"application/atsc-rsat+xml":{source:"iana",compressible:true,extensions:["rsat"]},"application/atxml":{source:"iana"},"application/auth-policy+xml":{source:"iana",compressible:true},"application/bacnet-xdd+zip":{source:"iana",compressible:false},"application/batch-smtp":{source:"iana"},"application/bdoc":{compressible:false,extensions:["bdoc"]},"application/beep+xml":{source:"iana",charset:"UTF-8",compressible:true},"application/calendar+json":{source:"iana",compressible:true},"application/calendar+xml":{source:"iana",compressible:true,extensions:["xcs"]},"application/call-completion":{source:"iana"},"application/cals-1840":{source:"iana"},"application/cap+xml":{source:"iana",charset:"UTF-8",compressible:true},"application/cbor":{source:"iana"},"application/cbor-seq":{source:"iana"},"application/cccex":{source:"iana"},"application/ccmp+xml":{source:"iana",compressible:true},"application/ccxml+xml":{source:"iana",compressible:true,extensions:["ccxml"]},"application/cdfx+xml":{source:"iana",compressible:true,extensions:["cdfx"]},"application/cdmi-capability":{source:"iana",extensions:["cdmia"]},"application/cdmi-container":{source:"iana",extensions:["cdmic"]},"application/cdmi-domain":{source:"iana",extensions:["cdmid"]},"application/cdmi-object":{source:"iana",extensions:["cdmio"]},"application/cdmi-queue":{source:"iana",extensions:["cdmiq"]},"application/cdni":{source:"iana"},"application/cea":{source:"iana"},"application/cea-2018+xml":{source:"iana",compressible:true},"application/cellml+xml":{source:"iana",compressible:true},"application/cfw":{source:"iana"},"application/clue+xml":{source:"iana",compressible:true},"application/clue_info+xml":{source:"iana",compressible:true},"application/cms":{source:"iana"},"application/cnrp+xml":{source:"iana",compressible:true},"application/coap-group+json":{source:"iana",compressible:true},"application/coap-payload":{source:"iana"},"application/commonground":{source:"iana"},"application/conference-info+xml":{source:"iana",compressible:true},"application/cose":{source:"iana"},"application/cose-key":{source:"iana"},"application/cose-key-set":{source:"iana"},"application/cpl+xml":{source:"iana",compressible:true},"application/csrattrs":{source:"iana"},"application/csta+xml":{source:"iana",compressible:true},"application/cstadata+xml":{source:"iana",compressible:true},"application/csvm+json":{source:"iana",compressible:true},"application/cu-seeme":{source:"apache",extensions:["cu"]},"application/cwt":{source:"iana"},"application/cybercash":{source:"iana"},"application/dart":{compressible:true},"application/dash+xml":{source:"iana",compressible:true,extensions:["mpd"]},"application/dashdelta":{source:"iana"},"application/davmount+xml":{source:"iana",compressible:true,extensions:["davmount"]},"application/dca-rft":{source:"iana"},"application/dcd":{source:"iana"},"application/dec-dx":{source:"iana"},"application/dialog-info+xml":{source:"iana",compressible:true},"application/dicom":{source:"iana"},"application/dicom+json":{source:"iana",compressible:true},"application/dicom+xml":{source:"iana",compressible:true},"application/dii":{source:"iana"},"application/dit":{source:"iana"},"application/dns":{source:"iana"},"application/dns+json":{source:"iana",compressible:true},"application/dns-message":{source:"iana"},"application/docbook+xml":{source:"apache",compressible:true,extensions:["dbk"]},"application/dots+cbor":{source:"iana"},"application/dskpp+xml":{source:"iana",compressible:true},"application/dssc+der":{source:"iana",extensions:["dssc"]},"application/dssc+xml":{source:"iana",compressible:true,extensions:["xdssc"]},"application/dvcs":{source:"iana"},"application/ecmascript":{source:"iana",compressible:true,extensions:["ecma","es"]},"application/edi-consent":{source:"iana"},"application/edi-x12":{source:"iana",compressible:false},"application/edifact":{source:"iana",compressible:false},"application/efi":{source:"iana"},"application/emergencycalldata.comment+xml":{source:"iana",compressible:true},"application/emergencycalldata.control+xml":{source:"iana",compressible:true},"application/emergencycalldata.deviceinfo+xml":{source:"iana",compressible:true},"application/emergencycalldata.ecall.msd":{source:"iana"},"application/emergencycalldata.providerinfo+xml":{source:"iana",compressible:true},"application/emergencycalldata.serviceinfo+xml":{source:"iana",compressible:true},"application/emergencycalldata.subscriberinfo+xml":{source:"iana",compressible:true},"application/emergencycalldata.veds+xml":{source:"iana",compressible:true},"application/emma+xml":{source:"iana",compressible:true,extensions:["emma"]},"application/emotionml+xml":{source:"iana",compressible:true,extensions:["emotionml"]},"application/encaprtp":{source:"iana"},"application/epp+xml":{source:"iana",compressible:true},"application/epub+zip":{source:"iana",compressible:false,extensions:["epub"]},"application/eshop":{source:"iana"},"application/exi":{source:"iana",extensions:["exi"]},"application/expect-ct-report+json":{source:"iana",compressible:true},"application/fastinfoset":{source:"iana"},"application/fastsoap":{source:"iana"},"application/fdt+xml":{source:"iana",compressible:true,extensions:["fdt"]},"application/fhir+json":{source:"iana",charset:"UTF-8",compressible:true},"application/fhir+xml":{source:"iana",charset:"UTF-8",compressible:true},"application/fido.trusted-apps+json":{compressible:true},"application/fits":{source:"iana"},"application/flexfec":{source:"iana"},"application/font-sfnt":{source:"iana"},"application/font-tdpfr":{source:"iana",extensions:["pfr"]},"application/font-woff":{source:"iana",compressible:false},"application/framework-attributes+xml":{source:"iana",compressible:true},"application/geo+json":{source:"iana",compressible:true,extensions:["geojson"]},"application/geo+json-seq":{source:"iana"},"application/geopackage+sqlite3":{source:"iana"},"application/geoxacml+xml":{source:"iana",compressible:true},"application/gltf-buffer":{source:"iana"},"application/gml+xml":{source:"iana",compressible:true,extensions:["gml"]},"application/gpx+xml":{source:"apache",compressible:true,extensions:["gpx"]},"application/gxf":{source:"apache",extensions:["gxf"]},"application/gzip":{source:"iana",compressible:false,extensions:["gz"]},"application/h224":{source:"iana"},"application/held+xml":{source:"iana",compressible:true},"application/hjson":{extensions:["hjson"]},"application/http":{source:"iana"},"application/hyperstudio":{source:"iana",extensions:["stk"]},"application/ibe-key-request+xml":{source:"iana",compressible:true},"application/ibe-pkg-reply+xml":{source:"iana",compressible:true},"application/ibe-pp-data":{source:"iana"},"application/iges":{source:"iana"},"application/im-iscomposing+xml":{source:"iana",charset:"UTF-8",compressible:true},"application/index":{source:"iana"},"application/index.cmd":{source:"iana"},"application/index.obj":{source:"iana"},"application/index.response":{source:"iana"},"application/index.vnd":{source:"iana"},"application/inkml+xml":{source:"iana",compressible:true,extensions:["ink","inkml"]},"application/iotp":{source:"iana"},"application/ipfix":{source:"iana",extensions:["ipfix"]},"application/ipp":{source:"iana"},"application/isup":{source:"iana"},"application/its+xml":{source:"iana",compressible:true,extensions:["its"]},"application/java-archive":{source:"apache",compressible:false,extensions:["jar","war","ear"]},"application/java-serialized-object":{source:"apache",compressible:false,extensions:["ser"]},"application/java-vm":{source:"apache",compressible:false,extensions:["class"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:true,extensions:["js","mjs"]},"application/jf2feed+json":{source:"iana",compressible:true},"application/jose":{source:"iana"},"application/jose+json":{source:"iana",compressible:true},"application/jrd+json":{source:"iana",compressible:true},"application/json":{source:"iana",charset:"UTF-8",compressible:true,extensions:["json","map"]},"application/json-patch+json":{source:"iana",compressible:true},"application/json-seq":{source:"iana"},"application/json5":{extensions:["json5"]},"application/jsonml+json":{source:"apache",compressible:true,extensions:["jsonml"]},"application/jwk+json":{source:"iana",compressible:true},"application/jwk-set+json":{source:"iana",compressible:true},"application/jwt":{source:"iana"},"application/kpml-request+xml":{source:"iana",compressible:true},"application/kpml-response+xml":{source:"iana",compressible:true},"application/ld+json":{source:"iana",compressible:true,extensions:["jsonld"]},"application/lgr+xml":{source:"iana",compressible:true,extensions:["lgr"]},"application/link-format":{source:"iana"},"application/load-control+xml":{source:"iana",compressible:true},"application/lost+xml":{source:"iana",compressible:true,extensions:["lostxml"]},"application/lostsync+xml":{source:"iana",compressible:true},"application/lpf+zip":{source:"iana",compressible:false},"application/lxf":{source:"iana"},"application/mac-binhex40":{source:"iana",extensions:["hqx"]},"application/mac-compactpro":{source:"apache",extensions:["cpt"]},"application/macwriteii":{source:"iana"},"application/mads+xml":{source:"iana",compressible:true,extensions:["mads"]},"application/manifest+json":{charset:"UTF-8",compressible:true,extensions:["webmanifest"]},"application/marc":{source:"iana",extensions:["mrc"]},"application/marcxml+xml":{source:"iana",compressible:true,extensions:["mrcx"]},"application/mathematica":{source:"iana",extensions:["ma","nb","mb"]},"application/mathml+xml":{source:"iana",compressible:true,extensions:["mathml"]},"application/mathml-content+xml":{source:"iana",compressible:true},"application/mathml-presentation+xml":{source:"iana",compressible:true},"application/mbms-associated-procedure-description+xml":{source:"iana",compressible:true},"application/mbms-deregister+xml":{source:"iana",compressible:true},"application/mbms-envelope+xml":{source:"iana",compressible:true},"application/mbms-msk+xml":{source:"iana",compressible:true},"application/mbms-msk-response+xml":{source:"iana",compressible:true},"application/mbms-protection-description+xml":{source:"iana",compressible:true},"application/mbms-reception-report+xml":{source:"iana",compressible:true},"application/mbms-register+xml":{source:"iana",compressible:true},"application/mbms-register-response+xml":{source:"iana",compressible:true},"application/mbms-schedule+xml":{source:"iana",compressible:true},"application/mbms-user-service-description+xml":{source:"iana",compressible:true},"application/mbox":{source:"iana",extensions:["mbox"]},"application/media-policy-dataset+xml":{source:"iana",compressible:true},"application/media_control+xml":{source:"iana",compressible:true},"application/mediaservercontrol+xml":{source:"iana",compressible:true,extensions:["mscml"]},"application/merge-patch+json":{source:"iana",compressible:true},"application/metalink+xml":{source:"apache",compressible:true,extensions:["metalink"]},"application/metalink4+xml":{source:"iana",compressible:true,extensions:["meta4"]},"application/mets+xml":{source:"iana",compressible:true,extensions:["mets"]},"application/mf4":{source:"iana"},"application/mikey":{source:"iana"},"application/mipc":{source:"iana"},"application/mmt-aei+xml":{source:"iana",compressible:true,extensions:["maei"]},"application/mmt-usd+xml":{source:"iana",compressible:true,extensions:["musd"]},"application/mods+xml":{source:"iana",compressible:true,extensions:["mods"]},"application/moss-keys":{source:"iana"},"application/moss-signature":{source:"iana"},"application/mosskey-data":{source:"iana"},"application/mosskey-request":{source:"iana"},"application/mp21":{source:"iana",extensions:["m21","mp21"]},"application/mp4":{source:"iana",extensions:["mp4s","m4p"]},"application/mpeg4-generic":{source:"iana"},"application/mpeg4-iod":{source:"iana"},"application/mpeg4-iod-xmt":{source:"iana"},"application/mrb-consumer+xml":{source:"iana",compressible:true,extensions:["xdf"]},"application/mrb-publish+xml":{source:"iana",compressible:true,extensions:["xdf"]},"application/msc-ivr+xml":{source:"iana",charset:"UTF-8",compressible:true},"application/msc-mixer+xml":{source:"iana",charset:"UTF-8",compressible:true},"application/msword":{source:"iana",compressible:false,extensions:["doc","dot"]},"application/mud+json":{source:"iana",compressible:true},"application/multipart-core":{source:"iana"},"application/mxf":{source:"iana",extensions:["mxf"]},"application/n-quads":{source:"iana",extensions:["nq"]},"application/n-triples":{source:"iana",extensions:["nt"]},"application/nasdata":{source:"iana"},"application/news-checkgroups":{source:"iana",charset:"US-ASCII"},"application/news-groupinfo":{source:"iana",charset:"US-ASCII"},"application/news-transmission":{source:"iana"},"application/nlsml+xml":{source:"iana",compressible:true},"application/node":{source:"iana",extensions:["cjs"]},"application/nss":{source:"iana"},"application/ocsp-request":{source:"iana"},"application/ocsp-response":{source:"iana"},"application/octet-stream":{source:"iana",compressible:false,extensions:["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{source:"iana",extensions:["oda"]},"application/odm+xml":{source:"iana",compressible:true},"application/odx":{source:"iana"},"application/oebps-package+xml":{source:"iana",compressible:true,extensions:["opf"]},"application/ogg":{source:"iana",compressible:false,extensions:["ogx"]},"application/omdoc+xml":{source:"apache",compressible:true,extensions:["omdoc"]},"application/onenote":{source:"apache",extensions:["onetoc","onetoc2","onetmp","onepkg"]},"application/oscore":{source:"iana"},"application/oxps":{source:"iana",extensions:["oxps"]},"application/p2p-overlay+xml":{source:"iana",compressible:true,extensions:["relo"]},"application/parityfec":{source:"iana"},"application/passport":{source:"iana"},"application/patch-ops-error+xml":{source:"iana",compressible:true,extensions:["xer"]},"application/pdf":{source:"iana",compressible:false,extensions:["pdf"]},"application/pdx":{source:"iana"},"application/pem-certificate-chain":{source:"iana"},"application/pgp-encrypted":{source:"iana",compressible:false,extensions:["pgp"]},"application/pgp-keys":{source:"iana"},"application/pgp-signature":{source:"iana",extensions:["asc","sig"]},"application/pics-rules":{source:"apache",extensions:["prf"]},"application/pidf+xml":{source:"iana",charset:"UTF-8",compressible:true},"application/pidf-diff+xml":{source:"iana",charset:"UTF-8",compressible:true},"application/pkcs10":{source:"iana",extensions:["p10"]},"application/pkcs12":{source:"iana"},"application/pkcs7-mime":{source:"iana",extensions:["p7m","p7c"]},"application/pkcs7-signature":{source:"iana",extensions:["p7s"]},"application/pkcs8":{source:"iana",extensions:["p8"]},"application/pkcs8-encrypted":{source:"iana"},"application/pkix-attr-cert":{source:"iana",extensions:["ac"]},"application/pkix-cert":{source:"iana",extensions:["cer"]},"application/pkix-crl":{source:"iana",extensions:["crl"]},"application/pkix-pkipath":{source:"iana",extensions:["pkipath"]},"application/pkixcmp":{source:"iana",extensions:["pki"]},"application/pls+xml":{source:"iana",compressible:true,extensions:["pls"]},"application/poc-settings+xml":{source:"iana",charset:"UTF-8",compressible:true},"application/postscript":{source:"iana",compressible:true,extensions:["ai","eps","ps"]},"application/ppsp-tracker+json":{source:"iana",compressible:true},"application/problem+json":{source:"iana",compressible:true},"application/problem+xml":{source:"iana",compressible:true},"application/provenance+xml":{source:"iana",compressible:true,extensions:["provx"]},"application/prs.alvestrand.titrax-sheet":{source:"iana"},"application/prs.cww":{source:"iana",extensions:["cww"]},"application/prs.hpub+zip":{source:"iana",compressible:false},"application/prs.nprend":{source:"iana"},"application/prs.plucker":{source:"iana"},"application/prs.rdf-xml-crypt":{source:"iana"},"application/prs.xsf+xml":{source:"iana",compressible:true},"application/pskc+xml":{source:"iana",compressible:true,extensions:["pskcxml"]},"application/pvd+json":{source:"iana",compressible:true},"application/qsig":{source:"iana"},"application/raml+yaml":{compressible:true,extensions:["raml"]},"application/raptorfec":{source:"iana"},"application/rdap+json":{source:"iana",compressible:true},"application/rdf+xml":{source:"iana",compressible:true,extensions:["rdf","owl"]},"application/reginfo+xml":{source:"iana",compressible:true,extensions:["rif"]},"application/relax-ng-compact-syntax":{source:"iana",extensions:["rnc"]},"application/remote-printing":{source:"iana"},"application/reputon+json":{source:"iana",compressible:true},"application/resource-lists+xml":{source:"iana",compressible:true,extensions:["rl"]},"application/resource-lists-diff+xml":{source:"iana",compressible:true,extensions:["rld"]},"application/rfc+xml":{source:"iana",compressible:true},"application/riscos":{source:"iana"},"application/rlmi+xml":{source:"iana",compressible:true},"application/rls-services+xml":{source:"iana",compressible:true,extensions:["rs"]},"application/route-apd+xml":{source:"iana",compressible:true,extensions:["rapd"]},"application/route-s-tsid+xml":{source:"iana",compressible:true,extensions:["sls"]},"application/route-usd+xml":{source:"iana",compressible:true,extensions:["rusd"]},"application/rpki-ghostbusters":{source:"iana",extensions:["gbr"]},"application/rpki-manifest":{source:"iana",extensions:["mft"]},"application/rpki-publication":{source:"iana"},"application/rpki-roa":{source:"iana",extensions:["roa"]},"application/rpki-updown":{source:"iana"},"application/rsd+xml":{source:"apache",compressible:true,extensions:["rsd"]},"application/rss+xml":{source:"apache",compressible:true,extensions:["rss"]},"application/rtf":{source:"iana",compressible:true,extensions:["rtf"]},"application/rtploopback":{source:"iana"},"application/rtx":{source:"iana"},"application/samlassertion+xml":{source:"iana",compressible:true},"application/samlmetadata+xml":{source:"iana",compressible:true},"application/sbe":{source:"iana"},"application/sbml+xml":{source:"iana",compressible:true,extensions:["sbml"]},"application/scaip+xml":{source:"iana",compressible:true},"application/scim+json":{source:"iana",compressible:true},"application/scvp-cv-request":{source:"iana",extensions:["scq"]},"application/scvp-cv-response":{source:"iana",extensions:["scs"]},"application/scvp-vp-request":{source:"iana",extensions:["spq"]},"application/scvp-vp-response":{source:"iana",extensions:["spp"]},"application/sdp":{source:"iana",extensions:["sdp"]},"application/secevent+jwt":{source:"iana"},"application/senml+cbor":{source:"iana"},"application/senml+json":{source:"iana",compressible:true},"application/senml+xml":{source:"iana",compressible:true,extensions:["senmlx"]},"application/senml-etch+cbor":{source:"iana"},"application/senml-etch+json":{source:"iana",compressible:true},"application/senml-exi":{source:"iana"},"application/sensml+cbor":{source:"iana"},"application/sensml+json":{source:"iana",compressible:true},"application/sensml+xml":{source:"iana",compressible:true,extensions:["sensmlx"]},"application/sensml-exi":{source:"iana"},"application/sep+xml":{source:"iana",compressible:true},"application/sep-exi":{source:"iana"},"application/session-info":{source:"iana"},"application/set-payment":{source:"iana"},"application/set-payment-initiation":{source:"iana",extensions:["setpay"]},"application/set-registration":{source:"iana"},"application/set-registration-initiation":{source:"iana",extensions:["setreg"]},"application/sgml":{source:"iana"},"application/sgml-open-catalog":{source:"iana"},"application/shf+xml":{source:"iana",compressible:true,extensions:["shf"]},"application/sieve":{source:"iana",extensions:["siv","sieve"]},"application/simple-filter+xml":{source:"iana",compressible:true},"application/simple-message-summary":{source:"iana"},"application/simplesymbolcontainer":{source:"iana"},"application/sipc":{source:"iana"},"application/slate":{source:"iana"},"application/smil":{source:"iana"},"application/smil+xml":{source:"iana",compressible:true,extensions:["smi","smil"]},"application/smpte336m":{source:"iana"},"application/soap+fastinfoset":{source:"iana"},"application/soap+xml":{source:"iana",compressible:true},"application/sparql-query":{source:"iana",extensions:["rq"]},"application/sparql-results+xml":{source:"iana",compressible:true,extensions:["srx"]},"application/spirits-event+xml":{source:"iana",compressible:true},"application/sql":{source:"iana"},"application/srgs":{source:"iana",extensions:["gram"]},"application/srgs+xml":{source:"iana",compressible:true,extensions:["grxml"]},"application/sru+xml":{source:"iana",compressible:true,extensions:["sru"]},"application/ssdl+xml":{source:"apache",compressible:true,extensions:["ssdl"]},"application/ssml+xml":{source:"iana",compressible:true,extensions:["ssml"]},"application/stix+json":{source:"iana",compressible:true},"application/swid+xml":{source:"iana",compressible:true,extensions:["swidtag"]},"application/tamp-apex-update":{source:"iana"},"application/tamp-apex-update-confirm":{source:"iana"},"application/tamp-community-update":{source:"iana"},"application/tamp-community-update-confirm":{source:"iana"},"application/tamp-error":{source:"iana"},"application/tamp-sequence-adjust":{source:"iana"},"application/tamp-sequence-adjust-confirm":{source:"iana"},"application/tamp-status-query":{source:"iana"},"application/tamp-status-response":{source:"iana"},"application/tamp-update":{source:"iana"},"application/tamp-update-confirm":{source:"iana"},"application/tar":{compressible:true},"application/taxii+json":{source:"iana",compressible:true},"application/td+json":{source:"iana",compressible:true},"application/tei+xml":{source:"iana",compressible:true,extensions:["tei","teicorpus"]},"application/tetra_isi":{source:"iana"},"application/thraud+xml":{source:"iana",compressible:true,extensions:["tfi"]},"application/timestamp-query":{source:"iana"},"application/timestamp-reply":{source:"iana"},"application/timestamped-data":{source:"iana",extensions:["tsd"]},"application/tlsrpt+gzip":{source:"iana"},"application/tlsrpt+json":{source:"iana",compressible:true},"application/tnauthlist":{source:"iana"},"application/toml":{compressible:true,extensions:["toml"]},"application/trickle-ice-sdpfrag":{source:"iana"},"application/trig":{source:"iana"},"application/ttml+xml":{source:"iana",compressible:true,extensions:["ttml"]},"application/tve-trigger":{source:"iana"},"application/tzif":{source:"iana"},"application/tzif-leap":{source:"iana"},"application/ulpfec":{source:"iana"},"application/urc-grpsheet+xml":{source:"iana",compressible:true},"application/urc-ressheet+xml":{source:"iana",compressible:true,extensions:["rsheet"]},"application/urc-targetdesc+xml":{source:"iana",compressible:true},"application/urc-uisocketdesc+xml":{source:"iana",compressible:true},"application/vcard+json":{source:"iana",compressible:true},"application/vcard+xml":{source:"iana",compressible:true},"application/vemmi":{source:"iana"},"application/vividence.scriptfile":{source:"apache"},"application/vnd.1000minds.decision-model+xml":{source:"iana",compressible:true,extensions:["1km"]},"application/vnd.3gpp-prose+xml":{source:"iana",compressible:true},"application/vnd.3gpp-prose-pc3ch+xml":{source:"iana",compressible:true},"application/vnd.3gpp-v2x-local-service-information":{source:"iana"},"application/vnd.3gpp.access-transfer-events+xml":{source:"iana",compressible:true},"application/vnd.3gpp.bsf+xml":{source:"iana",compressible:true},"application/vnd.3gpp.gmop+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mc-signalling-ear":{source:"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcdata-info+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcdata-payload":{source:"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcdata-signalling":{source:"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcdata-user-profile+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcptt-floor-request+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcptt-info+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcptt-location-info+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcptt-service-config+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcptt-signed+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcptt-ue-config+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcptt-user-profile+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcvideo-info+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcvideo-location-info+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcvideo-service-config+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mid-call+xml":{source:"iana",compressible:true},"application/vnd.3gpp.pic-bw-large":{source:"iana",extensions:["plb"]},"application/vnd.3gpp.pic-bw-small":{source:"iana",extensions:["psb"]},"application/vnd.3gpp.pic-bw-var":{source:"iana",extensions:["pvb"]},"application/vnd.3gpp.sms":{source:"iana"},"application/vnd.3gpp.sms+xml":{source:"iana",compressible:true},"application/vnd.3gpp.srvcc-ext+xml":{source:"iana",compressible:true},"application/vnd.3gpp.srvcc-info+xml":{source:"iana",compressible:true},"application/vnd.3gpp.state-and-event-info+xml":{source:"iana",compressible:true},"application/vnd.3gpp.ussd+xml":{source:"iana",compressible:true},"application/vnd.3gpp2.bcmcsinfo+xml":{source:"iana",compressible:true},"application/vnd.3gpp2.sms":{source:"iana"},"application/vnd.3gpp2.tcap":{source:"iana",extensions:["tcap"]},"application/vnd.3lightssoftware.imagescal":{source:"iana"},"application/vnd.3m.post-it-notes":{source:"iana",extensions:["pwn"]},"application/vnd.accpac.simply.aso":{source:"iana",extensions:["aso"]},"application/vnd.accpac.simply.imp":{source:"iana",extensions:["imp"]},"application/vnd.acucobol":{source:"iana",extensions:["acu"]},"application/vnd.acucorp":{source:"iana",extensions:["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{source:"apache",compressible:false,extensions:["air"]},"application/vnd.adobe.flash.movie":{source:"iana"},"application/vnd.adobe.formscentral.fcdt":{source:"iana",extensions:["fcdt"]},"application/vnd.adobe.fxp":{source:"iana",extensions:["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{source:"iana"},"application/vnd.adobe.xdp+xml":{source:"iana",compressible:true,extensions:["xdp"]},"application/vnd.adobe.xfdf":{source:"iana",extensions:["xfdf"]},"application/vnd.aether.imp":{source:"iana"},"application/vnd.afpc.afplinedata":{source:"iana"},"application/vnd.afpc.afplinedata-pagedef":{source:"iana"},"application/vnd.afpc.foca-charset":{source:"iana"},"application/vnd.afpc.foca-codedfont":{source:"iana"},"application/vnd.afpc.foca-codepage":{source:"iana"},"application/vnd.afpc.modca":{source:"iana"},"application/vnd.afpc.modca-formdef":{source:"iana"},"application/vnd.afpc.modca-mediummap":{source:"iana"},"application/vnd.afpc.modca-objectcontainer":{source:"iana"},"application/vnd.afpc.modca-overlay":{source:"iana"},"application/vnd.afpc.modca-pagesegment":{source:"iana"},"application/vnd.ah-barcode":{source:"iana"},"application/vnd.ahead.space":{source:"iana",extensions:["ahead"]},"application/vnd.airzip.filesecure.azf":{source:"iana",extensions:["azf"]},"application/vnd.airzip.filesecure.azs":{source:"iana",extensions:["azs"]},"application/vnd.amadeus+json":{source:"iana",compressible:true},"application/vnd.amazon.ebook":{source:"apache",extensions:["azw"]},"application/vnd.amazon.mobi8-ebook":{source:"iana"},"application/vnd.americandynamics.acc":{source:"iana",extensions:["acc"]},"application/vnd.amiga.ami":{source:"iana",extensions:["ami"]},"application/vnd.amundsen.maze+xml":{source:"iana",compressible:true},"application/vnd.android.ota":{source:"iana"},"application/vnd.android.package-archive":{source:"apache",compressible:false,extensions:["apk"]},"application/vnd.anki":{source:"iana"},"application/vnd.anser-web-certificate-issue-initiation":{source:"iana",extensions:["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{source:"apache",extensions:["fti"]},"application/vnd.antix.game-component":{source:"iana",extensions:["atx"]},"application/vnd.apache.thrift.binary":{source:"iana"},"application/vnd.apache.thrift.compact":{source:"iana"},"application/vnd.apache.thrift.json":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:true},"application/vnd.aplextor.warrp+json":{source:"iana",compressible:true},"application/vnd.apothekende.reservation+json":{source:"iana",compressible:true},"application/vnd.apple.installer+xml":{source:"iana",compressible:true,extensions:["mpkg"]},"application/vnd.apple.keynote":{source:"iana",extensions:["keynote"]},"application/vnd.apple.mpegurl":{source:"iana",extensions:["m3u8"]},"application/vnd.apple.numbers":{source:"iana",extensions:["numbers"]},"application/vnd.apple.pages":{source:"iana",extensions:["pages"]},"application/vnd.apple.pkpass":{compressible:false,extensions:["pkpass"]},"application/vnd.arastra.swi":{source:"iana"},"application/vnd.aristanetworks.swi":{source:"iana",extensions:["swi"]},"application/vnd.artisan+json":{source:"iana",compressible:true},"application/vnd.artsquare":{source:"iana"},"application/vnd.astraea-software.iota":{source:"iana",extensions:["iota"]},"application/vnd.audiograph":{source:"iana",extensions:["aep"]},"application/vnd.autopackage":{source:"iana"},"application/vnd.avalon+json":{source:"iana",compressible:true},"application/vnd.avistar+xml":{source:"iana",compressible:true},"application/vnd.balsamiq.bmml+xml":{source:"iana",compressible:true,extensions:["bmml"]},"application/vnd.balsamiq.bmpr":{source:"iana"},"application/vnd.banana-accounting":{source:"iana"},"application/vnd.bbf.usp.error":{source:"iana"},"application/vnd.bbf.usp.msg":{source:"iana"},"application/vnd.bbf.usp.msg+json":{source:"iana",compressible:true},"application/vnd.bekitzur-stech+json":{source:"iana",compressible:true},"application/vnd.bint.med-content":{source:"iana"},"application/vnd.biopax.rdf+xml":{source:"iana",compressible:true},"application/vnd.blink-idb-value-wrapper":{source:"iana"},"application/vnd.blueice.multipass":{source:"iana",extensions:["mpm"]},"application/vnd.bluetooth.ep.oob":{source:"iana"},"application/vnd.bluetooth.le.oob":{source:"iana"},"application/vnd.bmi":{source:"iana",extensions:["bmi"]},"application/vnd.bpf":{source:"iana"},"application/vnd.bpf3":{source:"iana"},"application/vnd.businessobjects":{source:"iana",extensions:["rep"]},"application/vnd.byu.uapi+json":{source:"iana",compressible:true},"application/vnd.cab-jscript":{source:"iana"},"application/vnd.canon-cpdl":{source:"iana"},"application/vnd.canon-lips":{source:"iana"},"application/vnd.capasystems-pg+json":{source:"iana",compressible:true},"application/vnd.cendio.thinlinc.clientconf":{source:"iana"},"application/vnd.century-systems.tcp_stream":{source:"iana"},"application/vnd.chemdraw+xml":{source:"iana",compressible:true,extensions:["cdxml"]},"application/vnd.chess-pgn":{source:"iana"},"application/vnd.chipnuts.karaoke-mmd":{source:"iana",extensions:["mmd"]},"application/vnd.ciedi":{source:"iana"},"application/vnd.cinderella":{source:"iana",extensions:["cdy"]},"application/vnd.cirpack.isdn-ext":{source:"iana"},"application/vnd.citationstyles.style+xml":{source:"iana",compressible:true,extensions:["csl"]},"application/vnd.claymore":{source:"iana",extensions:["cla"]},"application/vnd.cloanto.rp9":{source:"iana",extensions:["rp9"]},"application/vnd.clonk.c4group":{source:"iana",extensions:["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{source:"iana",extensions:["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:"iana",extensions:["c11amz"]},"application/vnd.coffeescript":{source:"iana"},"application/vnd.collabio.xodocuments.document":{source:"iana"},"application/vnd.collabio.xodocuments.document-template":{source:"iana"},"application/vnd.collabio.xodocuments.presentation":{source:"iana"},"application/vnd.collabio.xodocuments.presentation-template":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:"iana"},"application/vnd.collection+json":{source:"iana",compressible:true},"application/vnd.collection.doc+json":{source:"iana",compressible:true},"application/vnd.collection.next+json":{source:"iana",compressible:true},"application/vnd.comicbook+zip":{source:"iana",compressible:false},"application/vnd.comicbook-rar":{source:"iana"},"application/vnd.commerce-battelle":{source:"iana"},"application/vnd.commonspace":{source:"iana",extensions:["csp"]},"application/vnd.contact.cmsg":{source:"iana",extensions:["cdbcmsg"]},"application/vnd.coreos.ignition+json":{source:"iana",compressible:true},"application/vnd.cosmocaller":{source:"iana",extensions:["cmc"]},"application/vnd.crick.clicker":{source:"iana",extensions:["clkx"]},"application/vnd.crick.clicker.keyboard":{source:"iana",extensions:["clkk"]},"application/vnd.crick.clicker.palette":{source:"iana",extensions:["clkp"]},"application/vnd.crick.clicker.template":{source:"iana",extensions:["clkt"]},"application/vnd.crick.clicker.wordbank":{source:"iana",extensions:["clkw"]},"application/vnd.criticaltools.wbs+xml":{source:"iana",compressible:true,extensions:["wbs"]},"application/vnd.cryptii.pipe+json":{source:"iana",compressible:true},"application/vnd.crypto-shade-file":{source:"iana"},"application/vnd.ctc-posml":{source:"iana",extensions:["pml"]},"application/vnd.ctct.ws+xml":{source:"iana",compressible:true},"application/vnd.cups-pdf":{source:"iana"},"application/vnd.cups-postscript":{source:"iana"},"application/vnd.cups-ppd":{source:"iana",extensions:["ppd"]},"application/vnd.cups-raster":{source:"iana"},"application/vnd.cups-raw":{source:"iana"},"application/vnd.curl":{source:"iana"},"application/vnd.curl.car":{source:"apache",extensions:["car"]},"application/vnd.curl.pcurl":{source:"apache",extensions:["pcurl"]},"application/vnd.cyan.dean.root+xml":{source:"iana",compressible:true},"application/vnd.cybank":{source:"iana"},"application/vnd.d2l.coursepackage1p0+zip":{source:"iana",compressible:false},"application/vnd.dart":{source:"iana",compressible:true,extensions:["dart"]},"application/vnd.data-vision.rdz":{source:"iana",extensions:["rdz"]},"application/vnd.datapackage+json":{source:"iana",compressible:true},"application/vnd.dataresource+json":{source:"iana",compressible:true},"application/vnd.dbf":{source:"iana"},"application/vnd.debian.binary-package":{source:"iana"},"application/vnd.dece.data":{source:"iana",extensions:["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{source:"iana",compressible:true,extensions:["uvt","uvvt"]},"application/vnd.dece.unspecified":{source:"iana",extensions:["uvx","uvvx"]},"application/vnd.dece.zip":{source:"iana",extensions:["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{source:"iana",extensions:["fe_launch"]},"application/vnd.desmume.movie":{source:"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{source:"iana"},"application/vnd.dm.delegation+xml":{source:"iana",compressible:true},"application/vnd.dna":{source:"iana",extensions:["dna"]},"application/vnd.document+json":{source:"iana",compressible:true},"application/vnd.dolby.mlp":{source:"apache",extensions:["mlp"]},"application/vnd.dolby.mobile.1":{source:"iana"},"application/vnd.dolby.mobile.2":{source:"iana"},"application/vnd.doremir.scorecloud-binary-document":{source:"iana"},"application/vnd.dpgraph":{source:"iana",extensions:["dpg"]},"application/vnd.dreamfactory":{source:"iana",extensions:["dfac"]},"application/vnd.drive+json":{source:"iana",compressible:true},"application/vnd.ds-keypoint":{source:"apache",extensions:["kpxx"]},"application/vnd.dtg.local":{source:"iana"},"application/vnd.dtg.local.flash":{source:"iana"},"application/vnd.dtg.local.html":{source:"iana"},"application/vnd.dvb.ait":{source:"iana",extensions:["ait"]},"application/vnd.dvb.dvbisl+xml":{source:"iana",compressible:true},"application/vnd.dvb.dvbj":{source:"iana"},"application/vnd.dvb.esgcontainer":{source:"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess2":{source:"iana"},"application/vnd.dvb.ipdcesgpdd":{source:"iana"},"application/vnd.dvb.ipdcroaming":{source:"iana"},"application/vnd.dvb.iptv.alfec-base":{source:"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{source:"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{source:"iana",compressible:true},"application/vnd.dvb.notif-container+xml":{source:"iana",compressible:true},"application/vnd.dvb.notif-generic+xml":{source:"iana",compressible:true},"application/vnd.dvb.notif-ia-msglist+xml":{source:"iana",compressible:true},"application/vnd.dvb.notif-ia-registration-request+xml":{source:"iana",compressible:true},"application/vnd.dvb.notif-ia-registration-response+xml":{source:"iana",compressible:true},"application/vnd.dvb.notif-init+xml":{source:"iana",compressible:true},"application/vnd.dvb.pfr":{source:"iana"},"application/vnd.dvb.service":{source:"iana",extensions:["svc"]},"application/vnd.dxr":{source:"iana"},"application/vnd.dynageo":{source:"iana",extensions:["geo"]},"application/vnd.dzr":{source:"iana"},"application/vnd.easykaraoke.cdgdownload":{source:"iana"},"application/vnd.ecdis-update":{source:"iana"},"application/vnd.ecip.rlp":{source:"iana"},"application/vnd.ecowin.chart":{source:"iana",extensions:["mag"]},"application/vnd.ecowin.filerequest":{source:"iana"},"application/vnd.ecowin.fileupdate":{source:"iana"},"application/vnd.ecowin.series":{source:"iana"},"application/vnd.ecowin.seriesrequest":{source:"iana"},"application/vnd.ecowin.seriesupdate":{source:"iana"},"application/vnd.efi.img":{source:"iana"},"application/vnd.efi.iso":{source:"iana"},"application/vnd.emclient.accessrequest+xml":{source:"iana",compressible:true},"application/vnd.enliven":{source:"iana",extensions:["nml"]},"application/vnd.enphase.envoy":{source:"iana"},"application/vnd.eprints.data+xml":{source:"iana",compressible:true},"application/vnd.epson.esf":{source:"iana",extensions:["esf"]},"application/vnd.epson.msf":{source:"iana",extensions:["msf"]},"application/vnd.epson.quickanime":{source:"iana",extensions:["qam"]},"application/vnd.epson.salt":{source:"iana",extensions:["slt"]},"application/vnd.epson.ssf":{source:"iana",extensions:["ssf"]},"application/vnd.ericsson.quickcall":{source:"iana"},"application/vnd.espass-espass+zip":{source:"iana",compressible:false},"application/vnd.eszigno3+xml":{source:"iana",compressible:true,extensions:["es3","et3"]},"application/vnd.etsi.aoc+xml":{source:"iana",compressible:true},"application/vnd.etsi.asic-e+zip":{source:"iana",compressible:false},"application/vnd.etsi.asic-s+zip":{source:"iana",compressible:false},"application/vnd.etsi.cug+xml":{source:"iana",compressible:true},"application/vnd.etsi.iptvcommand+xml":{source:"iana",compressible:true},"application/vnd.etsi.iptvdiscovery+xml":{source:"iana",compressible:true},"application/vnd.etsi.iptvprofile+xml":{source:"iana",compressible:true},"application/vnd.etsi.iptvsad-bc+xml":{source:"iana",compressible:true},"application/vnd.etsi.iptvsad-cod+xml":{source:"iana",compressible:true},"application/vnd.etsi.iptvsad-npvr+xml":{source:"iana",compressible:true},"application/vnd.etsi.iptvservice+xml":{source:"iana",compressible:true},"application/vnd.etsi.iptvsync+xml":{source:"iana",compressible:true},"application/vnd.etsi.iptvueprofile+xml":{source:"iana",compressible:true},"application/vnd.etsi.mcid+xml":{source:"iana",compressible:true},"application/vnd.etsi.mheg5":{source:"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:"iana",compressible:true},"application/vnd.etsi.pstn+xml":{source:"iana",compressible:true},"application/vnd.etsi.sci+xml":{source:"iana",compressible:true},"application/vnd.etsi.simservs+xml":{source:"iana",compressible:true},"application/vnd.etsi.timestamp-token":{source:"iana"},"application/vnd.etsi.tsl+xml":{source:"iana",compressible:true},"application/vnd.etsi.tsl.der":{source:"iana"},"application/vnd.eudora.data":{source:"iana"},"application/vnd.evolv.ecig.profile":{source:"iana"},"application/vnd.evolv.ecig.settings":{source:"iana"},"application/vnd.evolv.ecig.theme":{source:"iana"},"application/vnd.exstream-empower+zip":{source:"iana",compressible:false},"application/vnd.exstream-package":{source:"iana"},"application/vnd.ezpix-album":{source:"iana",extensions:["ez2"]},"application/vnd.ezpix-package":{source:"iana",extensions:["ez3"]},"application/vnd.f-secure.mobile":{source:"iana"},"application/vnd.fastcopy-disk-image":{source:"iana"},"application/vnd.fdf":{source:"iana",extensions:["fdf"]},"application/vnd.fdsn.mseed":{source:"iana",extensions:["mseed"]},"application/vnd.fdsn.seed":{source:"iana",extensions:["seed","dataless"]},"application/vnd.ffsns":{source:"iana"},"application/vnd.ficlab.flb+zip":{source:"iana",compressible:false},"application/vnd.filmit.zfc":{source:"iana"},"application/vnd.fints":{source:"iana"},"application/vnd.firemonkeys.cloudcell":{source:"iana"},"application/vnd.flographit":{source:"iana",extensions:["gph"]},"application/vnd.fluxtime.clip":{source:"iana",extensions:["ftc"]},"application/vnd.font-fontforge-sfd":{source:"iana"},"application/vnd.framemaker":{source:"iana",extensions:["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{source:"iana",extensions:["fnc"]},"application/vnd.frogans.ltf":{source:"iana",extensions:["ltf"]},"application/vnd.fsc.weblaunch":{source:"iana",extensions:["fsc"]},"application/vnd.fujitsu.oasys":{source:"iana",extensions:["oas"]},"application/vnd.fujitsu.oasys2":{source:"iana",extensions:["oa2"]},"application/vnd.fujitsu.oasys3":{source:"iana",extensions:["oa3"]},"application/vnd.fujitsu.oasysgp":{source:"iana",extensions:["fg5"]},"application/vnd.fujitsu.oasysprs":{source:"iana",extensions:["bh2"]},"application/vnd.fujixerox.art-ex":{source:"iana"},"application/vnd.fujixerox.art4":{source:"iana"},"application/vnd.fujixerox.ddd":{source:"iana",extensions:["ddd"]},"application/vnd.fujixerox.docuworks":{source:"iana",extensions:["xdw"]},"application/vnd.fujixerox.docuworks.binder":{source:"iana",extensions:["xbd"]},"application/vnd.fujixerox.docuworks.container":{source:"iana"},"application/vnd.fujixerox.hbpl":{source:"iana"},"application/vnd.fut-misnet":{source:"iana"},"application/vnd.futoin+cbor":{source:"iana"},"application/vnd.futoin+json":{source:"iana",compressible:true},"application/vnd.fuzzysheet":{source:"iana",extensions:["fzs"]},"application/vnd.genomatix.tuxedo":{source:"iana",extensions:["txd"]},"application/vnd.gentics.grd+json":{source:"iana",compressible:true},"application/vnd.geo+json":{source:"iana",compressible:true},"application/vnd.geocube+xml":{source:"iana",compressible:true},"application/vnd.geogebra.file":{source:"iana",extensions:["ggb"]},"application/vnd.geogebra.tool":{source:"iana",extensions:["ggt"]},"application/vnd.geometry-explorer":{source:"iana",extensions:["gex","gre"]},"application/vnd.geonext":{source:"iana",extensions:["gxt"]},"application/vnd.geoplan":{source:"iana",extensions:["g2w"]},"application/vnd.geospace":{source:"iana",extensions:["g3w"]},"application/vnd.gerber":{source:"iana"},"application/vnd.globalplatform.card-content-mgt":{source:"iana"},"application/vnd.globalplatform.card-content-mgt-response":{source:"iana"},"application/vnd.gmx":{source:"iana",extensions:["gmx"]},"application/vnd.google-apps.document":{compressible:false,extensions:["gdoc"]},"application/vnd.google-apps.presentation":{compressible:false,extensions:["gslides"]},"application/vnd.google-apps.spreadsheet":{compressible:false,extensions:["gsheet"]},"application/vnd.google-earth.kml+xml":{source:"iana",compressible:true,extensions:["kml"]},"application/vnd.google-earth.kmz":{source:"iana",compressible:false,extensions:["kmz"]},"application/vnd.gov.sk.e-form+xml":{source:"iana",compressible:true},"application/vnd.gov.sk.e-form+zip":{source:"iana",compressible:false},"application/vnd.gov.sk.xmldatacontainer+xml":{source:"iana",compressible:true},"application/vnd.grafeq":{source:"iana",extensions:["gqf","gqs"]},"application/vnd.gridmp":{source:"iana"},"application/vnd.groove-account":{source:"iana",extensions:["gac"]},"application/vnd.groove-help":{source:"iana",extensions:["ghf"]},"application/vnd.groove-identity-message":{source:"iana",extensions:["gim"]},"application/vnd.groove-injector":{source:"iana",extensions:["grv"]},"application/vnd.groove-tool-message":{source:"iana",extensions:["gtm"]},"application/vnd.groove-tool-template":{source:"iana",extensions:["tpl"]},"application/vnd.groove-vcard":{source:"iana",extensions:["vcg"]},"application/vnd.hal+json":{source:"iana",compressible:true},"application/vnd.hal+xml":{source:"iana",compressible:true,extensions:["hal"]},"application/vnd.handheld-entertainment+xml":{source:"iana",compressible:true,extensions:["zmm"]},"application/vnd.hbci":{source:"iana",extensions:["hbci"]},"application/vnd.hc+json":{source:"iana",compressible:true},"application/vnd.hcl-bireports":{source:"iana"},"application/vnd.hdt":{source:"iana"},"application/vnd.heroku+json":{source:"iana",compressible:true},"application/vnd.hhe.lesson-player":{source:"iana",extensions:["les"]},"application/vnd.hp-hpgl":{source:"iana",extensions:["hpgl"]},"application/vnd.hp-hpid":{source:"iana",extensions:["hpid"]},"application/vnd.hp-hps":{source:"iana",extensions:["hps"]},"application/vnd.hp-jlyt":{source:"iana",extensions:["jlt"]},"application/vnd.hp-pcl":{source:"iana",extensions:["pcl"]},"application/vnd.hp-pclxl":{source:"iana",extensions:["pclxl"]},"application/vnd.httphone":{source:"iana"},"application/vnd.hydrostatix.sof-data":{source:"iana",extensions:["sfd-hdstx"]},"application/vnd.hyper+json":{source:"iana",compressible:true},"application/vnd.hyper-item+json":{source:"iana",compressible:true},"application/vnd.hyperdrive+json":{source:"iana",compressible:true},"application/vnd.hzn-3d-crossword":{source:"iana"},"application/vnd.ibm.afplinedata":{source:"iana"},"application/vnd.ibm.electronic-media":{source:"iana"},"application/vnd.ibm.minipay":{source:"iana",extensions:["mpy"]},"application/vnd.ibm.modcap":{source:"iana",extensions:["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{source:"iana",extensions:["irm"]},"application/vnd.ibm.secure-container":{source:"iana",extensions:["sc"]},"application/vnd.iccprofile":{source:"iana",extensions:["icc","icm"]},"application/vnd.ieee.1905":{source:"iana"},"application/vnd.igloader":{source:"iana",extensions:["igl"]},"application/vnd.imagemeter.folder+zip":{source:"iana",compressible:false},"application/vnd.imagemeter.image+zip":{source:"iana",compressible:false},"application/vnd.immervision-ivp":{source:"iana",extensions:["ivp"]},"application/vnd.immervision-ivu":{source:"iana",extensions:["ivu"]},"application/vnd.ims.imsccv1p1":{source:"iana"},"application/vnd.ims.imsccv1p2":{source:"iana"},"application/vnd.ims.imsccv1p3":{source:"iana"},"application/vnd.ims.lis.v2.result+json":{source:"iana",compressible:true},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:"iana",compressible:true},"application/vnd.ims.lti.v2.toolproxy+json":{source:"iana",compressible:true},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:"iana",compressible:true},"application/vnd.ims.lti.v2.toolsettings+json":{source:"iana",compressible:true},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:"iana",compressible:true},"application/vnd.informedcontrol.rms+xml":{source:"iana",compressible:true},"application/vnd.informix-visionary":{source:"iana"},"application/vnd.infotech.project":{source:"iana"},"application/vnd.infotech.project+xml":{source:"iana",compressible:true},"application/vnd.innopath.wamp.notification":{source:"iana"},"application/vnd.insors.igm":{source:"iana",extensions:["igm"]},"application/vnd.intercon.formnet":{source:"iana",extensions:["xpw","xpx"]},"application/vnd.intergeo":{source:"iana",extensions:["i2g"]},"application/vnd.intertrust.digibox":{source:"iana"},"application/vnd.intertrust.nncp":{source:"iana"},"application/vnd.intu.qbo":{source:"iana",extensions:["qbo"]},"application/vnd.intu.qfx":{source:"iana",extensions:["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{source:"iana",compressible:true},"application/vnd.iptc.g2.conceptitem+xml":{source:"iana",compressible:true},"application/vnd.iptc.g2.knowledgeitem+xml":{source:"iana",compressible:true},"application/vnd.iptc.g2.newsitem+xml":{source:"iana",compressible:true},"application/vnd.iptc.g2.newsmessage+xml":{source:"iana",compressible:true},"application/vnd.iptc.g2.packageitem+xml":{source:"iana",compressible:true},"application/vnd.iptc.g2.planningitem+xml":{source:"iana",compressible:true},"application/vnd.ipunplugged.rcprofile":{source:"iana",extensions:["rcprofile"]},"application/vnd.irepository.package+xml":{source:"iana",compressible:true,extensions:["irp"]},"application/vnd.is-xpr":{source:"iana",extensions:["xpr"]},"application/vnd.isac.fcs":{source:"iana",extensions:["fcs"]},"application/vnd.iso11783-10+zip":{source:"iana",compressible:false},"application/vnd.jam":{source:"iana",extensions:["jam"]},"application/vnd.japannet-directory-service":{source:"iana"},"application/vnd.japannet-jpnstore-wakeup":{source:"iana"},"application/vnd.japannet-payment-wakeup":{source:"iana"},"application/vnd.japannet-registration":{source:"iana"},"application/vnd.japannet-registration-wakeup":{source:"iana"},"application/vnd.japannet-setstore-wakeup":{source:"iana"},"application/vnd.japannet-verification":{source:"iana"},"application/vnd.japannet-verification-wakeup":{source:"iana"},"application/vnd.jcp.javame.midlet-rms":{source:"iana",extensions:["rms"]},"application/vnd.jisp":{source:"iana",extensions:["jisp"]},"application/vnd.joost.joda-archive":{source:"iana",extensions:["joda"]},"application/vnd.jsk.isdn-ngn":{source:"iana"},"application/vnd.kahootz":{source:"iana",extensions:["ktz","ktr"]},"application/vnd.kde.karbon":{source:"iana",extensions:["karbon"]},"application/vnd.kde.kchart":{source:"iana",extensions:["chrt"]},"application/vnd.kde.kformula":{source:"iana",extensions:["kfo"]},"application/vnd.kde.kivio":{source:"iana",extensions:["flw"]},"application/vnd.kde.kontour":{source:"iana",extensions:["kon"]},"application/vnd.kde.kpresenter":{source:"iana",extensions:["kpr","kpt"]},"application/vnd.kde.kspread":{source:"iana",extensions:["ksp"]},"application/vnd.kde.kword":{source:"iana",extensions:["kwd","kwt"]},"application/vnd.kenameaapp":{source:"iana",extensions:["htke"]},"application/vnd.kidspiration":{source:"iana",extensions:["kia"]},"application/vnd.kinar":{source:"iana",extensions:["kne","knp"]},"application/vnd.koan":{source:"iana",extensions:["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{source:"iana",extensions:["sse"]},"application/vnd.las":{source:"iana"},"application/vnd.las.las+json":{source:"iana",compressible:true},"application/vnd.las.las+xml":{source:"iana",compressible:true,extensions:["lasxml"]},"application/vnd.laszip":{source:"iana"},"application/vnd.leap+json":{source:"iana",compressible:true},"application/vnd.liberty-request+xml":{source:"iana",compressible:true},"application/vnd.llamagraphics.life-balance.desktop":{source:"iana",extensions:["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:"iana",compressible:true,extensions:["lbe"]},"application/vnd.logipipe.circuit+zip":{source:"iana",compressible:false},"application/vnd.loom":{source:"iana"},"application/vnd.lotus-1-2-3":{source:"iana",extensions:["123"]},"application/vnd.lotus-approach":{source:"iana",extensions:["apr"]},"application/vnd.lotus-freelance":{source:"iana",extensions:["pre"]},"application/vnd.lotus-notes":{source:"iana",extensions:["nsf"]},"application/vnd.lotus-organizer":{source:"iana",extensions:["org"]},"application/vnd.lotus-screencam":{source:"iana",extensions:["scm"]},"application/vnd.lotus-wordpro":{source:"iana",extensions:["lwp"]},"application/vnd.macports.portpkg":{source:"iana",extensions:["portpkg"]},"application/vnd.mapbox-vector-tile":{source:"iana"},"application/vnd.marlin.drm.actiontoken+xml":{source:"iana",compressible:true},"application/vnd.marlin.drm.conftoken+xml":{source:"iana",compressible:true},"application/vnd.marlin.drm.license+xml":{source:"iana",compressible:true},"application/vnd.marlin.drm.mdcf":{source:"iana"},"application/vnd.mason+json":{source:"iana",compressible:true},"application/vnd.maxmind.maxmind-db":{source:"iana"},"application/vnd.mcd":{source:"iana",extensions:["mcd"]},"application/vnd.medcalcdata":{source:"iana",extensions:["mc1"]},"application/vnd.mediastation.cdkey":{source:"iana",extensions:["cdkey"]},"application/vnd.meridian-slingshot":{source:"iana"},"application/vnd.mfer":{source:"iana",extensions:["mwf"]},"application/vnd.mfmp":{source:"iana",extensions:["mfm"]},"application/vnd.micro+json":{source:"iana",compressible:true},"application/vnd.micrografx.flo":{source:"iana",extensions:["flo"]},"application/vnd.micrografx.igx":{source:"iana",extensions:["igx"]},"application/vnd.microsoft.portable-executable":{source:"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{source:"iana"},"application/vnd.miele+json":{source:"iana",compressible:true},"application/vnd.mif":{source:"iana",extensions:["mif"]},"application/vnd.minisoft-hp3000-save":{source:"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{source:"iana"},"application/vnd.mobius.daf":{source:"iana",extensions:["daf"]},"application/vnd.mobius.dis":{source:"iana",extensions:["dis"]},"application/vnd.mobius.mbk":{source:"iana",extensions:["mbk"]},"application/vnd.mobius.mqy":{source:"iana",extensions:["mqy"]},"application/vnd.mobius.msl":{source:"iana",extensions:["msl"]},"application/vnd.mobius.plc":{source:"iana",extensions:["plc"]},"application/vnd.mobius.txf":{source:"iana",extensions:["txf"]},"application/vnd.mophun.application":{source:"iana",extensions:["mpn"]},"application/vnd.mophun.certificate":{source:"iana",extensions:["mpc"]},"application/vnd.motorola.flexsuite":{source:"iana"},"application/vnd.motorola.flexsuite.adsi":{source:"iana"},"application/vnd.motorola.flexsuite.fis":{source:"iana"},"application/vnd.motorola.flexsuite.gotap":{source:"iana"},"application/vnd.motorola.flexsuite.kmr":{source:"iana"},"application/vnd.motorola.flexsuite.ttc":{source:"iana"},"application/vnd.motorola.flexsuite.wem":{source:"iana"},"application/vnd.motorola.iprm":{source:"iana"},"application/vnd.mozilla.xul+xml":{source:"iana",compressible:true,extensions:["xul"]},"application/vnd.ms-3mfdocument":{source:"iana"},"application/vnd.ms-artgalry":{source:"iana",extensions:["cil"]},"application/vnd.ms-asf":{source:"iana"},"application/vnd.ms-cab-compressed":{source:"iana",extensions:["cab"]},"application/vnd.ms-color.iccprofile":{source:"apache"},"application/vnd.ms-excel":{source:"iana",compressible:false,extensions:["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{source:"iana",extensions:["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:"iana",extensions:["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:"iana",extensions:["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{source:"iana",extensions:["xltm"]},"application/vnd.ms-fontobject":{source:"iana",compressible:true,extensions:["eot"]},"application/vnd.ms-htmlhelp":{source:"iana",extensions:["chm"]},"application/vnd.ms-ims":{source:"iana",extensions:["ims"]},"application/vnd.ms-lrm":{source:"iana",extensions:["lrm"]},"application/vnd.ms-office.activex+xml":{source:"iana",compressible:true},"application/vnd.ms-officetheme":{source:"iana",extensions:["thmx"]},"application/vnd.ms-opentype":{source:"apache",compressible:true},"application/vnd.ms-outlook":{compressible:false,extensions:["msg"]},"application/vnd.ms-package.obfuscated-opentype":{source:"apache"},"application/vnd.ms-pki.seccat":{source:"apache",extensions:["cat"]},"application/vnd.ms-pki.stl":{source:"apache",extensions:["stl"]},"application/vnd.ms-playready.initiator+xml":{source:"iana",compressible:true},"application/vnd.ms-powerpoint":{source:"iana",compressible:false,extensions:["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:"iana",extensions:["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:"iana",extensions:["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:"iana",extensions:["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:"iana",extensions:["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:"iana",extensions:["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{source:"iana",compressible:true},"application/vnd.ms-printing.printticket+xml":{source:"apache",compressible:true},"application/vnd.ms-printschematicket+xml":{source:"iana",compressible:true},"application/vnd.ms-project":{source:"iana",extensions:["mpp","mpt"]},"application/vnd.ms-tnef":{source:"iana"},"application/vnd.ms-windows.devicepairing":{source:"iana"},"application/vnd.ms-windows.nwprinting.oob":{source:"iana"},"application/vnd.ms-windows.printerpairing":{source:"iana"},"application/vnd.ms-windows.wsd.oob":{source:"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.lic-resp":{source:"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.meter-resp":{source:"iana"},"application/vnd.ms-word.document.macroenabled.12":{source:"iana",extensions:["docm"]},"application/vnd.ms-word.template.macroenabled.12":{source:"iana",extensions:["dotm"]},"application/vnd.ms-works":{source:"iana",extensions:["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{source:"iana",extensions:["wpl"]},"application/vnd.ms-xpsdocument":{source:"iana",compressible:false,extensions:["xps"]},"application/vnd.msa-disk-image":{source:"iana"},"application/vnd.mseq":{source:"iana",extensions:["mseq"]},"application/vnd.msign":{source:"iana"},"application/vnd.multiad.creator":{source:"iana"},"application/vnd.multiad.creator.cif":{source:"iana"},"application/vnd.music-niff":{source:"iana"},"application/vnd.musician":{source:"iana",extensions:["mus"]},"application/vnd.muvee.style":{source:"iana",extensions:["msty"]},"application/vnd.mynfc":{source:"iana",extensions:["taglet"]},"application/vnd.ncd.control":{source:"iana"},"application/vnd.ncd.reference":{source:"iana"},"application/vnd.nearst.inv+json":{source:"iana",compressible:true},"application/vnd.nervana":{source:"iana"},"application/vnd.netfpx":{source:"iana"},"application/vnd.neurolanguage.nlu":{source:"iana",extensions:["nlu"]},"application/vnd.nimn":{source:"iana"},"application/vnd.nintendo.nitro.rom":{source:"iana"},"application/vnd.nintendo.snes.rom":{source:"iana"},"application/vnd.nitf":{source:"iana",extensions:["ntf","nitf"]},"application/vnd.noblenet-directory":{source:"iana",extensions:["nnd"]},"application/vnd.noblenet-sealer":{source:"iana",extensions:["nns"]},"application/vnd.noblenet-web":{source:"iana",extensions:["nnw"]},"application/vnd.nokia.catalogs":{source:"iana"},"application/vnd.nokia.conml+wbxml":{source:"iana"},"application/vnd.nokia.conml+xml":{source:"iana",compressible:true},"application/vnd.nokia.iptv.config+xml":{source:"iana",compressible:true},"application/vnd.nokia.isds-radio-presets":{source:"iana"},"application/vnd.nokia.landmark+wbxml":{source:"iana"},"application/vnd.nokia.landmark+xml":{source:"iana",compressible:true},"application/vnd.nokia.landmarkcollection+xml":{source:"iana",compressible:true},"application/vnd.nokia.n-gage.ac+xml":{source:"iana",compressible:true,extensions:["ac"]},"application/vnd.nokia.n-gage.data":{source:"iana",extensions:["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{source:"iana",extensions:["n-gage"]},"application/vnd.nokia.ncd":{source:"iana"},"application/vnd.nokia.pcd+wbxml":{source:"iana"},"application/vnd.nokia.pcd+xml":{source:"iana",compressible:true},"application/vnd.nokia.radio-preset":{source:"iana",extensions:["rpst"]},"application/vnd.nokia.radio-presets":{source:"iana",extensions:["rpss"]},"application/vnd.novadigm.edm":{source:"iana",extensions:["edm"]},"application/vnd.novadigm.edx":{source:"iana",extensions:["edx"]},"application/vnd.novadigm.ext":{source:"iana",extensions:["ext"]},"application/vnd.ntt-local.content-share":{source:"iana"},"application/vnd.ntt-local.file-transfer":{source:"iana"},"application/vnd.ntt-local.ogw_remote-access":{source:"iana"},"application/vnd.ntt-local.sip-ta_remote":{source:"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:"iana"},"application/vnd.oasis.opendocument.chart":{source:"iana",extensions:["odc"]},"application/vnd.oasis.opendocument.chart-template":{source:"iana",extensions:["otc"]},"application/vnd.oasis.opendocument.database":{source:"iana",extensions:["odb"]},"application/vnd.oasis.opendocument.formula":{source:"iana",extensions:["odf"]},"application/vnd.oasis.opendocument.formula-template":{source:"iana",extensions:["odft"]},"application/vnd.oasis.opendocument.graphics":{source:"iana",compressible:false,extensions:["odg"]},"application/vnd.oasis.opendocument.graphics-template":{source:"iana",extensions:["otg"]},"application/vnd.oasis.opendocument.image":{source:"iana",extensions:["odi"]},"application/vnd.oasis.opendocument.image-template":{source:"iana",extensions:["oti"]},"application/vnd.oasis.opendocument.presentation":{source:"iana",compressible:false,extensions:["odp"]},"application/vnd.oasis.opendocument.presentation-template":{source:"iana",extensions:["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{source:"iana",compressible:false,extensions:["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:"iana",extensions:["ots"]},"application/vnd.oasis.opendocument.text":{source:"iana",compressible:false,extensions:["odt"]},"application/vnd.oasis.opendocument.text-master":{source:"iana",extensions:["odm"]},"application/vnd.oasis.opendocument.text-template":{source:"iana",extensions:["ott"]},"application/vnd.oasis.opendocument.text-web":{source:"iana",extensions:["oth"]},"application/vnd.obn":{source:"iana"},"application/vnd.ocf+cbor":{source:"iana"},"application/vnd.oci.image.manifest.v1+json":{source:"iana",compressible:true},"application/vnd.oftn.l10n+json":{source:"iana",compressible:true},"application/vnd.oipf.contentaccessdownload+xml":{source:"iana",compressible:true},"application/vnd.oipf.contentaccessstreaming+xml":{source:"iana",compressible:true},"application/vnd.oipf.cspg-hexbinary":{source:"iana"},"application/vnd.oipf.dae.svg+xml":{source:"iana",compressible:true},"application/vnd.oipf.dae.xhtml+xml":{source:"iana",compressible:true},"application/vnd.oipf.mippvcontrolmessage+xml":{source:"iana",compressible:true},"application/vnd.oipf.pae.gem":{source:"iana"},"application/vnd.oipf.spdiscovery+xml":{source:"iana",compressible:true},"application/vnd.oipf.spdlist+xml":{source:"iana",compressible:true},"application/vnd.oipf.ueprofile+xml":{source:"iana",compressible:true},"application/vnd.oipf.userprofile+xml":{source:"iana",compressible:true},"application/vnd.olpc-sugar":{source:"iana",extensions:["xo"]},"application/vnd.oma-scws-config":{source:"iana"},"application/vnd.oma-scws-http-request":{source:"iana"},"application/vnd.oma-scws-http-response":{source:"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:"iana",compressible:true},"application/vnd.oma.bcast.drm-trigger+xml":{source:"iana",compressible:true},"application/vnd.oma.bcast.imd+xml":{source:"iana",compressible:true},"application/vnd.oma.bcast.ltkm":{source:"iana"},"application/vnd.oma.bcast.notification+xml":{source:"iana",compressible:true},"application/vnd.oma.bcast.provisioningtrigger":{source:"iana"},"application/vnd.oma.bcast.sgboot":{source:"iana"},"application/vnd.oma.bcast.sgdd+xml":{source:"iana",compressible:true},"application/vnd.oma.bcast.sgdu":{source:"iana"},"application/vnd.oma.bcast.simple-symbol-container":{source:"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:"iana",compressible:true},"application/vnd.oma.bcast.sprov+xml":{source:"iana",compressible:true},"application/vnd.oma.bcast.stkm":{source:"iana"},"application/vnd.oma.cab-address-book+xml":{source:"iana",compressible:true},"application/vnd.oma.cab-feature-handler+xml":{source:"iana",compressible:true},"application/vnd.oma.cab-pcc+xml":{source:"iana",compressible:true},"application/vnd.oma.cab-subs-invite+xml":{source:"iana",compressible:true},"application/vnd.oma.cab-user-prefs+xml":{source:"iana",compressible:true},"application/vnd.oma.dcd":{source:"iana"},"application/vnd.oma.dcdc":{source:"iana"},"application/vnd.oma.dd2+xml":{source:"iana",compressible:true,extensions:["dd2"]},"application/vnd.oma.drm.risd+xml":{source:"iana",compressible:true},"application/vnd.oma.group-usage-list+xml":{source:"iana",compressible:true},"application/vnd.oma.lwm2m+json":{source:"iana",compressible:true},"application/vnd.oma.lwm2m+tlv":{source:"iana"},"application/vnd.oma.pal+xml":{source:"iana",compressible:true},"application/vnd.oma.poc.detailed-progress-report+xml":{source:"iana",compressible:true},"application/vnd.oma.poc.final-report+xml":{source:"iana",compressible:true},"application/vnd.oma.poc.groups+xml":{source:"iana",compressible:true},"application/vnd.oma.poc.invocation-descriptor+xml":{source:"iana",compressible:true},"application/vnd.oma.poc.optimized-progress-report+xml":{source:"iana",compressible:true},"application/vnd.oma.push":{source:"iana"},"application/vnd.oma.scidm.messages+xml":{source:"iana",compressible:true},"application/vnd.oma.xcap-directory+xml":{source:"iana",compressible:true},"application/vnd.omads-email+xml":{source:"iana",charset:"UTF-8",compressible:true},"application/vnd.omads-file+xml":{source:"iana",charset:"UTF-8",compressible:true},"application/vnd.omads-folder+xml":{source:"iana",charset:"UTF-8",compressible:true},"application/vnd.omaloc-supl-init":{source:"iana"},"application/vnd.onepager":{source:"iana"},"application/vnd.onepagertamp":{source:"iana"},"application/vnd.onepagertamx":{source:"iana"},"application/vnd.onepagertat":{source:"iana"},"application/vnd.onepagertatp":{source:"iana"},"application/vnd.onepagertatx":{source:"iana"},"application/vnd.openblox.game+xml":{source:"iana",compressible:true,extensions:["obgx"]},"application/vnd.openblox.game-binary":{source:"iana"},"application/vnd.openeye.oeb":{source:"iana"},"application/vnd.openofficeorg.extension":{source:"apache",extensions:["oxt"]},"application/vnd.openstreetmap.data+xml":{source:"iana",compressible:true,extensions:["osm"]},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",compressible:false,extensions:["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:"iana",extensions:["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:"iana",extensions:["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:"iana",extensions:["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",compressible:false,extensions:["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:"iana",extensions:["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.theme+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",compressible:false,extensions:["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:"iana",extensions:["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-package.core-properties+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-package.relationships+xml":{source:"iana",compressible:true},"application/vnd.oracle.resource+json":{source:"iana",compressible:true},"application/vnd.orange.indata":{source:"iana"},"application/vnd.osa.netdeploy":{source:"iana"},"application/vnd.osgeo.mapguide.package":{source:"iana",extensions:["mgp"]},"application/vnd.osgi.bundle":{source:"iana"},"application/vnd.osgi.dp":{source:"iana",extensions:["dp"]},"application/vnd.osgi.subsystem":{source:"iana",extensions:["esa"]},"application/vnd.otps.ct-kip+xml":{source:"iana",compressible:true},"application/vnd.oxli.countgraph":{source:"iana"},"application/vnd.pagerduty+json":{source:"iana",compressible:true},"application/vnd.palm":{source:"iana",extensions:["pdb","pqa","oprc"]},"application/vnd.panoply":{source:"iana"},"application/vnd.paos.xml":{source:"iana"},"application/vnd.patentdive":{source:"iana"},"application/vnd.patientecommsdoc":{source:"iana"},"application/vnd.pawaafile":{source:"iana",extensions:["paw"]},"application/vnd.pcos":{source:"iana"},"application/vnd.pg.format":{source:"iana",extensions:["str"]},"application/vnd.pg.osasli":{source:"iana",extensions:["ei6"]},"application/vnd.piaccess.application-licence":{source:"iana"},"application/vnd.picsel":{source:"iana",extensions:["efif"]},"application/vnd.pmi.widget":{source:"iana",extensions:["wg"]},"application/vnd.poc.group-advertisement+xml":{source:"iana",compressible:true},"application/vnd.pocketlearn":{source:"iana",extensions:["plf"]},"application/vnd.powerbuilder6":{source:"iana",extensions:["pbd"]},"application/vnd.powerbuilder6-s":{source:"iana"},"application/vnd.powerbuilder7":{source:"iana"},"application/vnd.powerbuilder7-s":{source:"iana"},"application/vnd.powerbuilder75":{source:"iana"},"application/vnd.powerbuilder75-s":{source:"iana"},"application/vnd.preminet":{source:"iana"},"application/vnd.previewsystems.box":{source:"iana",extensions:["box"]},"application/vnd.proteus.magazine":{source:"iana",extensions:["mgz"]},"application/vnd.psfs":{source:"iana"},"application/vnd.publishare-delta-tree":{source:"iana",extensions:["qps"]},"application/vnd.pvi.ptid1":{source:"iana",extensions:["ptid"]},"application/vnd.pwg-multiplexed":{source:"iana"},"application/vnd.pwg-xhtml-print+xml":{source:"iana",compressible:true},"application/vnd.qualcomm.brew-app-res":{source:"iana"},"application/vnd.quarantainenet":{source:"iana"},"application/vnd.quark.quarkxpress":{source:"iana",extensions:["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{source:"iana"},"application/vnd.radisys.moml+xml":{source:"iana",compressible:true},"application/vnd.radisys.msml+xml":{source:"iana",compressible:true},"application/vnd.radisys.msml-audit+xml":{source:"iana",compressible:true},"application/vnd.radisys.msml-audit-conf+xml":{source:"iana",compressible:true},"application/vnd.radisys.msml-audit-conn+xml":{source:"iana",compressible:true},"application/vnd.radisys.msml-audit-dialog+xml":{source:"iana",compressible:true},"application/vnd.radisys.msml-audit-stream+xml":{source:"iana",compressible:true},"application/vnd.radisys.msml-conf+xml":{source:"iana",compressible:true},"application/vnd.radisys.msml-dialog+xml":{source:"iana",compressible:true},"application/vnd.radisys.msml-dialog-base+xml":{source:"iana",compressible:true},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:"iana",compressible:true},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:"iana",compressible:true},"application/vnd.radisys.msml-dialog-group+xml":{source:"iana",compressible:true},"application/vnd.radisys.msml-dialog-speech+xml":{source:"iana",compressible:true},"application/vnd.radisys.msml-dialog-transform+xml":{source:"iana",compressible:true},"application/vnd.rainstor.data":{source:"iana"},"application/vnd.rapid":{source:"iana"},"application/vnd.rar":{source:"iana"},"application/vnd.realvnc.bed":{source:"iana",extensions:["bed"]},"application/vnd.recordare.musicxml":{source:"iana",extensions:["mxl"]},"application/vnd.recordare.musicxml+xml":{source:"iana",compressible:true,extensions:["musicxml"]},"application/vnd.renlearn.rlprint":{source:"iana"},"application/vnd.restful+json":{source:"iana",compressible:true},"application/vnd.rig.cryptonote":{source:"iana",extensions:["cryptonote"]},"application/vnd.rim.cod":{source:"apache",extensions:["cod"]},"application/vnd.rn-realmedia":{source:"apache",extensions:["rm"]},"application/vnd.rn-realmedia-vbr":{source:"apache",extensions:["rmvb"]},"application/vnd.route66.link66+xml":{source:"iana",compressible:true,extensions:["link66"]},"application/vnd.rs-274x":{source:"iana"},"application/vnd.ruckus.download":{source:"iana"},"application/vnd.s3sms":{source:"iana"},"application/vnd.sailingtracker.track":{source:"iana",extensions:["st"]},"application/vnd.sar":{source:"iana"},"application/vnd.sbm.cid":{source:"iana"},"application/vnd.sbm.mid2":{source:"iana"},"application/vnd.scribus":{source:"iana"},"application/vnd.sealed.3df":{source:"iana"},"application/vnd.sealed.csf":{source:"iana"},"application/vnd.sealed.doc":{source:"iana"},"application/vnd.sealed.eml":{source:"iana"},"application/vnd.sealed.mht":{source:"iana"},"application/vnd.sealed.net":{source:"iana"},"application/vnd.sealed.ppt":{source:"iana"},"application/vnd.sealed.tiff":{source:"iana"},"application/vnd.sealed.xls":{source:"iana"},"application/vnd.sealedmedia.softseal.html":{source:"iana"},"application/vnd.sealedmedia.softseal.pdf":{source:"iana"},"application/vnd.seemail":{source:"iana",extensions:["see"]},"application/vnd.sema":{source:"iana",extensions:["sema"]},"application/vnd.semd":{source:"iana",extensions:["semd"]},"application/vnd.semf":{source:"iana",extensions:["semf"]},"application/vnd.shade-save-file":{source:"iana"},"application/vnd.shana.informed.formdata":{source:"iana",extensions:["ifm"]},"application/vnd.shana.informed.formtemplate":{source:"iana",extensions:["itp"]},"application/vnd.shana.informed.interchange":{source:"iana",extensions:["iif"]},"application/vnd.shana.informed.package":{source:"iana",extensions:["ipk"]},"application/vnd.shootproof+json":{source:"iana",compressible:true},"application/vnd.shopkick+json":{source:"iana",compressible:true},"application/vnd.shp":{source:"iana"},"application/vnd.shx":{source:"iana"},"application/vnd.sigrok.session":{source:"iana"},"application/vnd.simtech-mindmapper":{source:"iana",extensions:["twd","twds"]},"application/vnd.siren+json":{source:"iana",compressible:true},"application/vnd.smaf":{source:"iana",extensions:["mmf"]},"application/vnd.smart.notebook":{source:"iana"},"application/vnd.smart.teacher":{source:"iana",extensions:["teacher"]},"application/vnd.snesdev-page-table":{source:"iana"},"application/vnd.software602.filler.form+xml":{source:"iana",compressible:true,extensions:["fo"]},"application/vnd.software602.filler.form-xml-zip":{source:"iana"},"application/vnd.solent.sdkm+xml":{source:"iana",compressible:true,extensions:["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{source:"iana",extensions:["dxp"]},"application/vnd.spotfire.sfs":{source:"iana",extensions:["sfs"]},"application/vnd.sqlite3":{source:"iana"},"application/vnd.sss-cod":{source:"iana"},"application/vnd.sss-dtf":{source:"iana"},"application/vnd.sss-ntf":{source:"iana"},"application/vnd.stardivision.calc":{source:"apache",extensions:["sdc"]},"application/vnd.stardivision.draw":{source:"apache",extensions:["sda"]},"application/vnd.stardivision.impress":{source:"apache",extensions:["sdd"]},"application/vnd.stardivision.math":{source:"apache",extensions:["smf"]},"application/vnd.stardivision.writer":{source:"apache",extensions:["sdw","vor"]},"application/vnd.stardivision.writer-global":{source:"apache",extensions:["sgl"]},"application/vnd.stepmania.package":{source:"iana",extensions:["smzip"]},"application/vnd.stepmania.stepchart":{source:"iana",extensions:["sm"]},"application/vnd.street-stream":{source:"iana"},"application/vnd.sun.wadl+xml":{source:"iana",compressible:true,extensions:["wadl"]},"application/vnd.sun.xml.calc":{source:"apache",extensions:["sxc"]},"application/vnd.sun.xml.calc.template":{source:"apache",extensions:["stc"]},"application/vnd.sun.xml.draw":{source:"apache",extensions:["sxd"]},"application/vnd.sun.xml.draw.template":{source:"apache",extensions:["std"]},"application/vnd.sun.xml.impress":{source:"apache",extensions:["sxi"]},"application/vnd.sun.xml.impress.template":{source:"apache",extensions:["sti"]},"application/vnd.sun.xml.math":{source:"apache",extensions:["sxm"]},"application/vnd.sun.xml.writer":{source:"apache",extensions:["sxw"]},"application/vnd.sun.xml.writer.global":{source:"apache",extensions:["sxg"]},"application/vnd.sun.xml.writer.template":{source:"apache",extensions:["stw"]},"application/vnd.sus-calendar":{source:"iana",extensions:["sus","susp"]},"application/vnd.svd":{source:"iana",extensions:["svd"]},"application/vnd.swiftview-ics":{source:"iana"},"application/vnd.symbian.install":{source:"apache",extensions:["sis","sisx"]},"application/vnd.syncml+xml":{source:"iana",charset:"UTF-8",compressible:true,extensions:["xsm"]},"application/vnd.syncml.dm+wbxml":{source:"iana",charset:"UTF-8",extensions:["bdm"]},"application/vnd.syncml.dm+xml":{source:"iana",charset:"UTF-8",compressible:true,extensions:["xdm"]},"application/vnd.syncml.dm.notification":{source:"iana"},"application/vnd.syncml.dmddf+wbxml":{source:"iana"},"application/vnd.syncml.dmddf+xml":{source:"iana",charset:"UTF-8",compressible:true,extensions:["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{source:"iana"},"application/vnd.syncml.dmtnds+xml":{source:"iana",charset:"UTF-8",compressible:true},"application/vnd.syncml.ds.notification":{source:"iana"},"application/vnd.tableschema+json":{source:"iana",compressible:true},"application/vnd.tao.intent-module-archive":{source:"iana",extensions:["tao"]},"application/vnd.tcpdump.pcap":{source:"iana",extensions:["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{source:"iana",compressible:true},"application/vnd.tmd.mediaflex.api+xml":{source:"iana",compressible:true},"application/vnd.tml":{source:"iana"},"application/vnd.tmobile-livetv":{source:"iana",extensions:["tmo"]},"application/vnd.tri.onesource":{source:"iana"},"application/vnd.trid.tpt":{source:"iana",extensions:["tpt"]},"application/vnd.triscape.mxs":{source:"iana",extensions:["mxs"]},"application/vnd.trueapp":{source:"iana",extensions:["tra"]},"application/vnd.truedoc":{source:"iana"},"application/vnd.ubisoft.webplayer":{source:"iana"},"application/vnd.ufdl":{source:"iana",extensions:["ufd","ufdl"]},"application/vnd.uiq.theme":{source:"iana",extensions:["utz"]},"application/vnd.umajin":{source:"iana",extensions:["umj"]},"application/vnd.unity":{source:"iana",extensions:["unityweb"]},"application/vnd.uoml+xml":{source:"iana",compressible:true,extensions:["uoml"]},"application/vnd.uplanet.alert":{source:"iana"},"application/vnd.uplanet.alert-wbxml":{source:"iana"},"application/vnd.uplanet.bearer-choice":{source:"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{source:"iana"},"application/vnd.uplanet.cacheop":{source:"iana"},"application/vnd.uplanet.cacheop-wbxml":{source:"iana"},"application/vnd.uplanet.channel":{source:"iana"},"application/vnd.uplanet.channel-wbxml":{source:"iana"},"application/vnd.uplanet.list":{source:"iana"},"application/vnd.uplanet.list-wbxml":{source:"iana"},"application/vnd.uplanet.listcmd":{source:"iana"},"application/vnd.uplanet.listcmd-wbxml":{source:"iana"},"application/vnd.uplanet.signal":{source:"iana"},"application/vnd.uri-map":{source:"iana"},"application/vnd.valve.source.material":{source:"iana"},"application/vnd.vcx":{source:"iana",extensions:["vcx"]},"application/vnd.vd-study":{source:"iana"},"application/vnd.vectorworks":{source:"iana"},"application/vnd.vel+json":{source:"iana",compressible:true},"application/vnd.verimatrix.vcas":{source:"iana"},"application/vnd.veryant.thin":{source:"iana"},"application/vnd.ves.encrypted":{source:"iana"},"application/vnd.vidsoft.vidconference":{source:"iana"},"application/vnd.visio":{source:"iana",extensions:["vsd","vst","vss","vsw"]},"application/vnd.visionary":{source:"iana",extensions:["vis"]},"application/vnd.vividence.scriptfile":{source:"iana"},"application/vnd.vsf":{source:"iana",extensions:["vsf"]},"application/vnd.wap.sic":{source:"iana"},"application/vnd.wap.slc":{source:"iana"},"application/vnd.wap.wbxml":{source:"iana",charset:"UTF-8",extensions:["wbxml"]},"application/vnd.wap.wmlc":{source:"iana",extensions:["wmlc"]},"application/vnd.wap.wmlscriptc":{source:"iana",extensions:["wmlsc"]},"application/vnd.webturbo":{source:"iana",extensions:["wtb"]},"application/vnd.wfa.p2p":{source:"iana"},"application/vnd.wfa.wsc":{source:"iana"},"application/vnd.windows.devicepairing":{source:"iana"},"application/vnd.wmc":{source:"iana"},"application/vnd.wmf.bootstrap":{source:"iana"},"application/vnd.wolfram.mathematica":{source:"iana"},"application/vnd.wolfram.mathematica.package":{source:"iana"},"application/vnd.wolfram.player":{source:"iana",extensions:["nbp"]},"application/vnd.wordperfect":{source:"iana",extensions:["wpd"]},"application/vnd.wqd":{source:"iana",extensions:["wqd"]},"application/vnd.wrq-hp3000-labelled":{source:"iana"},"application/vnd.wt.stf":{source:"iana",extensions:["stf"]},"application/vnd.wv.csp+wbxml":{source:"iana"},"application/vnd.wv.csp+xml":{source:"iana",compressible:true},"application/vnd.wv.ssp+xml":{source:"iana",compressible:true},"application/vnd.xacml+json":{source:"iana",compressible:true},"application/vnd.xara":{source:"iana",extensions:["xar"]},"application/vnd.xfdl":{source:"iana",extensions:["xfdl"]},"application/vnd.xfdl.webform":{source:"iana"},"application/vnd.xmi+xml":{source:"iana",compressible:true},"application/vnd.xmpie.cpkg":{source:"iana"},"application/vnd.xmpie.dpkg":{source:"iana"},"application/vnd.xmpie.plan":{source:"iana"},"application/vnd.xmpie.ppkg":{source:"iana"},"application/vnd.xmpie.xlim":{source:"iana"},"application/vnd.yamaha.hv-dic":{source:"iana",extensions:["hvd"]},"application/vnd.yamaha.hv-script":{source:"iana",extensions:["hvs"]},"application/vnd.yamaha.hv-voice":{source:"iana",extensions:["hvp"]},"application/vnd.yamaha.openscoreformat":{source:"iana",extensions:["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:"iana",compressible:true,extensions:["osfpvg"]},"application/vnd.yamaha.remote-setup":{source:"iana"},"application/vnd.yamaha.smaf-audio":{source:"iana",extensions:["saf"]},"application/vnd.yamaha.smaf-phrase":{source:"iana",extensions:["spf"]},"application/vnd.yamaha.through-ngn":{source:"iana"},"application/vnd.yamaha.tunnel-udpencap":{source:"iana"},"application/vnd.yaoweme":{source:"iana"},"application/vnd.yellowriver-custom-menu":{source:"iana",extensions:["cmp"]},"application/vnd.youtube.yt":{source:"iana"},"application/vnd.zul":{source:"iana",extensions:["zir","zirz"]},"application/vnd.zzazz.deck+xml":{source:"iana",compressible:true,extensions:["zaz"]},"application/voicexml+xml":{source:"iana",compressible:true,extensions:["vxml"]},"application/voucher-cms+json":{source:"iana",compressible:true},"application/vq-rtcpxr":{source:"iana"},"application/wasm":{compressible:true,extensions:["wasm"]},"application/watcherinfo+xml":{source:"iana",compressible:true},"application/webpush-options+json":{source:"iana",compressible:true},"application/whoispp-query":{source:"iana"},"application/whoispp-response":{source:"iana"},"application/widget":{source:"iana",extensions:["wgt"]},"application/winhlp":{source:"apache",extensions:["hlp"]},"application/wita":{source:"iana"},"application/wordperfect5.1":{source:"iana"},"application/wsdl+xml":{source:"iana",compressible:true,extensions:["wsdl"]},"application/wspolicy+xml":{source:"iana",compressible:true,extensions:["wspolicy"]},"application/x-7z-compressed":{source:"apache",compressible:false,extensions:["7z"]},"application/x-abiword":{source:"apache",extensions:["abw"]},"application/x-ace-compressed":{source:"apache",extensions:["ace"]},"application/x-amf":{source:"apache"},"application/x-apple-diskimage":{source:"apache",extensions:["dmg"]},"application/x-arj":{compressible:false,extensions:["arj"]},"application/x-authorware-bin":{source:"apache",extensions:["aab","x32","u32","vox"]},"application/x-authorware-map":{source:"apache",extensions:["aam"]},"application/x-authorware-seg":{source:"apache",extensions:["aas"]},"application/x-bcpio":{source:"apache",extensions:["bcpio"]},"application/x-bdoc":{compressible:false,extensions:["bdoc"]},"application/x-bittorrent":{source:"apache",extensions:["torrent"]},"application/x-blorb":{source:"apache",extensions:["blb","blorb"]},"application/x-bzip":{source:"apache",compressible:false,extensions:["bz"]},"application/x-bzip2":{source:"apache",compressible:false,extensions:["bz2","boz"]},"application/x-cbr":{source:"apache",extensions:["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{source:"apache",extensions:["vcd"]},"application/x-cfs-compressed":{source:"apache",extensions:["cfs"]},"application/x-chat":{source:"apache",extensions:["chat"]},"application/x-chess-pgn":{source:"apache",extensions:["pgn"]},"application/x-chrome-extension":{extensions:["crx"]},"application/x-cocoa":{source:"nginx",extensions:["cco"]},"application/x-compress":{source:"apache"},"application/x-conference":{source:"apache",extensions:["nsc"]},"application/x-cpio":{source:"apache",extensions:["cpio"]},"application/x-csh":{source:"apache",extensions:["csh"]},"application/x-deb":{compressible:false},"application/x-debian-package":{source:"apache",extensions:["deb","udeb"]},"application/x-dgc-compressed":{source:"apache",extensions:["dgc"]},"application/x-director":{source:"apache",extensions:["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{source:"apache",extensions:["wad"]},"application/x-dtbncx+xml":{source:"apache",compressible:true,extensions:["ncx"]},"application/x-dtbook+xml":{source:"apache",compressible:true,extensions:["dtb"]},"application/x-dtbresource+xml":{source:"apache",compressible:true,extensions:["res"]},"application/x-dvi":{source:"apache",compressible:false,extensions:["dvi"]},"application/x-envoy":{source:"apache",extensions:["evy"]},"application/x-eva":{source:"apache",extensions:["eva"]},"application/x-font-bdf":{source:"apache",extensions:["bdf"]},"application/x-font-dos":{source:"apache"},"application/x-font-framemaker":{source:"apache"},"application/x-font-ghostscript":{source:"apache",extensions:["gsf"]},"application/x-font-libgrx":{source:"apache"},"application/x-font-linux-psf":{source:"apache",extensions:["psf"]},"application/x-font-pcf":{source:"apache",extensions:["pcf"]},"application/x-font-snf":{source:"apache",extensions:["snf"]},"application/x-font-speedo":{source:"apache"},"application/x-font-sunos-news":{source:"apache"},"application/x-font-type1":{source:"apache",extensions:["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{source:"apache"},"application/x-freearc":{source:"apache",extensions:["arc"]},"application/x-futuresplash":{source:"apache",extensions:["spl"]},"application/x-gca-compressed":{source:"apache",extensions:["gca"]},"application/x-glulx":{source:"apache",extensions:["ulx"]},"application/x-gnumeric":{source:"apache",extensions:["gnumeric"]},"application/x-gramps-xml":{source:"apache",extensions:["gramps"]},"application/x-gtar":{source:"apache",extensions:["gtar"]},"application/x-gzip":{source:"apache"},"application/x-hdf":{source:"apache",extensions:["hdf"]},"application/x-httpd-php":{compressible:true,extensions:["php"]},"application/x-install-instructions":{source:"apache",extensions:["install"]},"application/x-iso9660-image":{source:"apache",extensions:["iso"]},"application/x-java-archive-diff":{source:"nginx",extensions:["jardiff"]},"application/x-java-jnlp-file":{source:"apache",compressible:false,extensions:["jnlp"]},"application/x-javascript":{compressible:true},"application/x-keepass2":{extensions:["kdbx"]},"application/x-latex":{source:"apache",compressible:false,extensions:["latex"]},"application/x-lua-bytecode":{extensions:["luac"]},"application/x-lzh-compressed":{source:"apache",extensions:["lzh","lha"]},"application/x-makeself":{source:"nginx",extensions:["run"]},"application/x-mie":{source:"apache",extensions:["mie"]},"application/x-mobipocket-ebook":{source:"apache",extensions:["prc","mobi"]},"application/x-mpegurl":{compressible:false},"application/x-ms-application":{source:"apache",extensions:["application"]},"application/x-ms-shortcut":{source:"apache",extensions:["lnk"]},"application/x-ms-wmd":{source:"apache",extensions:["wmd"]},"application/x-ms-wmz":{source:"apache",extensions:["wmz"]},"application/x-ms-xbap":{source:"apache",extensions:["xbap"]},"application/x-msaccess":{source:"apache",extensions:["mdb"]},"application/x-msbinder":{source:"apache",extensions:["obd"]},"application/x-mscardfile":{source:"apache",extensions:["crd"]},"application/x-msclip":{source:"apache",extensions:["clp"]},"application/x-msdos-program":{extensions:["exe"]},"application/x-msdownload":{source:"apache",extensions:["exe","dll","com","bat","msi"]},"application/x-msmediaview":{source:"apache",extensions:["mvb","m13","m14"]},"application/x-msmetafile":{source:"apache",extensions:["wmf","wmz","emf","emz"]},"application/x-msmoney":{source:"apache",extensions:["mny"]},"application/x-mspublisher":{source:"apache",extensions:["pub"]},"application/x-msschedule":{source:"apache",extensions:["scd"]},"application/x-msterminal":{source:"apache",extensions:["trm"]},"application/x-mswrite":{source:"apache",extensions:["wri"]},"application/x-netcdf":{source:"apache",extensions:["nc","cdf"]},"application/x-ns-proxy-autoconfig":{compressible:true,extensions:["pac"]},"application/x-nzb":{source:"apache",extensions:["nzb"]},"application/x-perl":{source:"nginx",extensions:["pl","pm"]},"application/x-pilot":{source:"nginx",extensions:["prc","pdb"]},"application/x-pkcs12":{source:"apache",compressible:false,extensions:["p12","pfx"]},"application/x-pkcs7-certificates":{source:"apache",extensions:["p7b","spc"]},"application/x-pkcs7-certreqresp":{source:"apache",extensions:["p7r"]},"application/x-pki-message":{source:"iana"},"application/x-rar-compressed":{source:"apache",compressible:false,extensions:["rar"]},"application/x-redhat-package-manager":{source:"nginx",extensions:["rpm"]},"application/x-research-info-systems":{source:"apache",extensions:["ris"]},"application/x-sea":{source:"nginx",extensions:["sea"]},"application/x-sh":{source:"apache",compressible:true,extensions:["sh"]},"application/x-shar":{source:"apache",extensions:["shar"]},"application/x-shockwave-flash":{source:"apache",compressible:false,extensions:["swf"]},"application/x-silverlight-app":{source:"apache",extensions:["xap"]},"application/x-sql":{source:"apache",extensions:["sql"]},"application/x-stuffit":{source:"apache",compressible:false,extensions:["sit"]},"application/x-stuffitx":{source:"apache",extensions:["sitx"]},"application/x-subrip":{source:"apache",extensions:["srt"]},"application/x-sv4cpio":{source:"apache",extensions:["sv4cpio"]},"application/x-sv4crc":{source:"apache",extensions:["sv4crc"]},"application/x-t3vm-image":{source:"apache",extensions:["t3"]},"application/x-tads":{source:"apache",extensions:["gam"]},"application/x-tar":{source:"apache",compressible:true,extensions:["tar"]},"application/x-tcl":{source:"apache",extensions:["tcl","tk"]},"application/x-tex":{source:"apache",extensions:["tex"]},"application/x-tex-tfm":{source:"apache",extensions:["tfm"]},"application/x-texinfo":{source:"apache",extensions:["texinfo","texi"]},"application/x-tgif":{source:"apache",extensions:["obj"]},"application/x-ustar":{source:"apache",extensions:["ustar"]},"application/x-virtualbox-hdd":{compressible:true,extensions:["hdd"]},"application/x-virtualbox-ova":{compressible:true,extensions:["ova"]},"application/x-virtualbox-ovf":{compressible:true,extensions:["ovf"]},"application/x-virtualbox-vbox":{compressible:true,extensions:["vbox"]},"application/x-virtualbox-vbox-extpack":{compressible:false,extensions:["vbox-extpack"]},"application/x-virtualbox-vdi":{compressible:true,extensions:["vdi"]},"application/x-virtualbox-vhd":{compressible:true,extensions:["vhd"]},"application/x-virtualbox-vmdk":{compressible:true,extensions:["vmdk"]},"application/x-wais-source":{source:"apache",extensions:["src"]},"application/x-web-app-manifest+json":{compressible:true,extensions:["webapp"]},"application/x-www-form-urlencoded":{source:"iana",compressible:true},"application/x-x509-ca-cert":{source:"iana",extensions:["der","crt","pem"]},"application/x-x509-ca-ra-cert":{source:"iana"},"application/x-x509-next-ca-cert":{source:"iana"},"application/x-xfig":{source:"apache",extensions:["fig"]},"application/x-xliff+xml":{source:"apache",compressible:true,extensions:["xlf"]},"application/x-xpinstall":{source:"apache",compressible:false,extensions:["xpi"]},"application/x-xz":{source:"apache",extensions:["xz"]},"application/x-zmachine":{source:"apache",extensions:["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{source:"iana"},"application/xacml+xml":{source:"iana",compressible:true},"application/xaml+xml":{source:"apache",compressible:true,extensions:["xaml"]},"application/xcap-att+xml":{source:"iana",compressible:true,extensions:["xav"]},"application/xcap-caps+xml":{source:"iana",compressible:true,extensions:["xca"]},"application/xcap-diff+xml":{source:"iana",compressible:true,extensions:["xdf"]},"application/xcap-el+xml":{source:"iana",compressible:true,extensions:["xel"]},"application/xcap-error+xml":{source:"iana",compressible:true,extensions:["xer"]},"application/xcap-ns+xml":{source:"iana",compressible:true,extensions:["xns"]},"application/xcon-conference-info+xml":{source:"iana",compressible:true},"application/xcon-conference-info-diff+xml":{source:"iana",compressible:true},"application/xenc+xml":{source:"iana",compressible:true,extensions:["xenc"]},"application/xhtml+xml":{source:"iana",compressible:true,extensions:["xhtml","xht"]},"application/xhtml-voice+xml":{source:"apache",compressible:true},"application/xliff+xml":{source:"iana",compressible:true,extensions:["xlf"]},"application/xml":{source:"iana",compressible:true,extensions:["xml","xsl","xsd","rng"]},"application/xml-dtd":{source:"iana",compressible:true,extensions:["dtd"]},"application/xml-external-parsed-entity":{source:"iana"},"application/xml-patch+xml":{source:"iana",compressible:true},"application/xmpp+xml":{source:"iana",compressible:true},"application/xop+xml":{source:"iana",compressible:true,extensions:["xop"]},"application/xproc+xml":{source:"apache",compressible:true,extensions:["xpl"]},"application/xslt+xml":{source:"iana",compressible:true,extensions:["xslt"]},"application/xspf+xml":{source:"apache",compressible:true,extensions:["xspf"]},"application/xv+xml":{source:"iana",compressible:true,extensions:["mxml","xhvml","xvml","xvm"]},"application/yang":{source:"iana",extensions:["yang"]},"application/yang-data+json":{source:"iana",compressible:true},"application/yang-data+xml":{source:"iana",compressible:true},"application/yang-patch+json":{source:"iana",compressible:true},"application/yang-patch+xml":{source:"iana",compressible:true},"application/yin+xml":{source:"iana",compressible:true,extensions:["yin"]},"application/zip":{source:"iana",compressible:false,extensions:["zip"]},"application/zlib":{source:"iana"},"application/zstd":{source:"iana"},"audio/1d-interleaved-parityfec":{source:"iana"},"audio/32kadpcm":{source:"iana"},"audio/3gpp":{source:"iana",compressible:false,extensions:["3gpp"]},"audio/3gpp2":{source:"iana"},"audio/aac":{source:"iana"},"audio/ac3":{source:"iana"},"audio/adpcm":{source:"apache",extensions:["adp"]},"audio/amr":{source:"iana"},"audio/amr-wb":{source:"iana"},"audio/amr-wb+":{source:"iana"},"audio/aptx":{source:"iana"},"audio/asc":{source:"iana"},"audio/atrac-advanced-lossless":{source:"iana"},"audio/atrac-x":{source:"iana"},"audio/atrac3":{source:"iana"},"audio/basic":{source:"iana",compressible:false,extensions:["au","snd"]},"audio/bv16":{source:"iana"},"audio/bv32":{source:"iana"},"audio/clearmode":{source:"iana"},"audio/cn":{source:"iana"},"audio/dat12":{source:"iana"},"audio/dls":{source:"iana"},"audio/dsr-es201108":{source:"iana"},"audio/dsr-es202050":{source:"iana"},"audio/dsr-es202211":{source:"iana"},"audio/dsr-es202212":{source:"iana"},"audio/dv":{source:"iana"},"audio/dvi4":{source:"iana"},"audio/eac3":{source:"iana"},"audio/encaprtp":{source:"iana"},"audio/evrc":{source:"iana"},"audio/evrc-qcp":{source:"iana"},"audio/evrc0":{source:"iana"},"audio/evrc1":{source:"iana"},"audio/evrcb":{source:"iana"},"audio/evrcb0":{source:"iana"},"audio/evrcb1":{source:"iana"},"audio/evrcnw":{source:"iana"},"audio/evrcnw0":{source:"iana"},"audio/evrcnw1":{source:"iana"},"audio/evrcwb":{source:"iana"},"audio/evrcwb0":{source:"iana"},"audio/evrcwb1":{source:"iana"},"audio/evs":{source:"iana"},"audio/flexfec":{source:"iana"},"audio/fwdred":{source:"iana"},"audio/g711-0":{source:"iana"},"audio/g719":{source:"iana"},"audio/g722":{source:"iana"},"audio/g7221":{source:"iana"},"audio/g723":{source:"iana"},"audio/g726-16":{source:"iana"},"audio/g726-24":{source:"iana"},"audio/g726-32":{source:"iana"},"audio/g726-40":{source:"iana"},"audio/g728":{source:"iana"},"audio/g729":{source:"iana"},"audio/g7291":{source:"iana"},"audio/g729d":{source:"iana"},"audio/g729e":{source:"iana"},"audio/gsm":{source:"iana"},"audio/gsm-efr":{source:"iana"},"audio/gsm-hr-08":{source:"iana"},"audio/ilbc":{source:"iana"},"audio/ip-mr_v2.5":{source:"iana"},"audio/isac":{source:"apache"},"audio/l16":{source:"iana"},"audio/l20":{source:"iana"},"audio/l24":{source:"iana",compressible:false},"audio/l8":{source:"iana"},"audio/lpc":{source:"iana"},"audio/melp":{source:"iana"},"audio/melp1200":{source:"iana"},"audio/melp2400":{source:"iana"},"audio/melp600":{source:"iana"},"audio/mhas":{source:"iana"},"audio/midi":{source:"apache",extensions:["mid","midi","kar","rmi"]},"audio/mobile-xmf":{source:"iana",extensions:["mxmf"]},"audio/mp3":{compressible:false,extensions:["mp3"]},"audio/mp4":{source:"iana",compressible:false,extensions:["m4a","mp4a"]},"audio/mp4a-latm":{source:"iana"},"audio/mpa":{source:"iana"},"audio/mpa-robust":{source:"iana"},"audio/mpeg":{source:"iana",compressible:false,extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{source:"iana"},"audio/musepack":{source:"apache"},"audio/ogg":{source:"iana",compressible:false,extensions:["oga","ogg","spx"]},"audio/opus":{source:"iana"},"audio/parityfec":{source:"iana"},"audio/pcma":{source:"iana"},"audio/pcma-wb":{source:"iana"},"audio/pcmu":{source:"iana"},"audio/pcmu-wb":{source:"iana"},"audio/prs.sid":{source:"iana"},"audio/qcelp":{source:"iana"},"audio/raptorfec":{source:"iana"},"audio/red":{source:"iana"},"audio/rtp-enc-aescm128":{source:"iana"},"audio/rtp-midi":{source:"iana"},"audio/rtploopback":{source:"iana"},"audio/rtx":{source:"iana"},"audio/s3m":{source:"apache",extensions:["s3m"]},"audio/silk":{source:"apache",extensions:["sil"]},"audio/smv":{source:"iana"},"audio/smv-qcp":{source:"iana"},"audio/smv0":{source:"iana"},"audio/sp-midi":{source:"iana"},"audio/speex":{source:"iana"},"audio/t140c":{source:"iana"},"audio/t38":{source:"iana"},"audio/telephone-event":{source:"iana"},"audio/tetra_acelp":{source:"iana"},"audio/tetra_acelp_bb":{source:"iana"},"audio/tone":{source:"iana"},"audio/uemclip":{source:"iana"},"audio/ulpfec":{source:"iana"},"audio/usac":{source:"iana"},"audio/vdvi":{source:"iana"},"audio/vmr-wb":{source:"iana"},"audio/vnd.3gpp.iufp":{source:"iana"},"audio/vnd.4sb":{source:"iana"},"audio/vnd.audiokoz":{source:"iana"},"audio/vnd.celp":{source:"iana"},"audio/vnd.cisco.nse":{source:"iana"},"audio/vnd.cmles.radio-events":{source:"iana"},"audio/vnd.cns.anp1":{source:"iana"},"audio/vnd.cns.inf1":{source:"iana"},"audio/vnd.dece.audio":{source:"iana",extensions:["uva","uvva"]},"audio/vnd.digital-winds":{source:"iana",extensions:["eol"]},"audio/vnd.dlna.adts":{source:"iana"},"audio/vnd.dolby.heaac.1":{source:"iana"},"audio/vnd.dolby.heaac.2":{source:"iana"},"audio/vnd.dolby.mlp":{source:"iana"},"audio/vnd.dolby.mps":{source:"iana"},"audio/vnd.dolby.pl2":{source:"iana"},"audio/vnd.dolby.pl2x":{source:"iana"},"audio/vnd.dolby.pl2z":{source:"iana"},"audio/vnd.dolby.pulse.1":{source:"iana"},"audio/vnd.dra":{source:"iana",extensions:["dra"]},"audio/vnd.dts":{source:"iana",extensions:["dts"]},"audio/vnd.dts.hd":{source:"iana",extensions:["dtshd"]},"audio/vnd.dts.uhd":{source:"iana"},"audio/vnd.dvb.file":{source:"iana"},"audio/vnd.everad.plj":{source:"iana"},"audio/vnd.hns.audio":{source:"iana"},"audio/vnd.lucent.voice":{source:"iana",extensions:["lvp"]},"audio/vnd.ms-playready.media.pya":{source:"iana",extensions:["pya"]},"audio/vnd.nokia.mobile-xmf":{source:"iana"},"audio/vnd.nortel.vbk":{source:"iana"},"audio/vnd.nuera.ecelp4800":{source:"iana",extensions:["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{source:"iana",extensions:["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{source:"iana",extensions:["ecelp9600"]},"audio/vnd.octel.sbc":{source:"iana"},"audio/vnd.presonus.multitrack":{source:"iana"},"audio/vnd.qcelp":{source:"iana"},"audio/vnd.rhetorex.32kadpcm":{source:"iana"},"audio/vnd.rip":{source:"iana",extensions:["rip"]},"audio/vnd.rn-realaudio":{compressible:false},"audio/vnd.sealedmedia.softseal.mpeg":{source:"iana"},"audio/vnd.vmx.cvsd":{source:"iana"},"audio/vnd.wave":{compressible:false},"audio/vorbis":{source:"iana",compressible:false},"audio/vorbis-config":{source:"iana"},"audio/wav":{compressible:false,extensions:["wav"]},"audio/wave":{compressible:false,extensions:["wav"]},"audio/webm":{source:"apache",compressible:false,extensions:["weba"]},"audio/x-aac":{source:"apache",compressible:false,extensions:["aac"]},"audio/x-aiff":{source:"apache",extensions:["aif","aiff","aifc"]},"audio/x-caf":{source:"apache",compressible:false,extensions:["caf"]},"audio/x-flac":{source:"apache",extensions:["flac"]},"audio/x-m4a":{source:"nginx",extensions:["m4a"]},"audio/x-matroska":{source:"apache",extensions:["mka"]},"audio/x-mpegurl":{source:"apache",extensions:["m3u"]},"audio/x-ms-wax":{source:"apache",extensions:["wax"]},"audio/x-ms-wma":{source:"apache",extensions:["wma"]},"audio/x-pn-realaudio":{source:"apache",extensions:["ram","ra"]},"audio/x-pn-realaudio-plugin":{source:"apache",extensions:["rmp"]},"audio/x-realaudio":{source:"nginx",extensions:["ra"]},"audio/x-tta":{source:"apache"},"audio/x-wav":{source:"apache",extensions:["wav"]},"audio/xm":{source:"apache",extensions:["xm"]},"chemical/x-cdx":{source:"apache",extensions:["cdx"]},"chemical/x-cif":{source:"apache",extensions:["cif"]},"chemical/x-cmdf":{source:"apache",extensions:["cmdf"]},"chemical/x-cml":{source:"apache",extensions:["cml"]},"chemical/x-csml":{source:"apache",extensions:["csml"]},"chemical/x-pdb":{source:"apache"},"chemical/x-xyz":{source:"apache",extensions:["xyz"]},"font/collection":{source:"iana",extensions:["ttc"]},"font/otf":{source:"iana",compressible:true,extensions:["otf"]},"font/sfnt":{source:"iana"},"font/ttf":{source:"iana",compressible:true,extensions:["ttf"]},"font/woff":{source:"iana",extensions:["woff"]},"font/woff2":{source:"iana",extensions:["woff2"]},"image/aces":{source:"iana",extensions:["exr"]},"image/apng":{compressible:false,extensions:["apng"]},"image/avci":{source:"iana"},"image/avcs":{source:"iana"},"image/bmp":{source:"iana",compressible:true,extensions:["bmp"]},"image/cgm":{source:"iana",extensions:["cgm"]},"image/dicom-rle":{source:"iana",extensions:["drle"]},"image/emf":{source:"iana",extensions:["emf"]},"image/fits":{source:"iana",extensions:["fits"]},"image/g3fax":{source:"iana",extensions:["g3"]},"image/gif":{source:"iana",compressible:false,extensions:["gif"]},"image/heic":{source:"iana",extensions:["heic"]},"image/heic-sequence":{source:"iana",extensions:["heics"]},"image/heif":{source:"iana",extensions:["heif"]},"image/heif-sequence":{source:"iana",extensions:["heifs"]},"image/hej2k":{source:"iana",extensions:["hej2"]},"image/hsj2":{source:"iana",extensions:["hsj2"]},"image/ief":{source:"iana",extensions:["ief"]},"image/jls":{source:"iana",extensions:["jls"]},"image/jp2":{source:"iana",compressible:false,extensions:["jp2","jpg2"]},"image/jpeg":{source:"iana",compressible:false,extensions:["jpeg","jpg","jpe"]},"image/jph":{source:"iana",extensions:["jph"]},"image/jphc":{source:"iana",extensions:["jhc"]},"image/jpm":{source:"iana",compressible:false,extensions:["jpm"]},"image/jpx":{source:"iana",compressible:false,extensions:["jpx","jpf"]},"image/jxr":{source:"iana",extensions:["jxr"]},"image/jxra":{source:"iana",extensions:["jxra"]},"image/jxrs":{source:"iana",extensions:["jxrs"]},"image/jxs":{source:"iana",extensions:["jxs"]},"image/jxsc":{source:"iana",extensions:["jxsc"]},"image/jxsi":{source:"iana",extensions:["jxsi"]},"image/jxss":{source:"iana",extensions:["jxss"]},"image/ktx":{source:"iana",extensions:["ktx"]},"image/naplps":{source:"iana"},"image/pjpeg":{compressible:false},"image/png":{source:"iana",compressible:false,extensions:["png"]},"image/prs.btif":{source:"iana",extensions:["btif"]},"image/prs.pti":{source:"iana",extensions:["pti"]},"image/pwg-raster":{source:"iana"},"image/sgi":{source:"apache",extensions:["sgi"]},"image/svg+xml":{source:"iana",compressible:true,extensions:["svg","svgz"]},"image/t38":{source:"iana",extensions:["t38"]},"image/tiff":{source:"iana",compressible:false,extensions:["tif","tiff"]},"image/tiff-fx":{source:"iana",extensions:["tfx"]},"image/vnd.adobe.photoshop":{source:"iana",compressible:true,extensions:["psd"]},"image/vnd.airzip.accelerator.azv":{source:"iana",extensions:["azv"]},"image/vnd.cns.inf2":{source:"iana"},"image/vnd.dece.graphic":{source:"iana",extensions:["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{source:"iana",extensions:["djvu","djv"]},"image/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"image/vnd.dwg":{source:"iana",extensions:["dwg"]},"image/vnd.dxf":{source:"iana",extensions:["dxf"]},"image/vnd.fastbidsheet":{source:"iana",extensions:["fbs"]},"image/vnd.fpx":{source:"iana",extensions:["fpx"]},"image/vnd.fst":{source:"iana",extensions:["fst"]},"image/vnd.fujixerox.edmics-mmr":{source:"iana",extensions:["mmr"]},"image/vnd.fujixerox.edmics-rlc":{source:"iana",extensions:["rlc"]},"image/vnd.globalgraphics.pgb":{source:"iana"},"image/vnd.microsoft.icon":{source:"iana",extensions:["ico"]},"image/vnd.mix":{source:"iana"},"image/vnd.mozilla.apng":{source:"iana"},"image/vnd.ms-dds":{extensions:["dds"]},"image/vnd.ms-modi":{source:"iana",extensions:["mdi"]},"image/vnd.ms-photo":{source:"apache",extensions:["wdp"]},"image/vnd.net-fpx":{source:"iana",extensions:["npx"]},"image/vnd.radiance":{source:"iana"},"image/vnd.sealed.png":{source:"iana"},"image/vnd.sealedmedia.softseal.gif":{source:"iana"},"image/vnd.sealedmedia.softseal.jpg":{source:"iana"},"image/vnd.svf":{source:"iana"},"image/vnd.tencent.tap":{source:"iana",extensions:["tap"]},"image/vnd.valve.source.texture":{source:"iana",extensions:["vtf"]},"image/vnd.wap.wbmp":{source:"iana",extensions:["wbmp"]},"image/vnd.xiff":{source:"iana",extensions:["xif"]},"image/vnd.zbrush.pcx":{source:"iana",extensions:["pcx"]},"image/webp":{source:"apache",extensions:["webp"]},"image/wmf":{source:"iana",extensions:["wmf"]},"image/x-3ds":{source:"apache",extensions:["3ds"]},"image/x-cmu-raster":{source:"apache",extensions:["ras"]},"image/x-cmx":{source:"apache",extensions:["cmx"]},"image/x-freehand":{source:"apache",extensions:["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{source:"apache",compressible:true,extensions:["ico"]},"image/x-jng":{source:"nginx",extensions:["jng"]},"image/x-mrsid-image":{source:"apache",extensions:["sid"]},"image/x-ms-bmp":{source:"nginx",compressible:true,extensions:["bmp"]},"image/x-pcx":{source:"apache",extensions:["pcx"]},"image/x-pict":{source:"apache",extensions:["pic","pct"]},"image/x-portable-anymap":{source:"apache",extensions:["pnm"]},"image/x-portable-bitmap":{source:"apache",extensions:["pbm"]},"image/x-portable-graymap":{source:"apache",extensions:["pgm"]},"image/x-portable-pixmap":{source:"apache",extensions:["ppm"]},"image/x-rgb":{source:"apache",extensions:["rgb"]},"image/x-tga":{source:"apache",extensions:["tga"]},"image/x-xbitmap":{source:"apache",extensions:["xbm"]},"image/x-xcf":{compressible:false},"image/x-xpixmap":{source:"apache",extensions:["xpm"]},"image/x-xwindowdump":{source:"apache",extensions:["xwd"]},"message/cpim":{source:"iana"},"message/delivery-status":{source:"iana"},"message/disposition-notification":{source:"iana",extensions:["disposition-notification"]},"message/external-body":{source:"iana"},"message/feedback-report":{source:"iana"},"message/global":{source:"iana",extensions:["u8msg"]},"message/global-delivery-status":{source:"iana",extensions:["u8dsn"]},"message/global-disposition-notification":{source:"iana",extensions:["u8mdn"]},"message/global-headers":{source:"iana",extensions:["u8hdr"]},"message/http":{source:"iana",compressible:false},"message/imdn+xml":{source:"iana",compressible:true},"message/news":{source:"iana"},"message/partial":{source:"iana",compressible:false},"message/rfc822":{source:"iana",compressible:true,extensions:["eml","mime"]},"message/s-http":{source:"iana"},"message/sip":{source:"iana"},"message/sipfrag":{source:"iana"},"message/tracking-status":{source:"iana"},"message/vnd.si.simp":{source:"iana"},"message/vnd.wfa.wsc":{source:"iana",extensions:["wsc"]},"model/3mf":{source:"iana",extensions:["3mf"]},"model/gltf+json":{source:"iana",compressible:true,extensions:["gltf"]},"model/gltf-binary":{source:"iana",compressible:true,extensions:["glb"]},"model/iges":{source:"iana",compressible:false,extensions:["igs","iges"]},"model/mesh":{source:"iana",compressible:false,extensions:["msh","mesh","silo"]},"model/mtl":{source:"iana",extensions:["mtl"]},"model/obj":{source:"iana",extensions:["obj"]},"model/stl":{source:"iana",extensions:["stl"]},"model/vnd.collada+xml":{source:"iana",compressible:true,extensions:["dae"]},"model/vnd.dwf":{source:"iana",extensions:["dwf"]},"model/vnd.flatland.3dml":{source:"iana"},"model/vnd.gdl":{source:"iana",extensions:["gdl"]},"model/vnd.gs-gdl":{source:"apache"},"model/vnd.gs.gdl":{source:"iana"},"model/vnd.gtw":{source:"iana",extensions:["gtw"]},"model/vnd.moml+xml":{source:"iana",compressible:true},"model/vnd.mts":{source:"iana",extensions:["mts"]},"model/vnd.opengex":{source:"iana",extensions:["ogex"]},"model/vnd.parasolid.transmit.binary":{source:"iana",extensions:["x_b"]},"model/vnd.parasolid.transmit.text":{source:"iana",extensions:["x_t"]},"model/vnd.rosette.annotated-data-model":{source:"iana"},"model/vnd.usdz+zip":{source:"iana",compressible:false,extensions:["usdz"]},"model/vnd.valve.source.compiled-map":{source:"iana",extensions:["bsp"]},"model/vnd.vtu":{source:"iana",extensions:["vtu"]},"model/vrml":{source:"iana",compressible:false,extensions:["wrl","vrml"]},"model/x3d+binary":{source:"apache",compressible:false,extensions:["x3db","x3dbz"]},"model/x3d+fastinfoset":{source:"iana",extensions:["x3db"]},"model/x3d+vrml":{source:"apache",compressible:false,extensions:["x3dv","x3dvz"]},"model/x3d+xml":{source:"iana",compressible:true,extensions:["x3d","x3dz"]},"model/x3d-vrml":{source:"iana",extensions:["x3dv"]},"multipart/alternative":{source:"iana",compressible:false},"multipart/appledouble":{source:"iana"},"multipart/byteranges":{source:"iana"},"multipart/digest":{source:"iana"},"multipart/encrypted":{source:"iana",compressible:false},"multipart/form-data":{source:"iana",compressible:false},"multipart/header-set":{source:"iana"},"multipart/mixed":{source:"iana"},"multipart/multilingual":{source:"iana"},"multipart/parallel":{source:"iana"},"multipart/related":{source:"iana",compressible:false},"multipart/report":{source:"iana"},"multipart/signed":{source:"iana",compressible:false},"multipart/vnd.bint.med-plus":{source:"iana"},"multipart/voice-message":{source:"iana"},"multipart/x-mixed-replace":{source:"iana"},"text/1d-interleaved-parityfec":{source:"iana"},"text/cache-manifest":{source:"iana",compressible:true,extensions:["appcache","manifest"]},"text/calendar":{source:"iana",extensions:["ics","ifb"]},"text/calender":{compressible:true},"text/cmd":{compressible:true},"text/coffeescript":{extensions:["coffee","litcoffee"]},"text/css":{source:"iana",charset:"UTF-8",compressible:true,extensions:["css"]},"text/csv":{source:"iana",compressible:true,extensions:["csv"]},"text/csv-schema":{source:"iana"},"text/directory":{source:"iana"},"text/dns":{source:"iana"},"text/ecmascript":{source:"iana"},"text/encaprtp":{source:"iana"},"text/enriched":{source:"iana"},"text/flexfec":{source:"iana"},"text/fwdred":{source:"iana"},"text/grammar-ref-list":{source:"iana"},"text/html":{source:"iana",compressible:true,extensions:["html","htm","shtml"]},"text/jade":{extensions:["jade"]},"text/javascript":{source:"iana",compressible:true},"text/jcr-cnd":{source:"iana"},"text/jsx":{compressible:true,extensions:["jsx"]},"text/less":{compressible:true,extensions:["less"]},"text/markdown":{source:"iana",compressible:true,extensions:["markdown","md"]},"text/mathml":{source:"nginx",extensions:["mml"]},"text/mdx":{compressible:true,extensions:["mdx"]},"text/mizar":{source:"iana"},"text/n3":{source:"iana",charset:"UTF-8",compressible:true,extensions:["n3"]},"text/parameters":{source:"iana",charset:"UTF-8"},"text/parityfec":{source:"iana"},"text/plain":{source:"iana",compressible:true,extensions:["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{source:"iana",charset:"UTF-8"},"text/prs.fallenstein.rst":{source:"iana"},"text/prs.lines.tag":{source:"iana",extensions:["dsc"]},"text/prs.prop.logic":{source:"iana"},"text/raptorfec":{source:"iana"},"text/red":{source:"iana"},"text/rfc822-headers":{source:"iana"},"text/richtext":{source:"iana",compressible:true,extensions:["rtx"]},"text/rtf":{source:"iana",compressible:true,extensions:["rtf"]},"text/rtp-enc-aescm128":{source:"iana"},"text/rtploopback":{source:"iana"},"text/rtx":{source:"iana"},"text/sgml":{source:"iana",extensions:["sgml","sgm"]},"text/shex":{extensions:["shex"]},"text/slim":{extensions:["slim","slm"]},"text/strings":{source:"iana"},"text/stylus":{extensions:["stylus","styl"]},"text/t140":{source:"iana"},"text/tab-separated-values":{source:"iana",compressible:true,extensions:["tsv"]},"text/troff":{source:"iana",extensions:["t","tr","roff","man","me","ms"]},"text/turtle":{source:"iana",charset:"UTF-8",extensions:["ttl"]},"text/ulpfec":{source:"iana"},"text/uri-list":{source:"iana",compressible:true,extensions:["uri","uris","urls"]},"text/vcard":{source:"iana",compressible:true,extensions:["vcard"]},"text/vnd.a":{source:"iana"},"text/vnd.abc":{source:"iana"},"text/vnd.ascii-art":{source:"iana"},"text/vnd.curl":{source:"iana",extensions:["curl"]},"text/vnd.curl.dcurl":{source:"apache",extensions:["dcurl"]},"text/vnd.curl.mcurl":{source:"apache",extensions:["mcurl"]},"text/vnd.curl.scurl":{source:"apache",extensions:["scurl"]},"text/vnd.debian.copyright":{source:"iana",charset:"UTF-8"},"text/vnd.dmclientscript":{source:"iana"},"text/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"text/vnd.esmertec.theme-descriptor":{source:"iana",charset:"UTF-8"},"text/vnd.ficlab.flt":{source:"iana"},"text/vnd.fly":{source:"iana",extensions:["fly"]},"text/vnd.fmi.flexstor":{source:"iana",extensions:["flx"]},"text/vnd.gml":{source:"iana"},"text/vnd.graphviz":{source:"iana",extensions:["gv"]},"text/vnd.hgl":{source:"iana"},"text/vnd.in3d.3dml":{source:"iana",extensions:["3dml"]},"text/vnd.in3d.spot":{source:"iana",extensions:["spot"]},"text/vnd.iptc.newsml":{source:"iana"},"text/vnd.iptc.nitf":{source:"iana"},"text/vnd.latex-z":{source:"iana"},"text/vnd.motorola.reflex":{source:"iana"},"text/vnd.ms-mediapackage":{source:"iana"},"text/vnd.net2phone.commcenter.command":{source:"iana"},"text/vnd.radisys.msml-basic-layout":{source:"iana"},"text/vnd.senx.warpscript":{source:"iana"},"text/vnd.si.uricatalogue":{source:"iana"},"text/vnd.sosi":{source:"iana"},"text/vnd.sun.j2me.app-descriptor":{source:"iana",charset:"UTF-8",extensions:["jad"]},"text/vnd.trolltech.linguist":{source:"iana",charset:"UTF-8"},"text/vnd.wap.si":{source:"iana"},"text/vnd.wap.sl":{source:"iana"},"text/vnd.wap.wml":{source:"iana",extensions:["wml"]},"text/vnd.wap.wmlscript":{source:"iana",extensions:["wmls"]},"text/vtt":{source:"iana",charset:"UTF-8",compressible:true,extensions:["vtt"]},"text/x-asm":{source:"apache",extensions:["s","asm"]},"text/x-c":{source:"apache",extensions:["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{source:"nginx",extensions:["htc"]},"text/x-fortran":{source:"apache",extensions:["f","for","f77","f90"]},"text/x-gwt-rpc":{compressible:true},"text/x-handlebars-template":{extensions:["hbs"]},"text/x-java-source":{source:"apache",extensions:["java"]},"text/x-jquery-tmpl":{compressible:true},"text/x-lua":{extensions:["lua"]},"text/x-markdown":{compressible:true,extensions:["mkd"]},"text/x-nfo":{source:"apache",extensions:["nfo"]},"text/x-opml":{source:"apache",extensions:["opml"]},"text/x-org":{compressible:true,extensions:["org"]},"text/x-pascal":{source:"apache",extensions:["p","pas"]},"text/x-processing":{compressible:true,extensions:["pde"]},"text/x-sass":{extensions:["sass"]},"text/x-scss":{extensions:["scss"]},"text/x-setext":{source:"apache",extensions:["etx"]},"text/x-sfv":{source:"apache",extensions:["sfv"]},"text/x-suse-ymp":{compressible:true,extensions:["ymp"]},"text/x-uuencode":{source:"apache",extensions:["uu"]},"text/x-vcalendar":{source:"apache",extensions:["vcs"]},"text/x-vcard":{source:"apache",extensions:["vcf"]},"text/xml":{source:"iana",compressible:true,extensions:["xml"]},"text/xml-external-parsed-entity":{source:"iana"},"text/yaml":{extensions:["yaml","yml"]},"video/1d-interleaved-parityfec":{source:"iana"},"video/3gpp":{source:"iana",extensions:["3gp","3gpp"]},"video/3gpp-tt":{source:"iana"},"video/3gpp2":{source:"iana",extensions:["3g2"]},"video/bmpeg":{source:"iana"},"video/bt656":{source:"iana"},"video/celb":{source:"iana"},"video/dv":{source:"iana"},"video/encaprtp":{source:"iana"},"video/flexfec":{source:"iana"},"video/h261":{source:"iana",extensions:["h261"]},"video/h263":{source:"iana",extensions:["h263"]},"video/h263-1998":{source:"iana"},"video/h263-2000":{source:"iana"},"video/h264":{source:"iana",extensions:["h264"]},"video/h264-rcdo":{source:"iana"},"video/h264-svc":{source:"iana"},"video/h265":{source:"iana"},"video/iso.segment":{source:"iana"},"video/jpeg":{source:"iana",extensions:["jpgv"]},"video/jpeg2000":{source:"iana"},"video/jpm":{source:"apache",extensions:["jpm","jpgm"]},"video/mj2":{source:"iana",extensions:["mj2","mjp2"]},"video/mp1s":{source:"iana"},"video/mp2p":{source:"iana"},"video/mp2t":{source:"iana",extensions:["ts"]},"video/mp4":{source:"iana",compressible:false,extensions:["mp4","mp4v","mpg4"]},"video/mp4v-es":{source:"iana"},"video/mpeg":{source:"iana",compressible:false,extensions:["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{source:"iana"},"video/mpv":{source:"iana"},"video/nv":{source:"iana"},"video/ogg":{source:"iana",compressible:false,extensions:["ogv"]},"video/parityfec":{source:"iana"},"video/pointer":{source:"iana"},"video/quicktime":{source:"iana",compressible:false,extensions:["qt","mov"]},"video/raptorfec":{source:"iana"},"video/raw":{source:"iana"},"video/rtp-enc-aescm128":{source:"iana"},"video/rtploopback":{source:"iana"},"video/rtx":{source:"iana"},"video/smpte291":{source:"iana"},"video/smpte292m":{source:"iana"},"video/ulpfec":{source:"iana"},"video/vc1":{source:"iana"},"video/vc2":{source:"iana"},"video/vnd.cctv":{source:"iana"},"video/vnd.dece.hd":{source:"iana",extensions:["uvh","uvvh"]},"video/vnd.dece.mobile":{source:"iana",extensions:["uvm","uvvm"]},"video/vnd.dece.mp4":{source:"iana"},"video/vnd.dece.pd":{source:"iana",extensions:["uvp","uvvp"]},"video/vnd.dece.sd":{source:"iana",extensions:["uvs","uvvs"]},"video/vnd.dece.video":{source:"iana",extensions:["uvv","uvvv"]},"video/vnd.directv.mpeg":{source:"iana"},"video/vnd.directv.mpeg-tts":{source:"iana"},"video/vnd.dlna.mpeg-tts":{source:"iana"},"video/vnd.dvb.file":{source:"iana",extensions:["dvb"]},"video/vnd.fvt":{source:"iana",extensions:["fvt"]},"video/vnd.hns.video":{source:"iana"},"video/vnd.iptvforum.1dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.1dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.2dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.2dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.ttsavc":{source:"iana"},"video/vnd.iptvforum.ttsmpeg2":{source:"iana"},"video/vnd.motorola.video":{source:"iana"},"video/vnd.motorola.videop":{source:"iana"},"video/vnd.mpegurl":{source:"iana",extensions:["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{source:"iana",extensions:["pyv"]},"video/vnd.nokia.interleaved-multimedia":{source:"iana"},"video/vnd.nokia.mp4vr":{source:"iana"},"video/vnd.nokia.videovoip":{source:"iana"},"video/vnd.objectvideo":{source:"iana"},"video/vnd.radgamettools.bink":{source:"iana"},"video/vnd.radgamettools.smacker":{source:"iana"},"video/vnd.sealed.mpeg1":{source:"iana"},"video/vnd.sealed.mpeg4":{source:"iana"},"video/vnd.sealed.swf":{source:"iana"},"video/vnd.sealedmedia.softseal.mov":{source:"iana"},"video/vnd.uvvu.mp4":{source:"iana",extensions:["uvu","uvvu"]},"video/vnd.vivo":{source:"iana",extensions:["viv"]},"video/vnd.youtube.yt":{source:"iana"},"video/vp8":{source:"iana"},"video/webm":{source:"apache",compressible:false,extensions:["webm"]},"video/x-f4v":{source:"apache",extensions:["f4v"]},"video/x-fli":{source:"apache",extensions:["fli"]},"video/x-flv":{source:"apache",compressible:false,extensions:["flv"]},"video/x-m4v":{source:"apache",extensions:["m4v"]},"video/x-matroska":{source:"apache",compressible:false,extensions:["mkv","mk3d","mks"]},"video/x-mng":{source:"apache",extensions:["mng"]},"video/x-ms-asf":{source:"apache",extensions:["asf","asx"]},"video/x-ms-vob":{source:"apache",extensions:["vob"]},"video/x-ms-wm":{source:"apache",extensions:["wm"]},"video/x-ms-wmv":{source:"apache",compressible:false,extensions:["wmv"]},"video/x-ms-wmx":{source:"apache",extensions:["wmx"]},"video/x-ms-wvx":{source:"apache",extensions:["wvx"]},"video/x-msvideo":{source:"apache",extensions:["avi"]},"video/x-sgi-movie":{source:"apache",extensions:["movie"]},"video/x-smv":{source:"apache",extensions:["smv"]},"x-conference/x-cooltalk":{source:"apache",extensions:["ice"]},"x-shader/x-fragment":{compressible:true},"x-shader/x-vertex":{compressible:true}}},,function(e,t,i){"use strict";var n=i(805),a=i(862),r=i(366),s=i(955),o=i(156),u=i(881),l=i(496),c=i(628),d=i(855);e.exports=Ajv;Ajv.prototype.validate=validate;Ajv.prototype.compile=compile;Ajv.prototype.addSchema=addSchema;Ajv.prototype.addMetaSchema=addMetaSchema;Ajv.prototype.validateSchema=validateSchema;Ajv.prototype.getSchema=getSchema;Ajv.prototype.removeSchema=removeSchema;Ajv.prototype.addFormat=addFormat;Ajv.prototype.errorsText=errorsText;Ajv.prototype._addSchema=_addSchema;Ajv.prototype._compile=_compile;Ajv.prototype.compileAsync=i(559);var p=i(45);Ajv.prototype.addKeyword=p.add;Ajv.prototype.getKeyword=p.get;Ajv.prototype.removeKeyword=p.remove;Ajv.prototype.validateKeyword=p.validate;var f=i(844);Ajv.ValidationError=f.Validation;Ajv.MissingRefError=f.MissingRef;Ajv.$dataMetaSchema=c;var h="http://json-schema.org/draft-07/schema";var m=["removeAdditional","useDefaults","coerceTypes","strictDefaults"];var b=["/properties"];function Ajv(e){if(!(this instanceof Ajv))return new Ajv(e);e=this._opts=d.copy(e)||{};setLogger(this);this._schemas={};this._refs={};this._fragments={};this._formats=u(e.format);this._cache=e.cache||new r;this._loadingSchemas={};this._compilations=[];this.RULES=l();this._getId=chooseGetId(e);e.loopRequired=e.loopRequired||Infinity;if(e.errorDataPath=="property")e._errorDataPathProperty=true;if(e.serialize===undefined)e.serialize=o;this._metaOpts=getMetaSchemaOptions(this);if(e.formats)addInitialFormats(this);if(e.keywords)addInitialKeywords(this);addDefaultMetaSchema(this);if(typeof e.meta=="object")this.addMetaSchema(e.meta);if(e.nullable)this.addKeyword("nullable",{metaSchema:{type:"boolean"}});addInitialSchemas(this)}function validate(e,t){var i;if(typeof e=="string"){i=this.getSchema(e);if(!i)throw new Error('no schema with key or ref "'+e+'"')}else{var n=this._addSchema(e);i=n.validate||this._compile(n)}var a=i(t);if(i.$async!==true)this.errors=i.errors;return a}function compile(e,t){var i=this._addSchema(e,undefined,t);return i.validate||this._compile(i)}function addSchema(e,t,i,n){if(Array.isArray(e)){for(var r=0;rtypeof e!=="string"||e.length===0;e.exports.isNotString=t;e.exports.isString=function isString(e,i,n,a,r=false){if(r&&i===undefined){throw new e(`${n} is missing`,a,"missing")}if(i!==undefined&&t(i)){throw new e(`${n} must be a string`,a,"invalid")}}},function(e,t,i){"use strict";var n=i(750);function getPublicSuffix(e){return n.get(e)}t.getPublicSuffix=getPublicSuffix},,,function(e){e.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:true,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:true,readOnly:{type:"boolean",default:false},examples:{type:"array",items:true},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:true},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:false},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:true,enum:{type:"array",items:true,minItems:1,uniqueItems:true},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:true}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:true}},function(e,t,i){"use strict";const{URL:n,URLSearchParams:a}=i(835);const r=i(835);const s=i(534);const o=i(173);const u=i(86);const l=i(435);const c=i(504);const d=i(821);const p=i(433);const f=new Set([413,429,503]);const h=(e,t)=>{if(s.nullOrUndefined(e.headers)){e.headers={}}else{e.headers=u(e.headers)}if(e.baseUrl&&!e.baseUrl.toString().endsWith("/")){e.baseUrl+="/"}if(e.stream){e.json=false}if(s.nullOrUndefined(e.hooks)){e.hooks={}}else if(!s.object(e.hooks)){throw new TypeError(`Parameter \`hooks\` must be an object, not ${s(e.hooks)}`)}for(const i of p){if(s.nullOrUndefined(e.hooks[i])){if(t){e.hooks[i]=[...t.hooks[i]]}else{e.hooks[i]=[]}}}if(s.number(e.timeout)){e.gotTimeout={request:e.timeout}}else if(s.object(e.timeout)){e.gotTimeout=e.timeout}delete e.timeout;const{retry:i}=e;e.retry={retries:0,methods:[],statusCodes:[],errorCodes:[]};if(s.nonEmptyObject(t)&&i!==false){e.retry={...t.retry}}if(i!==false){if(s.number(i)){e.retry.retries=i}else{e.retry={...e.retry,...i}}}if(e.gotTimeout){e.retry.maxRetryAfter=Math.min(...[e.gotTimeout.request,e.gotTimeout.connection].filter(e=>!s.nullOrUndefined(e)))}if(s.array(e.retry.methods)){e.retry.methods=new Set(e.retry.methods.map(e=>e.toUpperCase()))}if(s.array(e.retry.statusCodes)){e.retry.statusCodes=new Set(e.retry.statusCodes)}if(s.array(e.retry.errorCodes)){e.retry.errorCodes=new Set(e.retry.errorCodes)}return e};const m=(e,t,i)=>{if(s.plainObject(e)){t={...e,...t};e=t.url||{};delete t.url}if(i){t=d({},i.options,t?h(t,i.options):{})}else{t=d({},h(t))}if(!s.string(e)&&!s.object(e)){throw new TypeError(`Parameter \`url\` must be a string or object, not ${s(e)}`)}if(s.string(e)){if(t.baseUrl){if(e.toString().startsWith("/")){e=e.toString().slice(1)}e=l(new n(e,t.baseUrl))}else{e=e.replace(/^unix:/,"http://$&");e=o(e)}}else if(s(e)==="URL"){e=l(e)}t=d({path:""},e,{protocol:e.protocol||"https:"},t);for(const e of t.hooks.init){const i=e(t);if(s.promise(i)){throw new TypeError("The `init` hook must be a synchronous function")}}const{baseUrl:r}=t;Object.defineProperty(t,"baseUrl",{set:()=>{throw new Error("Failed to set baseUrl. Options are normalized already.")},get:()=>r});const{query:u}=t;if(s.nonEmptyString(u)||s.nonEmptyObject(u)||u instanceof a){if(!s.string(u)){t.query=new a(u).toString()}t.path=`${t.path.split("?")[0]}?${t.query}`;delete t.query}if(t.hostname==="unix"){const e=/(.+?):(.+)/.exec(t.path);if(e){const[,i,n]=e;t={...t,socketPath:i,path:n,host:null}}}const{headers:p}=t;for(const[e,t]of Object.entries(p)){if(s.nullOrUndefined(t)){delete p[e]}}if(t.json&&s.undefined(p.accept)){p.accept="application/json"}if(t.decompress&&s.undefined(p["accept-encoding"])){p["accept-encoding"]="gzip, deflate"}const{body:m}=t;if(s.nullOrUndefined(m)){t.method=t.method?t.method.toUpperCase():"GET"}else{const e=s.object(m)&&!s.buffer(m)&&!s.nodeStream(m);if(!s.nodeStream(m)&&!s.string(m)&&!s.buffer(m)&&!(t.form||t.json)){throw new TypeError("The `body` option must be a stream.Readable, string or Buffer")}if(t.json&&!(e||s.array(m))){throw new TypeError("The `body` option must be an Object or Array when the `json` option is used")}if(t.form&&!e){throw new TypeError("The `body` option must be an Object when the `form` option is used")}if(c(m)){p["content-type"]=p["content-type"]||`multipart/form-data; boundary=${m.getBoundary()}`}else if(t.form){p["content-type"]=p["content-type"]||"application/x-www-form-urlencoded";t.body=new a(m).toString()}else if(t.json){p["content-type"]=p["content-type"]||"application/json";t.body=JSON.stringify(m)}t.method=t.method?t.method.toUpperCase():"POST"}if(!s.function(t.retry.retries)){const{retries:e}=t.retry;t.retry.retries=((i,n)=>{if(i>e){return 0}if((!n||!t.retry.errorCodes.has(n.code))&&(!t.retry.methods.has(n.method)||!t.retry.statusCodes.has(n.statusCode))){return 0}if(Reflect.has(n,"headers")&&Reflect.has(n.headers,"retry-after")&&f.has(n.statusCode)){let e=Number(n.headers["retry-after"]);if(s.nan(e)){e=Date.parse(n.headers["retry-after"])-Date.now()}else{e*=1e3}if(e>t.retry.maxRetryAfter){return 0}return e}if(n.statusCode===413){return 0}const a=Math.random()*100;return 2**(i-1)*1e3+a})}return t};const b=e=>m(r.format(e),e);e.exports=m;e.exports.preNormalize=h;e.exports.reNormalize=b},,function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=i(422);const a=i(191);const r=i(105);const s=i(131);class Exec{constructor(e,t){if(t){this.handler=t}else{this.handler=new s.WebSocketHandler(e)}}exec(e,t,i,o,u,l,c,d,p){return n.__awaiter(this,void 0,void 0,function*(){const n={stdout:u!=null,stderr:l!=null,stdin:c!=null,tty:d,command:o,container:i};const f=a.stringify(n);const h=`/api/v1/namespaces/${e}/pods/${t}/exec?${f}`;const m=yield this.handler.connect(h,null,(e,t)=>{const i=s.WebSocketHandler.handleStandardStreams(e,t,u,l);if(i!=null){if(p){p(i)}return false}return true});if(c!=null){s.WebSocketHandler.handleStandardInput(m,c,s.WebSocketHandler.StdinStream)}if(r.isResizable(u)){this.terminalSizeQueue=new r.TerminalSizeQueue;s.WebSocketHandler.handleStandardInput(m,this.terminalSizeQueue,s.WebSocketHandler.ResizeStream);this.terminalSizeQueue.handleResizes(u)}return m})}}t.Exec=Exec},,,,,,function(e,t,i){const n=i(462);const a=(e,t,i)=>n(e,t,">",i);e.exports=a},function(e,t,i){e.exports={DiffieHellman:DiffieHellman,generateECDSA:generateECDSA,generateED25519:generateED25519};var n=i(872);var a=i(373);var r=i(215).Buffer;var s=i(98);var o=i(270);var u=i(196);var l=i(852);var c=i(502);var d=a.createECDH!==undefined;var p=i(886);var f=i(729);var h=i(242).BigInteger;function DiffieHellman(e){o.assertCompatible(e,l,[1,4],"key");this._isPriv=c.isPrivateKey(e,[1,3]);this._algo=e.type;this._curve=e.curve;this._key=e;if(e.type==="dsa"){if(!d){throw new Error("Due to bugs in the node 0.10 "+"crypto API, node 0.12.x or later is required "+"to use DH")}this._dh=a.createDiffieHellman(e.part.p.data,undefined,e.part.g.data,undefined);this._p=e.part.p;this._g=e.part.g;if(this._isPriv)this._dh.setPrivateKey(e.part.x.data);this._dh.setPublicKey(e.part.y.data)}else if(e.type==="ecdsa"){if(!d){this._ecParams=new X9ECParameters(this._curve);if(this._isPriv){this._priv=new ECPrivate(this._ecParams,e.part.d.data)}return}var t={nistp256:"prime256v1",nistp384:"secp384r1",nistp521:"secp521r1"}[e.curve];this._dh=a.createECDH(t);if(typeof this._dh!=="object"||typeof this._dh.setPrivateKey!=="function"){d=false;DiffieHellman.call(this,e);return}if(this._isPriv)this._dh.setPrivateKey(e.part.d.data);this._dh.setPublicKey(e.part.Q.data)}else if(e.type==="curve25519"){if(this._isPriv){o.assertCompatible(e,c,[1,5],"key");this._priv=e.part.k.data}}else{throw new Error("DH not supported for "+e.type+" keys")}}DiffieHellman.prototype.getPublicKey=function(){if(this._isPriv)return this._key.toPublic();return this._key};DiffieHellman.prototype.getPrivateKey=function(){if(this._isPriv)return this._key;else return undefined};DiffieHellman.prototype.getKey=DiffieHellman.prototype.getPrivateKey;DiffieHellman.prototype._keyCheck=function(e,t){n.object(e,"key");if(!t)o.assertCompatible(e,c,[1,3],"key");o.assertCompatible(e,l,[1,4],"key");if(e.type!==this._algo){throw new Error("A "+e.type+" key cannot be used in "+this._algo+" Diffie-Hellman")}if(e.curve!==this._curve){throw new Error("A key from the "+e.curve+" curve "+"cannot be used with a "+this._curve+" Diffie-Hellman")}if(e.type==="dsa"){n.deepEqual(e.part.p,this._p,"DSA key prime does not match");n.deepEqual(e.part.g,this._g,"DSA key generator does not match")}};DiffieHellman.prototype.setKey=function(e){this._keyCheck(e);if(e.type==="dsa"){this._dh.setPrivateKey(e.part.x.data);this._dh.setPublicKey(e.part.y.data)}else if(e.type==="ecdsa"){if(d){this._dh.setPrivateKey(e.part.d.data);this._dh.setPublicKey(e.part.Q.data)}else{this._priv=new ECPrivate(this._ecParams,e.part.d.data)}}else if(e.type==="curve25519"){var t=e.part.k;if(!e.part.k)t=e.part.r;this._priv=t.data;if(this._priv[0]===0)this._priv=this._priv.slice(1);this._priv=this._priv.slice(0,32)}this._key=e;this._isPriv=true};DiffieHellman.prototype.setPrivateKey=DiffieHellman.prototype.setKey;DiffieHellman.prototype.computeSecret=function(e){this._keyCheck(e,true);if(!this._isPriv)throw new Error("DH exchange has not been initialized with "+"a private key yet");var t;if(this._algo==="dsa"){return this._dh.computeSecret(e.part.y.data)}else if(this._algo==="ecdsa"){if(d){return this._dh.computeSecret(e.part.Q.data)}else{t=new ECPublic(this._ecParams,e.part.Q.data);return this._priv.deriveSharedSecret(t)}}else if(this._algo==="curve25519"){t=e.part.A.data;while(t[0]===0&&t.length>32)t=t.slice(1);var i=this._priv;n.strictEqual(t.length,32);n.strictEqual(i.length,32);var a=u.box.before(new Uint8Array(t),new Uint8Array(i));return r.from(a)}throw new Error("Invalid algorithm: "+this._algo)};DiffieHellman.prototype.generateKey=function(){var e=[];var t,i;if(this._algo==="dsa"){this._dh.generateKeys();e.push({name:"p",data:this._p.data});e.push({name:"q",data:this._key.part.q.data});e.push({name:"g",data:this._g.data});e.push({name:"y",data:this._dh.getPublicKey()});e.push({name:"x",data:this._dh.getPrivateKey()});this._key=new c({type:"dsa",parts:e});this._isPriv=true;return this._key}else if(this._algo==="ecdsa"){if(d){this._dh.generateKeys();e.push({name:"curve",data:r.from(this._curve)});e.push({name:"Q",data:this._dh.getPublicKey()});e.push({name:"d",data:this._dh.getPrivateKey()});this._key=new c({type:"ecdsa",curve:this._curve,parts:e});this._isPriv=true;return this._key}else{var s=this._ecParams.getN();var o=new h(a.randomBytes(s.bitLength()));var l=s.subtract(h.ONE);t=o.mod(l).add(h.ONE);i=this._ecParams.getG().multiply(t);t=r.from(t.toByteArray());i=r.from(this._ecParams.getCurve().encodePointHex(i),"hex");this._priv=new ECPrivate(this._ecParams,t);e.push({name:"curve",data:r.from(this._curve)});e.push({name:"Q",data:i});e.push({name:"d",data:t});this._key=new c({type:"ecdsa",curve:this._curve,parts:e});this._isPriv=true;return this._key}}else if(this._algo==="curve25519"){var p=u.box.keyPair();t=r.from(p.secretKey);i=r.from(p.publicKey);t=r.concat([t,i]);n.strictEqual(t.length,64);n.strictEqual(i.length,32);e.push({name:"A",data:i});e.push({name:"k",data:t});this._key=new c({type:"curve25519",parts:e});this._isPriv=true;return this._key}throw new Error("Invalid algorithm: "+this._algo)};DiffieHellman.prototype.generateKeys=DiffieHellman.prototype.generateKey;function X9ECParameters(e){var t=s.curves[e];n.object(t);var i=new h(t.p);var a=new h(t.a);var r=new h(t.b);var o=new h(t.n);var u=h.ONE;var l=new f.ECCurveFp(i,a,r);var c=l.decodePointHex(t.G.toString("hex"));this.curve=l;this.g=c;this.n=o;this.h=u}X9ECParameters.prototype.getCurve=function(){return this.curve};X9ECParameters.prototype.getG=function(){return this.g};X9ECParameters.prototype.getN=function(){return this.n};X9ECParameters.prototype.getH=function(){return this.h};function ECPublic(e,t){this._params=e;if(t[0]===0)t=t.slice(1);this._pub=e.getCurve().decodePointHex(t.toString("hex"))}function ECPrivate(e,t){this._params=e;this._priv=new h(o.mpNormalize(t))}ECPrivate.prototype.deriveSharedSecret=function(e){n.ok(e instanceof ECPublic);var t=e._pub.multiply(this._priv);return r.from(t.getX().toBigInteger().toByteArray())};function generateED25519(){var e=u.sign.keyPair();var t=r.from(e.secretKey);var i=r.from(e.publicKey);n.strictEqual(t.length,64);n.strictEqual(i.length,32);var a=[];a.push({name:"A",data:i});a.push({name:"k",data:t.slice(0,32)});var s=new c({type:"ed25519",parts:a});return s}function generateECDSA(e){var t=[];var i;if(d){var n={nistp256:"prime256v1",nistp384:"secp384r1",nistp521:"secp521r1"}[e];var s=a.createECDH(n);s.generateKeys();t.push({name:"curve",data:r.from(e)});t.push({name:"Q",data:s.getPublicKey()});t.push({name:"d",data:s.getPrivateKey()});i=new c({type:"ecdsa",curve:e,parts:t});return i}else{var o=new X9ECParameters(e);var u=o.getN();var l=Math.ceil((u.bitLength()+64)/8);var p=new h(a.randomBytes(l));var f=u.subtract(h.ONE);var m=p.mod(f).add(h.ONE);var b=o.getG().multiply(m);m=r.from(m.toByteArray());b=r.from(o.getCurve().encodePointHex(b),"hex");t.push({name:"curve",data:r.from(e)});t.push({name:"Q",data:b});t.push({name:"d",data:m});i=new c({type:"ecdsa",curve:e,parts:t});return i}}},function(e,t,i){const{pbkdf2Sync:n,randomBytes:a}=i(373);const{KEYOBJECT:r}=i(771);const s=i(208);const o=16;const u=Buffer.alloc(1,0);const l=(e,t)=>{return Buffer.concat([Buffer.from(e,"utf8"),u,t])};const c=(e,t,i,u,{[r]:l},c)=>{const d=Math.floor(Math.random()*2049+2048);const p=a(o);const f=i(p);const h=n(l.export(),f,d,e,t);const m=u({[r]:h},c);m.header=m.header||{};Object.assign(m.header,{p2c:d,p2s:s.encodeBuffer(p)});return m};const d=(e,t,i,a,{[r]:s},o,u)=>{const{p2s:l,p2c:c}=u;const d=i(l);const p=n(s.export(),d,c,e,t);return a({[r]:p},o,u)};e.exports=((e,t)=>{["PBES2-HS256+A128KW","PBES2-HS384+A192KW","PBES2-HS512+A256KW"].forEach(i=>{const n=i.substr(-6);const a=e.keyManagementEncrypt.get(n);const r=e.keyManagementDecrypt.get(n);const s=parseInt(i.substr(13,3),10)/8;const o=`sha${i.substr(8,3)}`;if(a&&r){e.keyManagementEncrypt.set(i,c.bind(undefined,s,o,l.bind(undefined,i),a));e.keyManagementDecrypt.set(i,d.bind(undefined,s,o,l.bind(undefined,i),r));t.oct.deriveKey[i]=(e=>e.use==="enc"||e.use===undefined)}})})},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=typeof URL==="undefined"?i(835).URL:URL;const a=Object.prototype.toString;const r=e=>t=>typeof t===e;const s=e=>!is.nullOrUndefined(e)&&!is.nullOrUndefined(e.constructor)&&is.function_(e.constructor.isBuffer)&&e.constructor.isBuffer(e);const o=e=>{const t=a.call(e).slice(8,-1);if(t){return t}return null};const u=e=>t=>o(t)===e;function is(e){switch(e){case null:return"null";case true:case false:return"boolean";default:}switch(typeof e){case"undefined":return"undefined";case"string":return"string";case"number":return"number";case"symbol":return"symbol";default:}if(is.function_(e)){return"Function"}if(is.observable(e)){return"Observable"}if(Array.isArray(e)){return"Array"}if(s(e)){return"Buffer"}const t=o(e);if(t){return t}if(e instanceof String||e instanceof Boolean||e instanceof Number){throw new TypeError("Please don't use object wrappers for primitive types")}return"Object"}(function(e){const t=e=>typeof e==="object";e.undefined=r("undefined");e.string=r("string");e.number=r("number");e.function_=r("function");e.null_=(e=>e===null);e.class_=(t=>e.function_(t)&&t.toString().startsWith("class "));e.boolean=(e=>e===true||e===false);e.symbol=r("symbol");e.numericString=(t=>e.string(t)&&t.length>0&&!Number.isNaN(Number(t)));e.array=Array.isArray;e.buffer=s;e.nullOrUndefined=(t=>e.null_(t)||e.undefined(t));e.object=(i=>!e.nullOrUndefined(i)&&(e.function_(i)||t(i)));e.iterable=(t=>!e.nullOrUndefined(t)&&e.function_(t[Symbol.iterator]));e.asyncIterable=(t=>!e.nullOrUndefined(t)&&e.function_(t[Symbol.asyncIterator]));e.generator=(t=>e.iterable(t)&&e.function_(t.next)&&e.function_(t.throw));e.nativePromise=(e=>u("Promise")(e));const i=i=>!e.null_(i)&&t(i)&&e.function_(i.then)&&e.function_(i.catch);e.promise=(t=>e.nativePromise(t)||i(t));e.generatorFunction=u("GeneratorFunction");e.asyncFunction=u("AsyncFunction");e.boundFunction=(t=>e.function_(t)&&!t.hasOwnProperty("prototype"));e.regExp=u("RegExp");e.date=u("Date");e.error=u("Error");e.map=(e=>u("Map")(e));e.set=(e=>u("Set")(e));e.weakMap=(e=>u("WeakMap")(e));e.weakSet=(e=>u("WeakSet")(e));e.int8Array=u("Int8Array");e.uint8Array=u("Uint8Array");e.uint8ClampedArray=u("Uint8ClampedArray");e.int16Array=u("Int16Array");e.uint16Array=u("Uint16Array");e.int32Array=u("Int32Array");e.uint32Array=u("Uint32Array");e.float32Array=u("Float32Array");e.float64Array=u("Float64Array");e.arrayBuffer=u("ArrayBuffer");e.sharedArrayBuffer=u("SharedArrayBuffer");e.dataView=u("DataView");e.directInstanceOf=((e,t)=>Object.getPrototypeOf(e)===t.prototype);e.urlInstance=(e=>u("URL")(e));e.urlString=(t=>{if(!e.string(t)){return false}try{new n(t);return true}catch(e){return false}});e.truthy=(e=>Boolean(e));e.falsy=(e=>!e);e.nan=(e=>Number.isNaN(e));const a=new Set(["undefined","string","number","boolean","symbol"]);e.primitive=(t=>e.null_(t)||a.has(typeof t));e.integer=(e=>Number.isInteger(e));e.safeInteger=(e=>Number.isSafeInteger(e));e.plainObject=(e=>{let t;return o(e)==="Object"&&(t=Object.getPrototypeOf(e),t===null||t===Object.getPrototypeOf({}))});const l=new Set(["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"]);e.typedArray=(e=>{const t=o(e);if(t===null){return false}return l.has(t)});const c=t=>e.safeInteger(t)&&t>-1;e.arrayLike=(t=>!e.nullOrUndefined(t)&&!e.function_(t)&&c(t.length));e.inRange=((t,i)=>{if(e.number(i)){return t>=Math.min(0,i)&&t<=Math.max(i,0)}if(e.array(i)&&i.length===2){return t>=Math.min(...i)&&t<=Math.max(...i)}throw new TypeError(`Invalid range: ${JSON.stringify(i)}`)});const d=1;const p=["innerHTML","ownerDocument","style","attributes","nodeValue"];e.domElement=(t=>e.object(t)&&t.nodeType===d&&e.string(t.nodeName)&&!e.plainObject(t)&&p.every(e=>e in t));e.observable=(e=>{if(!e){return false}if(e[Symbol.observable]&&e===e[Symbol.observable]()){return true}if(e["@@observable"]&&e===e["@@observable"]()){return true}return false});e.nodeStream=(i=>!e.nullOrUndefined(i)&&t(i)&&e.function_(i.pipe)&&!e.observable(i));e.infinite=(e=>e===Infinity||e===-Infinity);const f=t=>i=>e.integer(i)&&Math.abs(i%2)===t;e.even=f(0);e.odd=f(1);const h=t=>e.string(t)&&/\S/.test(t)===false;e.emptyArray=(t=>e.array(t)&&t.length===0);e.nonEmptyArray=(t=>e.array(t)&&t.length>0);e.emptyString=(t=>e.string(t)&&t.length===0);e.nonEmptyString=(t=>e.string(t)&&t.length>0);e.emptyStringOrWhitespace=(t=>e.emptyString(t)||h(t));e.emptyObject=(t=>e.object(t)&&!e.map(t)&&!e.set(t)&&Object.keys(t).length===0);e.nonEmptyObject=(t=>e.object(t)&&!e.map(t)&&!e.set(t)&&Object.keys(t).length>0);e.emptySet=(t=>e.set(t)&&t.size===0);e.nonEmptySet=(t=>e.set(t)&&t.size>0);e.emptyMap=(t=>e.map(t)&&t.size===0);e.nonEmptyMap=(t=>e.map(t)&&t.size>0);const m=(t,i,n)=>{if(e.function_(i)===false){throw new TypeError(`Invalid predicate: ${JSON.stringify(i)}`)}if(n.length===0){throw new TypeError("Invalid number of values")}return t.call(n,i)};e.any=((e,...t)=>m(Array.prototype.some,e,t));e.all=((e,...t)=>m(Array.prototype.every,e,t))})(is||(is={}));Object.defineProperties(is,{class:{value:is.class_},function:{value:is.function_},null:{value:is.null_}});t.default=is;e.exports=is;e.exports.default=is},function(e,t,i){var n=i(747);var a=i(622);var r=i(602);r.register("ln",_ln,{cmdOptions:{s:"symlink",f:"force"}});function _ln(e,t,i){if(!t||!i){r.error("Missing and/or ")}t=String(t);var s=a.normalize(t).replace(RegExp(a.sep+"$"),"");var o=a.resolve(t)===s;i=a.resolve(process.cwd(),String(i));if(n.existsSync(i)){if(!e.force){r.error("Destination file exists",{continue:true})}n.unlinkSync(i)}if(e.symlink){var u=process.platform==="win32";var l=u?"file":null;var c=o?s:a.resolve(process.cwd(),a.dirname(i),t);if(!n.existsSync(c)){r.error("Source file does not exist",{continue:true})}else if(u&&r.statFollowLinks(c).isDirectory()){l="junction"}try{n.symlinkSync(l==="junction"?c:t,i,l)}catch(e){r.error(e.message)}}else{if(!n.existsSync(t)){r.error("Source file does not exist",{continue:true})}try{n.linkSync(t,i)}catch(e){r.error(e.message)}}return""}e.exports=_ln},,function(e){const t=Math.pow(2,32);e.exports=((e,i=Buffer.allocUnsafe(8))=>{const n=Math.floor(e/t);const a=e%t;i.writeUInt32BE(n,0);i.writeUInt32BE(a,4);return i})},function(e,t,i){e.exports={read:read.bind(undefined,false,undefined),readType:read.bind(undefined,false),write:write,readPartial:read.bind(undefined,true),readInternal:read,keyTypeToAlg:keyTypeToAlg,algToKeyType:algToKeyType};var n=i(872);var a=i(215).Buffer;var r=i(98);var s=i(270);var o=i(852);var u=i(502);var l=i(940);function algToKeyType(e){n.string(e);if(e==="ssh-dss")return"dsa";else if(e==="ssh-rsa")return"rsa";else if(e==="ssh-ed25519")return"ed25519";else if(e==="ssh-curve25519")return"curve25519";else if(e.match(/^ecdsa-sha2-/))return"ecdsa";else throw new Error("Unknown algorithm "+e)}function keyTypeToAlg(e){n.object(e);if(e.type==="dsa")return"ssh-dss";else if(e.type==="rsa")return"ssh-rsa";else if(e.type==="ed25519")return"ssh-ed25519";else if(e.type==="curve25519")return"ssh-curve25519";else if(e.type==="ecdsa")return"ecdsa-sha2-"+e.part.curve.data.toString();else throw new Error("Unknown key type "+e.type)}function read(e,t,i,c){if(typeof i==="string")i=a.from(i);n.buffer(i,"buf");var d={};var p=d.parts=[];var f=new l({buffer:i});var h=f.readString();n.ok(!f.atEnd(),"key must have at least one part");d.type=algToKeyType(h);var m=r.info[d.type].parts.length;if(t&&t==="private")m=r.privInfo[d.type].parts.length;while(!f.atEnd()&&p.length=1,"key must have at least one part");n.ok(e||f.atEnd(),"leftover bytes at end of key");var b=o;var g=r.info[d.type];if(t==="private"||g.parts.length!==p.length){g=r.privInfo[d.type];b=u}n.strictEqual(g.parts.length,p.length);if(d.type==="ecdsa"){var y=/^ecdsa-sha2-(.+)$/.exec(h);n.ok(y!==null);n.strictEqual(y[1],p[0].data.toString())}var S=true;for(var w=0;wnew n({read(){this.push(e);this.push(null)}}))},,,function(e,t,i){var n=i(602);var a=i(8);var r=i(622);n.register("dirs",_dirs,{wrapOutput:false});n.register("pushd",_pushd,{wrapOutput:false});n.register("popd",_popd,{wrapOutput:false});var s=[];function _isStackIndex(e){return/^[\-+]\d+$/.test(e)}function _parseStackIndex(e){if(_isStackIndex(e)){if(Math.abs(e)1){i=i.splice(1,1).concat(i)}else{return n.error("no other directory")}}else if(_isStackIndex(t)){var o=_parseStackIndex(t);i=i.slice(o).concat(i.slice(0,o))}else{if(e["no-cd"]){i.splice(1,0,t)}else{i.unshift(t)}}if(e["no-cd"]){i=i.slice(1)}else{t=r.resolve(i.shift());a("",t)}s=i;return _dirs(e.quiet?"-q":"")}t.pushd=_pushd;function _popd(e,t){if(_isStackIndex(e)){t=e;e=""}e=n.parseOptions(e,{n:"no-cd",q:"quiet"});if(!s.length){return n.error("directory stack empty")}t=_parseStackIndex(t||"+0");if(e["no-cd"]||t>0||s.length+t===0){t=t>0?t-1:t;s.splice(t,1)}else{var i=r.resolve(s.shift());a("",i)}return _dirs(e.quiet?"-q":"")}t.popd=_popd;function _dirs(e,t){if(_isStackIndex(e)){t=e;e=""}e=n.parseOptions(e,{c:"clear",q:"quiet"});if(e.clear){s=[];return s}var i=_actualDirStack();if(t){t=_parseStackIndex(t);if(t<0){t=i.length+t}if(!e.quiet){n.log(i[t])}return i[t]}if(!e.quiet){n.log(i.join(" "))}return i}t.dirs=_dirs},,,function(e){e.exports=(e=>JSON.parse(JSON.stringify(e)))},,function(e,t,i){var n=i(669);var a=i(413).Stream;var r=i(152);e.exports=CombinedStream;function CombinedStream(){this.writable=false;this.readable=true;this.dataSize=0;this.maxDataSize=2*1024*1024;this.pauseStreams=true;this._released=false;this._streams=[];this._currentStream=null;this._insideLoop=false;this._pendingNext=false}n.inherits(CombinedStream,a);CombinedStream.create=function(e){var t=new this;e=e||{};for(var i in e){t[i]=e[i]}return t};CombinedStream.isStreamLike=function(e){return typeof e!=="function"&&typeof e!=="string"&&typeof e!=="boolean"&&typeof e!=="number"&&!Buffer.isBuffer(e)};CombinedStream.prototype.append=function(e){var t=CombinedStream.isStreamLike(e);if(t){if(!(e instanceof r)){var i=r.create(e,{maxDataSize:Infinity,pauseStream:this.pauseStreams});e.on("data",this._checkDataSize.bind(this));e=i}this._handleErrors(e);if(this.pauseStreams){e.pause()}}this._streams.push(e);return this};CombinedStream.prototype.pipe=function(e,t){a.prototype.pipe.call(this,e,t);this.resume();return e};CombinedStream.prototype._getNext=function(){this._currentStream=null;if(this._insideLoop){this._pendingNext=true;return}this._insideLoop=true;try{do{this._pendingNext=false;this._realGetNext()}while(this._pendingNext)}finally{this._insideLoop=false}};CombinedStream.prototype._realGetNext=function(){var e=this._streams.shift();if(typeof e=="undefined"){this.end();return}if(typeof e!=="function"){this._pipeNext(e);return}var t=e;t(function(e){var t=CombinedStream.isStreamLike(e);if(t){e.on("data",this._checkDataSize.bind(this));this._handleErrors(e)}this._pipeNext(e)}.bind(this))};CombinedStream.prototype._pipeNext=function(e){this._currentStream=e;var t=CombinedStream.isStreamLike(e);if(t){e.on("end",this._getNext.bind(this));e.pipe(this,{end:false});return}var i=e;this.write(i);this._getNext()};CombinedStream.prototype._handleErrors=function(e){var t=this;e.on("error",function(e){t._emitError(e)})};CombinedStream.prototype.write=function(e){this.emit("data",e)};CombinedStream.prototype.pause=function(){if(!this.pauseStreams){return}if(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function")this._currentStream.pause();this.emit("pause")};CombinedStream.prototype.resume=function(){if(!this._released){this._released=true;this.writable=true;this._getNext()}if(this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume=="function")this._currentStream.resume();this.emit("resume")};CombinedStream.prototype.end=function(){this._reset();this.emit("end")};CombinedStream.prototype.destroy=function(){this._reset();this.emit("close")};CombinedStream.prototype._reset=function(){this.writable=false;this._streams=[];this._currentStream=null};CombinedStream.prototype._checkDataSize=function(){this._updateDataSize();if(this.dataSize<=this.maxDataSize){return}var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))};CombinedStream.prototype._updateDataSize=function(){this.dataSize=0;var e=this;this._streams.forEach(function(t){if(!t.dataSize){return}e.dataSize+=t.dataSize});if(this._currentStream&&this._currentStream.dataSize){this.dataSize+=this._currentStream.dataSize}};CombinedStream.prototype._emitError=function(e){this._reset();this.emit("error",e)}},function(e){const t=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},function(e,t,i){e.exports=i(14).default;e.exports.default=e.exports},,,function(e,t,i){"use strict";var n=i(835);var a=/^https?:/;function Redirect(e){this.request=e;this.followRedirect=true;this.followRedirects=true;this.followAllRedirects=false;this.followOriginalHttpMethod=false;this.allowRedirect=function(){return true};this.maxRedirects=10;this.redirects=[];this.redirectsFollowed=0;this.removeRefererHeader=false}Redirect.prototype.onRequest=function(e){var t=this;if(e.maxRedirects!==undefined){t.maxRedirects=e.maxRedirects}if(typeof e.followRedirect==="function"){t.allowRedirect=e.followRedirect}if(e.followRedirect!==undefined){t.followRedirects=!!e.followRedirect}if(e.followAllRedirects!==undefined){t.followAllRedirects=e.followAllRedirects}if(t.followRedirects||t.followAllRedirects){t.redirects=t.redirects||[]}if(e.removeRefererHeader!==undefined){t.removeRefererHeader=e.removeRefererHeader}if(e.followOriginalHttpMethod!==undefined){t.followOriginalHttpMethod=e.followOriginalHttpMethod}};Redirect.prototype.redirectTo=function(e){var t=this;var i=t.request;var n=null;if(e.statusCode>=300&&e.statusCode<400&&e.caseless.has("location")){var a=e.caseless.get("location");i.debug("redirect",a);if(t.followAllRedirects){n=a}else if(t.followRedirects){switch(i.method){case"PATCH":case"PUT":case"POST":case"DELETE":break;default:n=a;break}}}else if(e.statusCode===401){var r=i._auth.onResponse(e);if(r){i.setHeader("authorization",r);n=i.uri}}return n};Redirect.prototype.onResponse=function(e){var t=this;var i=t.request;var r=t.redirectTo(e);if(!r||!t.allowRedirect.call(i,e)){return false}i.debug("redirect to",r);if(e.resume){e.resume()}if(t.redirectsFollowed>=t.maxRedirects){i.emit("error",new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+i.uri.href));return false}t.redirectsFollowed+=1;if(!a.test(r)){r=n.resolve(i.uri.href,r)}var s=i.uri;i.uri=n.parse(r);if(i.uri.protocol!==s.protocol){delete i.agent}t.redirects.push({statusCode:e.statusCode,redirectUri:r});if(t.followAllRedirects&&i.method!=="HEAD"&&e.statusCode!==401&&e.statusCode!==307){i.method=t.followOriginalHttpMethod?i.method:"GET"}delete i.src;delete i.req;delete i._started;if(e.statusCode!==401&&e.statusCode!==307){delete i.body;delete i._form;if(i.headers){i.removeHeader("host");i.removeHeader("content-type");i.removeHeader("content-length");if(i.uri.hostname!==i.originalHost.split(":")[0]){i.removeHeader("authorization")}}}if(!t.removeRefererHeader){i.setHeader("referer",s.href)}i.emit("redirect");i.init();return true};t.Redirect=Redirect},,function(e,t,i){var n=i(602);var a=i(747);function lpad(e,t){var i=""+t;if(i.length1:true}).map(function(t){return(e.count?lpad(7,t.count)+" ":"")+t.ln}).join("\n")+"\n";if(i){new n.ShellString(u).to(i);return""}else{return u}}e.exports=_uniq},function(e,t,i){const{inspect:n}=i(669);const{RPError:a,OPError:r}=i(572);const s=i(880);const o=i(295);const{authenticatedPost:u}=i(285);const l=i(88);const c=i(933);class DeviceFlowHandle{constructor({client:e,exchangeBody:t,clientAssertionPayload:i,response:n,maxAge:r}){["verification_uri","user_code","device_code"].forEach(e=>{if(typeof n[e]!=="string"||!n[e]){throw new a(`expected ${e} string to be returned by Device Authorization Response, got %j`,n[e])}});if(!Number.isSafeInteger(n.expires_in)){throw new a("expected expires_in number to be returned by Device Authorization Response, got %j",n.expires_in)}s(this).expires_at=o()+n.expires_in;s(this).client=e;s(this).maxAge=r;s(this).exchangeBody=t;s(this).clientAssertionPayload=i;s(this).response=n;s(this).interval=n.interval*1e3||5e3}async poll(){if(this.expired()){throw new a("the device code %j has expired and the device authorization session has concluded",this.device_code)}await new Promise(e=>setTimeout(e,s(this).interval));const e=await u.call(s(this).client,"token",{form:true,body:{...s(this).exchangeBody,grant_type:"urn:ietf:params:oauth:grant-type:device_code",device_code:this.device_code},json:true},{clientAssertionPayload:s(this).clientAssertionPayload});let t;try{t=l(e)}catch(e){switch(e instanceof r&&e.error){case"slow_down":s(this).interval+=5e3;case"authorization_pending":return this.poll();default:throw e}}const i=new c(t);if("id_token"in i){await s(this).client.decryptIdToken(i);await s(this).client.validateIdToken(i,undefined,"token",s(this).maxAge)}return i}get device_code(){return s(this).response.device_code}get user_code(){return s(this).response.user_code}get verification_uri(){return s(this).response.verification_uri}get verification_uri_complete(){return s(this).response.verification_uri_complete}get expires_in(){return Math.max.apply(null,[s(this).expires_at-o(),0])}expired(){return this.expires_in===0}[n.custom](){return`${this.constructor.name} ${n(s(this).response,{depth:Infinity,colors:process.stdout.isTTY,compact:false,sorted:true})}`}}e.exports=DeviceFlowHandle},function(e){"use strict";function YAMLException(e,t){Error.call(this);this.name="YAMLException";this.reason=e;this.mark=t;this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():"");if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}else{this.stack=(new Error).stack||""}}YAMLException.prototype=Object.create(Error.prototype);YAMLException.prototype.constructor=YAMLException;YAMLException.prototype.toString=function toString(e){var t=this.name+": ";t+=this.reason||"(unknown reason)";if(!e&&this.mark){t+=" "+this.mark.toString()}return t};e.exports=YAMLException},function(e){"use strict";class CancelError extends Error{constructor(e){super(e||"Promise was canceled");this.name="CancelError"}get isCanceled(){return true}}class PCancelable{static fn(e){return(...t)=>{return new PCancelable((i,n,a)=>{t.push(a);e(...t).then(i,n)})}}constructor(e){this._cancelHandlers=[];this._isPending=true;this._isCanceled=false;this._rejectOnCancel=true;this._promise=new Promise((t,i)=>{this._reject=i;const n=e=>{this._isPending=false;t(e)};const a=e=>{this._isPending=false;i(e)};const r=e=>{if(!this._isPending){throw new Error("The `onCancel` handler was attached after the promise settled.")}this._cancelHandlers.push(e)};Object.defineProperties(r,{shouldReject:{get:()=>this._rejectOnCancel,set:e=>{this._rejectOnCancel=e}}});return e(n,a,r)})}then(e,t){return this._promise.then(e,t)}catch(e){return this._promise.catch(e)}finally(e){return this._promise.finally(e)}cancel(e){if(!this._isPending||this._isCanceled){return}if(this._cancelHandlers.length>0){try{for(const e of this._cancelHandlers){e()}}catch(e){this._reject(e)}}this._isCanceled=true;if(this._rejectOnCancel){this._reject(new CancelError(e))}}get isCanceled(){return this._isCanceled}}Object.setPrototypeOf(PCancelable.prototype,Promise.prototype);e.exports=PCancelable;e.exports.CancelError=CancelError},,function(e,t,i){"use strict";var n=i(844).MissingRef;e.exports=compileAsync;function compileAsync(e,t,i){var a=this;if(typeof this._opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");if(typeof t=="function"){i=t;t=undefined}var r=loadMetaSchemaOf(e).then(function(){var i=a._addSchema(e,undefined,t);return i.validate||_compileAsync(i)});if(i){r.then(function(e){i(null,e)},i)}return r;function loadMetaSchemaOf(e){var t=e.$schema;return t&&!a.getSchema(t)?compileAsync.call(a,{$ref:t},true):Promise.resolve()}function _compileAsync(e){try{return a._compile(e)}catch(e){if(e instanceof n)return loadMissingSchema(e);throw e}function loadMissingSchema(i){var n=i.missingSchema;if(added(n))throw new Error("Schema "+n+" is loaded but "+i.missingRef+" cannot be resolved");var r=a._loadingSchemas[n];if(!r){r=a._loadingSchemas[n]=a._opts.loadSchema(n);r.then(removePromise,removePromise)}return r.then(function(e){if(!added(n)){return loadMetaSchemaOf(e).then(function(){if(!added(n))a.addSchema(e,n,undefined,t)})}}).then(function(){return _compileAsync(e)});function removePromise(){delete a._loadingSchemas[n]}function added(e){return a._refs[e]||a._schemas[e]}}}}},function(e){"use strict";e.exports=function generate__limitProperties(e,t,i){var n=" ";var a=e.level;var r=e.dataLevel;var s=e.schema[t];var o=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var l=!e.opts.allErrors;var c;var d="data"+(r||"");var p=e.opts.$data&&s&&s.$data,f;if(p){n+=" var schema"+a+" = "+e.util.getData(s.$data,r,e.dataPathArr)+"; ";f="schema"+a}else{f=s}if(!(p||typeof s=="number")){throw new Error(t+" must be number")}var h=t=="maxProperties"?">":"<";n+="if ( ";if(p){n+=" ("+f+" !== undefined && typeof "+f+" != 'number') || "}n+=" Object.keys("+d+").length "+h+" "+f+") { ";var c=t;var m=m||[];m.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+(c||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+f+" } ";if(e.opts.messages!==false){n+=" , message: 'should NOT have ";if(t=="maxProperties"){n+="more"}else{n+="fewer"}n+=" than ";if(p){n+="' + "+f+" + '"}else{n+=""+s}n+=" properties' "}if(e.opts.verbose){n+=" , schema: ";if(p){n+="validate.schema"+o}else{n+=""+s}n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}n+=" } "}else{n+=" {} "}var b=n;n=m.pop();if(!e.compositeRule&&l){if(e.async){n+=" throw new ValidationError(["+b+"]); "}else{n+=" validate.errors = ["+b+"]; return false; "}}else{n+=" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+="} ";if(l){n+=" else { "}return n}},,function(e,t,i){"use strict";try{const e=i(235);t.isValidUTF8=typeof e==="object"?e.Validation.isValidUTF8:e}catch(e){t.isValidUTF8=(()=>true)}t.isValidStatusCode=(e=>{return e>=1e3&&e<=1013&&e!==1004&&e!==1005&&e!==1006||e>=3e3&&e<=4999})},function(e){e.exports=new Map},function(e){const t=new Map;e.exports=t},,function(e){e.exports=abort;function abort(e){Object.keys(e.jobs).forEach(clean.bind(e));e.jobs={}}function clean(e){if(typeof this.jobs[e]=="function"){this.jobs[e]()}}},function(e){"use strict";var t=Object.prototype.hasOwnProperty;var i=function(){var e=[];for(var t=0;t<256;++t){e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase())}return e}();var n=function compactQueue(e){var t;while(e.length){var i=e.pop();t=i.obj[i.prop];if(Array.isArray(t)){var n=[];for(var a=0;a=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122){n+=t.charAt(a);continue}if(r<128){n=n+i[r];continue}if(r<2048){n=n+(i[192|r>>6]+i[128|r&63]);continue}if(r<55296||r>=57344){n=n+(i[224|r>>12]+i[128|r>>6&63]+i[128|r&63]);continue}a+=1;r=65536+((r&1023)<<10|t.charCodeAt(a)&1023);n+=i[240|r>>18]+i[128|r>>12&63]+i[128|r>>6&63]+i[128|r&63]}return n};var l=function compact(e){var t=[{obj:{o:e},prop:"o"}];var i=[];for(var a=0;a{return new n(t).recipient(i,a,r).sign(e)};e.exports.Sign=n;e.exports.sign=r.bind(undefined,"compact");e.exports.sign.flattened=r.bind(undefined,"flattened");e.exports.sign.general=r.bind(undefined,"general");e.exports.verify=a},,function(e,t,i){const{format:n}=i(669);const a=i(914);function OPError({error_description:e,error:t,error_uri:i,session_state:n,state:a,scope:r},s){OPError.super.call(this,!e?t:`${t} (${e})`);Object.assign(this,{error:t},e&&{error_description:e},i&&{error_uri:i},a&&{state:a},r&&{scope:r},n&&{session_state:n});if(s){Object.defineProperty(this,"response",{value:s})}}a(OPError);function RPError(...e){if(typeof e[0]==="string"){RPError.super.call(this,n(...e))}else{const{message:t,printf:i,response:a,...r}=e[0];if(i){RPError.super.call(this,n(...i))}else{RPError.super.call(this,t)}Object.assign(this,r);if(a){Object.defineProperty(this,"response",{value:a})}}}a(RPError);e.exports={OPError:OPError,RPError:RPError}},,function(e,t,i){"use strict";var n=i(945);e.exports=new n("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})},function(e,t,i){e.exports=Signature;var n=i(872);var a=i(215).Buffer;var r=i(98);var s=i(373);var o=i(753);var u=i(270);var l=i(325);var c=i(940);var d=o.InvalidAlgorithmError;var p=o.SignatureParseError;function Signature(e){n.object(e,"options");n.arrayOfObject(e.parts,"options.parts");n.string(e.type,"options.type");var t={};for(var i=0;i20&&r[0]===0)r=r.slice(1);s=this.part.s.data;if(s.length>20&&s[0]===0)s=s.slice(1);if(this.hashAlgorithm&&this.hashAlgorithm!=="sha1"||r.length+s.length!==40){throw new Error("OpenSSH only supports "+"DSA signatures with SHA1 hash")}t.writeBuffer(a.concat([r,s]));return t.toBuffer()}else if(e==="ssh"&&this.type==="ecdsa"){var d=new c({});r=this.part.r.data;d.writeBuffer(r);d.writePart(this.part.s);t=new c({});var p;if(r[0]===0)r=r.slice(1);var f=r.length*8;if(f===256)p="nistp256";else if(f===384)p="nistp384";else if(f===528)p="nistp521";t.writeString("ecdsa-sha2-"+p);t.writeBuffer(d.toBuffer());return t.toBuffer()}throw new Error("Invalid signature format");default:throw new Error("Invalid signature data")}};Signature.prototype.toString=function(e){n.optionalString(e,"format");return this.toBuffer(e).toString("base64")};Signature.parse=function(e,t,i){if(typeof e==="string")e=a.from(e,"base64");n.buffer(e,"data");n.string(i,"format");n.string(t,"type");var r={};r.type=t.toLowerCase();r.parts=[];try{n.ok(e.length>0,"signature must not be empty");switch(r.type){case"rsa":return parseOneNum(e,t,i,r);case"ed25519":return parseOneNum(e,t,i,r);case"dsa":case"ecdsa":if(i==="asn1")return parseDSAasn1(e,t,i,r);else if(r.type==="dsa")return parseDSA(e,t,i,r);else return parseECDSA(e,t,i,r);default:throw new d(t)}}catch(e){if(e instanceof d)throw e;throw new p(t,i,e)}};function parseOneNum(e,t,i,a){if(i==="ssh"){try{var r=new c({buffer:e});var s=r.readString()}catch(e){}if(r!==undefined){var o="SSH signature does not match expected "+"type (expected "+t+", got "+s+")";switch(s){case"ssh-rsa":n.strictEqual(t,"rsa",o);a.hashAlgo="sha1";break;case"rsa-sha2-256":n.strictEqual(t,"rsa",o);a.hashAlgo="sha256";break;case"rsa-sha2-512":n.strictEqual(t,"rsa",o);a.hashAlgo="sha512";break;case"ssh-ed25519":n.strictEqual(t,"ed25519",o);a.hashAlgo="sha512";break;default:throw new Error("Unknown SSH signature "+"type: "+s)}var u=r.readPart();n.ok(r.atEnd(),"extra trailing bytes");u.name="sig";a.parts.push(u);return new Signature(a)}}a.parts.push({name:"sig",data:e});return new Signature(a)}function parseDSAasn1(e,t,i,n){var a=new l.BerReader(e);a.readSequence();var r=a.readString(l.Ber.Integer,true);var s=a.readString(l.Ber.Integer,true);n.parts.push({name:"r",data:u.mpNormalize(r)});n.parts.push({name:"s",data:u.mpNormalize(s)});return new Signature(n)}function parseDSA(e,t,i,a){if(e.length!=40){var r=new c({buffer:e});var s=r.readBuffer();if(s.toString("ascii")==="ssh-dss")s=r.readBuffer();n.ok(r.atEnd(),"extra trailing bytes");n.strictEqual(s.length,40,"invalid inner length");e=s}a.parts.push({name:"r",data:e.slice(0,20)});a.parts.push({name:"s",data:e.slice(20,40)});return new Signature(a)}function parseECDSA(e,t,i,a){var r=new c({buffer:e});var s,o;var u=r.readBuffer();var l=u.toString("ascii");if(l.slice(0,6)==="ecdsa-"){var d=l.split("-");n.strictEqual(d[0],"ecdsa");n.strictEqual(d[1],"sha2");a.curve=d[2];switch(a.curve){case"nistp256":a.hashAlgo="sha256";break;case"nistp384":a.hashAlgo="sha384";break;case"nistp521":a.hashAlgo="sha512";break;default:throw new Error("Unsupported ECDSA curve: "+a.curve)}u=r.readBuffer();n.ok(r.atEnd(),"extra trailing bytes on outer");r=new c({buffer:u});s=r.readPart()}else{s={data:u}}o=r.readPart();n.ok(r.atEnd(),"extra trailing bytes");s.name="r";o.name="s";a.parts.push(s);a.parts.push(o);return new Signature(a)}Signature.isSignature=function(e,t){return u.isCompatible(e,Signature,t)};Signature.prototype._sshpkApiVersion=[2,1];Signature._oldVersionDetect=function(e){n.func(e.toBuffer);if(e.hasOwnProperty("hashAlgorithm"))return[2,0];return[1,0]}},,,,,,function(e,t,i){"use strict";var n=i(43);e.exports=new n({explicit:[i(574),i(921),i(988)]})},function(e,t,i){var n=i(293);var a=n.Buffer;function copyProps(e,t){for(var i in e){t[i]=e[i]}}if(a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow){e.exports=n}else{copyProps(n,t);t.Buffer=SafeBuffer}function SafeBuffer(e,t,i){return a(e,t,i)}SafeBuffer.prototype=Object.create(a.prototype);copyProps(a,SafeBuffer);SafeBuffer.from=function(e,t,i){if(typeof e==="number"){throw new TypeError("Argument must not be a number")}return a(e,t,i)};SafeBuffer.alloc=function(e,t,i){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}var n=a(e);if(t!==undefined){if(typeof i==="string"){n.fill(t,i)}else{n.fill(t)}}else{n.fill(0)}return n};SafeBuffer.allocUnsafe=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return a(e)};SafeBuffer.allocUnsafeSlow=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return n.SlowBuffer(e)}},,function(e){e.exports={newInvalidAsn1Error:function(e){var t=new Error;t.name="InvalidAsn1Error";t.message=e||"";return t}}},,function(e,t,i){const n=i(874);const a=(e,t,i)=>n(e,t,i)<0;e.exports=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=i(747);const a=i(622);const r=i(414);const s=i(739);const o=i(290);const u=i(709);const l=i(444);const c=i(665);function fileExists(e){try{n.accessSync(e);return true}catch(e){}return false}class KubeConfig{getContexts(){return this.contexts}getClusters(){return this.clusters}getUsers(){return this.users}getCurrentContext(){return this.currentContext}setCurrentContext(e){this.currentContext=e}getContextObject(e){if(!this.contexts){return null}return findObject(this.contexts,e,"context")}getCurrentCluster(){const e=this.getCurrentContextObject();if(!e){return null}return this.getCluster(e.cluster)}getCluster(e){return findObject(this.clusters,e,"cluster")}getCurrentUser(){const e=this.getCurrentContextObject();if(!e){return null}return this.getUser(e.user)}getUser(e){return findObject(this.users,e,"user")}loadFromFile(e){const t=a.dirname(e);this.loadFromString(n.readFileSync(e,"utf8"));this.makePathsAbsolute(t)}applytoHTTPSOptions(e){const t=this.getCurrentUser();this.applyOptions(e);if(t&&t.username){e.auth=`${t.username}:${t.password}`}}applyToRequest(e){const t=this.getCurrentCluster();const i=this.getCurrentUser();this.applyOptions(e);if(t&&t.skipTLSVerify){e.strictSSL=false}if(i&&i.username){e.auth={password:i.password,username:i.username}}}loadFromString(e){const t=r.safeLoad(e);if(t.apiVersion!=="v1"){throw new TypeError("unknown version: "+t.apiVersion)}this.clusters=l.newClusters(t.clusters);this.contexts=l.newContexts(t.contexts);this.users=l.newUsers(t.users);this.currentContext=t["current-context"]}loadFromOptions(e){this.clusters=e.clusters;this.contexts=e.contexts;this.users=e.users;this.currentContext=e.currentContext}loadFromClusterAndUser(e,t){this.clusters=[e];this.users=[t];this.currentContext="loaded-context";this.contexts=[{cluster:e.name,user:t.name,name:this.currentContext}]}loadFromCluster(e=""){const t=process.env.KUBERNETES_SERVICE_HOST;const i=process.env.KUBERNETES_SERVICE_PORT;const a="inCluster";const r="inClusterUser";const s="inClusterContext";let o="https";if(i==="80"||i==="8080"||i==="8001"){o="http"}this.clusters=[{name:a,caFile:`${e}${Config.SERVICEACCOUNT_CA_PATH}`,server:`${o}://${t}:${i}`,skipTLSVerify:false}];this.users=[{name:r,token:n.readFileSync(`${e}${Config.SERVICEACCOUNT_TOKEN_PATH}`).toString()}];this.contexts=[{cluster:a,name:s,user:r}];this.currentContext=s}mergeConfig(e){this.currentContext=e.currentContext;e.clusters.forEach(e=>{this.addCluster(e)});e.users.forEach(e=>{this.addUser(e)});e.contexts.forEach(e=>{this.addContext(e)})}addCluster(e){this.clusters.forEach((t,i)=>{if(t.name===e.name){throw new Error(`Duplicate cluster: ${t.name}`)}});this.clusters.push(e)}addUser(e){this.users.forEach((t,i)=>{if(t.name===e.name){throw new Error(`Duplicate user: ${t.name}`)}});this.users.push(e)}addContext(e){this.contexts.forEach((t,i)=>{if(t.name===e.name){throw new Error(`Duplicate context: ${t.name}`)}});this.contexts.push(e)}loadFromDefault(){if(process.env.KUBECONFIG&&process.env.KUBECONFIG.length>0){const e=process.env.KUBECONFIG.split(a.delimiter);this.loadFromFile(e[0]);for(let t=1;t{if(t.caFile){t.caFile=makeAbsolutePath(e,t.caFile)}});this.users.forEach(t=>{if(t.certFile){t.certFile=makeAbsolutePath(e,t.certFile)}if(t.keyFile){t.keyFile=makeAbsolutePath(e,t.keyFile)}})}getCurrentContextObject(){return this.getContextObject(this.currentContext)}applyHTTPSOptions(e){const t=this.getCurrentCluster();const i=this.getCurrentUser();if(!i){return}if(t!=null&&t.skipTLSVerify){e.rejectUnauthorized=false}const n=t!=null?bufferFromFileOrString(t.caFile,t.caData):null;if(n){e.ca=n}const a=bufferFromFileOrString(i.certFile,i.certData);if(a){e.cert=a}const r=bufferFromFileOrString(i.keyFile,i.keyData);if(r){e.key=r}}applyAuthorizationHeader(e){const t=this.getCurrentUser();if(!t){return}let i=null;KubeConfig.authenticators.forEach(e=>{if(e.isAuthProvider(t)){i=e.getToken(t)}});if(t.token){i="Bearer "+t.token}if(i){if(!e.headers){e.headers=[]}e.headers.Authorization=i}}applyOptions(e){this.applyHTTPSOptions(e);this.applyAuthorizationHeader(e)}}KubeConfig.authenticators=[new u.CloudAuth,new c.ExecAuth];t.KubeConfig=KubeConfig;class Config{static fromFile(e){return Config.apiFromFile(e,o.CoreV1Api)}static fromCluster(){return Config.apiFromCluster(o.CoreV1Api)}static defaultClient(){return Config.apiFromDefaultClient(o.CoreV1Api)}static apiFromFile(e,t){const i=new KubeConfig;i.loadFromFile(e);return i.makeApiClient(t)}static apiFromCluster(e){const t=new KubeConfig;t.loadFromCluster();const i=t.getCurrentCluster();if(!i){throw new Error("No active cluster!")}const n=new e(i.server);n.setDefaultAuthentication(t);return n}static apiFromDefaultClient(e){const t=new KubeConfig;t.loadFromDefault();return t.makeApiClient(e)}}Config.SERVICEACCOUNT_ROOT="/var/run/secrets/kubernetes.io/serviceaccount";Config.SERVICEACCOUNT_CA_PATH=Config.SERVICEACCOUNT_ROOT+"/ca.crt";Config.SERVICEACCOUNT_TOKEN_PATH=Config.SERVICEACCOUNT_ROOT+"/token";t.Config=Config;function makeAbsolutePath(e,t){if(!e||a.isAbsolute(t)){return t}return a.join(e,t)}t.makeAbsolutePath=makeAbsolutePath;function bufferFromFileOrString(e,t){if(e){return n.readFileSync(e)}if(t){return Buffer.from(t,"base64")}return null}t.bufferFromFileOrString=bufferFromFileOrString;function findHomeDir(){if(process.env.HOME){try{n.accessSync(process.env.HOME);return process.env.HOME}catch(e){}}if(process.platform!=="win32"){return null}if(process.env.HOMEDRIVE&&process.env.HOMEPATH){const e=a.join(process.env.HOMEDRIVE,process.env.HOMEPATH);try{n.accessSync(e);return e}catch(e){}}if(process.env.USERPROFILE){try{n.accessSync(process.env.USERPROFILE);return process.env.USERPROFILE}catch(e){}}return null}t.findHomeDir=findHomeDir;function findObject(e,t,i){for(const n of e){if(n.name===t){if(n[i]){return n[i]}return n}}return null}t.findObject=findObject},,,,,function(e,t,i){const{deprecate:n}=i(669);const{createPublicKey:a,createPrivateKey:r,createSecretKey:s,KeyObject:o}=i(40);const u=i(208);const l=i(274);const{jwkToPem:c}=i(20);const d=i(466);const p=i(785);const f=i(186);const h=i(728);const m=i(847);const b=new Set(["string","buffer","object"]);const g=(e={},t={})=>{return{alg:t.alg,key_ops:t.key_ops,kid:t.kid,use:t.use,x5c:t.x5c,x5t:t.x5t,"x5t#S256":t["x5t#S256"],...e}};const y=/^[a-zA-Z0-9-]+ AAAA(?:[0-9A-Za-z+\/])+(?:==|=)?(?: .*)?$/;const S=(e,t,{calculateMissingRSAPrimes:i=false}={})=>{let n,S,w;if(!b.has(typeof e)){throw new TypeError("key argument must be a string, buffer or an object")}if(t!==undefined&&!l(t)){throw new TypeError("parameters argument must be a plain object when provided")}if(e instanceof o){switch(e.type){case"private":n=e;break;case"public":S=e;break;case"secret":w=e;break}}else if(typeof e==="object"&&e&&"kty"in e&&e.kty==="oct"){try{w=s(u.decodeToBuffer(e.k))}catch(t){if(!("k"in e)){w={type:"secret"}}}t=g(t,e)}else if(typeof e==="object"&&e&&"kty"in e){({calculateMissingRSAPrimes:i=false}=t||{calculateMissingRSAPrimes:i});let s;try{s=c(e,{calculateMissingRSAPrimes:i})}catch(e){if(e instanceof d.JOSEError){throw e}}if(s&&e.d){n=r(s)}else if(s){S=a(s)}t=g({},e)}else if(e&&(typeof e==="object"||typeof e==="string")){try{n=r(e)}catch(e){if(e instanceof d.JOSEError){throw e}}try{S=a(e);if(e.startsWith("-----BEGIN CERTIFICATE-----")&&(!t||!("x5c"in t))){t=g(t,{x5c:[e.replace(/(?:-----(?:BEGIN|END) CERTIFICATE-----|\s)/g,"")]})}}catch(e){if(e instanceof d.JOSEError){throw e}}try{if(!e.includes("-----BEGIN")&&!y.test(e.toString("ascii").replace(/[\r\n]/g,""))){w=s(Buffer.isBuffer(e)?e:Buffer.from(e))}}catch(e){}}const v=n||S||w;if(n||S){switch(v.asymmetricKeyType){case"rsa":return new p(v,t);case"ec":return new f(v,t);case"ed25519":case"ed448":case"x25519":case"x448":return new h(v,t);default:throw new d.JOSENotSupported("only RSA, EC and OKP asymmetric keys are supported")}}else if(w){return new m(v,t)}throw new d.JWKImportFailed("key import failed")};e.exports=S;Object.defineProperty(S,"deprecated",{value:n((e,t)=>{return S(e,t,{calculateMissingRSAPrimes:true})},"JWK.importKey() is deprecated, use JWK.asKey() instead"),enumerable:false})},function(e,t,i){const n=i(16);const a=(e,t)=>e.sort((e,i)=>n(i,e,t));e.exports=a},,function(e,t,i){e.exports=minimatch;minimatch.Minimatch=Minimatch;var n={sep:"/"};try{n=i(622)}catch(e){}var a=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={};var r=i(306);var s={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};var o="[^/]";var u=o+"*?";var l="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";var c="(?:(?!(?:\\/|^)\\.).)*?";var d=charSet("().*{}+?[]^$\\!");function charSet(e){return e.split("").reduce(function(e,t){e[t]=true;return e},{})}var p=/\/+/;minimatch.filter=filter;function filter(e,t){t=t||{};return function(i,n,a){return minimatch(i,e,t)}}function ext(e,t){e=e||{};t=t||{};var i={};Object.keys(t).forEach(function(e){i[e]=t[e]});Object.keys(e).forEach(function(t){i[t]=e[t]});return i}minimatch.defaults=function(e){if(!e||!Object.keys(e).length)return minimatch;var t=minimatch;var i=function minimatch(i,n,a){return t.minimatch(i,n,ext(e,a))};i.Minimatch=function Minimatch(i,n){return new t.Minimatch(i,ext(e,n))};return i};Minimatch.defaults=function(e){if(!e||!Object.keys(e).length)return Minimatch;return minimatch.defaults(e).Minimatch};function minimatch(e,t,i){if(typeof t!=="string"){throw new TypeError("glob pattern string required")}if(!i)i={};if(!i.nocomment&&t.charAt(0)==="#"){return false}if(t.trim()==="")return e==="";return new Minimatch(t,i).match(e)}function Minimatch(e,t){if(!(this instanceof Minimatch)){return new Minimatch(e,t)}if(typeof e!=="string"){throw new TypeError("glob pattern string required")}if(!t)t={};e=e.trim();if(n.sep!=="/"){e=e.split(n.sep).join("/")}this.options=t;this.set=[];this.pattern=e;this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.make()}Minimatch.prototype.debug=function(){};Minimatch.prototype.make=make;function make(){if(this._made)return;var e=this.pattern;var t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=true;return}if(!e){this.empty=true;return}this.parseNegate();var i=this.globSet=this.braceExpand();if(t.debug)this.debug=console.error;this.debug(this.pattern,i);i=this.globParts=i.map(function(e){return e.split(p)});this.debug(this.pattern,i);i=i.map(function(e,t,i){return e.map(this.parse,this)},this);this.debug(this.pattern,i);i=i.filter(function(e){return e.indexOf(false)===-1});this.debug(this.pattern,i);this.set=i}Minimatch.prototype.parseNegate=parseNegate;function parseNegate(){var e=this.pattern;var t=false;var i=this.options;var n=0;if(i.nonegate)return;for(var a=0,r=e.length;a1024*64){throw new TypeError("pattern is too long")}var i=this.options;if(!i.noglobstar&&e==="**")return a;if(e==="")return"";var n="";var r=!!i.nocase;var l=false;var c=[];var p=[];var h;var m=false;var b=-1;var g=-1;var y=e.charAt(0)==="."?"":i.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";var S=this;function clearStateChar(){if(h){switch(h){case"*":n+=u;r=true;break;case"?":n+=o;r=true;break;default:n+="\\"+h;break}S.debug("clearStateChar %j %j",h,n);h=false}}for(var w=0,v=e.length,z;w-1;E--){var A=p[E];var x=n.slice(0,A.reStart);var N=n.slice(A.reStart,A.reEnd-8);var V=n.slice(A.reEnd-8,A.reEnd);var P=n.slice(A.reEnd);V+=P;var D=x.split("(").length-1;var I=P;for(w=0;w=0;s--){r=e[s];if(r)break}for(s=0;s>> no match, partial?",e,d,t,p);if(d===o)return true}return false}var h;if(typeof l==="string"){if(n.nocase){h=c.toLowerCase()===l.toLowerCase()}else{h=c===l}this.debug("string match",l,c,h)}else{h=c.match(l);this.debug("pattern match",l,c,h)}if(!h)return false}if(r===o&&s===u){return true}else if(r===o){return i}else if(s===u){var m=r===o-1&&e[r]==="";return m}throw new Error("wtf?")};function globUnescape(e){return e.replace(/\\(.)/g,"$1")}function regExpEscape(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}},,,,,,function(e,t,i){"use strict";var n=i(567);var a=i(741);var r={brackets:function brackets(e){return e+"[]"},indices:function indices(e,t){return e+"["+t+"]"},repeat:function repeat(e){return e}};var s=Date.prototype.toISOString;var o={delimiter:"&",encode:true,encoder:n.encode,encodeValuesOnly:false,serializeDate:function serializeDate(e){return s.call(e)},skipNulls:false,strictNullHandling:false};var u=function stringify(e,t,i,a,r,s,u,l,c,d,p,f){var h=e;if(typeof u==="function"){h=u(t,h)}else if(h instanceof Date){h=d(h)}else if(h===null){if(a){return s&&!f?s(t,o.encoder):t}h=""}if(typeof h==="string"||typeof h==="number"||typeof h==="boolean"||n.isBuffer(h)){if(s){var m=f?t:s(t,o.encoder);return[p(m)+"="+p(s(h,o.encoder))]}return[p(t)+"="+p(String(h))]}var b=[];if(typeof h==="undefined"){return b}var g;if(Array.isArray(u)){g=u}else{var y=Object.keys(h);g=l?y.sort(l):y}for(var S=0;S0?T+C:""}},function(e,t,i){"use strict";var n=i(87);var a=i(747);var r=i(402);var s=i(739);var o=Object.create(s);t.extend=Object.assign;var u=Boolean(process.versions.electron);var l={fatal:false,globOptions:{},maxdepth:255,noglob:false,silent:false,verbose:false,execPath:null,bufLength:64*1024};var c={reset:function(){Object.assign(this,l);if(!u){this.execPath=process.execPath}},resetForTesting:function(){this.reset();this.silent=true}};c.reset();t.config=c;var d={error:null,errorCode:0,currentCmd:"shell.js"};t.state=d;delete process.env.OLDPWD;function isObject(e){return typeof e==="object"&&e!==null}t.isObject=isObject;function log(){if(!c.silent){console.error.apply(console,arguments)}}t.log=log;function convertErrorOutput(e){if(typeof e!=="string"){throw new TypeError("input must be a string")}return e.replace(/\\/g,"/")}t.convertErrorOutput=convertErrorOutput;function error(e,t,i){if(typeof e!=="string")throw new Error("msg must be a string");var n={continue:false,code:1,prefix:d.currentCmd+": ",silent:false};if(typeof t==="number"&&isObject(i)){i.code=t}else if(isObject(t)){i=t}else if(typeof t==="number"){i={code:t}}else if(typeof t!=="number"){i={}}i=Object.assign({},n,i);if(!d.errorCode)d.errorCode=i.code;var a=convertErrorOutput(i.prefix+e);d.error=d.error?d.error+"\n":"";d.error+=a;if(c.fatal)throw new Error(a);if(e.length>0&&!i.silent)log(a);if(!i.continue){throw{msg:"earlyExit",retValue:new ShellString("",d.error,d.errorCode)}}}t.error=error;function ShellString(e,t,i){var n;if(e instanceof Array){n=e;n.stdout=e.join("\n");if(e.length>0)n.stdout+="\n"}else{n=new String(e);n.stdout=e}n.stderr=t;n.code=i;h.forEach(function(e){n[e]=o[e].bind(n)});return n}t.ShellString=ShellString;function parseOptions(e,t,i){if(typeof e!=="string"&&!isObject(e)){throw new Error("options must be strings or key-value pairs")}else if(!isObject(t)){throw new Error("parseOptions() internal error: map must be an object")}else if(i&&!isObject(i)){throw new Error("parseOptions() internal error: errorOptions must be object")}if(e==="--"){return{}}var n={};Object.keys(t).forEach(function(e){var i=t[e];if(i[0]!=="!"){n[i]=false}});if(e==="")return n;if(typeof e==="string"){if(e[0]!=="-"){throw new Error("Options string must start with a '-'")}var a=e.slice(1).split("");a.forEach(function(e){if(e in t){var a=t[e];if(a[0]==="!"){n[a.slice(1)]=false}else{n[a]=true}}else{error("option not recognized: "+e,i||{})}})}else{Object.keys(e).forEach(function(a){var r=a[1];if(r in t){var s=t[r];n[s]=e[a]}else{error("option not recognized: "+r,i||{})}})}return n}t.parseOptions=parseOptions;function expand(e){if(!Array.isArray(e)){throw new TypeError("must be an array")}var t=[];e.forEach(function(e){if(typeof e!=="string"){t.push(e)}else{var i;try{i=r.sync(e,c.globOptions);i=i.length>0?i:[e]}catch(t){i=[e]}t=t.concat(i)}});return t}t.expand=expand;var p=typeof Buffer.alloc==="function"?function(e){return Buffer.alloc(e||c.bufLength)}:function(e){return new Buffer(e||c.bufLength)};t.buffer=p;function unlinkSync(e){try{a.unlinkSync(e)}catch(t){if(t.code==="EPERM"){a.chmodSync(e,"0666");a.unlinkSync(e)}else{throw t}}}t.unlinkSync=unlinkSync;function statFollowLinks(){return a.statSync.apply(a,arguments)}t.statFollowLinks=statFollowLinks;function statNoFollowLinks(){return a.lstatSync.apply(a,arguments)}t.statNoFollowLinks=statNoFollowLinks;function randomFileName(){function randomHash(e){if(e===1){return parseInt(16*Math.random(),10).toString(16)}var t="";for(var i=0;i0){l.comment=s[4]}else if(p.consumed){var f=s[2]+(s[3]?s[3]:"");var h=Math.ceil(p.consumed/3)*4;f=f.slice(0,h-2).replace(/[^a-zA-Z0-9+\/=]/g,"")+f.slice(h-2);var m=p.consumed%3;if(m>0&&f.slice(h-1,h)!=="=")h--;while(f.slice(h,h+1)==="=")h++;var b=f.slice(h);b=b.replace(/[\r\n]/g," ").replace(/^\s+/,"");if(b.match(/^[a-zA-Z0-9]/))l.comment=b}return l}function write(e,t){n.object(e);if(!o.isKey(e))throw new Error("Must be a public key");var i=[];var s=r.keyTypeToAlg(e);i.push(s);var u=r.write(e);i.push(u.toString("base64"));if(e.comment)i.push(e.comment);return a.from(i.join(" "))}},function(e){e.exports=(e=>JSON.parse(JSON.stringify(e)))},function(e,t,i){var n=i(602);function error(){return n.state.error}e.exports=error},,,function(e,t,i){"use strict";const{Duplex:n}=i(413);function emitClose(e){e.emit("close")}function duplexOnEnd(){if(!this.destroyed&&this._writableState.finished){this.destroy()}}function duplexOnError(e){this.removeListener("error",duplexOnError);this.destroy();if(this.listenerCount("error")===0){this.emit("error",e)}}function createWebSocketStream(e,t){let i=true;function receiverOnDrain(){if(i)e._socket.resume()}if(e.readyState===e.CONNECTING){e.once("open",function open(){e._receiver.removeAllListeners("drain");e._receiver.on("drain",receiverOnDrain)})}else{e._receiver.removeAllListeners("drain");e._receiver.on("drain",receiverOnDrain)}const a=new n({...t,autoDestroy:false,emitClose:false,objectMode:false,writableObjectMode:false});e.on("message",function message(t){if(!a.push(t)){i=false;e._socket.pause()}});e.once("error",function error(e){if(a.destroyed)return;a.destroy(e)});e.once("close",function close(){if(a.destroyed)return;a.push(null)});a._destroy=function(t,i){if(e.readyState===e.CLOSED){i(t);process.nextTick(emitClose,a);return}let n=false;e.once("error",function error(e){n=true;i(e)});e.once("close",function close(){if(!n)i(t);process.nextTick(emitClose,a)});e.terminate()};a._final=function(t){if(e.readyState===e.CONNECTING){e.once("open",function open(){a._final(t)});return}if(e._socket===null)return;if(e._socket._writableState.finished){t();if(a._readableState.endEmitted)a.destroy()}else{e._socket.once("finish",function finish(){t()});e.close()}};a._read=function(){if(e.readyState===e.OPEN&&!i){i=true;if(!e._receiver._writableState.needDrain)e._socket.resume()}};a._write=function(t,i,n){if(e.readyState===e.CONNECTING){e.once("open",function open(){a._write(t,i,n)});return}e.send(t,n)};a.on("end",duplexOnEnd);a.on("error",duplexOnError);return a}e.exports=createWebSocketStream},,function(e,t,i){const n=i(320);n.config=i(264);e.exports=n},function(e,t,i){"use strict";var n=i(43);e.exports=new n({include:[i(23)]})},function(e,t,i){"use strict";e.exports=Yallist;Yallist.Node=Node;Yallist.create=Yallist;function Yallist(e){var t=this;if(!(t instanceof Yallist)){t=new Yallist}t.tail=null;t.head=null;t.length=0;if(e&&typeof e.forEach==="function"){e.forEach(function(e){t.push(e)})}else if(arguments.length>0){for(var i=0,n=arguments.length;i1){i=t}else if(this.head){n=this.head.next;i=this.head.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var a=0;n!==null;a++){i=e(i,n.value,a);n=n.next}return i};Yallist.prototype.reduceReverse=function(e,t){var i;var n=this.tail;if(arguments.length>1){i=t}else if(this.tail){n=this.tail.prev;i=this.tail.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var a=this.length-1;n!==null;a--){i=e(i,n.value,a);n=n.prev}return i};Yallist.prototype.toArray=function(){var e=new Array(this.length);for(var t=0,i=this.head;i!==null;t++){e[t]=i.value;i=i.next}return e};Yallist.prototype.toArrayReverse=function(){var e=new Array(this.length);for(var t=0,i=this.tail;i!==null;t++){e[t]=i.value;i=i.prev}return e};Yallist.prototype.slice=function(e,t){t=t||this.length;if(t<0){t+=this.length}e=e||0;if(e<0){e+=this.length}var i=new Yallist;if(tthis.length){t=this.length}for(var n=0,a=this.head;a!==null&&nthis.length){t=this.length}for(var n=this.length,a=this.tail;a!==null&&n>t;n--){a=a.prev}for(;a!==null&&n>e;n--,a=a.prev){i.push(a.value)}return i};Yallist.prototype.splice=function(e,t,...i){if(e>this.length){e=this.length-1}if(e<0){e=this.length+e}for(var n=0,a=this.head;a!==null&&n{const i=r.STATUS_CODES[426];t.writeHead(426,{"Content-Length":i.length,"Content-Type":"text/plain"});t.end(i)});this._server.listen(e.port,e.host,e.backlog,t)}else if(e.server){this._server=e.server}if(this._server){this._removeListeners=addListeners(this._server,{listening:this.emit.bind(this,"listening"),error:this.emit.bind(this,"error"),upgrade:(e,t,i)=>{this.handleUpgrade(e,t,i,t=>{this.emit("connection",t,e)})}})}if(e.perMessageDeflate===true)e.perMessageDeflate={};if(e.clientTracking)this.clients=new Set;this.options=e}address(){if(this.options.noServer){throw new Error('The server is operating in "noServer" mode')}if(!this._server)return null;return this._server.address()}close(e){if(e)this.once("close",e);if(this.clients){for(const e of this.clients)e.terminate()}const t=this._server;if(t){this._removeListeners();this._removeListeners=this._server=null;if(this.options.port!=null){t.close(()=>this.emit("close"));return}}process.nextTick(emitClose,this)}shouldHandle(e){if(this.options.path){const t=e.url.indexOf("?");const i=t!==-1?e.url.slice(0,t):e.url;if(i!==this.options.path)return false}return true}handleUpgrade(e,t,i,n){t.on("error",socketOnError);const a=e.headers["sec-websocket-key"]!==undefined?e.headers["sec-websocket-key"].trim():false;const r=+e.headers["sec-websocket-version"];const u={};if(e.method!=="GET"||e.headers.upgrade.toLowerCase()!=="websocket"||!a||!c.test(a)||r!==8&&r!==13||!this.shouldHandle(e)){return abortHandshake(t,400)}if(this.options.perMessageDeflate){const i=new s(this.options.perMessageDeflate,true,this.options.maxPayload);try{const n=o.parse(e.headers["sec-websocket-extensions"]);if(n[s.extensionName]){i.accept(n[s.extensionName]);u[s.extensionName]=i}}catch(e){return abortHandshake(t,400)}}if(this.options.verifyClient){const s={origin:e.headers[`${r===8?"sec-websocket-origin":"origin"}`],secure:!!(e.connection.authorized||e.connection.encrypted),req:e};if(this.options.verifyClient.length===2){this.options.verifyClient(s,(r,s,o,l)=>{if(!r){return abortHandshake(t,s||401,o,l)}this.completeUpgrade(a,u,e,t,i,n)});return}if(!this.options.verifyClient(s))return abortHandshake(t,401)}this.completeUpgrade(a,u,e,t,i,n)}completeUpgrade(e,t,i,n,r,c){if(!n.readable||!n.writable)return n.destroy();const d=a.createHash("sha1").update(e+l).digest("base64");const p=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${d}`];const f=new u(null);var h=i.headers["sec-websocket-protocol"];if(h){h=h.trim().split(/ *, */);if(this.options.handleProtocols){h=this.options.handleProtocols(h,i)}else{h=h[0]}if(h){p.push(`Sec-WebSocket-Protocol: ${h}`);f.protocol=h}}if(t[s.extensionName]){const e=t[s.extensionName].params;const i=o.format({[s.extensionName]:[e]});p.push(`Sec-WebSocket-Extensions: ${i}`);f._extensions=t}this.emit("headers",p,i);n.write(p.concat("\r\n").join("\r\n"));n.removeListener("error",socketOnError);f.setSocket(n,r,this.options.maxPayload);if(this.clients){this.clients.add(f);f.on("close",()=>this.clients.delete(f))}c(f)}}e.exports=WebSocketServer;function addListeners(e,t){for(const i of Object.keys(t))e.on(i,t[i]);return function removeListeners(){for(const i of Object.keys(t)){e.removeListener(i,t[i])}}}function emitClose(e){e.emit("close")}function socketOnError(){this.destroy()}function abortHandshake(e,t,i,n){if(e.writable){i=i||r.STATUS_CODES[t];n=Object.assign({Connection:"close","Content-type":"text/html","Content-Length":Buffer.byteLength(i)},n);e.write(`HTTP/1.1 ${t} ${r.STATUS_CODES[t]}\r\n`+Object.keys(n).map(e=>`${e}: ${n[e]}`).join("\r\n")+"\r\n\r\n"+i)}e.removeListener("error",socketOnError);e.destroy()}},function(e){e.exports=require("events")},function(e,t,i){const{strict:n}=i(357);const{createHash:a}=i(373);const{format:r}=i(669);const s=i(682);const o=e=>e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_");const u=e=>o(e.toString("base64"));function getHash(e,t){switch(e){case"HS256":case"RS256":case"PS256":case"ES256":case"ES256K":return a("sha256");case"HS384":case"RS384":case"PS384":case"ES384":return a("sha384");case"HS512":case"RS512":case"PS512":case"ES512":return a("sha512");case"EdDSA":switch(t){case"Ed25519":return a("sha512");case"Ed448":if(!s){throw new TypeError("Ed448 *_hash calculation is not supported in your Node.js runtime version")}return a("shake256",{outputLength:114});default:throw new TypeError("unrecognized or invalid EdDSA curve provided")}default:throw new TypeError("unrecognized or invalid JWS algorithm provided")}}function generate(e,t,i){const n=getHash(t,i).update(e).digest();return u(n.slice(0,n.length/2))}function validate(e,t,i,a,s){if(typeof e.claim!=="string"||!e.claim){throw new TypeError("names.claim must be a non-empty string")}if(typeof e.source!=="string"||!e.source){throw new TypeError("names.source must be a non-empty string")}n(typeof t==="string"&&t,`${e.claim} must be a non-empty string`);n(typeof i==="string"&&i,`${e.source} must be a non-empty string`);let o;let u;try{o=generate(i,a,s)}catch(t){u=r("%s could not be validated (%s)",e.claim,t.message)}u=u||r("%s mismatch, expected %s, got: %s",e.claim,o,t);n.equal(o,t,u)}e.exports={validate:validate,generate:generate}},,,,,,function(e){"use strict";e.exports=balanced;function balanced(e,t,i){if(e instanceof RegExp)e=maybeMatch(e,i);if(t instanceof RegExp)t=maybeMatch(t,i);var n=range(e,t,i);return n&&{start:n[0],end:n[1],pre:i.slice(0,n[0]),body:i.slice(n[0]+e.length,n[1]),post:i.slice(n[1]+t.length)}}function maybeMatch(e,t){var i=t.match(e);return i?i[0]:null}balanced.range=range;function range(e,t,i){var n,a,r,s,o;var u=i.indexOf(e);var l=i.indexOf(t,u+1);var c=u;if(u>=0&&l>0){n=[];r=i.length;while(c>=0&&!o){if(c==u){n.push(c);u=i.indexOf(e,c+1)}else if(n.length==1){o=[n.pop(),l]}else{a=n.pop();if(a=0?u:l}if(n.length){o=[r,s]}}return o}},function(e){e.exports=require("path")},function(e,t,i){"use strict";var n=i(601);var a=i(267);var r=i(741);e.exports={formats:r,parse:a,stringify:n}},function(e,t,i){e.exports={read:read,write:write};var n=i(872);var a=i(215).Buffer;var r=i(538);var s=i(852);var o=i(753);function read(e,t){var i=e.toString("ascii").split(/[\r\n]+/);var s=false;var o;var u=0;while(ui.length){throw new Error("Invalid public-lines count")}var p=a.from(i.slice(u,u+d).join(""),"base64");var f=r.algToKeyType(l);var h=r.read(p);if(h.type!==f){throw new Error("Outer key algorithm mismatch")}h.comment=c;return h}function splitHeader(e){var t=e.indexOf(":");if(t===-1)return null;var i=e.slice(0,t);++t;while(e[t]===" ")++t;var n=e.slice(t);return[i,n]}function write(e,t){n.object(e);if(!s.isKey(e))throw new Error("Must be a public key");var i=r.keyTypeToAlg(e);var o=r.write(e);var u=e.comment||"";var l=o.toString("base64");var c=wrap(l,64);c.unshift("Public-Lines: "+c.length);c.unshift("Comment: "+u);c.unshift("Encryption: none");c.unshift("PuTTY-User-Key-File-2: "+i);return a.from(c.join("\n")+"\n")}function wrap(e,t){var i=[];var n=0;while(n{switch(e){case"RSA":return a(await r.generate(t,l),i);case"EC":return a(await s.generate(t,l),i);case"OKP":return a(await o.generate(t,l),i);case"oct":return a(await u.generate(t,l),i);default:throw new n.JOSENotSupported(`unsupported key type: ${e}`)}};const c=(e,t,i,l=true)=>{switch(e){case"RSA":return a(r.generateSync(t,l),i);case"EC":return a(s.generateSync(t,l),i);case"OKP":return a(o.generateSync(t,l),i);case"oct":return a(u.generateSync(t,l),i);default:throw new n.JOSENotSupported(`unsupported key type: ${e}`)}};e.exports.generate=l;e.exports.generateSync=c},function(e,t){"use strict";function Store(){}t.Store=Store;Store.prototype.synchronous=false;Store.prototype.findCookie=function(e,t,i,n){throw new Error("findCookie is not implemented")};Store.prototype.findCookies=function(e,t,i){throw new Error("findCookies is not implemented")};Store.prototype.putCookie=function(e,t){throw new Error("putCookie is not implemented")};Store.prototype.updateCookie=function(e,t,i){throw new Error("updateCookie is not implemented")};Store.prototype.removeCookie=function(e,t,i,n){throw new Error("removeCookie is not implemented")};Store.prototype.removeCookies=function(e,t,i){throw new Error("removeCookies is not implemented")};Store.prototype.removeAllCookies=function(e){throw new Error("removeAllCookies is not implemented")};Store.prototype.getAllCookies=function(e){throw new Error("getAllCookies is not implemented (therefore jar cannot be serialized)")}},function(e){"use strict";var t=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];e.exports=function(e,i){for(var n=0;n3)return false;if(t[t.length-n.length-1]!=="/")return false}return true}function constructJavascriptRegExp(e){var t=e,i=/\/([gim]*)$/.exec(e),n="";if(t[0]==="/"){if(i)n=i[1];t=t.slice(1,t.length-n.length-1)}return new RegExp(t,n)}function representJavascriptRegExp(e){var t="/"+e.source+"/";if(e.global)t+="g";if(e.multiline)t+="m";if(e.ignoreCase)t+="i";return t}function isRegExp(e){return Object.prototype.toString.call(e)==="[object RegExp]"}e.exports=new n("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:resolveJavascriptRegExp,construct:constructJavascriptRegExp,predicate:isRegExp,represent:representJavascriptRegExp})},function(e,t,i){const n=i(874);const a=(e,t,i)=>n(t,e,i);e.exports=a},function(e){e.exports=require("net")},function(e){"use strict";const t=new Set([200,203,204,206,300,301,404,405,410,414,501]);const i=new Set([200,203,204,300,301,302,303,307,308,404,405,410,414,501]);const n=new Set([500,502,503,504]);const a={date:true,connection:true,"keep-alive":true,"proxy-authenticate":true,"proxy-authorization":true,te:true,trailer:true,"transfer-encoding":true,upgrade:true};const r={"content-length":true,"content-encoding":true,"transfer-encoding":true,"content-range":true};function toNumberOrZero(e){const t=parseInt(e,10);return isFinite(t)?t:0}function isErrorResponse(e){if(!e){return true}return n.has(e.status)}function parseCacheControl(e){const t={};if(!e)return t;const i=e.trim().split(/\s*,\s*/);for(const e of i){const[i,n]=e.split(/\s*=\s*/,2);t[i]=n===undefined?true:n.replace(/^"|"$/g,"")}return t}function formatCacheControl(e){let t=[];for(const i in e){const n=e[i];t.push(n===true?i:i+"="+n)}if(!t.length){return undefined}return t.join(", ")}e.exports=class CachePolicy{constructor(e,t,{shared:i,cacheHeuristic:n,immutableMinTimeToLive:a,ignoreCargoCult:r,_fromObject:s}={}){if(s){this._fromObject(s);return}if(!t||!t.headers){throw Error("Response headers missing")}this._assertRequestHasHeaders(e);this._responseTime=this.now();this._isShared=i!==false;this._cacheHeuristic=undefined!==n?n:.1;this._immutableMinTtl=undefined!==a?a:24*3600*1e3;this._status="status"in t?t.status:200;this._resHeaders=t.headers;this._rescc=parseCacheControl(t.headers["cache-control"]);this._method="method"in e?e.method:"GET";this._url=e.url;this._host=e.headers.host;this._noAuthorization=!e.headers.authorization;this._reqHeaders=t.headers.vary?e.headers:null;this._reqcc=parseCacheControl(e.headers["cache-control"]);if(r&&"pre-check"in this._rescc&&"post-check"in this._rescc){delete this._rescc["pre-check"];delete this._rescc["post-check"];delete this._rescc["no-cache"];delete this._rescc["no-store"];delete this._rescc["must-revalidate"];this._resHeaders=Object.assign({},this._resHeaders,{"cache-control":formatCacheControl(this._rescc)});delete this._resHeaders.expires;delete this._resHeaders.pragma}if(t.headers["cache-control"]==null&&/no-cache/.test(t.headers.pragma)){this._rescc["no-cache"]=true}}now(){return Date.now()}storable(){return!!(!this._reqcc["no-store"]&&("GET"===this._method||"HEAD"===this._method||"POST"===this._method&&this._hasExplicitExpiration())&&i.has(this._status)&&!this._rescc["no-store"]&&(!this._isShared||!this._rescc.private)&&(!this._isShared||this._noAuthorization||this._allowsStoringAuthenticated())&&(this._resHeaders.expires||this._rescc["max-age"]||this._isShared&&this._rescc["s-maxage"]||this._rescc.public||t.has(this._status)))}_hasExplicitExpiration(){return this._isShared&&this._rescc["s-maxage"]||this._rescc["max-age"]||this._resHeaders.expires}_assertRequestHasHeaders(e){if(!e||!e.headers){throw Error("Request headers missing")}}satisfiesWithoutRevalidation(e){this._assertRequestHasHeaders(e);const t=parseCacheControl(e.headers["cache-control"]);if(t["no-cache"]||/no-cache/.test(e.headers.pragma)){return false}if(t["max-age"]&&this.age()>t["max-age"]){return false}if(t["min-fresh"]&&this.timeToLive()<1e3*t["min-fresh"]){return false}if(this.stale()){const e=t["max-stale"]&&!this._rescc["must-revalidate"]&&(true===t["max-stale"]||t["max-stale"]>this.age()-this.maxAge());if(!e){return false}}return this._requestMatches(e,false)}_requestMatches(e,t){return(!this._url||this._url===e.url)&&this._host===e.headers.host&&(!e.method||this._method===e.method||t&&"HEAD"===e.method)&&this._varyMatches(e)}_allowsStoringAuthenticated(){return this._rescc["must-revalidate"]||this._rescc.public||this._rescc["s-maxage"]}_varyMatches(e){if(!this._resHeaders.vary){return true}if(this._resHeaders.vary==="*"){return false}const t=this._resHeaders.vary.trim().toLowerCase().split(/\s*,\s*/);for(const i of t){if(e.headers[i]!==this._reqHeaders[i])return false}return true}_copyWithoutHopByHopHeaders(e){const t={};for(const i in e){if(a[i])continue;t[i]=e[i]}if(e.connection){const i=e.connection.trim().split(/\s*,\s*/);for(const e of i){delete t[e]}}if(t.warning){const e=t.warning.split(/,/).filter(e=>{return!/^\s*1[0-9][0-9]/.test(e)});if(!e.length){delete t.warning}else{t.warning=e.join(",").trim()}}return t}responseHeaders(){const e=this._copyWithoutHopByHopHeaders(this._resHeaders);const t=this.age();if(t>3600*24&&!this._hasExplicitExpiration()&&this.maxAge()>3600*24){e.warning=(e.warning?`${e.warning}, `:"")+'113 - "rfc7234 5.5.4"'}e.age=`${Math.round(t)}`;e.date=new Date(this.now()).toUTCString();return e}date(){const e=Date.parse(this._resHeaders.date);if(isFinite(e)){return e}return this._responseTime}age(){let e=this._ageValue();const t=(this.now()-this._responseTime)/1e3;return e+t}_ageValue(){return toNumberOrZero(this._resHeaders.age)}maxAge(){if(!this.storable()||this._rescc["no-cache"]){return 0}if(this._isShared&&(this._resHeaders["set-cookie"]&&!this._rescc.public&&!this._rescc.immutable)){return 0}if(this._resHeaders.vary==="*"){return 0}if(this._isShared){if(this._rescc["proxy-revalidate"]){return 0}if(this._rescc["s-maxage"]){return toNumberOrZero(this._rescc["s-maxage"])}}if(this._rescc["max-age"]){return toNumberOrZero(this._rescc["max-age"])}const e=this._rescc.immutable?this._immutableMinTtl:0;const t=this.date();if(this._resHeaders.expires){const i=Date.parse(this._resHeaders.expires);if(Number.isNaN(i)||ii){return Math.max(e,(t-i)/1e3*this._cacheHeuristic)}}return e}timeToLive(){const e=this.maxAge()-this.age();const t=e+toNumberOrZero(this._rescc["stale-if-error"]);const i=e+toNumberOrZero(this._rescc["stale-while-revalidate"]);return Math.max(0,e,t,i)*1e3}stale(){return this.maxAge()<=this.age()}_useStaleIfError(){return this.maxAge()+toNumberOrZero(this._rescc["stale-if-error"])>this.age()}useStaleWhileRevalidate(){return this.maxAge()+toNumberOrZero(this._rescc["stale-while-revalidate"])>this.age()}static fromObject(e){return new this(undefined,undefined,{_fromObject:e})}_fromObject(e){if(this._responseTime)throw Error("Reinitialized");if(!e||e.v!==1)throw Error("Invalid serialization");this._responseTime=e.t;this._isShared=e.sh;this._cacheHeuristic=e.ch;this._immutableMinTtl=e.imm!==undefined?e.imm:24*3600*1e3;this._status=e.st;this._resHeaders=e.resh;this._rescc=e.rescc;this._method=e.m;this._url=e.u;this._host=e.h;this._noAuthorization=e.a;this._reqHeaders=e.reqh;this._reqcc=e.reqcc}toObject(){return{v:1,t:this._responseTime,sh:this._isShared,ch:this._cacheHeuristic,imm:this._immutableMinTtl,st:this._status,resh:this._resHeaders,rescc:this._rescc,m:this._method,u:this._url,h:this._host,a:this._noAuthorization,reqh:this._reqHeaders,reqcc:this._reqcc}}revalidationHeaders(e){this._assertRequestHasHeaders(e);const t=this._copyWithoutHopByHopHeaders(e.headers);delete t["if-range"];if(!this._requestMatches(e,true)||!this.storable()){delete t["if-none-match"];delete t["if-modified-since"];return t}if(this._resHeaders.etag){t["if-none-match"]=t["if-none-match"]?`${t["if-none-match"]}, ${this._resHeaders.etag}`:this._resHeaders.etag}const i=t["accept-ranges"]||t["if-match"]||t["if-unmodified-since"]||this._method&&this._method!="GET";if(i){delete t["if-modified-since"];if(t["if-none-match"]){const e=t["if-none-match"].split(/,/).filter(e=>{return!/^\s*W\//.test(e)});if(!e.length){delete t["if-none-match"]}else{t["if-none-match"]=e.join(",").trim()}}}else if(this._resHeaders["last-modified"]&&!t["if-modified-since"]){t["if-modified-since"]=this._resHeaders["last-modified"]}return t}revalidatedPolicy(e,t){this._assertRequestHasHeaders(e);if(this._useStaleIfError()&&isErrorResponse(t)){return{modified:false,matches:false,policy:this}}if(!t||!t.headers){throw Error("Response headers missing")}let i=false;if(t.status!==undefined&&t.status!=304){i=false}else if(t.headers.etag&&!/^\s*W\//.test(t.headers.etag)){i=this._resHeaders.etag&&this._resHeaders.etag.replace(/^\s*W\//,"")===t.headers.etag}else if(this._resHeaders.etag&&t.headers.etag){i=this._resHeaders.etag.replace(/^\s*W\//,"")===t.headers.etag.replace(/^\s*W\//,"")}else if(this._resHeaders["last-modified"]){i=this._resHeaders["last-modified"]===t.headers["last-modified"]}else{if(!this._resHeaders.etag&&!this._resHeaders["last-modified"]&&!t.headers.etag&&!t.headers["last-modified"]){i=true}}if(!i){return{policy:new this.constructor(e,t),modified:t.status!=304,matches:false}}const n={};for(const e in this._resHeaders){n[e]=e in t.headers&&!r[e]?t.headers[e]:this._resHeaders[e]}const a=Object.assign({},t,{status:this._status,method:this._method,headers:n});return{policy:new this.constructor(e,a,{shared:this._isShared,cacheHeuristic:this._cacheHeuristic,immutableMinTimeToLive:this._immutableMinTtl}),modified:false,matches:true}}}},function(e,t,i){"use strict";var n=i(945);function resolveYamlMerge(e){return e==="<<"||e===null}e.exports=new n("tag:yaml.org,2002:merge",{kind:"scalar",resolve:resolveYamlMerge})},,function(e,t,i){e.exports={Verifier:Verifier,Signer:Signer};var n=i(196);var a=i(413);var r=i(669);var s=i(872);var o=i(215).Buffer;var u=i(575);function Verifier(e,t){if(t.toLowerCase()!=="sha512")throw new Error("ED25519 only supports the use of "+"SHA-512 hashes");this.key=e;this.chunks=[];a.Writable.call(this,{})}r.inherits(Verifier,a.Writable);Verifier.prototype._write=function(e,t,i){this.chunks.push(e);i()};Verifier.prototype.update=function(e){if(typeof e==="string")e=o.from(e,"binary");this.chunks.push(e)};Verifier.prototype.verify=function(e,t){var i;if(u.isSignature(e,[2,0])){if(e.type!=="ed25519")return false;i=e.toBuffer("raw")}else if(typeof e==="string"){i=o.from(e,"base64")}else if(u.isSignature(e,[1,0])){throw new Error("signature was created by too old "+"a version of sshpk and cannot be verified")}s.buffer(i);return n.sign.detached.verify(new Uint8Array(o.concat(this.chunks)),new Uint8Array(i),new Uint8Array(this.key.part.A.data))};function Signer(e,t){if(t.toLowerCase()!=="sha512")throw new Error("ED25519 only supports the use of "+"SHA-512 hashes");this.key=e;this.chunks=[];a.Writable.call(this,{})}r.inherits(Signer,a.Writable);Signer.prototype._write=function(e,t,i){this.chunks.push(e);i()};Signer.prototype.update=function(e){if(typeof e==="string")e=o.from(e,"binary");this.chunks.push(e)};Signer.prototype.sign=function(){var e=n.sign.detached(new Uint8Array(o.concat(this.chunks)),new Uint8Array(o.concat([this.key.part.k.data,this.key.part.A.data])));var t=o.from(e);var i=u.parse(t,"ed25519","raw");i.hashAlgorithm="sha512";return i}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=i(878);class Log{constructor(e){this.config=e}log(e,t,i,a,r,s={}){const o=`/api/v1/namespaces/${e}/pods/${t}/log`;const u=this.config.getCurrentCluster();if(!u){throw new Error("No currently active cluster")}const l=u.server+o;const c={method:"GET",qs:Object.assign({},s,{container:i}),uri:l};this.config.applyToRequest(c);const d=n(c,(e,t,i)=>{if(e){r(e)}else if(t&&t.statusCode!==200){r(i)}else{r(null)}}).on("response",e=>{if(e.statusCode===200){d.pipe(a)}});return d}}t.Log=Log},,,,,function(e,t,i){"use strict";var n=i(196).lowlevel.crypto_hash;var a=0;var r=function(){this.S=[new Uint32Array([3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946]),new Uint32Array([1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055]),new Uint32Array([3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504]),new Uint32Array([976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462])];this.P=new Uint32Array([608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731])};function F(e,t,i){return(e[0][t[i+3]]+e[1][t[i+2]]^e[2][t[i+1]])+e[3][t[i]]}r.prototype.encipher=function(e,t){if(t===undefined){t=new Uint8Array(e.buffer);if(e.byteOffset!==0)t=t.subarray(e.byteOffset)}e[0]^=this.P[0];for(var i=1;i<16;i+=2){e[1]^=F(this.S,t,0)^this.P[i];e[0]^=F(this.S,t,4)^this.P[i+1]}var n=e[0];e[0]=e[1]^this.P[17];e[1]=n};r.prototype.decipher=function(e){var t=new Uint8Array(e.buffer);if(e.byteOffset!==0)t=t.subarray(e.byteOffset);e[0]^=this.P[17];for(var i=16;i>0;i-=2){e[1]^=F(this.S,t,0)^this.P[i];e[0]^=F(this.S,t,4)^this.P[i-1]}var n=e[0];e[0]=e[1]^this.P[0];e[1]=n};function stream2word(e,t){var i,n=0;for(i=0;i<4;i++,a++){if(a>=t)a=0;n=n<<8|e[a]}return n}r.prototype.expand0state=function(e,t){var i=new Uint32Array(2),n,r;var s=new Uint8Array(i.buffer);for(n=0,a=0;n<18;n++){this.P[n]^=stream2word(e,t)}a=0;for(n=0;n<18;n+=2){this.encipher(i,s);this.P[n]=i[0];this.P[n+1]=i[1]}for(n=0;n<4;n++){for(r=0;r<256;r+=2){this.encipher(i,s);this.S[n][r]=i[0];this.S[n][r+1]=i[1]}}};r.prototype.expandstate=function(e,t,i,n){var r=new Uint32Array(2),s,o;for(s=0,a=0;s<18;s++){this.P[s]^=stream2word(i,n)}for(s=0,a=0;s<18;s+=2){r[0]^=stream2word(e,t);r[1]^=stream2word(e,t);this.encipher(r);this.P[s]=r[0];this.P[s+1]=r[1]}for(s=0;s<4;s++){for(o=0;o<256;o+=2){r[0]^=stream2word(e,t);r[1]^=stream2word(e,t);this.encipher(r);this.S[s][o]=r[0];this.S[s][o+1]=r[1]}}a=0};r.prototype.enc=function(e,t){for(var i=0;i>>24;i[4*o+2]=a[o]>>>16;i[4*o+1]=a[o]>>>8;i[4*o+0]=a[o]}}function bcrypt_pbkdf(e,t,i,a,r,s,u){var l=new Uint8Array(64),c=new Uint8Array(64),d=new Uint8Array(o),p=new Uint8Array(o),f=new Uint8Array(a+4),h,m,b,g,y,S,w=s;if(u<1)return-1;if(t===0||a===0||s===0||s>d.byteLength*d.byteLength||a>1<<20)return-1;g=Math.floor((s+d.byteLength-1)/d.byteLength);b=Math.floor((s+g-1)/g);for(h=0;h0;S++){f[a+0]=S>>>24;f[a+1]=S>>>16;f[a+2]=S>>>8;f[a+3]=S;n(c,f,a+4);bcrypt_hash(l,c,p);for(h=d.byteLength;h--;)d[h]=p[h];for(h=1;h=w)break;r[y]=d[h]}s-=h}return 0}e.exports={BLOCKS:s,HASHSIZE:o,hash:bcrypt_hash,pbkdf:bcrypt_pbkdf}},,function(e){"use strict";e.exports=function generate_items(e,t,i){var n=" ";var a=e.level;var r=e.dataLevel;var s=e.schema[t];var o=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var l=!e.opts.allErrors;var c="data"+(r||"");var d="valid"+a;var p="errs__"+a;var f=e.util.copy(e);var h="";f.level++;var m="valid"+f.level;var b="i"+a,g=f.dataLevel=e.dataLevel+1,y="data"+g,S=e.baseId;n+="var "+p+" = errors;var "+d+";";if(Array.isArray(s)){var w=e.schema.additionalItems;if(w===false){n+=" "+d+" = "+c+".length <= "+s.length+"; ";var v=u;u=e.errSchemaPath+"/additionalItems";n+=" if (!"+d+") { ";var z=z||[];z.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+"additionalItems"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+s.length+" } ";if(e.opts.messages!==false){n+=" , message: 'should NOT have more than "+s.length+" items' "}if(e.opts.verbose){n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}n+=" } "}else{n+=" {} "}var j=n;n=z.pop();if(!e.compositeRule&&l){if(e.async){n+=" throw new ValidationError(["+j+"]); "}else{n+=" validate.errors = ["+j+"]; return false; "}}else{n+=" var err = "+j+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+=" } ";u=v;if(l){h+="}";n+=" else { "}}var O=s;if(O){var k,C=-1,T=O.length-1;while(C0:e.util.schemaHasRules(k,e.RULES.all)){n+=" "+m+" = true; if ("+c+".length > "+C+") { ";var R=c+"["+C+"]";f.schema=k;f.schemaPath=o+"["+C+"]";f.errSchemaPath=u+"/"+C;f.errorPath=e.util.getPathExpr(e.errorPath,C,e.opts.jsonPointers,true);f.dataPathArr[g]=C;var E=e.validate(f);f.baseId=S;if(e.util.varOccurences(E,y)<2){n+=" "+e.util.varReplace(E,y,R)+" "}else{n+=" var "+y+" = "+R+"; "+E+" "}n+=" } ";if(l){n+=" if ("+m+") { ";h+="}"}}}}if(typeof w=="object"&&(e.opts.strictKeywords?typeof w=="object"&&Object.keys(w).length>0:e.util.schemaHasRules(w,e.RULES.all))){f.schema=w;f.schemaPath=e.schemaPath+".additionalItems";f.errSchemaPath=e.errSchemaPath+"/additionalItems";n+=" "+m+" = true; if ("+c+".length > "+s.length+") { for (var "+b+" = "+s.length+"; "+b+" < "+c+".length; "+b+"++) { ";f.errorPath=e.util.getPathExpr(e.errorPath,b,e.opts.jsonPointers,true);var R=c+"["+b+"]";f.dataPathArr[g]=b;var E=e.validate(f);f.baseId=S;if(e.util.varOccurences(E,y)<2){n+=" "+e.util.varReplace(E,y,R)+" "}else{n+=" var "+y+" = "+R+"; "+E+" "}if(l){n+=" if (!"+m+") break; "}n+=" } } ";if(l){n+=" if ("+m+") { ";h+="}"}}}else if(e.opts.strictKeywords?typeof s=="object"&&Object.keys(s).length>0:e.util.schemaHasRules(s,e.RULES.all)){f.schema=s;f.schemaPath=o;f.errSchemaPath=u;n+=" for (var "+b+" = "+0+"; "+b+" < "+c+".length; "+b+"++) { ";f.errorPath=e.util.getPathExpr(e.errorPath,b,e.opts.jsonPointers,true);var R=c+"["+b+"]";f.dataPathArr[g]=b;var E=e.validate(f);f.baseId=S;if(e.util.varOccurences(E,y)<2){n+=" "+e.util.varReplace(E,y,R)+" "}else{n+=" var "+y+" = "+R+"; "+E+" "}if(l){n+=" if (!"+m+") break; "}n+=" }"}if(l){n+=" "+h+" if ("+p+" == errors) {"}return n}},,function(e,t,i){(function(e,i){true?i(t):undefined})(this,function(t){"use strict";function _typeof(e){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function(e){return typeof e}}else{_typeof=function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return _typeof(e)}function _classCallCheck(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function _inherits(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)_setPrototypeOf(e,t)}function _getPrototypeOf(e){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(e){return e.__proto__||Object.getPrototypeOf(e)};return _getPrototypeOf(e)}function _setPrototypeOf(e,t){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,t){e.__proto__=t;return e};return _setPrototypeOf(e,t)}function isNativeReflectConstruct(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(e){return false}}function _construct(e,t,i){if(isNativeReflectConstruct()){_construct=Reflect.construct}else{_construct=function _construct(e,t,i){var n=[null];n.push.apply(n,t);var a=Function.bind.apply(e,n);var r=new a;if(i)_setPrototypeOf(r,i.prototype);return r}}return _construct.apply(null,arguments)}function _isNativeFunction(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function _wrapNativeSuper(e){var t=typeof Map==="function"?new Map:undefined;_wrapNativeSuper=function _wrapNativeSuper(e){if(e===null||!_isNativeFunction(e))return e;if(typeof e!=="function"){throw new TypeError("Super expression must either be null or a function")}if(typeof t!=="undefined"){if(t.has(e))return t.get(e);t.set(e,Wrapper)}function Wrapper(){return _construct(e,arguments,_getPrototypeOf(this).constructor)}Wrapper.prototype=Object.create(e.prototype,{constructor:{value:Wrapper,enumerable:false,writable:true,configurable:true}});return _setPrototypeOf(Wrapper,e)};return _wrapNativeSuper(e)}function _assertThisInitialized(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function _possibleConstructorReturn(e,t){if(t&&(typeof t==="object"||typeof t==="function")){return t}return _assertThisInitialized(e)}var n=eval;var a=true&&Boolean(e.exports)&&!(typeof navigator!=="undefined"&&navigator.product==="ReactNative");var r=["value","path","pointer","parent","parentProperty","all"];var s=Object.prototype.hasOwnProperty;var o=function moveToAnotherArray(e,t,i){var n=e.length;for(var a=0;a1){d.shift()}this._hasParentSelector=null;var p=this._trace(d,t,["$"],o,u,i).filter(function(e){return e&&!e.isParentSelector});if(!p.length){return c?[]:undefined}if(p.length===1&&!c&&!Array.isArray(p[0].value)){return this._getPreferredOutput(p[0])}return p.reduce(function(e,t){var i=a._getPreferredOutput(t);if(l&&Array.isArray(i)){e=e.concat(i)}else{e.push(i)}return e},[])};JSONPath.prototype._getPreferredOutput=function(e){var t=this.currResultType;switch(t){default:throw new TypeError("Unknown result type");case"all":e.pointer=JSONPath.toPointer(e.path);e.path=typeof e.path==="string"?e.path:JSONPath.toPathString(e.path);return e;case"value":case"parent":case"parentProperty":return e[t];case"path":return JSONPath.toPathString(e[t]);case"pointer":return JSONPath.toPointer(e.path)}};JSONPath.prototype._handleCallback=function(e,t,i){if(t){var n=this._getPreferredOutput(e);e.path=typeof e.path==="string"?e.path:JSONPath.toPathString(e.path);t(n,i,e)}};JSONPath.prototype._trace=function(e,t,i,n,a,r,o){var u;var l=this;if(!e.length){u={path:i,value:t,parent:n,parentProperty:a};this._handleCallback(u,r,"value");return u}var c=e[0],d=e.slice(1);var p=[];function addRet(e){if(Array.isArray(e)){e.forEach(function(e){p.push(e)})}else{p.push(e)}}if((typeof c!=="string"||o)&&t&&s.call(t,c)){addRet(this._trace(d,t[c],push(i,c),t,c,r))}else if(c==="*"){this._walk(c,d,t,i,n,a,r,function(e,t,i,n,a,r,s,o){addRet(l._trace(unshift(e,i),n,a,r,s,o,true))})}else if(c===".."){addRet(this._trace(d,t,i,n,a,r));this._walk(c,d,t,i,n,a,r,function(e,t,i,n,a,r,s,o){if(_typeof(n[e])==="object"){addRet(l._trace(unshift(t,i),n[e],push(a,e),n,e,o))}})}else if(c==="^"){this._hasParentSelector=true;return i.length?{path:i.slice(0,-1),expr:d,isParentSelector:true}:[]}else if(c==="~"){u={path:push(i,c),value:a,parent:n,parentProperty:null};this._handleCallback(u,r,"property");return u}else if(c==="$"){addRet(this._trace(d,t,i,null,null,r))}else if(/^(-?\d*):(-?\d*):?(\d*)$/.test(c)){addRet(this._slice(c,d,t,i,n,a,r))}else if(c.indexOf("?(")===0){if(this.currPreventEval){throw new Error("Eval [?(expr)] prevented in JSONPath expression.")}this._walk(c,d,t,i,n,a,r,function(e,t,i,n,a,r,s,o){if(l._eval(t.replace(/^\?\((.*?)\)$/,"$1"),n[e],e,a,r,s)){addRet(l._trace(unshift(e,i),n,a,r,s,o))}})}else if(c[0]==="("){if(this.currPreventEval){throw new Error("Eval [(expr)] prevented in JSONPath expression.")}addRet(this._trace(unshift(this._eval(c,t,i[i.length-1],i.slice(0,-1),n,a),d),t,i,n,a,r))}else if(c[0]==="@"){var f=false;var h=c.slice(1,-2);switch(h){default:throw new TypeError("Unknown value type "+h);case"scalar":if(!t||!["object","function"].includes(_typeof(t))){f=true}break;case"boolean":case"string":case"undefined":case"function":if(_typeof(t)===h){f=true}break;case"number":if(_typeof(t)===h&&isFinite(t)){f=true}break;case"nonFinite":if(typeof t==="number"&&!isFinite(t)){f=true}break;case"object":if(t&&_typeof(t)===h){f=true}break;case"array":if(Array.isArray(t)){f=true}break;case"other":f=this.currOtherTypeCallback(t,i,n,a);break;case"integer":if(t===Number(t)&&isFinite(t)&&!(t%1)){f=true}break;case"null":if(t===null){f=true}break}if(f){u={path:i,value:t,parent:n,parentProperty:a};this._handleCallback(u,r,"value");return u}}else if(c[0]==="`"&&t&&s.call(t,c.slice(1))){var m=c.slice(1);addRet(this._trace(d,t[m],push(i,m),t,m,r,true))}else if(c.includes(",")){var b=c.split(",");var g=true;var y=false;var S=undefined;try{for(var w=b[Symbol.iterator](),v;!(g=(v=w.next()).done);g=true){var z=v.value;addRet(this._trace(unshift(z,d),t,i,n,a,r))}}catch(e){y=true;S=e}finally{try{if(!g&&w["return"]!=null){w["return"]()}}finally{if(y){throw S}}}}else if(!o&&t&&s.call(t,c)){addRet(this._trace(d,t[c],push(i,c),t,c,r,true))}if(this._hasParentSelector){for(var j=0;j0:e.util.schemaHasRules(v,e.RULES.all)){f.schema=v;f.schemaPath=o+"["+z+"]";f.errSchemaPath=u+"/"+z;n+=" "+e.validate(f)+" ";f.baseId=b}else{n+=" var "+m+" = true; "}if(z){n+=" if ("+m+" && "+g+") { "+d+" = false; "+y+" = ["+y+", "+z+"]; } else { ";h+="}"}n+=" if ("+m+") { "+d+" = "+g+" = true; "+y+" = "+z+"; }"}}e.compositeRule=f.compositeRule=S;n+=""+h+"if (!"+d+") { var err = ";if(e.createErrors!==false){n+=" { keyword: '"+"oneOf"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { passingSchemas: "+y+" } ";if(e.opts.messages!==false){n+=" , message: 'should match exactly one schema in oneOf' "}if(e.opts.verbose){n+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}n+=" } "}else{n+=" {} "}n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(!e.compositeRule&&l){if(e.async){n+=" throw new ValidationError(vErrors); "}else{n+=" validate.errors = vErrors; return false; "}}n+="} else { errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; }";if(e.opts.allErrors){n+=" } "}return n}},,,,function(e){"use strict";class CancelError extends Error{constructor(e){super(e||"Promise was canceled");this.name="CancelError"}get isCanceled(){return true}}class PCancelable{static fn(e){return(...t)=>{return new PCancelable((i,n,a)=>{t.push(a);e(...t).then(i,n)})}}constructor(e){this._cancelHandlers=[];this._isPending=true;this._isCanceled=false;this._rejectOnCancel=true;this._promise=new Promise((t,i)=>{this._reject=i;const n=e=>{this._isPending=false;t(e)};const a=e=>{this._isPending=false;i(e)};const r=e=>{this._cancelHandlers.push(e)};Object.defineProperties(r,{shouldReject:{get:()=>this._rejectOnCancel,set:e=>{this._rejectOnCancel=e}}});return e(n,a,r)})}then(e,t){return this._promise.then(e,t)}catch(e){return this._promise.catch(e)}finally(e){return this._promise.finally(e)}cancel(e){if(!this._isPending||this._isCanceled){return}if(this._cancelHandlers.length>0){try{for(const e of this._cancelHandlers){e()}}catch(e){this._reject(e)}}this._isCanceled=true;if(this._rejectOnCancel){this._reject(new CancelError(e))}}get isCanceled(){return this._isCanceled}}Object.setPrototypeOf(PCancelable.prototype,Promise.prototype);e.exports=PCancelable;e.exports.default=PCancelable;e.exports.CancelError=CancelError},function(e,t,i){var n=t,a=i(835),r=i(191),s=i(373),o=i(178),u=o(1e3);function hmac(e,t,i){return s.createHmac("sha256",e).update(t,"utf8").digest(i)}function hash(e,t){return s.createHash("sha256").update(e,"utf8").digest(t)}function encodeRfc3986(e){return e.replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function encodeRfc3986Full(e){return encodeRfc3986(encodeURIComponent(e))}function RequestSigner(e,t){if(typeof e==="string")e=a.parse(e);var i=e.headers=e.headers||{},n=(!this.service||!this.region)&&this.matchHost(e.hostname||e.host||i.Host||i.host);this.request=e;this.credentials=t||this.defaultCredentials();this.service=e.service||n[0]||"";this.region=e.region||n[1]||"us-east-1";if(this.service==="email")this.service="ses";if(!e.method&&e.body)e.method="POST";if(!i.Host&&!i.host){i.Host=e.hostname||e.host||this.createHost();if(e.port)i.Host+=":"+e.port}if(!e.hostname&&!e.host)e.hostname=i.Host||i.host;this.isCodeCommitGit=this.service==="codecommit"&&e.method==="GIT"}RequestSigner.prototype.matchHost=function(e){var t=(e||"").match(/([^\.]+)\.(?:([^\.]*)\.)?amazonaws\.com(\.cn)?$/);var i=(t||[]).slice(1,3);if(i[1]==="es")i=i.reverse();if(i[1]=="s3"){i[0]="s3";i[1]="us-east-1"}else{for(var n=0;n<2;n++){if(/^s3-/.test(i[n])){i[1]=i[n].slice(3);i[0]="s3";break}}}return i};RequestSigner.prototype.isSingleRegion=function(){if(["s3","sdb"].indexOf(this.service)>=0&&this.region==="us-east-1")return true;return["cloudfront","ls","route53","iam","importexport","sts"].indexOf(this.service)>=0};RequestSigner.prototype.createHost=function(){var e=this.isSingleRegion()?"":"."+this.region,t=this.service==="ses"?"email":this.service;return t+e+".amazonaws.com"};RequestSigner.prototype.prepareRequest=function(){this.parsePath();var e=this.request,t=e.headers,i;if(e.signQuery){this.parsedPath.query=i=this.parsedPath.query||{};if(this.credentials.sessionToken)i["X-Amz-Security-Token"]=this.credentials.sessionToken;if(this.service==="s3"&&!i["X-Amz-Expires"])i["X-Amz-Expires"]=86400;if(i["X-Amz-Date"])this.datetime=i["X-Amz-Date"];else i["X-Amz-Date"]=this.getDateTime();i["X-Amz-Algorithm"]="AWS4-HMAC-SHA256";i["X-Amz-Credential"]=this.credentials.accessKeyId+"/"+this.credentialString();i["X-Amz-SignedHeaders"]=this.signedHeaders()}else{if(!e.doNotModifyHeaders&&!this.isCodeCommitGit){if(e.body&&!t["Content-Type"]&&!t["content-type"])t["Content-Type"]="application/x-www-form-urlencoded; charset=utf-8";if(e.body&&!t["Content-Length"]&&!t["content-length"])t["Content-Length"]=Buffer.byteLength(e.body);if(this.credentials.sessionToken&&!t["X-Amz-Security-Token"]&&!t["x-amz-security-token"])t["X-Amz-Security-Token"]=this.credentials.sessionToken;if(this.service==="s3"&&!t["X-Amz-Content-Sha256"]&&!t["x-amz-content-sha256"])t["X-Amz-Content-Sha256"]=hash(this.request.body||"","hex");if(t["X-Amz-Date"]||t["x-amz-date"])this.datetime=t["X-Amz-Date"]||t["x-amz-date"];else t["X-Amz-Date"]=this.getDateTime()}delete t.Authorization;delete t.authorization}};RequestSigner.prototype.sign=function(){if(!this.parsedPath)this.prepareRequest();if(this.request.signQuery){this.parsedPath.query["X-Amz-Signature"]=this.signature()}else{this.request.headers.Authorization=this.authHeader()}this.request.path=this.formatPath();return this.request};RequestSigner.prototype.getDateTime=function(){if(!this.datetime){var e=this.request.headers,t=new Date(e.Date||e.date||new Date);this.datetime=t.toISOString().replace(/[:\-]|\.\d{3}/g,"");if(this.isCodeCommitGit)this.datetime=this.datetime.slice(0,-1)}return this.datetime};RequestSigner.prototype.getDate=function(){return this.getDateTime().substr(0,8)};RequestSigner.prototype.authHeader=function(){return["AWS4-HMAC-SHA256 Credential="+this.credentials.accessKeyId+"/"+this.credentialString(),"SignedHeaders="+this.signedHeaders(),"Signature="+this.signature()].join(", ")};RequestSigner.prototype.signature=function(){var e=this.getDate(),t=[this.credentials.secretAccessKey,e,this.region,this.service].join(),i,n,a,r=u.get(t);if(!r){i=hmac("AWS4"+this.credentials.secretAccessKey,e);n=hmac(i,this.region);a=hmac(n,this.service);r=hmac(a,"aws4_request");u.set(t,r)}return hmac(r,this.stringToSign(),"hex")};RequestSigner.prototype.stringToSign=function(){return["AWS4-HMAC-SHA256",this.getDateTime(),this.credentialString(),hash(this.canonicalString(),"hex")].join("\n")};RequestSigner.prototype.canonicalString=function(){if(!this.parsedPath)this.prepareRequest();var e=this.parsedPath.path,t=this.parsedPath.query,i=this.request.headers,n="",a=this.service!=="s3",r=this.service==="s3"||this.request.doNotEncodePath,s=this.service==="s3",o=this.service==="s3",u;if(this.service==="s3"&&this.request.signQuery){u="UNSIGNED-PAYLOAD"}else if(this.isCodeCommitGit){u=""}else{u=i["X-Amz-Content-Sha256"]||i["x-amz-content-sha256"]||hash(this.request.body||"","hex")}if(t){var l=Object.keys(t).reduce(function(e,i){if(!i)return e;e[encodeRfc3986Full(i)]=!Array.isArray(t[i])?t[i]:o?t[i][0]:t[i];return e},{});var c=[];Object.keys(l).sort().forEach(function(e){if(!Array.isArray(l[e])){c.push(e+"="+encodeRfc3986Full(l[e]))}else{l[e].map(encodeRfc3986Full).sort().forEach(function(t){c.push(e+"="+t)})}});n=c.join("&")}if(e!=="/"){if(a)e=e.replace(/\/{2,}/g,"/");e=e.split("/").reduce(function(e,t){if(a&&t===".."){e.pop()}else if(!a||t!=="."){if(r)t=decodeURIComponent(t.replace(/\+/g," "));e.push(encodeRfc3986Full(t))}return e},[]).join("/");if(e[0]!=="/")e="/"+e;if(s)e=e.replace(/%2F/g,"/")}return[this.request.method||"GET",e,n,this.canonicalHeaders()+"\n",this.signedHeaders(),u].join("\n")};RequestSigner.prototype.canonicalHeaders=function(){var e=this.request.headers;function trimAll(e){return e.toString().trim().replace(/\s+/g," ")}return Object.keys(e).sort(function(e,t){return e.toLowerCase()=0){i=r.parse(e.slice(t+1));e=e.slice(0,t)}this.parsedPath={path:e,query:i}};RequestSigner.prototype.formatPath=function(){var e=this.parsedPath.path,t=this.parsedPath.query;if(!t)return e;if(t[""]!=null)delete t[""];return e+"?"+encodeRfc3986(r.stringify(t))};n.RequestSigner=RequestSigner;n.sign=function(e,t){return new RequestSigner(e,t).sign()}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});function padString(e){var t=4;var i=e.length;var n=i%t;if(!n){return e}var a=i;var r=t-n;var s=i+r;var o=Buffer.alloc(s);o.write(e);while(r--){o.write("=",a++)}return o.toString()}t.default=padString},,function(e,t,i){var n=i(602);var a=i(747);var r=i(622);n.register("mkdir",_mkdir,{cmdOptions:{p:"fullpath"}});function mkdirSyncRecursive(e){var t=r.dirname(e);if(t===e){n.error("dirname() failed: ["+e+"]")}if(a.existsSync(t)){a.mkdirSync(e,parseInt("0777",8));return}mkdirSyncRecursive(t);a.mkdirSync(e,parseInt("0777",8))}function _mkdir(e,t){if(!t)n.error("no paths given");if(typeof t==="string"){t=[].slice.call(arguments,1)}t.forEach(function(t){try{var i=n.statNoFollowLinks(t);if(!e.fullpath){n.error("path already exists: "+t,{continue:true})}else if(i.isFile()){n.error("cannot create directory "+t+": File exists",{continue:true})}return}catch(e){}var s=r.dirname(t);if(!a.existsSync(s)&&!e.fullpath){n.error("no such file or directory: "+s,{continue:true});return}try{if(e.fullpath){mkdirSyncRecursive(r.resolve(t))}else{a.mkdirSync(t,parseInt("0777",8))}}catch(e){var o;if(e.code==="EACCES"){o="Permission denied"}else if(e.code==="ENOTDIR"||e.code==="ENOENT"){o="Not a directory"}else{throw e}n.error("cannot create directory "+t+": "+o,{continue:true})}});return""}e.exports=_mkdir},function(e){"use strict";e.exports=function generate_const(e,t,i){var n=" ";var a=e.level;var r=e.dataLevel;var s=e.schema[t];var o=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var l=!e.opts.allErrors;var c="data"+(r||"");var d="valid"+a;var p=e.opts.$data&&s&&s.$data,f;if(p){n+=" var schema"+a+" = "+e.util.getData(s.$data,r,e.dataPathArr)+"; ";f="schema"+a}else{f=s}if(!p){n+=" var schema"+a+" = validate.schema"+o+";"}n+="var "+d+" = equal("+c+", schema"+a+"); if (!"+d+") { ";var h=h||[];h.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+"const"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { allowedValue: schema"+a+" } ";if(e.opts.messages!==false){n+=" , message: 'should be equal to constant' "}if(e.opts.verbose){n+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}n+=" } "}else{n+=" {} "}var m=n;n=h.pop();if(!e.compositeRule&&l){if(e.async){n+=" throw new ValidationError(["+m+"]); "}else{n+=" validate.errors = ["+m+"]; return false; "}}else{n+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+=" }";if(l){n+=" else { "}return n}},function(e,t,i){const{define:n}=i(135);const a=i(766);const r=i(84);const s=i(474);const o=i(960);e.exports={base:a,constants:r,decoders:s,define:n,encoders:o}},,function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=i(739);class ExecAuth{constructor(){this.tokenCache={};this.execFn=n.exec}isAuthProvider(e){if(!e){return false}if(e.exec){return true}if(!e.authProvider){return false}return e.authProvider.name==="exec"||e.authProvider.config&&e.authProvider.config.exec}getToken(e){const t=this.tokenCache[e.name];if(t){const i=Date.parse(t.status.expirationTimestamp);if(i>Date.now()){return`Bearer ${t.status.token}`}this.tokenCache[e.name]=null}let i=null;if(e.authProvider&&e.authProvider.config){i=e.authProvider.config.exec}if(e.exec){i=e.exec}if(!i){return null}if(!i.command){throw new Error("No command was specified for exec authProvider!")}let n=i.command;if(i.args){n=`${n} ${i.args.join(" ")}`}let a={silent:true};if(i.env){const e=process.env;i.env.forEach(t=>e[t.name]=t.value);a=Object.assign({},a,{env:e})}const r=this.execFn(n,a);if(r.code===0){const t=JSON.parse(r.stdout);this.tokenCache[e.name]=t;return`Bearer ${t.status.token}`}throw new Error(r.stderr)}}t.ExecAuth=ExecAuth},,function(e,t,i){"use strict";const n=i(925);n.createWebSocketStream=i(608);n.Server=i(509);n.Receiver=i(954);n.Sender=i(118);e.exports=n},,function(e){e.exports=require("util")},,function(e,t,i){"use strict";e.exports={afterRequest:i(140),beforeRequest:i(820),browser:i(222),cache:i(993),content:i(162),cookie:i(326),creator:i(776),entry:i(919),har:i(41),header:i(883),log:i(319),page:i(230),pageTimings:i(257),postData:i(904),query:i(813),request:i(133),response:i(226),timings:i(758)}},function(e,t,i){"use strict";var n=this&&this.__awaiter||function(e,t,i,n){function adopt(e){return e instanceof i?e:new i(function(t){t(e)})}return new(i||(i=Promise))(function(i,a){function fulfilled(e){try{step(n.next(e))}catch(e){a(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){a(e)}}function step(e){e.done?i(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var a;Object.defineProperty(t,"__esModule",{value:true});const r=i(357);const s=i(747);const o=i(622);a=s.promises,t.chmod=a.chmod,t.copyFile=a.copyFile,t.lstat=a.lstat,t.mkdir=a.mkdir,t.readdir=a.readdir,t.readlink=a.readlink,t.rename=a.rename,t.rmdir=a.rmdir,t.stat=a.stat,t.symlink=a.symlink,t.unlink=a.unlink;t.IS_WINDOWS=process.platform==="win32";function exists(e){return n(this,void 0,void 0,function*(){try{yield t.stat(e)}catch(e){if(e.code==="ENOENT"){return false}throw e}return true})}t.exists=exists;function isDirectory(e,i=false){return n(this,void 0,void 0,function*(){const n=i?yield t.stat(e):yield t.lstat(e);return n.isDirectory()})}t.isDirectory=isDirectory;function isRooted(e){e=normalizeSeparators(e);if(!e){throw new Error('isRooted() parameter "p" cannot be empty')}if(t.IS_WINDOWS){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}t.isRooted=isRooted;function mkdirP(e,i=1e3,a=1){return n(this,void 0,void 0,function*(){r.ok(e,"a path argument must be provided");e=o.resolve(e);if(a>=i)return t.mkdir(e);try{yield t.mkdir(e);return}catch(n){switch(n.code){case"ENOENT":{yield mkdirP(o.dirname(e),i,a+1);yield t.mkdir(e);return}default:{let i;try{i=yield t.stat(e)}catch(e){throw n}if(!i.isDirectory())throw n}}}})}t.mkdirP=mkdirP;function tryGetExecutablePath(e,i){return n(this,void 0,void 0,function*(){let n=undefined;try{n=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(n&&n.isFile()){if(t.IS_WINDOWS){const t=o.extname(e).toUpperCase();if(i.some(e=>e.toUpperCase()===t)){return e}}else{if(isUnixExecutable(n)){return e}}}const a=e;for(const r of i){e=a+r;n=undefined;try{n=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(n&&n.isFile()){if(t.IS_WINDOWS){try{const i=o.dirname(e);const n=o.basename(e).toUpperCase();for(const a of yield t.readdir(i)){if(n===a.toUpperCase()){e=o.join(i,a);break}}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}else{if(isUnixExecutable(n)){return e}}}}return""})}t.tryGetExecutablePath=tryGetExecutablePath;function normalizeSeparators(e){e=e||"";if(t.IS_WINDOWS){e=e.replace(/\//g,"\\");return e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}function isUnixExecutable(e){return(e.mode&1)>0||(e.mode&8)>0&&e.gid===process.getgid()||(e.mode&64)>0&&e.uid===process.getuid()}},function(e){"use strict";e.exports=function generate_not(e,t,i){var n=" ";var a=e.level;var r=e.dataLevel;var s=e.schema[t];var o=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var l=!e.opts.allErrors;var c="data"+(r||"");var d="errs__"+a;var p=e.util.copy(e);p.level++;var f="valid"+p.level;if(e.opts.strictKeywords?typeof s=="object"&&Object.keys(s).length>0:e.util.schemaHasRules(s,e.RULES.all)){p.schema=s;p.schemaPath=o;p.errSchemaPath=u;n+=" var "+d+" = errors; ";var h=e.compositeRule;e.compositeRule=p.compositeRule=true;p.createErrors=false;var m;if(p.opts.allErrors){m=p.opts.allErrors;p.opts.allErrors=false}n+=" "+e.validate(p)+" ";p.createErrors=true;if(m)p.opts.allErrors=m;e.compositeRule=p.compositeRule=h;n+=" if ("+f+") { ";var b=b||[];b.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+"not"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ";if(e.opts.messages!==false){n+=" , message: 'should NOT be valid' "}if(e.opts.verbose){n+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}n+=" } "}else{n+=" {} "}var g=n;n=b.pop();if(!e.compositeRule&&l){if(e.async){n+=" throw new ValidationError(["+g+"]); "}else{n+=" validate.errors = ["+g+"]; return false; "}}else{n+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+=" } else { errors = "+d+"; if (vErrors !== null) { if ("+d+") vErrors.length = "+d+"; else vErrors = null; } ";if(e.opts.allErrors){n+=" } "}}else{n+=" var err = ";if(e.createErrors!==false){n+=" { keyword: '"+"not"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ";if(e.opts.messages!==false){n+=" , message: 'should NOT be valid' "}if(e.opts.verbose){n+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}n+=" } "}else{n+=" {} "}n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(l){n+=" if (false) { "}}return n}},function(e,t,i){var n=i(11);var a=Object.create(null);var r=i(49);e.exports=n(inflight);function inflight(e,t){if(a[e]){a[e].push(t);return null}else{a[e]=[t];return makeres(e)}}function makeres(e){return r(function RES(){var t=a[e];var i=t.length;var n=slice(arguments);try{for(var r=0;ri){t.splice(0,i);process.nextTick(function(){RES.apply(null,n)})}else{delete a[e]}}})}function slice(e){var t=e.length;var i=[];for(var n=0;n{const i=new r;const k=[];let C;let T;let R;let E;let A=0;let x=false;const N=e.cookieJar?a.promisify(e.cookieJar.setCookie.bind(e.cookieJar)):null;const V=e.cookieJar?a.promisify(e.cookieJar.getCookieString.bind(e.cookieJar)):null;const P=d.object(e.agent)?e.agent:null;const D=async t=>{try{for(const i of e.hooks.beforeError){t=await i(t)}i.emit("error",t)}catch(e){i.emit("error",e)}};const I=async e=>{const a=R||T;if(e.protocol!=="http:"&&e.protocol!=="https:"){throw new y(e)}decodeURI(a);let r;if(d.function(e.request)){r={request:e.request}}else{r=e.protocol==="https:"?o:s}if(P){const t=e.protocol==="https:"?"https":"http";e.agent=P[t]||e.agent}if(e.useElectronNet&&process.versions.electron){const e={x:require}["yx".slice(1)];const t=e("electron");r=t.net||t.remote.net}if(e.cookieJar){const t=await V(a,{});if(d.nonEmptyString(t)){e.headers.cookie=t}}let u;const c=async t=>{try{if(e.useElectronNet){t=new Proxy(t,{get:(e,t)=>{if(t==="trailers"||t==="rawTrailers"){return[]}const i=e[t];return d.function(i)?i.bind(e):i}})}const{statusCode:r}=t;t.url=a;t.requestUrl=T;t.retryCount=A;t.timings=u;t.redirectUrls=k;t.request={gotOptions:e};const s=t.headers["set-cookie"];if(e.cookieJar&&s){await Promise.all(s.map(e=>N(e,t.url)))}if(e.followRedirect&&"location"in t.headers){if(O.has(r)||j.has(r)&&(e.method==="GET"||e.method==="HEAD")){t.resume();if(r===303){e.method="GET"}if(k.length>=10){throw new S(r,k,e)}const s=Buffer.from(t.headers.location,"binary").toString();const o=new n(s,a);R=o.toString();k.push(R);const u={...e,...z(o)};for(const t of e.hooks.beforeRedirect){await t(u)}i.emit("redirect",t,u);await I(u);return}}m(t,e,i)}catch(e){D(e)}};const h=n=>{if(x){n.once("error",()=>{});n.abort();return}C=n;n.once("error",t=>{if(n.aborted){return}if(t instanceof f.TimeoutError){t=new v(t,e)}else{t=new w(t,e)}if(i.retry(t)===false){D(t)}});u=p(n);b.upload(n,i,E);if(e.gotTimeout){f(n,e.gotTimeout,e)}i.emit("request",n);const a=()=>{n.emit("upload-complete")};try{if(d.nodeStream(e.body)){e.body.once("end",a);e.body.pipe(n);e.body=undefined}else if(e.body){n.end(e.body,a)}else if(t&&(e.method==="POST"||e.method==="PUT"||e.method==="PATCH")){t.once("end",a);t.pipe(n)}else{n.end(a)}}catch(t){D(new w(t,e))}};if(e.cache){const t=new l(r.request,e.cache);const i=t(e,c);i.once("error",t=>{if(t instanceof l.RequestError){D(new w(t,e))}else{D(new g(t,e))}});i.once("request",h)}else{try{h(r.request(e,c))}catch(t){D(new w(t,e))}}};i.retry=(t=>{let i;try{i=e.retry.retries(++A,t)}catch(e){D(e);return}if(i){const n=async e=>{try{for(const i of e.hooks.beforeRetry){await i(e,t,A)}await I(e)}catch(e){D(e)}};setTimeout(n,i,{...e,forceRefresh:true});return true}return false});i.abort=(()=>{if(C){C.once("error",()=>{});C.abort()}else{x=true}});setImmediate(async()=>{try{const{body:t}=e;if(d.buffer(t)){e.body=c(t);E=t.length}else{E=await h(e)}if(d.undefined(e.headers["content-length"])&&d.undefined(e.headers["transfer-encoding"])){if((E>0||e.method==="PUT")&&!d.null(E)){e.headers["content-length"]=E}}for(const t of e.hooks.beforeRequest){await t(e)}T=e.href||new n(e.path,u.format(e)).toString();await I(e)}catch(e){D(e)}});return i})},,function(e,t,i){var n=i(866);e.exports={read:read,verify:n.verify,sign:n.sign,write:write};var a=i(872);var r=i(325);var s=i(215).Buffer;var o=i(98);var u=i(270);var l=i(852);var c=i(502);var d=i(268);var p=i(378);var f=i(575);var h=i(966);function read(e,t){if(typeof e!=="string"){a.buffer(e,"buf");e=e.toString("ascii")}var i=e.trim().split(/[\r\n]+/g);var r;var o=-1;while(!r&&o0){u=i[--l].match(/[-]+[ ]*END CERTIFICATE[ ]*[-]+/)}a.ok(u,"invalid PEM footer");i=i.slice(o,l+1);var c={};while(true){i=i.slice(1);r=i[0].match(/^([A-Za-z0-9-]+): (.+)$/);if(!r)break;c[r[1].toLowerCase()]=r[2]}i=i.slice(0,-1).join("");e=s.from(i,"base64");return n.read(e,t)}function write(e,t){var i=n.write(e,t);var a="CERTIFICATE";var r=i.toString("base64");var o=r.length+r.length/64+18+16+a.length*2+10;var u=s.alloc(o);var l=0;l+=u.write("-----BEGIN "+a+"-----\n",l);for(var c=0;cr.length)d=r.length;l+=u.write(r.slice(c,d),l);u[l++]=10;c=d}l+=u.write("-----END "+a+"-----\n",l);return u.slice(0,l)}},function(e){"use strict";function posix(e){return e.charAt(0)==="/"}function win32(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;var i=t.exec(e);var n=i[1]||"";var a=Boolean(n&&n.charAt(1)!==":");return Boolean(i[2]||a)}e.exports=process.platform==="win32"?win32:posix;e.exports.posix=posix;e.exports.win32=win32},function(e,t,i){const n=i(373);const[a,r]=process.version.substr(1).split(".").map(e=>parseInt(e,10));const s=a>12||a===12&&r>=8;const o=s&&n.getHashes().includes("shake256");e.exports=o},function(e){(function(t,i,n){if(true&&e.exports)e.exports=n();else if(typeof define==="function"&&define.amd)define(n);else i[t]=n()})("urljoin",this,function(){function normalize(e){var t=[];if(e.length===0){return""}if(typeof e[0]!=="string"){throw new TypeError("Url must be a string. Received "+e[0])}if(e[0].match(/^[^\/:]+:\/*$/)&&e.length>1){var i=e.shift();e[0]=i+e[0]}if(e[0].match(/^file:\/\/\//)){e[0]=e[0].replace(/^([^\/:]+):\/*/,"$1:///")}else{e[0]=e[0].replace(/^([^\/:]+):\/*/,"$1://")}for(var n=0;n0){a=a.replace(/^[\/]+/,"")}if(n0?"?":"")+s.join("&");return r}return function(){var e;if(typeof arguments[0]==="object"){e=arguments[0]}else{e=[].slice.call(arguments)}return normalize(e)}})},,function(e,t,i){"use strict";var n=i(128);var a=i(556);var r=i(910);var s=i(723);var o=Object.prototype.toString;var u=Object.prototype.hasOwnProperty;var l=9;var c=10;var d=13;var p=32;var f=33;var h=34;var m=35;var b=37;var g=38;var y=39;var S=42;var w=44;var v=45;var z=58;var j=61;var O=62;var k=63;var C=64;var T=91;var R=93;var E=96;var A=123;var x=124;var N=125;var V={};V[0]="\\0";V[7]="\\a";V[8]="\\b";V[9]="\\t";V[10]="\\n";V[11]="\\v";V[12]="\\f";V[13]="\\r";V[27]="\\e";V[34]='\\"';V[92]="\\\\";V[133]="\\N";V[160]="\\_";V[8232]="\\L";V[8233]="\\P";var P=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function compileStyleMap(e,t){var i,n,a,r,s,o,l;if(t===null)return{};i={};n=Object.keys(t);for(a=0,r=n.length;a0?e.charCodeAt(r-1):null;f=f&&isPlainSafe(s,o)}}else{for(r=0;rn&&e[p+1]!==" ";p=r}}else if(!isPrintable(s)){return B}o=r>0?e.charCodeAt(r-1):null;f=f&&isPlainSafe(s,o)}l=l||d&&(r-p-1>n&&e[p+1]!==" ")}if(!u&&!l){return f&&!a(e)?D:I}if(i>9&&needIndentIndicator(e)){return B}return l?q:_}function writeScalar(e,t,i,n){e.dump=function(){if(t.length===0){return"''"}if(!e.noCompatMode&&P.indexOf(t)!==-1){return"'"+t+"'"}var r=e.indent*Math.max(1,i);var s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-r);var o=n||e.flowLevel>-1&&i>=e.flowLevel;function testAmbiguity(t){return testImplicitResolving(e,t)}switch(chooseScalarStyle(t,o,e.indent,s,testAmbiguity)){case D:return t;case I:return"'"+t.replace(/'/g,"''")+"'";case _:return"|"+blockHeader(t,e.indent)+dropEndingNewline(indentString(t,r));case q:return">"+blockHeader(t,e.indent)+dropEndingNewline(indentString(foldString(t,s),r));case B:return'"'+escapeString(t,s)+'"';default:throw new a("impossible error: invalid scalar style")}}()}function blockHeader(e,t){var i=needIndentIndicator(e)?String(t):"";var n=e[e.length-1]==="\n";var a=n&&(e[e.length-2]==="\n"||e==="\n");var r=a?"+":n?"":"-";return i+r+"\n"}function dropEndingNewline(e){return e[e.length-1]==="\n"?e.slice(0,-1):e}function foldString(e,t){var i=/(\n+)([^\n]*)/g;var n=function(){var n=e.indexOf("\n");n=n!==-1?n:e.length;i.lastIndex=n;return foldLine(e.slice(0,n),t)}();var a=e[0]==="\n"||e[0]===" ";var r;var s;while(s=i.exec(e)){var o=s[1],u=s[2];r=u[0]===" ";n+=o+(!a&&!r&&u!==""?"\n":"")+foldLine(u,t);a=r}return n}function foldLine(e,t){if(e===""||e[0]===" ")return e;var i=/ [^ ]/g;var n;var a=0,r,s=0,o=0;var u="";while(n=i.exec(e)){o=n.index;if(o-a>t){r=s>a?s:o;u+="\n"+e.slice(a,r);a=r+1}s=o}u+="\n";if(e.length-a>t&&s>a){u+=e.slice(a,s)+"\n"+e.slice(s+1)}else{u+=e.slice(a)}return u.slice(1)}function escapeString(e){var t="";var i,n;var a;for(var r=0;r=55296&&i<=56319){n=e.charCodeAt(r+1);if(n>=56320&&n<=57343){t+=encodeHex((i-55296)*1024+n-56320+65536);r++;continue}}a=V[i];t+=!a&&isPrintable(i)?e[r]:a||encodeHex(i)}return t}function writeFlowSequence(e,t,i){var n="",a=e.tag,r,s;for(r=0,s=i.length;r1024)c+="? ";c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" ");if(!writeNode(e,t,l,false,false)){continue}c+=e.dump;n+=c}e.tag=a;e.dump="{"+n+"}"}function writeBlockMapping(e,t,i,n){var r="",s=e.tag,o=Object.keys(i),u,l,d,p,f,h;if(e.sortKeys===true){o.sort()}else if(typeof e.sortKeys==="function"){o.sort(e.sortKeys)}else if(e.sortKeys){throw new a("sortKeys must be a boolean or a function")}for(u=0,l=o.length;u1024;if(f){if(e.dump&&c===e.dump.charCodeAt(0)){h+="?"}else{h+="? "}}h+=e.dump;if(f){h+=generateNextLine(e,t)}if(!writeNode(e,t+1,p,true,f)){continue}if(e.dump&&c===e.dump.charCodeAt(0)){h+=":"}else{h+=": "}h+=e.dump;r+=h}e.tag=s;e.dump=r||"{}"}function detectType(e,t,i){var n,r,s,l,c,d;r=i?e.explicitTypes:e.implicitTypes;for(s=0,l=r.length;s tag resolver accepts not "'+d+'" style')}e.dump=n}return true}}return false}function writeNode(e,t,i,n,r,s){e.tag=null;e.dump=i;if(!detectType(e,i,false)){detectType(e,i,true)}var u=o.call(e.dump);if(n){n=e.flowLevel<0||e.flowLevel>t}var l=u==="[object Object]"||u==="[object Array]",c,d;if(l){c=e.duplicates.indexOf(i);d=c!==-1}if(e.tag!==null&&e.tag!=="?"||d||e.indent!==2&&t>0){r=false}if(d&&e.usedDuplicates[c]){e.dump="*ref_"+c}else{if(l&&d&&!e.usedDuplicates[c]){e.usedDuplicates[c]=true}if(u==="[object Object]"){if(n&&Object.keys(e.dump).length!==0){writeBlockMapping(e,t,e.dump,r);if(d){e.dump="&ref_"+c+e.dump}}else{writeFlowMapping(e,t,e.dump);if(d){e.dump="&ref_"+c+" "+e.dump}}}else if(u==="[object Array]"){var p=e.noArrayIndent&&t>0?t-1:t;if(n&&e.dump.length!==0){writeBlockSequence(e,p,e.dump,r);if(d){e.dump="&ref_"+c+e.dump}}else{writeFlowSequence(e,p,e.dump);if(d){e.dump="&ref_"+c+" "+e.dump}}}else if(u==="[object String]"){if(e.tag!=="?"){writeScalar(e,e.dump,t,s)}}else{if(e.skipInvalid)return false;throw new a("unacceptable kind of an object to dump "+u)}if(e.tag!==null&&e.tag!=="?"){e.dump="!<"+e.tag+"> "+e.dump}}return true}function getDuplicateReferences(e,t){var i=[],n=[],a,r;inspectNode(e,i,n);for(a=0,r=n.length;a=0){if(l){n+=" if (true) { "}return n}else{throw new Error('unknown format "'+s+'" is used in schema at path "'+e.errSchemaPath+'"')}}var b=typeof m=="object"&&!(m instanceof RegExp)&&m.validate;var g=b&&m.type||"string";if(b){var y=m.async===true;m=m.validate}if(g!=i){if(l){n+=" if (true) { "}return n}if(y){if(!e.async)throw new Error("async format in sync schema");var S="formats"+e.util.getProperty(s)+".validate";n+=" if (!(await "+S+"("+c+"))) { "}else{n+=" if (! ";var S="formats"+e.util.getProperty(s);if(b)S+=".validate";if(typeof m=="function"){n+=" "+S+"("+c+") "}else{n+=" "+S+".test("+c+") "}n+=") { "}}var w=w||[];w.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+"format"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { format: ";if(d){n+=""+p}else{n+=""+e.util.toQuotedString(s)}n+=" } ";if(e.opts.messages!==false){n+=" , message: 'should match format \"";if(d){n+="' + "+p+" + '"}else{n+=""+e.util.escapeQuotes(s)}n+="\"' "}if(e.opts.verbose){n+=" , schema: ";if(d){n+="validate.schema"+o}else{n+=""+e.util.toQuotedString(s)}n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}n+=" } "}else{n+=" {} "}var v=n;n=w.pop();if(!e.compositeRule&&l){if(e.async){n+=" throw new ValidationError(["+v+"]); "}else{n+=" validate.errors = ["+v+"]; return false; "}}else{n+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+=" } ";if(l){n+=" else { "}return n}},function(e,t,i){var n=i(602);var a=i(747);n.register("rm",_rm,{cmdOptions:{f:"force",r:"recursive",R:"recursive"}});function rmdirSyncRecursive(e,t,i){var r;r=a.readdirSync(e);for(var s=0;s1e3)throw e}else if(e.code==="ENOENT"){break}else{throw e}}}}catch(t){n.error("could not remove directory (code "+t.code+"): "+e,{continue:true})}return l}function isWriteable(e){var t=true;try{var i=a.openSync(e,"a");a.closeSync(i)}catch(e){t=false}return t}function handleFile(e,t){if(t.force||isWriteable(e)){n.unlinkSync(e)}else{n.error("permission denied: "+e,{continue:true})}}function handleDirectory(e,t){if(t.recursive){rmdirSyncRecursive(e,t.force)}else{n.error("path is a directory",{continue:true})}}function handleSymbolicLink(e,t){var i;try{i=n.statFollowLinks(e)}catch(t){n.unlinkSync(e);return}if(i.isFile()){n.unlinkSync(e)}else if(i.isDirectory()){if(e[e.length-1]==="/"){if(t.recursive){var a=true;rmdirSyncRecursive(e,t.force,a)}else{n.error("path is a directory",{continue:true})}}else{n.unlinkSync(e)}}}function handleFIFO(e){n.unlinkSync(e)}function _rm(e,t){if(!t)n.error("no paths given");t=[].slice.call(arguments,1);t.forEach(function(t){var i;try{var a=t[t.length-1]==="/"?t.slice(0,-1):t;i=n.statNoFollowLinks(a)}catch(i){if(!e.force){n.error("no such file or directory: "+t,{continue:true})}return}if(i.isFile()){handleFile(t,e)}else if(i.isDirectory()){handleDirectory(t,e)}else if(i.isSymbolicLink()){handleSymbolicLink(t,e)}else if(i.isFIFO()){handleFIFO(t)}});return""}e.exports=_rm},function(e,t,i){try{var n=i(669);if(typeof n.inherits!=="function")throw"";e.exports=n.inherits}catch(t){e.exports=i(315)}},,function(e,t,i){var n=i(602);var a=i(747);var r=i(622);n.register("which",_which,{allowGlobbing:false,cmdOptions:{a:"all"}});var s=".com;.exe;.bat;.cmd;.vbs;.vbe;.js;.jse;.wsf;.wsh";var o=1;function isWindowsPlatform(){return process.platform==="win32"}function splitPath(e){return e?e.split(r.delimiter):[]}function isExecutable(e){try{a.accessSync(e,o)}catch(e){return false}return true}function checkPath(e){return a.existsSync(e)&&!n.statFollowLinks(e).isDirectory()&&(isWindowsPlatform()||isExecutable(e))}function _which(e,t){if(!t)n.error("must specify command");var i=isWindowsPlatform();var a=splitPath(process.env.PATH);var o=[];if(t.indexOf("/")===-1){var u=[""];if(i){var l=process.env.PATHEXT||s;u=splitPath(l.toUpperCase())}for(var c=0;c0&&!e.all)break;var d=r.resolve(a[c],t);if(i){d=d.toUpperCase()}var p=d.match(/\.[^<>:"\/\|?*.]+$/);if(p&&u.indexOf(p[0])>=0){if(checkPath(d)){o.push(d);break}}else{for(var f=0;f0){return e.all?o:o[0]}return e.all?[]:null}e.exports=_which},,function(e,t,i){var n=i(602);var a=i(953).tempDir;var r=i(359);var s=i(622);var o=i(747);var u=i(129);var l=20*1024*1024;var c=1;n.register("exec",_exec,{unix:false,canReceivePipe:true,wrapOutput:false});function execSync(e,t,d){if(!n.config.execPath){n.error("Unable to find a path to the node binary. Please manually set config.execPath")}var p=a();var f=s.resolve(p+"/"+n.randomFileName());var h=s.resolve(p+"/"+n.randomFileName());var m=s.resolve(p+"/"+n.randomFileName());t=n.extend({silent:n.config.silent,cwd:r().toString(),env:process.env,maxBuffer:l,encoding:"utf8"},t);if(o.existsSync(f))n.unlinkSync(f);if(o.existsSync(h))n.unlinkSync(h);if(o.existsSync(m))n.unlinkSync(m);t.cwd=s.resolve(t.cwd);var b={command:e,execOptions:t,pipe:d,stdoutFile:m,stderrFile:h};o.writeFileSync(f,JSON.stringify(b),"utf8");var g=[i.ab+"exec-child.js",f];if(t.silent){t.stdio="ignore"}else{t.stdio=[0,1,2]}var y=0;try{delete t.shell;u.execFileSync(n.config.execPath,g,t)}catch(e){y=e.status||c}var S="";var w="";if(t.encoding==="buffer"){S=o.readFileSync(m);w=o.readFileSync(h)}else{S=o.readFileSync(m,t.encoding);w=o.readFileSync(h,t.encoding)}try{n.unlinkSync(f)}catch(e){}try{n.unlinkSync(h)}catch(e){}try{n.unlinkSync(m)}catch(e){}if(y!==0){n.error(w,y,{continue:true,silent:true})}var v=n.ShellString(S,w,y);return v}function execAsync(e,t,i,a){t=n.extend({silent:n.config.silent,cwd:r().toString(),env:process.env,maxBuffer:l,encoding:"utf8"},t);var s=u.exec(e,t,function(e,t,i){if(a){if(!e){a(0,t,i)}else if(e.code===undefined){a(1,t,i)}else{a(e.code,t,i)}}});if(i)s.stdin.end(i);if(!t.silent){s.stdout.pipe(process.stdout);s.stderr.pipe(process.stderr)}return s}function _exec(e,t,i){t=t||{};if(!e)n.error("must specify command");var a=n.readFromPipe();if(typeof t==="function"){i=t;t={async:true}}if(typeof t==="object"&&typeof i==="function"){t.async=true}t=n.extend({silent:n.config.silent,async:false},t);if(t.async){return execAsync(e,t,a,i)}else{return execSync(e,t,a)}}e.exports=_exec},function(e,t,i){const{randomBytes:n}=i(373);const a=i(208);const r=i(466);const s=BigInt(0);const o=BigInt(1);const u=BigInt(2);const l=e=>{const t=e.toString(16);return a.encodeBuffer(Buffer.from(t.length%2?`0${t}`:t,"hex"))};const c=e=>BigInt(`0x${e.toString("hex")}`);const d=e=>e.toString(2).length;const p=(e,t)=>{let i=s;let n=o;let a=o;let r=s;while(e!==s){const s=t/e;const o=t%e;const u=i-a*s;const l=n-r*s;t=e;e=o;i=a;n=r;a=u;r=l}return i};const f=(e,t)=>{let i=s;while(!((e|t)&o)){e>>=o;t>>=o;i++}while(!(e&o)){e>>=o}do{while(!(t&o)){t>>=o}if(e>t){const i=e;e=t;t=i}t-=e}while(t);return e<{e=g(e,i);let n=o;let a=e;while(t>0){var r=t%u;t=t/u;if(r===o){n=n*a;n=n%i}a=a*a;a=a%i}return n};const m=(e,t)=>{const i=t-e;const n=d(i);let a;do{a=c(b(n))}while(a>i);return a+e};const b=e=>{const t=Math.ceil(e/8);const i=n(t);i[0]=i[0]&2**(e%8)-1;return i};const g=(e,t)=>{e=e%t;return e<0?e+t:e};const y=e=>{let t=e;while(t%u===s){t=t/u}return t};const S=30;const w=22;const v=(e,t,i)=>{const n=y(e*t-o);let a=0;let l;do{a++;if(a===S){throw new r.JWKImportFailed("failed to calculate missing primes")}let e=0;let t=h(m(u,i),n,i);let c=s;while(t!==o){e++;if(e===w){throw new r.JWKImportFailed("failed to calculate missing primes")}c=t;t=t*t%i}if(c!==i-o){l=c}}while(!l);const c=f(l-o,i);const d=i/c;return c>d?{p:c,q:d}:{p:d,q:c}};e.exports=(e=>{const t=c(a.decodeToBuffer(e.e));const i=c(a.decodeToBuffer(e.d));const n=c(a.decodeToBuffer(e.n));if(i>=n){throw new r.JWKInvalid("invalid RSA private exponent")}const{p:s,q:u}=v(t,i,n);const d=i%(s-o);const f=i%(u-o);const h=g(p(g(u,s),s),s);return{...e,p:l(s),q:l(u),dp:l(d),dq:l(f),qi:l(h)}})},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=i(920);const a=i(376);t.ADD="add";t.UPDATE="update";t.DELETE="delete";function makeInformer(e,t,i){const r=new a.Watch(e);return new n.ListWatch(t,r,i,false)}t.makeInformer=makeInformer},function(e){"use strict";function isObject(e){return e!=null&&typeof e==="object"&&Array.isArray(e)===false}function isObjectObject(e){return isObject(e)===true&&Object.prototype.toString.call(e)==="[object Object]"}function isPlainObject(e){var t,i;if(isObjectObject(e)===false)return false;t=e.constructor;if(typeof t!=="function")return false;i=t.prototype;if(isObjectObject(i)===false)return false;if(i.hasOwnProperty("isPrototypeOf")===false){return false}return true}e.exports=isPlainObject},function(e,t,i){var n=i(357);var a=i(669);t.sprintf=jsSprintf;t.printf=jsPrintf;t.fprintf=jsFprintf;function jsSprintf(e){var t=["([^%]*)","%","(['\\-+ #0]*?)","([1-9]\\d*)?","(\\.([1-9]\\d*))?","[lhjztL]*?","([diouxXfFeEgGaAcCsSp%jr])"].join("");var i=new RegExp(t);var r=Array.prototype.slice.call(arguments,1);var s,o,u,l;var c,d,p,f,h;var m="";var b=1;n.equal("string",typeof e);while((h=i.exec(e))!==null){m+=h[1];e=e.substring(h[0].length);s=h[2]||"";o=h[3]||0;u=h[4]||"";l=h[6];c=false;p=false;d=" ";if(l=="%"){m+="%";continue}if(r.length===0)throw new Error("too few args to sprintf");f=r.shift();b++;if(s.match(/[\' #]/))throw new Error("unsupported flags: "+s);if(u.length>0)throw new Error("non-zero precision not supported");if(s.match(/-/))c=true;if(s.match(/0/))d="0";if(s.match(/\+/))p=true;switch(l){case"s":if(f===undefined||f===null)throw new Error("argument "+b+": attempted to print undefined or null "+"as a string");m+=doPad(d,o,c,f.toString());break;case"d":f=Math.floor(f);case"f":p=p&&f>0?"+":"";m+=p+doPad(d,o,c,f.toString());break;case"x":m+=doPad(d,o,c,f.toString(16));break;case"j":if(o===0)o=10;m+=a.inspect(f,false,o);break;case"r":m+=dumpException(f);break;default:throw new Error("unsupported conversion: "+l)}}m+=e;return m}function jsPrintf(){var e=Array.prototype.slice.call(arguments);e.unshift(process.stdout);jsFprintf.apply(null,e)}function jsFprintf(e){var t=Array.prototype.slice.call(arguments,1);return e.write(jsSprintf.apply(this,t))}function doPad(e,t,i,n){var a=n;while(a.length=58){break}a++}if(ai){return null}if(!n&&a!=e.length){return null}return parseInt(e.substr(0,a),10)}function parseTime(e){var t=e.split(":");var i=[0,0,0];if(t.length!==3){return null}for(var n=0;n<3;n++){var a=n==2;var r=parseDigits(t[n],1,2,a);if(r===null){return null}i[n]=r}return i}function parseMonth(e){e=String(e).substr(0,3).toLowerCase();var t=g[e];return t>=0?t:null}function parseDate(e){if(!e){return}var t=e.split(b);if(!t){return}var i=null;var n=null;var a=null;var r=null;var s=null;var o=null;for(var u=0;u=70&&o<=99){o+=1900}else if(o>=0&&o<=69){o+=2e3}}}}if(r===null||s===null||o===null||a===null||r<1||r>31||o<1601||i>23||n>59||a>59){return}return new Date(Date.UTC(o,s,r,i,n,a))}function formatDate(e){var t=e.getUTCDate();t=t>=10?t:"0"+t;var i=e.getUTCHours();i=i>=10?i:"0"+i;var n=e.getUTCMinutes();n=n>=10?n:"0"+n;var a=e.getUTCSeconds();a=a>=10?a:"0"+a;return S[e.getUTCDay()]+", "+t+" "+y[e.getUTCMonth()]+" "+e.getUTCFullYear()+" "+i+":"+n+":"+a+" GMT"}function canonicalDomain(e){if(e==null){return null}e=e.trim().replace(/^\./,"");if(d&&/[^\u0001-\u007f]/.test(e)){e=d.toASCII(e)}return e.toLowerCase()}function domainMatch(e,t,i){if(e==null||t==null){return null}if(i!==false){e=canonicalDomain(e);t=canonicalDomain(t)}if(e==t){return true}if(n.isIP(e)){return false}var a=e.indexOf(t);if(a<=0){return false}if(e.length!==t.length+a){return false}if(e.substr(a-1,1)!=="."){return false}return true}function defaultPath(e){if(!e||e.substr(0,1)!=="/"){return"/"}if(e==="/"){return e}var t=e.lastIndexOf("/");if(t===0){return"/"}return e.slice(0,t)}function trimTerminator(e){for(var t=0;t1){var i=e.lastIndexOf("/");if(i===0){break}e=e.substr(0,i);t.push(e)}t.push("/");return t}function getCookieContext(e){if(e instanceof Object){return e}try{e=decodeURI(e)}catch(e){}return a(e)}function Cookie(e){e=e||{};Object.keys(e).forEach(function(t){if(Cookie.prototype.hasOwnProperty(t)&&Cookie.prototype[t]!==e[t]&&t.substr(0,1)!=="_"){this[t]=e[t]}},this);this.creation=this.creation||new Date;Object.defineProperty(this,"creationIndex",{configurable:false,enumerable:false,writable:true,value:++Cookie.cookiesCreated})}Cookie.cookiesCreated=0;Cookie.parse=parse;Cookie.fromJSON=fromJSON;Cookie.prototype.key="";Cookie.prototype.value="";Cookie.prototype.expires="Infinity";Cookie.prototype.maxAge=null;Cookie.prototype.domain=null;Cookie.prototype.path=null;Cookie.prototype.secure=false;Cookie.prototype.httpOnly=false;Cookie.prototype.extensions=null;Cookie.prototype.hostOnly=null;Cookie.prototype.pathIsDefault=null;Cookie.prototype.creation=null;Cookie.prototype.lastAccessed=null;Object.defineProperty(Cookie.prototype,"creationIndex",{configurable:true,enumerable:false,writable:true,value:0});Cookie.serializableProperties=Object.keys(Cookie.prototype).filter(function(e){return!(Cookie.prototype[e]instanceof Function||e==="creationIndex"||e.substr(0,1)==="_")});Cookie.prototype.inspect=function inspect(){var e=Date.now();return'Cookie="'+this.toString()+"; hostOnly="+(this.hostOnly!=null?this.hostOnly:"?")+"; aAge="+(this.lastAccessed?e-this.lastAccessed.getTime()+"ms":"?")+"; cAge="+(this.creation?e-this.creation.getTime()+"ms":"?")+'"'};if(r.inspect.custom){Cookie.prototype[r.inspect.custom]=Cookie.prototype.inspect}Cookie.prototype.toJSON=function(){var e={};var t=Cookie.serializableProperties;for(var i=0;i1;class LRUCache{constructor(e){if(typeof e==="number")e={max:e};if(!e)e={};if(e.max&&(typeof e.max!=="number"||e.max<0))throw new TypeError("max must be a non-negative number");const t=this[a]=e.max||Infinity;const i=e.length||h;this[s]=typeof i!=="function"?h:i;this[o]=e.stale||false;if(e.maxAge&&typeof e.maxAge!=="number")throw new TypeError("maxAge must be a number");this[u]=e.maxAge||0;this[l]=e.dispose;this[c]=e.noDisposeOnSet||false;this[f]=e.updateAgeOnGet||false;this.reset()}set max(e){if(typeof e!=="number"||e<0)throw new TypeError("max must be a non-negative number");this[a]=e||Infinity;g(this)}get max(){return this[a]}set allowStale(e){this[o]=!!e}get allowStale(){return this[o]}set maxAge(e){if(typeof e!=="number")throw new TypeError("maxAge must be a non-negative number");this[u]=e;g(this)}get maxAge(){return this[u]}set lengthCalculator(e){if(typeof e!=="function")e=h;if(e!==this[s]){this[s]=e;this[r]=0;this[d].forEach(e=>{e.length=this[s](e.value,e.key);this[r]+=e.length})}g(this)}get lengthCalculator(){return this[s]}get length(){return this[r]}get itemCount(){return this[d].length}rforEach(e,t){t=t||this;for(let i=this[d].tail;i!==null;){const n=i.prev;S(this,e,i,t);i=n}}forEach(e,t){t=t||this;for(let i=this[d].head;i!==null;){const n=i.next;S(this,e,i,t);i=n}}keys(){return this[d].toArray().map(e=>e.key)}values(){return this[d].toArray().map(e=>e.value)}reset(){if(this[l]&&this[d]&&this[d].length){this[d].forEach(e=>this[l](e.key,e.value))}this[p]=new Map;this[d]=new n;this[r]=0}dump(){return this[d].map(e=>b(this,e)?false:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[d]}set(e,t,i){i=i||this[u];if(i&&typeof i!=="number")throw new TypeError("maxAge must be a number");const n=i?Date.now():0;const o=this[s](t,e);if(this[p].has(e)){if(o>this[a]){y(this,this[p].get(e));return false}const s=this[p].get(e);const u=s.value;if(this[l]){if(!this[c])this[l](e,u.value)}u.now=n;u.maxAge=i;u.value=t;this[r]+=o-u.length;u.length=o;this.get(e);g(this);return true}const f=new Entry(e,t,o,n,i);if(f.length>this[a]){if(this[l])this[l](e,t);return false}this[r]+=f.length;this[d].unshift(f);this[p].set(e,this[d].head);g(this);return true}has(e){if(!this[p].has(e))return false;const t=this[p].get(e).value;return!b(this,t)}get(e){return m(this,e,true)}peek(e){return m(this,e,false)}pop(){const e=this[d].tail;if(!e)return null;y(this,e);return e.value}del(e){y(this,this[p].get(e))}load(e){this.reset();const t=Date.now();for(let i=e.length-1;i>=0;i--){const n=e[i];const a=n.e||0;if(a===0)this.set(n.k,n.v);else{const e=a-t;if(e>0){this.set(n.k,n.v,e)}}}}prune(){this[p].forEach((e,t)=>m(this,t,false))}}const m=(e,t,i)=>{const n=e[p].get(t);if(n){const t=n.value;if(b(e,t)){y(e,n);if(!e[o])return undefined}else{if(i){if(e[f])n.value.now=Date.now();e[d].unshiftNode(n)}}return t.value}};const b=(e,t)=>{if(!t||!t.maxAge&&!e[u])return false;const i=Date.now()-t.now;return t.maxAge?i>t.maxAge:e[u]&&i>e[u]};const g=e=>{if(e[r]>e[a]){for(let t=e[d].tail;e[r]>e[a]&&t!==null;){const i=t.prev;y(e,t);t=i}}};const y=(e,t)=>{if(t){const i=t.value;if(e[l])e[l](i.key,i.value);e[r]-=i.length;e[p].delete(i.key);e[d].removeNode(t)}};class Entry{constructor(e,t,i,n,a){this.key=e;this.value=t;this.length=i;this.now=n;this.maxAge=a||0}}const S=(e,t,i,n)=>{let a=i.value;if(b(e,a)){y(e,i);if(!e[o])a=undefined}if(a)t.call(n,a.value,a.key,e)};e.exports=LRUCache},function(e){(function(t,i){if(typeof define==="function"&&define.amd){define([],function(){return i()})}else if(true&&e.exports){e.exports=i()}else{t.jsonSchema=i()}})(this,function(){var e=validate;e.Integer={type:"integer"};var t={String:String,Boolean:Boolean,Number:Number,Object:Object,Array:Array,Date:Date};e.validate=validate;function validate(e,t){return validate(e,t,{changing:false})}e.checkPropertyChange=function(e,t,i){return validate(e,t,{changing:i||"property"})};var validate=e._validate=function(e,i,n){if(!n)n={};var a=n.changing;function getType(e){return e.type||t[e.name]==e&&e.name.toLowerCase()}var r=[];function checkProp(e,t,i,s){var o;i+=i?typeof s=="number"?"["+s+"]":typeof s=="undefined"?"":"."+s:s;function addError(e){r.push({property:i,message:e})}if((typeof t!="object"||t instanceof Array)&&(i||typeof t!="function")&&!(t&&getType(t))){if(typeof t=="function"){if(!(e instanceof t)){addError("is not an instance of the class/constructor "+t.name)}}else if(t){addError("Invalid schema/property definition "+t)}return null}if(a&&t.readonly){addError("is a readonly field, it can not be changed")}if(t["extends"]){checkProp(e,t["extends"],i,s)}function checkType(e,t){if(e){if(typeof e=="string"&&e!="any"&&(e=="null"?t!==null:typeof t!=e)&&!(t instanceof Array&&e=="array")&&!(t instanceof Date&&e=="date")&&!(e=="integer"&&t%1===0)){return[{property:i,message:typeof t+" value found, but a "+e+" is required"}]}if(e instanceof Array){var n=[];for(var a=0;at.maxItems){addError("There must be a maximum of "+t.maxItems+" in the array")}}else if(t.properties||t.additionalProperties){r.concat(checkObj(e,t.properties,i,t.additionalProperties))}if(t.pattern&&typeof e=="string"&&!e.match(t.pattern)){addError("does not match the regex pattern "+t.pattern)}if(t.maxLength&&typeof e=="string"&&e.length>t.maxLength){addError("may only be "+t.maxLength+" characters long")}if(t.minLength&&typeof e=="string"&&e.lengthe){addError("must have a minimum value of "+t.minimum)}if(typeof t.maximum!==undefined&&typeof e==typeof t.maximum&&t.maximum0){var s=i.indexOf(this);~s?i.splice(s+1):i.push(this);~s?n.splice(s,Infinity,a):n.push(a);if(~i.indexOf(r))r=t.call(this,a,r)}else i.push(r);return e==null?r:e.call(this,a,r)}}},function(e,t,i){var n=i(622);var a=i(747);var r=i(602);var s=i(402);var o=n.sep+"**";r.register("ls",_ls,{cmdOptions:{R:"recursive",A:"all",L:"link",a:"all_deprecated",d:"directory",l:"long"}});function _ls(e,t){if(e.all_deprecated){r.log("ls: Option -a is deprecated. Use -A instead");e.all=true}if(!t){t=["."]}else{t=[].slice.call(arguments,1)}var i=[];function pushFile(t,n,a){if(process.platform==="win32"){n=n.replace(/\\/g,"/")}if(e.long){a=a||(e.link?r.statFollowLinks(t):r.statNoFollowLinks(t));i.push(addLsAttributes(n,a))}else{i.push(n)}}t.forEach(function(t){var i;try{i=e.link?r.statFollowLinks(t):r.statNoFollowLinks(t);if(i.isSymbolicLink()){try{var u=r.statFollowLinks(t);if(u.isDirectory()){i=u}}catch(e){}}}catch(e){r.error("no such file or directory: "+t,2,{continue:true});return}if(i.isDirectory()&&!e.directory){if(e.recursive){s.sync(t+o,{dot:e.all,follow:e.link}).forEach(function(e){if(n.relative(t,e)){pushFile(e,n.relative(t,e))}})}else if(e.all){a.readdirSync(t).forEach(function(e){pushFile(n.join(t,e),e)})}else{a.readdirSync(t).forEach(function(e){if(e[0]!=="."){pushFile(n.join(t,e),e)}})}}else{pushFile(t,t,i)}});return i}function addLsAttributes(e,t){t.name=e;t.toString=function(){return[this.mode,this.nlink,this.uid,this.gid,this.size,this.mtime,this.name].join(" ")};return t}e.exports=_ls},function(e){"use strict";e.exports=function generate_propertyNames(e,t,i){var n=" ";var a=e.level;var r=e.dataLevel;var s=e.schema[t];var o=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var l=!e.opts.allErrors;var c="data"+(r||"");var d="errs__"+a;var p=e.util.copy(e);var f="";p.level++;var h="valid"+p.level;n+="var "+d+" = errors;";if(e.opts.strictKeywords?typeof s=="object"&&Object.keys(s).length>0:e.util.schemaHasRules(s,e.RULES.all)){p.schema=s;p.schemaPath=o;p.errSchemaPath=u;var m="key"+a,b="idx"+a,g="i"+a,y="' + "+m+" + '",S=p.dataLevel=e.dataLevel+1,w="data"+S,v="dataProperties"+a,z=e.opts.ownProperties,j=e.baseId;if(z){n+=" var "+v+" = undefined; "}if(z){n+=" "+v+" = "+v+" || Object.keys("+c+"); for (var "+b+"=0; "+b+"<"+v+".length; "+b+"++) { var "+m+" = "+v+"["+b+"]; "}else{n+=" for (var "+m+" in "+c+") { "}n+=" var startErrs"+a+" = errors; ";var O=m;var k=e.compositeRule;e.compositeRule=p.compositeRule=true;var C=e.validate(p);p.baseId=j;if(e.util.varOccurences(C,w)<2){n+=" "+e.util.varReplace(C,w,O)+" "}else{n+=" var "+w+" = "+O+"; "+C+" "}e.compositeRule=p.compositeRule=k;n+=" if (!"+h+") { for (var "+g+"=startErrs"+a+"; "+g+"{const s=r(i.kty,i.crv);const o=t(s,i,n);const u=e({[a]:o},n);u.header=u.header||{};Object.assign(u.header,{epk:{kty:i.kty,crv:i.crv,x:s.x,y:s.y}});return u};const c=(e,t,i,n,r)=>{const{epk:s}=r;const o=t(i,s,r);return e({[a]:o},n,r)};e.exports=((e,t)=>{["ECDH-ES+A128KW","ECDH-ES+A192KW","ECDH-ES+A256KW"].forEach(i=>{const a=i.substr(-6);const r=e.keyManagementEncrypt.get(a);const d=e.keyManagementDecrypt.get(a);const p=parseInt(i.substr(9,3),10);o.set(i,p);if(r&&d){e.keyManagementEncrypt.set(i,l.bind(undefined,r,u.bind(undefined,i,p)));e.keyManagementDecrypt.set(i,c.bind(undefined,d,u.bind(undefined,i,p)));t.EC.deriveKey[i]=(e=>(e.use==="enc"||e.use===undefined)&&e.crv!==s);if(n){t.OKP.deriveKey[i]=(e=>(e.use==="enc"||e.use===undefined)&&e.keyObject.asymmetricKeyType.startsWith("x"))}}})});e.exports.wrapKey=l;e.exports.unwrapKey=c},function(e,t,i){const n=i(830);const a=(e,t)=>{const i=n(e,t);return i?i.version:null};e.exports=a},function(e,t,i){const n=i(849);const a=i(96);const r=i(973);const s=i(115);const o=i(592);const u=i(626);e.exports={...u,asKey:o,isKey:e=>e instanceof n,None:a,EmbeddedJWK:r,EmbeddedX5C:s};Object.defineProperty(e.exports,"importKey",{value:o.deprecated,enumerable:false})},,,function(e,t,i){"use strict";var n=i(413);function DuplexWrapper(e,t,i){if(typeof i==="undefined"){i=t;t=e;e=null}n.Duplex.call(this,e);if(typeof i.read!=="function"){i=new n.Readable(e).wrap(i)}this._writable=t;this._readable=i;this._waiting=false;var a=this;t.once("finish",function(){a.end()});this.once("finish",function(){t.end()});i.on("readable",function(){if(a._waiting){a._waiting=false;a._read()}});i.once("end",function(){a.push(null)});if(!e||typeof e.bubbleErrors==="undefined"||e.bubbleErrors){t.on("error",function(e){a.emit("error",e)});i.on("error",function(e){a.emit("error",e)})}}DuplexWrapper.prototype=Object.create(n.Duplex.prototype,{constructor:{value:DuplexWrapper}});DuplexWrapper.prototype._write=function _write(e,t,i){this._writable.write(e,t,i)};DuplexWrapper.prototype._read=function _read(){var e;var t=0;while((e=this._readable.read())!==null){this.push(e);t++}if(t===0){this._waiting=true}};e.exports=function duplex2(e,t,i){return new DuplexWrapper(e,t,i)};e.exports.DuplexWrapper=DuplexWrapper},function(e,t,i){"use strict";var n=String.prototype.replace;var a=/%20/g;var r=i(4);var s={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports=r.assign({default:s.RFC3986,formatters:{RFC1738:function(e){return n.call(e,a,"+")},RFC3986:function(e){return String(e)}}},s)},function(e,t,i){const{strict:n}=i(357);const{Reporter:a}=i(410);const{DecoderBuffer:r,EncoderBuffer:s}=i(335);const o=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"];const u=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(o);const l=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function Node(e,t,i){const n={};this._baseState=n;n.name=i;n.enc=e;n.parent=t||null;n.children=null;n.tag=null;n.args=null;n.reverseArgs=null;n.choice=null;n.optional=false;n.any=false;n.obj=false;n.use=null;n.useDecoder=null;n.key=null;n.default=null;n.explicit=null;n.implicit=null;n.contains=null;if(!n.parent){n.children=[];this._wrap()}}const c=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];Node.prototype.clone=function clone(){const e=this._baseState;const t={};c.forEach(function(i){t[i]=e[i]});const i=new this.constructor(t.parent);i._baseState=t;return i};Node.prototype._wrap=function wrap(){const e=this._baseState;u.forEach(function(t){this[t]=function _wrappedMethod(){const i=new this.constructor(this);e.children.push(i);return i[t].apply(i,arguments)}},this)};Node.prototype._init=function init(e){const t=this._baseState;n(t.parent===null);e.call(this);t.children=t.children.filter(function(e){return e._baseState.parent===this},this);n.equal(t.children.length,1,"Root node can have only one child")};Node.prototype._useArgs=function useArgs(e){const t=this._baseState;const i=e.filter(function(e){return e instanceof this.constructor},this);e=e.filter(function(e){return!(e instanceof this.constructor)},this);if(i.length!==0){n(t.children===null);t.children=i;i.forEach(function(e){e._baseState.parent=this},this)}if(e.length!==0){n(t.args===null);t.args=e;t.reverseArgs=e.map(function(e){if(typeof e!=="object"||e.constructor!==Object){return e}const t={};Object.keys(e).forEach(function(i){if(i==(i|0)){i|=0}const n=e[i];t[n]=i});return t})}};l.forEach(function(e){Node.prototype[e]=function _overrided(){const t=this._baseState;throw new Error(`${e} not implemented for encoding: ${t.enc}`)}});o.forEach(function(e){Node.prototype[e]=function _tagMethod(){const t=this._baseState;const i=Array.prototype.slice.call(arguments);n(t.tag===null);t.tag=e;this._useArgs(i);return this}});Node.prototype.use=function use(e){n(e);const t=this._baseState;n(t.use===null);t.use=e;return this};Node.prototype.optional=function optional(){const e=this._baseState;e.optional=true;return this};Node.prototype.def=function def(e){const t=this._baseState;n(t.default===null);t.default=e;t.optional=true;return this};Node.prototype.explicit=function explicit(e){const t=this._baseState;n(t.explicit===null&&t.implicit===null);t.explicit=e;return this};Node.prototype.implicit=function implicit(e){const t=this._baseState;n(t.explicit===null&&t.implicit===null);t.implicit=e;return this};Node.prototype.obj=function obj(){const e=this._baseState;const t=Array.prototype.slice.call(arguments);e.obj=true;if(t.length!==0){this._useArgs(t)}return this};Node.prototype.key=function key(e){const t=this._baseState;n(t.key===null);t.key=e;return this};Node.prototype.any=function any(){const e=this._baseState;e.any=true;return this};Node.prototype.choice=function choice(e){const t=this._baseState;n(t.choice===null);t.choice=e;this._useArgs(Object.keys(e).map(function(t){return e[t]}));return this};Node.prototype.contains=function contains(e){const t=this._baseState;n(t.use===null);t.contains=e;return this};Node.prototype._decode=function decode(e,t){const i=this._baseState;if(i.parent===null){return e.wrapResult(i.children[0]._decode(e,t))}let n=i.default;let a=true;let s=null;if(i.key!==null){s=e.enterKey(i.key)}if(i.optional){let n=null;if(i.explicit!==null){n=i.explicit}else if(i.implicit!==null){n=i.implicit}else if(i.tag!==null){n=i.tag}if(n===null&&!i.any){const n=e.save();try{if(i.choice===null){this._decodeGeneric(i.tag,e,t)}else{this._decodeChoice(e,t)}a=true}catch(e){a=false}e.restore(n)}else{a=this._peekTag(e,n,i.any);if(e.isError(a)){return a}}}let o;if(i.obj&&a){o=e.enterObject()}if(a){if(i.explicit!==null){const t=this._decodeTag(e,i.explicit);if(e.isError(t)){return t}e=t}const a=e.offset;if(i.use===null&&i.choice===null){let t;if(i.any){t=e.save()}const a=this._decodeTag(e,i.implicit!==null?i.implicit:i.tag,i.any);if(e.isError(a)){return a}if(i.any){n=e.raw(t)}else{e=a}}if(t&&t.track&&i.tag!==null){t.track(e.path(),a,e.length,"tagged")}if(t&&t.track&&i.tag!==null){t.track(e.path(),e.offset,e.length,"content")}if(i.any){}else if(i.choice===null){n=this._decodeGeneric(i.tag,e,t)}else{n=this._decodeChoice(e,t)}if(e.isError(n)){return n}if(!i.any&&i.choice===null&&i.children!==null){i.children.forEach(function decodeChildren(i){i._decode(e,t)})}if(i.contains&&(i.tag==="octstr"||i.tag==="bitstr")){const a=new r(n);n=this._getUse(i.contains,e._reporterState.obj)._decode(a,t)}}if(i.obj&&a){n=e.leaveObject(o)}if(i.key!==null&&(n!==null||a===true)){e.leaveKey(s,i.key,n)}else if(s!==null){e.exitKey(s)}return n};Node.prototype._decodeGeneric=function decodeGeneric(e,t,i){const n=this._baseState;if(e==="seq"||e==="set"){return null}if(e==="seqof"||e==="setof"){return this._decodeList(t,e,n.args[0],i)}else if(/str$/.test(e)){return this._decodeStr(t,e,i)}else if(e==="objid"&&n.args){return this._decodeObjid(t,n.args[0],n.args[1],i)}else if(e==="objid"){return this._decodeObjid(t,null,null,i)}else if(e==="gentime"||e==="utctime"){return this._decodeTime(t,e,i)}else if(e==="null_"){return this._decodeNull(t,i)}else if(e==="bool"){return this._decodeBool(t,i)}else if(e==="objDesc"){return this._decodeStr(t,e,i)}else if(e==="int"||e==="enum"){return this._decodeInt(t,n.args&&n.args[0],i)}if(n.use!==null){return this._getUse(n.use,t._reporterState.obj)._decode(t,i)}else{return t.error(`unknown tag: ${e}`)}};Node.prototype._getUse=function _getUse(e,t){const i=this._baseState;i.useDecoder=this._use(e,t);n(i.useDecoder._baseState.parent===null);i.useDecoder=i.useDecoder._baseState.children[0];if(i.implicit!==i.useDecoder._baseState.implicit){i.useDecoder=i.useDecoder.clone();i.useDecoder._baseState.implicit=i.implicit}return i.useDecoder};Node.prototype._decodeChoice=function decodeChoice(e,t){const i=this._baseState;let n=null;let a=false;Object.keys(i.choice).some(function(r){const s=e.save();const o=i.choice[r];try{const i=o._decode(e,t);if(e.isError(i)){return false}n={type:r,value:i};a=true}catch(t){e.restore(s);return false}return true},this);if(!a){return e.error("Choice not matched")}return n};Node.prototype._createEncoderBuffer=function createEncoderBuffer(e){return new s(e,this.reporter)};Node.prototype._encode=function encode(e,t,i){const n=this._baseState;if(n.default!==null&&n.default===e){return}const a=this._encodeValue(e,t,i);if(a===undefined){return}if(this._skipDefault(a,t,i)){return}return a};Node.prototype._encodeValue=function encode(e,t,i){const n=this._baseState;if(n.parent===null){return n.children[0]._encode(e,t||new a)}let r=null;this.reporter=t;if(n.optional&&e===undefined){if(n.default!==null){e=n.default}else{return}}let s=null;let o=false;if(n.any){r=this._createEncoderBuffer(e)}else if(n.choice){r=this._encodeChoice(e,t)}else if(n.contains){s=this._getUse(n.contains,i)._encode(e,t);o=true}else if(n.children){s=n.children.map(function(i){if(i._baseState.tag==="null_"){return i._encode(null,t,e)}if(i._baseState.key===null){return t.error("Child should have a key")}const n=t.enterKey(i._baseState.key);if(typeof e!=="object"){return t.error("Child expected, but input is not object")}const a=i._encode(e[i._baseState.key],t,e);t.leaveKey(n);return a},this).filter(function(e){return e});s=this._createEncoderBuffer(s)}else{if(n.tag==="seqof"||n.tag==="setof"){if(!(n.args&&n.args.length===1)){return t.error(`Too many args for: ${n.tag}`)}if(!Array.isArray(e)){return t.error("seqof/setof, but data is not Array")}const i=this.clone();i._baseState.implicit=null;s=this._createEncoderBuffer(e.map(function(i){const n=this._baseState;return this._getUse(n.args[0],e)._encode(i,t)},i))}else if(n.use!==null){r=this._getUse(n.use,i)._encode(e,t)}else{s=this._encodePrimitive(n.tag,e);o=true}}if(!n.any&&n.choice===null){const e=n.implicit!==null?n.implicit:n.tag;const i=n.implicit===null?"universal":"context";if(e===null){if(n.use===null){t.error("Tag could be omitted only for .use()")}}else{if(n.use===null){r=this._encodeComposite(e,o,i,s)}}}if(n.explicit!==null){r=this._encodeComposite(n.explicit,false,"context",r)}return r};Node.prototype._encodeChoice=function encodeChoice(e,t){const i=this._baseState;const a=i.choice[e.type];if(!a){n(false,`${e.type} not found in ${JSON.stringify(Object.keys(i.choice))}`)}return a._encode(e.value,t)};Node.prototype._encodePrimitive=function encodePrimitive(e,t){const i=this._baseState;if(/str$/.test(e)){return this._encodeStr(t,e)}else if(e==="objid"&&i.args){return this._encodeObjid(t,i.reverseArgs[0],i.args[1])}else if(e==="objid"){return this._encodeObjid(t,null,null)}else if(e==="gentime"||e==="utctime"){return this._encodeTime(t,e)}else if(e==="null_"){return this._encodeNull()}else if(e==="int"||e==="enum"){return this._encodeInt(t,i.args&&i.reverseArgs[0])}else if(e==="bool"){return this._encodeBool(t)}else if(e==="objDesc"){return this._encodeStr(t,e)}else{throw new Error(`Unsupported tag: ${e}`)}};Node.prototype._isNumstr=function isNumstr(e){return/^[0-9 ]*$/.test(e)};Node.prototype._isPrintstr=function isPrintstr(e){return/^[A-Za-z0-9 '()+,-.\/:=?]*$/.test(e)};e.exports=Node},function(e){"use strict";function formatHostname(e){return e.replace(/^\.*/,".").toLowerCase()}function parseNoProxyZone(e){e=e.trim().toLowerCase();var t=e.split(":",2);var i=formatHostname(t[0]);var n=t[1];var a=e.indexOf(":")>-1;return{hostname:i,port:n,hasPort:a}}function uriInNoProxy(e,t){var i=e.port||(e.protocol==="https:"?"443":"80");var n=formatHostname(e.hostname);var a=t.split(",");return a.map(parseNoProxyZone).some(function(e){var t=n.indexOf(e.hostname);var a=t>-1&&t===n.length-e.hostname.length;if(e.hasPort){return i===e.port&&a}return a})}function getProxyFromURI(e){var t=process.env.NO_PROXY||process.env.no_proxy||"";if(t==="*"){return null}if(t!==""&&uriInNoProxy(e,t)){return null}if(e.protocol==="http:"){return process.env.HTTP_PROXY||process.env.http_proxy||null}if(e.protocol==="https:"){return process.env.HTTPS_PROXY||process.env.https_proxy||process.env.HTTP_PROXY||process.env.http_proxy||null}return null}e.exports=getProxyFromURI},function(e){var t=[];for(var i=0;i<256;++i){t[i]=(i+256).toString(16).substr(1)}function bytesToUuid(e,i){var n=i||0;var a=t;return[a[e[n++]],a[e[n++]],a[e[n++]],a[e[n++]],"-",a[e[n++]],a[e[n++]],"-",a[e[n++]],a[e[n++]],"-",a[e[n++]],a[e[n++]],"-",a[e[n++]],a[e[n++]],a[e[n++]],a[e[n++]],a[e[n++]],a[e[n++]]].join("")}e.exports=bytesToUuid},function(e,t,i){"use strict";var n=i(43);e.exports=new n({include:[i(611)],implicit:[i(841),i(633)],explicit:[i(913),i(842),i(947),i(100)]})},,,,function(e,t,i){var n=i(293);var a=n.Buffer;function copyProps(e,t){for(var i in e){t[i]=e[i]}}if(a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow){e.exports=n}else{copyProps(n,t);t.Buffer=SafeBuffer}function SafeBuffer(e,t,i){return a(e,t,i)}SafeBuffer.prototype=Object.create(a.prototype);copyProps(a,SafeBuffer);SafeBuffer.from=function(e,t,i){if(typeof e==="number"){throw new TypeError("Argument must not be a number")}return a(e,t,i)};SafeBuffer.alloc=function(e,t,i){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}var n=a(e);if(t!==undefined){if(typeof i==="string"){n.fill(t,i)}else{n.fill(t)}}else{n.fill(0)}return n};SafeBuffer.allocUnsafe=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return a(e)};SafeBuffer.allocUnsafeSlow=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return n.SlowBuffer(e)}},function(e,t,i){const{generateKeyPairSync:n,generateKeyPair:a}=i(373);const{promisify:r}=i(669);const{THUMBPRINT_MATERIAL:s,JWK_MEMBERS:o,PUBLIC_MEMBERS:u,PRIVATE_MEMBERS:l,KEY_MANAGEMENT_DECRYPT:c,KEY_MANAGEMENT_ENCRYPT:d}=i(771);const{OKP_CURVES:p}=i(962);const{edDSASupported:f}=i(915);const h=i(466);const m=i(849);const b=r(a);const g=new Set(["crv","x"]);Object.freeze(g);const y=new Set([...g,"d"]);Object.freeze(y);class OKPKey extends m{constructor(...e){super(...e);this[o]();Object.defineProperty(this,"kty",{value:"OKP",enumerable:true});if(!p.has(this.crv)){throw new h.JOSENotSupported("unsupported OKP key curve")}}static get[u](){return g}static get[l](){return y}[s](){return{crv:this.crv,kty:"OKP",x:this.x}}[d](){return this.algorithms("deriveKey")}[c](){if(this.public){return new Set}return this.algorithms("deriveKey")}static async generate(e="Ed25519",t=true){if(!f){throw new h.JOSENotSupported("OKP keys are not supported in your Node.js runtime version")}if(!p.has(e)){throw new h.JOSENotSupported(`unsupported OKP key curve: ${e}`)}const{privateKey:i,publicKey:n}=await b(e.toLowerCase());return t?i:n}static generateSync(e="Ed25519",t=true){if(!f){throw new h.JOSENotSupported("OKP keys are not supported in your Node.js runtime version")}if(!p.has(e)){throw new h.JOSENotSupported(`unsupported OKP key curve: ${e}`)}const{privateKey:i,publicKey:a}=n(e.toLowerCase());return t?i:a}}e.exports=OKPKey},function(e,t,i){var n=i(242).BigInteger;var a=n.prototype.Barrett;function ECFieldElementFp(e,t){this.x=t;this.q=e}function feFpEquals(e){if(e==this)return true;return this.q.equals(e.q)&&this.x.equals(e.x)}function feFpToBigInteger(){return this.x}function feFpNegate(){return new ECFieldElementFp(this.q,this.x.negate().mod(this.q))}function feFpAdd(e){return new ECFieldElementFp(this.q,this.x.add(e.toBigInteger()).mod(this.q))}function feFpSubtract(e){return new ECFieldElementFp(this.q,this.x.subtract(e.toBigInteger()).mod(this.q))}function feFpMultiply(e){return new ECFieldElementFp(this.q,this.x.multiply(e.toBigInteger()).mod(this.q))}function feFpSquare(){return new ECFieldElementFp(this.q,this.x.square().mod(this.q))}function feFpDivide(e){return new ECFieldElementFp(this.q,this.x.multiply(e.toBigInteger().modInverse(this.q)).mod(this.q))}ECFieldElementFp.prototype.equals=feFpEquals;ECFieldElementFp.prototype.toBigInteger=feFpToBigInteger;ECFieldElementFp.prototype.negate=feFpNegate;ECFieldElementFp.prototype.add=feFpAdd;ECFieldElementFp.prototype.subtract=feFpSubtract;ECFieldElementFp.prototype.multiply=feFpMultiply;ECFieldElementFp.prototype.square=feFpSquare;ECFieldElementFp.prototype.divide=feFpDivide;function ECPointFp(e,t,i,a){this.curve=e;this.x=t;this.y=i;if(a==null){this.z=n.ONE}else{this.z=a}this.zinv=null}function pointFpGetX(){if(this.zinv==null){this.zinv=this.z.modInverse(this.curve.q)}var e=this.x.toBigInteger().multiply(this.zinv);this.curve.reduce(e);return this.curve.fromBigInteger(e)}function pointFpGetY(){if(this.zinv==null){this.zinv=this.z.modInverse(this.curve.q)}var e=this.y.toBigInteger().multiply(this.zinv);this.curve.reduce(e);return this.curve.fromBigInteger(e)}function pointFpEquals(e){if(e==this)return true;if(this.isInfinity())return e.isInfinity();if(e.isInfinity())return this.isInfinity();var t,i;t=e.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(e.z)).mod(this.curve.q);if(!t.equals(n.ZERO))return false;i=e.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(e.z)).mod(this.curve.q);return i.equals(n.ZERO)}function pointFpIsInfinity(){if(this.x==null&&this.y==null)return true;return this.z.equals(n.ZERO)&&!this.y.toBigInteger().equals(n.ZERO)}function pointFpNegate(){return new ECPointFp(this.curve,this.x,this.y.negate(),this.z)}function pointFpAdd(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(e.z)).mod(this.curve.q);var i=e.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(e.z)).mod(this.curve.q);if(n.ZERO.equals(i)){if(n.ZERO.equals(t)){return this.twice()}return this.curve.getInfinity()}var a=new n("3");var r=this.x.toBigInteger();var s=this.y.toBigInteger();var o=e.x.toBigInteger();var u=e.y.toBigInteger();var l=i.square();var c=l.multiply(i);var d=r.multiply(l);var p=t.square().multiply(this.z);var f=p.subtract(d.shiftLeft(1)).multiply(e.z).subtract(c).multiply(i).mod(this.curve.q);var h=d.multiply(a).multiply(t).subtract(s.multiply(c)).subtract(p.multiply(t)).multiply(e.z).add(t.multiply(c)).mod(this.curve.q);var m=c.multiply(this.z).multiply(e.z).mod(this.curve.q);return new ECPointFp(this.curve,this.curve.fromBigInteger(f),this.curve.fromBigInteger(h),m)}function pointFpTwice(){if(this.isInfinity())return this;if(this.y.toBigInteger().signum()==0)return this.curve.getInfinity();var e=new n("3");var t=this.x.toBigInteger();var i=this.y.toBigInteger();var a=i.multiply(this.z);var r=a.multiply(i).mod(this.curve.q);var s=this.curve.a.toBigInteger();var o=t.square().multiply(e);if(!n.ZERO.equals(s)){o=o.add(this.z.square().multiply(s))}o=o.mod(this.curve.q);var u=o.square().subtract(t.shiftLeft(3).multiply(r)).shiftLeft(1).multiply(a).mod(this.curve.q);var l=o.multiply(e).multiply(t).subtract(r.shiftLeft(1)).shiftLeft(2).multiply(r).subtract(o.square().multiply(o)).mod(this.curve.q);var c=a.square().multiply(a).shiftLeft(3).mod(this.curve.q);return new ECPointFp(this.curve,this.curve.fromBigInteger(u),this.curve.fromBigInteger(l),c)}function pointFpMultiply(e){if(this.isInfinity())return this;if(e.signum()==0)return this.curve.getInfinity();var t=e;var i=t.multiply(new n("3"));var a=this.negate();var r=this;var s;for(s=i.bitLength()-2;s>0;--s){r=r.twice();var o=i.testBit(s);var u=t.testBit(s);if(o!=u){r=r.add(o?this:a)}}return r}function pointFpMultiplyTwo(e,t,i){var n;if(e.bitLength()>i.bitLength())n=e.bitLength()-1;else n=i.bitLength()-1;var a=this.curve.getInfinity();var r=this.add(t);while(n>=0){a=a.twice();if(e.testBit(n)){if(i.testBit(n)){a=a.add(r)}else{a=a.add(this)}}else{if(i.testBit(n)){a=a.add(t)}}--n}return a}ECPointFp.prototype.getX=pointFpGetX;ECPointFp.prototype.getY=pointFpGetY;ECPointFp.prototype.equals=pointFpEquals;ECPointFp.prototype.isInfinity=pointFpIsInfinity;ECPointFp.prototype.negate=pointFpNegate;ECPointFp.prototype.add=pointFpAdd;ECPointFp.prototype.twice=pointFpTwice;ECPointFp.prototype.multiply=pointFpMultiply;ECPointFp.prototype.multiplyTwo=pointFpMultiplyTwo;function ECCurveFp(e,t,i){this.q=e;this.a=this.fromBigInteger(t);this.b=this.fromBigInteger(i);this.infinity=new ECPointFp(this,null,null);this.reducer=new a(this.q)}function curveFpGetQ(){return this.q}function curveFpGetA(){return this.a}function curveFpGetB(){return this.b}function curveFpEquals(e){if(e==this)return true;return this.q.equals(e.q)&&this.a.equals(e.a)&&this.b.equals(e.b)}function curveFpGetInfinity(){return this.infinity}function curveFpFromBigInteger(e){return new ECFieldElementFp(this.q,e)}function curveReduce(e){this.reducer.reduce(e)}function curveFpDecodePointHex(e){switch(parseInt(e.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:return null;case 4:case 6:case 7:var t=(e.length-2)/2;var i=e.substr(2,t);var a=e.substr(t+2,t);return new ECPointFp(this,this.fromBigInteger(new n(i,16)),this.fromBigInteger(new n(a,16)));default:return null}}function curveFpEncodePointHex(e){if(e.isInfinity())return"00";var t=e.getX().toBigInteger().toString(16);var i=e.getY().toBigInteger().toString(16);var n=this.getQ().toString(16).length;if(n%2!=0)n++;while(t.length128){var t=this.q.shiftRight(e-64);if(t.intValue()==-1){this.r=n.ONE.shiftLeft(e).subtract(this.q)}}return this.r};ECFieldElementFp.prototype.modMult=function(e,t){return this.modReduce(e.multiply(t))};ECFieldElementFp.prototype.modReduce=function(e){if(this.getR()!=null){var t=q.bitLength();while(e.bitLength()>t+1){var i=e.shiftRight(t);var a=e.subtract(i.shiftLeft(t));if(!this.getR().equals(n.ONE)){i=i.multiply(this.getR())}e=i.add(a)}while(e.compareTo(q)>=0){e=e.subtract(q)}}else{e=e.mod(q)}return e};ECFieldElementFp.prototype.sqrt=function(){if(!this.q.testBit(0))throw"unsupported";if(this.q.testBit(1)){var e=new ECFieldElementFp(this.q,this.x.modPow(this.q.shiftRight(2).add(n.ONE),this.q));return e.square().equals(this)?e:null}var t=this.q.subtract(n.ONE);var i=t.shiftRight(1);if(!this.x.modPow(i,this.q).equals(n.ONE)){return null}var a=t.shiftRight(2);var r=a.shiftLeft(1).add(n.ONE);var s=this.x;var o=modDouble(modDouble(s));var u,l;do{var c;do{c=new n(this.q.bitLength(),new SecureRandom)}while(c.compareTo(this.q)>=0||!c.multiply(c).subtract(o).modPow(i,this.q).equals(t));var d=this.lucasSequence(c,s,r);u=d[0];l=d[1];if(this.modMult(l,l).equals(o)){if(l.testBit(0)){l=l.add(q)}l=l.shiftRight(1);return new ECFieldElementFp(q,l)}}while(u.equals(n.ONE)||u.equals(t));return null};ECFieldElementFp.prototype.lucasSequence=function(e,t,i){var a=i.bitLength();var r=i.getLowestSetBit();var s=n.ONE;var o=n.TWO;var u=e;var l=n.ONE;var c=n.ONE;for(var d=a-1;d>=r+1;--d){l=this.modMult(l,c);if(i.testBit(d)){c=this.modMult(l,t);s=this.modMult(s,u);o=this.modReduce(u.multiply(o).subtract(e.multiply(l)));u=this.modReduce(u.multiply(u).subtract(c.shiftLeft(1)))}else{c=l;s=this.modReduce(s.multiply(o).subtract(l));u=this.modReduce(u.multiply(o).subtract(e.multiply(l)));o=this.modReduce(o.multiply(o).subtract(l.shiftLeft(1)))}}l=this.modMult(l,c);c=this.modMult(l,t);s=this.modReduce(s.multiply(o).subtract(l));o=this.modReduce(u.multiply(o).subtract(e.multiply(l)));l=this.modMult(l,c);for(var d=1;d<=r;++d){s=this.modMult(s,o);o=this.modReduce(o.multiply(o).subtract(l.shiftLeft(1)));l=this.modMult(l,l)}return[s,o]};var r={ECCurveFp:ECCurveFp,ECPointFp:ECPointFp,ECFieldElementFp:ECFieldElementFp};e.exports=r},,,,function(e,t,i){var n=i(357);var a=i(215).Buffer;var r=i(362);var s=i(584);var o=s.newInvalidAsn1Error;function Reader(e){if(!e||!a.isBuffer(e))throw new TypeError("data must be a node Buffer");this._buf=e;this._size=e.length;this._len=0;this._offset=0}Object.defineProperty(Reader.prototype,"length",{enumerable:true,get:function(){return this._len}});Object.defineProperty(Reader.prototype,"offset",{enumerable:true,get:function(){return this._offset}});Object.defineProperty(Reader.prototype,"remain",{get:function(){return this._size-this._offset}});Object.defineProperty(Reader.prototype,"buffer",{get:function(){return this._buf.slice(this._offset)}});Reader.prototype.readByte=function(e){if(this._size-this._offset<1)return null;var t=this._buf[this._offset]&255;if(!e)this._offset+=1;return t};Reader.prototype.peek=function(){return this.readByte(true)};Reader.prototype.readLength=function(e){if(e===undefined)e=this._offset;if(e>=this._size)return null;var t=this._buf[e++]&255;if(t===null)return null;if((t&128)===128){t&=127;if(t===0)throw o("Indefinite length not supported");if(t>4)throw o("encoding too long");if(this._size-ethis._size-n)return null;this._offset=n;if(this.length===0)return t?a.alloc(0):"";var s=this._buf.slice(this._offset,this._offset+this.length);this._offset+=this.length;return t?s:s.toString("utf8")};Reader.prototype.readOID=function(e){if(!e)e=r.OID;var t=this.readString(e,true);if(t===null)return null;var i=[];var n=0;for(var a=0;a>0);return i.join(".")};Reader.prototype._readTag=function(e){n.ok(e!==undefined);var t=this.peek();if(t===null)return null;if(t!==e)throw o("Expected 0x"+e.toString(16)+": got 0x"+t.toString(16));var i=this.readLength(this._offset+1);if(i===null)return null;if(this.length>4)throw o("Integer too long: "+this.length);if(this.length>this._size-i)return null;this._offset=i;var a=this._buf[this._offset];var r=0;for(var s=0;s>0};e.exports=Reader},,,function(e,t,i){const{sign:n,verify:a}=i(373);const{KEYOBJECT:r}=i(771);const{edDSASupported:s}=i(915);const o=({[r]:e},t)=>{if(typeof t==="string"){t=Buffer.from(t)}return n(undefined,t,e)};const u=({[r]:e},t,i)=>{return a(undefined,t,e,i)};e.exports=((e,t)=>{if(s){e.sign.set("EdDSA",o);e.verify.set("EdDSA",u);t.OKP.sign.EdDSA=(e=>e.private&&t.OKP.verify.EdDSA(e));t.OKP.verify.EdDSA=(e=>(e.use==="sig"||e.use===undefined)&&e.keyObject.asymmetricKeyType.startsWith("ed"))}})},,function(e,t,i){"use strict";const{Writable:n}=i(413);const a=i(301);const{BINARY_TYPES:r,EMPTY_BUFFER:s,kStatusCode:o,kWebSocket:u}=i(799);const{concat:l,toArrayBuffer:c,unmask:d}=i(104);const{isValidStatusCode:p,isValidUTF8:f}=i(562);const h=0;const m=1;const b=2;const g=3;const y=4;const S=5;class Receiver extends n{constructor(e,t,i){super();this._binaryType=e||r[0];this[u]=undefined;this._extensions=t||{};this._maxPayload=i|0;this._bufferedBytes=0;this._buffers=[];this._compressed=false;this._payloadLength=0;this._mask=undefined;this._fragmented=0;this._masked=false;this._fin=false;this._opcode=0;this._totalPayloadLength=0;this._messageLength=0;this._fragments=[];this._state=h;this._loop=false}_write(e,t,i){if(this._opcode===8&&this._state==h)return i();this._bufferedBytes+=e.length;this._buffers.push(e);this.startLoop(i)}consume(e){this._bufferedBytes-=e;if(e===this._buffers[0].length)return this._buffers.shift();if(e=i.length){this._buffers.shift().copy(t,t.length-e)}else{i.copy(t,t.length-e,0,e);this._buffers[0]=i.slice(e)}e-=i.length}while(e>0);return t}startLoop(e){var t;this._loop=true;do{switch(this._state){case h:t=this.getInfo();break;case m:t=this.getPayloadLength16();break;case b:t=this.getPayloadLength64();break;case g:this.getMask();break;case y:t=this.getData(e);break;default:this._loop=false;return}}while(this._loop);e(t)}getInfo(){if(this._bufferedBytes<2){this._loop=false;return}const e=this.consume(2);if((e[0]&48)!==0){this._loop=false;return error(RangeError,"RSV2 and RSV3 must be clear",true,1002)}const t=(e[0]&64)===64;if(t&&!this._extensions[a.extensionName]){this._loop=false;return error(RangeError,"RSV1 must be clear",true,1002)}this._fin=(e[0]&128)===128;this._opcode=e[0]&15;this._payloadLength=e[1]&127;if(this._opcode===0){if(t){this._loop=false;return error(RangeError,"RSV1 must be clear",true,1002)}if(!this._fragmented){this._loop=false;return error(RangeError,"invalid opcode 0",true,1002)}this._opcode=this._fragmented}else if(this._opcode===1||this._opcode===2){if(this._fragmented){this._loop=false;return error(RangeError,`invalid opcode ${this._opcode}`,true,1002)}this._compressed=t}else if(this._opcode>7&&this._opcode<11){if(!this._fin){this._loop=false;return error(RangeError,"FIN must be set",true,1002)}if(t){this._loop=false;return error(RangeError,"RSV1 must be clear",true,1002)}if(this._payloadLength>125){this._loop=false;return error(RangeError,`invalid payload length ${this._payloadLength}`,true,1002)}}else{this._loop=false;return error(RangeError,`invalid opcode ${this._opcode}`,true,1002)}if(!this._fin&&!this._fragmented)this._fragmented=this._opcode;this._masked=(e[1]&128)===128;if(this._payloadLength===126)this._state=m;else if(this._payloadLength===127)this._state=b;else return this.haveLength()}getPayloadLength16(){if(this._bufferedBytes<2){this._loop=false;return}this._payloadLength=this.consume(2).readUInt16BE(0);return this.haveLength()}getPayloadLength64(){if(this._bufferedBytes<8){this._loop=false;return}const e=this.consume(8);const t=e.readUInt32BE(0);if(t>Math.pow(2,53-32)-1){this._loop=false;return error(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",false,1009)}this._payloadLength=t*Math.pow(2,32)+e.readUInt32BE(4);return this.haveLength()}haveLength(){if(this._payloadLength&&this._opcode<8){this._totalPayloadLength+=this._payloadLength;if(this._totalPayloadLength>this._maxPayload&&this._maxPayload>0){this._loop=false;return error(RangeError,"Max payload size exceeded",false,1009)}}if(this._masked)this._state=g;else this._state=y}getMask(){if(this._bufferedBytes<4){this._loop=false;return}this._mask=this.consume(4);this._state=y}getData(e){var t=s;if(this._payloadLength){if(this._bufferedBytes7)return this.controlMessage(t);if(this._compressed){this._state=S;this.decompress(t,e);return}if(t.length){this._messageLength=this._totalPayloadLength;this._fragments.push(t)}return this.dataMessage()}decompress(e,t){const i=this._extensions[a.extensionName];i.decompress(e,this._fin,(e,i)=>{if(e)return t(e);if(i.length){this._messageLength+=i.length;if(this._messageLength>this._maxPayload&&this._maxPayload>0){return t(error(RangeError,"Max payload size exceeded",false,1009))}this._fragments.push(i)}const n=this.dataMessage();if(n)return t(n);this.startLoop(t)})}dataMessage(){if(this._fin){const t=this._messageLength;const i=this._fragments;this._totalPayloadLength=0;this._messageLength=0;this._fragmented=0;this._fragments=[];if(this._opcode===2){var e;if(this._binaryType==="nodebuffer"){e=l(i,t)}else if(this._binaryType==="arraybuffer"){e=c(l(i,t))}else{e=i}this.emit("message",e)}else{const e=l(i,t);if(!f(e)){this._loop=false;return error(Error,"invalid UTF-8 sequence",true,1007)}this.emit("message",e.toString())}}this._state=h}controlMessage(e){if(this._opcode===8){this._loop=false;if(e.length===0){this.emit("conclude",1005,"");this.end()}else if(e.length===1){return error(RangeError,"invalid payload length 1",true,1002)}else{const t=e.readUInt16BE(0);if(!p(t)){return error(RangeError,`invalid status code ${t}`,true,1002)}const i=e.slice(2);if(!f(i)){return error(Error,"invalid UTF-8 sequence",true,1007)}this.emit("conclude",t,i.toString());this.end()}}else if(this._opcode===9){this.emit("ping",e)}else{this.emit("pong",e)}this._state=h}}e.exports=Receiver;function error(e,t,i,n){const a=new e(i?`Invalid WebSocket frame: ${t}`:t);Error.captureStackTrace(a,error);a[o]=n;return a}},function(e,t,i){function __ncc_wildcard$0(e){if(e==="cat.js"||e==="cat")return i(833);else if(e==="cd.js"||e==="cd")return i(8);else if(e==="chmod.js"||e==="chmod")return i(477);else if(e==="common.js"||e==="common")return i(602);else if(e==="cp.js"||e==="cp")return i(838);else if(e==="dirs.js"||e==="dirs")return i(542);else if(e==="echo.js"||e==="echo")return i(757);else if(e==="error.js"||e==="error")return i(605);else if(e==="exec-child.js"||e==="exec-child")return i(761);else if(e==="exec.js"||e==="exec")return i(693);else if(e==="find.js"||e==="find")return i(216);else if(e==="grep.js"||e==="grep")return i(199);else if(e==="head.js"||e==="head")return i(890);else if(e==="ln.js"||e==="ln")return i(535);else if(e==="ls.js"||e==="ls")return i(705);else if(e==="mkdir.js"||e==="mkdir")return i(661);else if(e==="mv.js"||e==="mv")return i(63);else if(e==="popd.js"||e==="popd")return i(409);else if(e==="pushd.js"||e==="pushd")return i(188);else if(e==="pwd.js"||e==="pwd")return i(359);else if(e==="rm.js"||e==="rm")return i(688);else if(e==="sed.js"||e==="sed")return i(989);else if(e==="set.js"||e==="set")return i(936);else if(e==="sort.js"||e==="sort")return i(340);else if(e==="tail.js"||e==="tail")return i(62);else if(e==="tempdir.js"||e==="tempdir")return i(953);else if(e==="test.js"||e==="test")return i(284);else if(e==="to.js"||e==="to")return i(380);else if(e==="toEnd.js"||e==="toEnd")return i(240);else if(e==="touch.js"||e==="touch")return i(505);else if(e==="uniq.js"||e==="uniq")return i(554);else if(e==="which.js"||e==="which")return i(691)}var n=i(602);i(233).forEach(function(e){__ncc_wildcard$0(e)});t.exit=process.exit;t.error=i(605);t.ShellString=n.ShellString;t.env=process.env;t.config=n.config},function(e,t,i){const n=i(65);const a=i(124);const r=(e,t,i)=>{let r=null;let s=null;let o=null;try{o=new a(t,i)}catch(e){return null}e.forEach(e=>{if(o.test(e)){if(!r||s.compare(e)===1){r=e;s=new n(r,i)}}});return r};e.exports=r},function(e){"use strict";var t=String.prototype.replace;var i=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return t.call(e,i,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},function(e){(function(){var t,i,n,a,r,s;if(typeof performance!=="undefined"&&performance!==null&&performance.now){e.exports=function(){return performance.now()}}else if(typeof process!=="undefined"&&process!==null&&process.hrtime){e.exports=function(){return(t()-r)/1e6};i=process.hrtime;t=function(){var e;e=i();return e[0]*1e9+e[1]};a=t();s=process.uptime()*1e9;r=a-s}else if(Date.now){e.exports=function(){return Date.now()-n};n=Date.now()}else{e.exports=function(){return(new Date).getTime()-n};n=(new Date).getTime()}}).call(this)},,function(e,t,i){const n=i(65);const a=(e,t)=>new n(e,t).major;e.exports=a},function(e,t,i){const n=i(274);const a=i(0);const r=i(38);const s=i(322);const{bare:o}=i(797);const{JWTClaimInvalid:u,JWTExpired:l}=i(466);const{isString:c,isNotString:d}=i(518);const p=i(150);const f=c.bind(undefined,u);const h=c.bind(undefined,TypeError);const m="id_token";const b="logout_token";const g="at+JWT";const y=(e,t,i=false)=>{if(i&&e===undefined){throw new u(`"${t}" claim is missing`,t,"missing")}if(e!==undefined&&typeof e!=="number"){throw new u(`"${t}" claim must be a JSON numeric value`,t,"invalid")}};const S=(e,t,i=false)=>{if(i&&e===undefined){throw new u(`"${t}" claim is missing`,t,"missing")}if(e!==undefined&&(d(e)&&w(e))){throw new u(`"${t}" claim must be a string or array of strings`,t,"invalid")}};const w=e=>!Array.isArray(e)||e.length===0||e.some(d);const v=e=>e.toLowerCase().replace(/^application\//,"");const z=({algorithms:e,audience:t,clockTolerance:i,complete:n=false,crit:a,ignoreExp:r=false,ignoreIat:s=false,ignoreNbf:o=false,issuer:u,jti:l,maxAuthAge:c,maxTokenAge:p,nonce:f,now:y=new Date,profile:S,subject:v,typ:z})=>{h(S,"options.profile");if(typeof n!=="boolean"){throw new TypeError("options.complete must be a boolean")}if(typeof r!=="boolean"){throw new TypeError("options.ignoreExp must be a boolean")}if(typeof o!=="boolean"){throw new TypeError("options.ignoreNbf must be a boolean")}if(typeof s!=="boolean"){throw new TypeError("options.ignoreIat must be a boolean")}h(p,"options.maxTokenAge");h(v,"options.subject");h(c,"options.maxAuthAge");h(l,"options.jti");h(i,"options.clockTolerance");h(z,"options.typ");if(u!==undefined&&(d(u)&&w(u))){throw new TypeError("options.issuer must be a string or an array of strings")}if(t!==undefined&&(d(t)&&w(t))){throw new TypeError("options.audience must be a string or an array of strings")}if(e!==undefined&&w(e)){throw new TypeError("options.algorithms must be an array of strings")}h(f,"options.nonce");if(!(y instanceof Date)||!y.getTime()){throw new TypeError("options.now must be a valid Date object")}if(s&&p!==undefined){throw new TypeError("options.ignoreIat and options.maxTokenAge cannot used together")}if(a!==undefined&&w(a)){throw new TypeError("options.crit must be an array of strings")}switch(S){case m:if(!u){throw new TypeError('"issuer" option is required to validate an ID Token')}if(!t){throw new TypeError('"audience" option is required to validate an ID Token')}break;case g:if(!u){throw new TypeError('"issuer" option is required to validate a JWT Access Token')}if(!t){throw new TypeError('"audience" option is required to validate a JWT Access Token')}z=g;break;case b:if(!u){throw new TypeError('"issuer" option is required to validate a Logout Token')}if(!t){throw new TypeError('"audience" option is required to validate a Logout Token')}break;case undefined:break;default:throw new TypeError(`unsupported options.profile value "${S}"`)}return{algorithms:e,audience:t,clockTolerance:i,complete:n,crit:a,ignoreExp:r,ignoreIat:s,ignoreNbf:o,issuer:u,jti:l,maxAuthAge:c,maxTokenAge:p,nonce:f,now:y,profile:S,subject:v,typ:z}};const j=({header:e,payload:t},i,a)=>{f(e.alg,'"alg" header parameter',"alg",true);y(t.iat,"iat",i===m||i===b||i===g||!!a.maxTokenAge);y(t.exp,"exp",i===m||i===g);y(t.auth_time,"auth_time",!!a.maxAuthAge);y(t.nbf,"nbf");f(t.jti,'"jti" claim',"jti",i===b||i===g||!!a.jti);f(t.acr,'"acr" claim',"acr");f(t.nonce,'"nonce" claim',"nonce",!!a.nonce);S(t.iss,"iss",!!a.issuer);f(t.sub,'"sub" claim',"sub",i===m||i===g||!!a.subject);S(t.aud,"aud",!!a.audience);f(t.azp,'"azp" claim',"azp",i===m&&Array.isArray(t.aud)&&t.aud.length>1);S(t.amr,"amr");f(e.typ,'"typ" header parameter',"typ",!!a.typ);if(i===g){f(t.client_id,'"client_id" claim',"client_id",true)}if(i===b){f(t.sid,'"sid" claim',"sid");if(!("sid"in t)&&!("sub"in t)){throw new u('either "sid" or "sub" (or both) claims must be present')}if("nonce"in t){throw new u('"nonce" claim is prohibited',"nonce","prohibited")}if(!("events"in t)){throw new u('"events" claim is missing',"events","missing")}if(!n(t.events)){throw new u('"events" claim must be an object',"events","invalid")}if(!("http://schemas.openid.net/event/backchannel-logout"in t.events)){throw new u('"http://schemas.openid.net/event/backchannel-logout" member is missing in the "events" claim',"events","invalid")}if(!n(t.events["http://schemas.openid.net/event/backchannel-logout"])){throw new u('"http://schemas.openid.net/event/backchannel-logout" member in the "events" claim must be an object',"events","invalid")}}};const O=(e,t,i)=>{if(typeof e==="string"){return t.includes(e)}e=new Set(e);return t.some(Set.prototype.has.bind(e))};e.exports=((e,t,i={})=>{if(!n(i)){throw new TypeError("options must be an object")}const{algorithms:c,audience:d,clockTolerance:f,complete:h,crit:b,ignoreExp:g,ignoreIat:y,ignoreNbf:S,issuer:w,jti:k,maxAuthAge:C,maxTokenAge:T,nonce:R,now:E,profile:A,subject:x,typ:N}=i=z(i);const V=p(e,{complete:true});t=s(t,true);if(h){({key:t}=o(true,"preparsed",{decoded:V,token:e},t,{crit:b,algorithms:c,complete:true}));V.key=t}else{o(true,"preparsed",{decoded:V,token:e},t,{crit:b,algorithms:c})}const P=a(E);j(V,A,i);if(w&&(typeof V.payload.iss!=="string"||!(typeof w==="string"?[w]:w).includes(V.payload.iss))){throw new u('unexpected "iss" claim value',"iss","check_failed")}if(R&&V.payload.nonce!==R){throw new u('unexpected "nonce" claim value',"nonce","check_failed")}if(x&&V.payload.sub!==x){throw new u('unexpected "sub" claim value',"sub","check_failed")}if(k&&V.payload.jti!==k){throw new u('unexpected "jti" claim value',"jti","check_failed")}if(d&&!O(V.payload.aud,typeof d==="string"?[d]:d,A)){throw new u('unexpected "aud" claim value',"aud","check_failed")}if(N&&v(V.header.typ)!==v(N)){throw new u('unexpected "typ" JWT header value',"typ","check_failed")}const D=f?r(f):0;if(C){const e=r(C);if(V.payload.auth_time+eP+D){throw new u('"iat" claim timestamp check failed (it should be in the past)',"iat","check_failed")}if(!S&&"nbf"in V.payload&&V.payload.nbf>P+D){throw new u('"nbf" claim timestamp check failed',"nbf","check_failed")}if(!g&&"exp"in V.payload&&V.payload.exp<=P-D){throw new l('"exp" claim timestamp check failed',"exp","check_failed")}if(T){const e=P-V.payload.iat;const t=r(T);if(e-D>t){throw new l('"iat" claim timestamp check failed (too far in the past)',"iat","check_failed")}if(e<0-D){throw new u('"iat" claim timestamp check failed (it should be in the past)',"iat","check_failed")}}if(A===m&&Array.isArray(V.payload.aud)&&V.payload.aud.length>1&&V.payload.azp!==d){throw new u('unexpected "azp" claim value',"azp","check_failed")}return h?V:V.payload})},,function(e){e.exports=require("fs")},,function(e){const t=()=>Buffer.from("");const i=(e,t,i)=>!i.length;e.exports=((e,n)=>{e.sign.set("none",t);e.verify.set("none",i)})},function(e,t,i){"use strict";var n=i(213);var a={};a.rules=i(50).map(function(e){return{rule:e,suffix:e.replace(/^(\*\.|\!)/,""),punySuffix:-1,wildcard:e.charAt(0)==="*",exception:e.charAt(0)==="!"}});a.endsWith=function(e,t){return e.indexOf(t,e.length-t.length)!==-1};a.findRule=function(e){var t=n.toASCII(e);return a.rules.reduce(function(e,i){if(i.punySuffix===-1){i.punySuffix=n.toASCII(i.suffix)}if(!a.endsWith(t,"."+i.punySuffix)&&t!==i.punySuffix){return e}return i},null)};t.errorCodes={DOMAIN_TOO_SHORT:"Domain name too short.",DOMAIN_TOO_LONG:"Domain name too long. It should be no more than 255 chars.",LABEL_STARTS_WITH_DASH:"Domain name label can not start with a dash.",LABEL_ENDS_WITH_DASH:"Domain name label can not end with a dash.",LABEL_TOO_LONG:"Domain name label should be at most 63 chars long.",LABEL_TOO_SHORT:"Domain name label should be at least 1 character long.",LABEL_INVALID_CHARS:"Domain name label can only contain alphanumeric characters or dashes."};a.validate=function(e){var t=n.toASCII(e);if(t.length<1){return"DOMAIN_TOO_SHORT"}if(t.length>255){return"DOMAIN_TOO_LONG"}var i=t.split(".");var a;for(var r=0;r63){return"LABEL_TOO_LONG"}if(a.charAt(0)==="-"){return"LABEL_STARTS_WITH_DASH"}if(a.charAt(a.length-1)==="-"){return"LABEL_ENDS_WITH_DASH"}if(!/^[a-z0-9\-]+$/.test(a)){return"LABEL_INVALID_CHARS"}}};t.parse=function(e){if(typeof e!=="string"){throw new TypeError("Domain name must be a string.")}var i=e.slice(0).toLowerCase();if(i.charAt(i.length-1)==="."){i=i.slice(0,i.length-1)}var r=a.validate(i);if(r){return{input:e,error:{message:t.errorCodes[r],code:r}}}var s={input:e,tld:null,sld:null,domain:null,subdomain:null,listed:false};var o=i.split(".");if(o[o.length-1]==="local"){return s}var u=function(){if(!/xn--/.test(i)){return s}if(s.domain){s.domain=n.toASCII(s.domain)}if(s.subdomain){s.subdomain=n.toASCII(s.subdomain)}return s};var l=a.findRule(i);if(!l){if(o.length<2){return s}s.tld=o.pop();s.sld=o.pop();s.domain=[s.sld,s.tld].join(".");if(o.length){s.subdomain=o.pop()}return u()}s.listed=true;var c=l.suffix.split(".");var d=o.slice(0,o.length-c.length);if(l.exception){d.push(c.shift())}s.tld=c.join(".");if(!d.length){return u()}if(l.wildcard){c.unshift(d.pop());s.tld=c.join(".")}if(!d.length){return u()}s.sld=d.pop();s.domain=[s.sld,s.tld].join(".");if(d.length){s.subdomain=d.join(".")}return u()};t.get=function(e){if(!e){return null}return t.parse(e).domain||null};t.isValid=function(e){var i=t.parse(e);return Boolean(i.domain&&i.listed)}},function(e,t,i){var n=i(500);e.exports=async;function async(e){var t=false;n(function(){t=true});return function async_callback(i,a){if(t){e(i,a)}else{n(function nextTick_callback(){e(i,a)})}}}},function(e,t,i){const n=i(298);const a=i(873);const r=i(486);const s=i(167);const o=i(586);const u=i(898);const l=(e,t,i,l)=>{switch(t){case"===":if(typeof e==="object")e=e.version;if(typeof i==="object")i=i.version;return e===i;case"!==":if(typeof e==="object")e=e.version;if(typeof i==="object")i=i.version;return e!==i;case"":case"=":case"==":return n(e,i,l);case"!=":return a(e,i,l);case">":return r(e,i,l);case">=":return s(e,i,l);case"<":return o(e,i,l);case"<=":return u(e,i,l);default:throw new TypeError(`Invalid operator: ${t}`)}};e.exports=l},function(e,t,i){var n=i(872);var a=i(669);function FingerprintFormatError(e,t){if(Error.captureStackTrace)Error.captureStackTrace(this,FingerprintFormatError);this.name="FingerprintFormatError";this.fingerprint=e;this.format=t;this.message="Fingerprint format is not supported, or is invalid: ";if(e!==undefined)this.message+=" fingerprint = "+e;if(t!==undefined)this.message+=" format = "+t}a.inherits(FingerprintFormatError,Error);function InvalidAlgorithmError(e){if(Error.captureStackTrace)Error.captureStackTrace(this,InvalidAlgorithmError);this.name="InvalidAlgorithmError";this.algorithm=e;this.message='Algorithm "'+e+'" is not supported'}a.inherits(InvalidAlgorithmError,Error);function KeyParseError(e,t,i){if(Error.captureStackTrace)Error.captureStackTrace(this,KeyParseError);this.name="KeyParseError";this.format=t;this.keyName=e;this.innerErr=i;this.message="Failed to parse "+e+" as a valid "+t+" format key: "+i.message}a.inherits(KeyParseError,Error);function SignatureParseError(e,t,i){if(Error.captureStackTrace)Error.captureStackTrace(this,SignatureParseError);this.name="SignatureParseError";this.type=e;this.format=t;this.innerErr=i;this.message="Failed to parse the given data as a "+e+" signature in "+t+" format: "+i.message}a.inherits(SignatureParseError,Error);function CertificateParseError(e,t,i){if(Error.captureStackTrace)Error.captureStackTrace(this,CertificateParseError);this.name="CertificateParseError";this.format=t;this.certName=e;this.innerErr=i;this.message="Failed to parse "+e+" as a valid "+t+" format certificate: "+i.message}a.inherits(CertificateParseError,Error);function KeyEncryptedError(e,t){if(Error.captureStackTrace)Error.captureStackTrace(this,KeyEncryptedError);this.name="KeyEncryptedError";this.format=t;this.keyName=e;this.message="The "+t+" format key "+e+" is "+"encrypted (password-protected), and no passphrase was "+"provided in `options`"}a.inherits(KeyEncryptedError,Error);e.exports={FingerprintFormatError:FingerprintFormatError,InvalidAlgorithmError:InvalidAlgorithmError,KeyParseError:KeyParseError,SignatureParseError:SignatureParseError,KeyEncryptedError:KeyEncryptedError,CertificateParseError:CertificateParseError}},,function(e,t,i){"use strict";var n=i(4);var a=Object.prototype.hasOwnProperty;var r=Array.isArray;var s={allowDots:false,allowPrototypes:false,arrayLimit:20,charset:"utf-8",charsetSentinel:false,comma:false,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:false,interpretNumericEntities:false,parameterLimit:1e3,parseArrays:true,plainObjects:false,strictNullHandling:false};var o=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})};var u=function(e,t){if(e&&typeof e==="string"&&t.comma&&e.indexOf(",")>-1){return e.split(",")}return e};var l="utf8=%26%2310003%3B";var c="utf8=%E2%9C%93";var d=function parseQueryStringValues(e,t){var i={};var d=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;var p=t.parameterLimit===Infinity?undefined:t.parameterLimit;var f=d.split(t.delimiter,p);var h=-1;var m;var b=t.charset;if(t.charsetSentinel){for(m=0;m-1){v=r(v)?[v]:v}if(a.call(i,w)){i[w]=n.combine(i[w],v)}else{i[w]=v}}return i};var p=function(e,t,i,n){var a=n?t:u(t,i);for(var r=e.length-1;r>=0;--r){var s;var o=e[r];if(o==="[]"&&i.parseArrays){s=[].concat(a)}else{s=i.plainObjects?Object.create(null):{};var l=o.charAt(0)==="["&&o.charAt(o.length-1)==="]"?o.slice(1,-1):o;var c=parseInt(l,10);if(!i.parseArrays&&l===""){s={0:a}}else if(!isNaN(c)&&o!==l&&String(c)===l&&c>=0&&(i.parseArrays&&c<=i.arrayLimit)){s=[];s[c]=a}else{s[l]=a}}a=s}return a};var f=function parseQueryStringKeys(e,t,i,n){if(!e){return}var r=i.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;var s=/(\[[^[\]]*])/;var o=/(\[[^[\]]*])/g;var u=i.depth>0&&s.exec(r);var l=u?r.slice(0,u.index):r;var c=[];if(l){if(!i.plainObjects&&a.call(Object.prototype,l)){if(!i.allowPrototypes){return}}c.push(l)}var d=0;while(i.depth>0&&(u=o.exec(r))!==null&&d{const n=t.test(e);const a=t.test(i);if(n&&a){e=+e;i=+i}return e===i?0:n&&!a?-1:a&&!n?1:ei(t,e);e.exports={compareIdentifiers:i,rcompareIdentifiers:n}},function(e,t,i){e=i.nmd(e);if(require.main!==e){throw new Error("This file should not be required")}var n=i(129);var a=i(747);var r=process.argv[2];var s=a.readFileSync(r,"utf8");var o=JSON.parse(s);var u=o.command;var l=o.execOptions;var c=o.pipe;var d=o.stdoutFile;var p=o.stderrFile;var f=n.exec(u,l,function(e){if(!e){process.exitCode=0}else if(e.code===undefined){process.exitCode=1}else{process.exitCode=e.code}});var h=a.createWriteStream(d);var m=a.createWriteStream(p);f.stdout.pipe(h);f.stderr.pipe(m);f.stdout.pipe(process.stdout);f.stderr.pipe(process.stderr);if(c){f.stdin.end(c)}},,function(e){"use strict";var t=e.exports=function(e,t,i){if(typeof t=="function"){i=t;t={}}i=t.cb||i;var n=typeof i=="function"?i:i.pre||function(){};var a=i.post||function(){};_traverse(t,n,a,e,"",e)};t.keywords={additionalItems:true,items:true,contains:true,additionalProperties:true,propertyNames:true,not:true};t.arrayKeywords={items:true,allOf:true,anyOf:true,oneOf:true};t.propsKeywords={definitions:true,properties:true,patternProperties:true,dependencies:true};t.skipKeywords={default:true,enum:true,const:true,required:true,maximum:true,minimum:true,exclusiveMaximum:true,exclusiveMinimum:true,multipleOf:true,maxLength:true,minLength:true,pattern:true,format:true,maxItems:true,minItems:true,uniqueItems:true,maxProperties:true,minProperties:true};function _traverse(e,i,n,a,r,s,o,u,l,c){if(a&&typeof a=="object"&&!Array.isArray(a)){i(a,r,s,o,u,l,c);for(var d in a){var p=a[d];if(Array.isArray(p)){if(d in t.arrayKeywords){for(var f=0;f=55296&&a<=56319&&n>6];const a=(i&32)===0;if((i&31)===31){let n=i;i=0;while((n&128)===128){n=e.readUInt8(t);if(e.isError(n)){return n}i<<=7;i|=n&127}}else{i&=31}const r=s.tag[i];return{cls:n,primitive:a,tag:i,tagStr:r}}function derDecodeLen(e,t,i){let n=e.readUInt8(i);if(e.isError(n)){return n}if(!t&&n===128){return null}if((n&128)===0){return n}const a=n&127;if(a>4){return e.error("length octect is too long")}n=0;for(let t=0;t":"<";n+="if ( ";if(p){n+=" ("+f+" !== undefined && typeof "+f+" != 'number') || "}if(e.opts.unicode===false){n+=" "+d+".length "}else{n+=" ucs2length("+d+") "}n+=" "+h+" "+f+") { ";var c=t;var m=m||[];m.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+(c||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+f+" } ";if(e.opts.messages!==false){n+=" , message: 'should NOT be ";if(t=="maxLength"){n+="longer"}else{n+="shorter"}n+=" than ";if(p){n+="' + "+f+" + '"}else{n+=""+s}n+=" characters' "}if(e.opts.verbose){n+=" , schema: ";if(p){n+="validate.schema"+o}else{n+=""+s}n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}n+=" } "}else{n+=" {} "}var b=n;n=m.pop();if(!e.compositeRule&&l){if(e.async){n+=" throw new ValidationError(["+b+"]); "}else{n+=" validate.errors = ["+b+"]; return false; "}}else{n+=" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+="} ";if(l){n+=" else { "}return n}},,function(e,t,i){"use strict";const n=i(835);const a=i(363);const r=i(657);const s=i(534);class GotError extends Error{constructor(e,t,i){super(e);Error.captureStackTrace(this,this.constructor);this.name="GotError";if(!s.undefined(t.code)){this.code=t.code}Object.assign(this,{host:i.host,hostname:i.hostname,method:i.method,path:i.path,socketPath:i.socketPath,protocol:i.protocol,url:i.href,gotOptions:i})}}e.exports.GotError=GotError;e.exports.CacheError=class extends GotError{constructor(e,t){super(e.message,e,t);this.name="CacheError"}};e.exports.RequestError=class extends GotError{constructor(e,t){super(e.message,e,t);this.name="RequestError"}};e.exports.ReadError=class extends GotError{constructor(e,t){super(e.message,e,t);this.name="ReadError"}};e.exports.ParseError=class extends GotError{constructor(e,t,i,r){super(`${e.message} in "${n.format(i)}": \n${r.slice(0,77)}...`,e,i);this.name="ParseError";this.statusCode=t;this.statusMessage=a.STATUS_CODES[this.statusCode]}};e.exports.HTTPError=class extends GotError{constructor(e,t){const{statusCode:i}=e;let{statusMessage:n}=e;if(n){n=n.replace(/\r?\n/g," ").trim()}else{n=a.STATUS_CODES[i]}super(`Response code ${i} (${n})`,{},t);this.name="HTTPError";this.statusCode=i;this.statusMessage=n;this.headers=e.headers;this.body=e.body}};e.exports.MaxRedirectsError=class extends GotError{constructor(e,t,i){super("Redirected 10 times. Aborting.",{},i);this.name="MaxRedirectsError";this.statusCode=e;this.statusMessage=a.STATUS_CODES[this.statusCode];this.redirectUrls=t}};e.exports.UnsupportedProtocolError=class extends GotError{constructor(e){super(`Unsupported protocol "${e.protocol}"`,{},e);this.name="UnsupportedProtocolError"}};e.exports.TimeoutError=class extends GotError{constructor(e,t){super(e.message,{code:"ETIMEDOUT"},t);this.name="TimeoutError";this.event=e.event}};e.exports.CancelError=r.CancelError},,function(e){e.exports={$id:"creator.json#",$schema:"http://json-schema.org/draft-06/schema#",type:"object",required:["name","version"],properties:{name:{type:"string"},version:{type:"string"},comment:{type:"string"}}}},,,function(e,t,i){"use strict";var n=i(972);var a=i(622).extname;var r=/^\s*([^;\s]*)(?:;|\s|$)/;var s=/^text\//i;t.charset=charset;t.charsets={lookup:charset};t.contentType=contentType;t.extension=extension;t.extensions=Object.create(null);t.lookup=lookup;t.types=Object.create(null);populateMaps(t.extensions,t.types);function charset(e){if(!e||typeof e!=="string"){return false}var t=r.exec(e);var i=t&&n[t[1].toLowerCase()];if(i&&i.charset){return i.charset}if(t&&s.test(t[1])){return"UTF-8"}return false}function contentType(e){if(!e||typeof e!=="string"){return false}var i=e.indexOf("/")===-1?t.lookup(e):e;if(!i){return false}if(i.indexOf("charset")===-1){var n=t.charset(i);if(n)i+="; charset="+n.toLowerCase()}return i}function extension(e){if(!e||typeof e!=="string"){return false}var i=r.exec(e);var n=i&&t.extensions[i[1].toLowerCase()];if(!n||!n.length){return false}return n[0]}function lookup(e){if(!e||typeof e!=="string"){return false}var i=a("x."+e).toLowerCase().substr(1);if(!i){return false}return t.types[i]||false}function populateMaps(e,t){var i=["nginx","apache",undefined,"iana"];Object.keys(n).forEach(function forEachMimeType(a){var r=n[a];var s=r.extensions;if(!s||!s.length){return}e[a]=s;for(var o=0;oc||l===c&&t[u].substr(0,12)==="application/")){continue}}t[u]=a}})}},function(e,t,i){"use strict";const{constants:n}=i(293);const a=i(453);const r=i(375);class MaxBufferError extends Error{constructor(){super("maxBuffer exceeded");this.name="MaxBufferError"}}async function getStream(e,t){if(!e){return Promise.reject(new Error("Expected a stream"))}t={maxBuffer:Infinity,...t};const{maxBuffer:i}=t;let s;await new Promise((o,u)=>{const l=e=>{if(e&&s.getBufferedLength()<=n.MAX_LENGTH){e.bufferedData=s.getBufferedValue()}u(e)};s=a(e,r(t),e=>{if(e){l(e);return}o()});s.on("data",()=>{if(s.getBufferedLength()>i){l(new MaxBufferError)}})});return s.getBufferedValue()}e.exports=getStream;e.exports.default=getStream;e.exports.buffer=((e,t)=>getStream(e,{...t,encoding:"buffer"}));e.exports.array=((e,t)=>getStream(e,{...t,array:true}));e.exports.MaxBufferError=MaxBufferError},,function(e,t,i){const{inherits:n}=i(669);const a=i(768);function PEMDecoder(e){a.call(this,e);this.enc="pem"}n(PEMDecoder,a);PEMDecoder.prototype.decode=function decode(e,t){const i=e.toString().split(/[\r\n]+/g);const n=t.label.toUpperCase();const r=/^-----(BEGIN|END) ([^-]+)-----$/;let s=-1;let o=-1;for(let e=0;e{if(typeof e!=="string"){throw new TypeError(`Expected \`url\` to be of type \`string\`, got \`${typeof e}\``)}e=e.trim();t=Object.assign({https:false},t);if(/^\.*\/|^(?!localhost)\w+:/.test(e)){return e}return e.replace(/^(?!(?:\w+:)?\/\/)/,t.https?"https://":"http://")})},function(e){"use strict";e.exports=(e=>{const t={};for(const[i,n]of Object.entries(e)){t[i.toLowerCase()]=n}return t})},function(e,t,i){const{generateKeyPairSync:n,generateKeyPair:a}=i(373);const{promisify:r}=i(669);const{THUMBPRINT_MATERIAL:s,JWK_MEMBERS:o,PUBLIC_MEMBERS:u,PRIVATE_MEMBERS:l,KEY_MANAGEMENT_DECRYPT:c,KEY_MANAGEMENT_ENCRYPT:d}=i(771);const{keyObjectSupported:p}=i(915);const{createPublicKey:f,createPrivateKey:h}=i(40);const m=i(849);const b=r(a);const g=new Set(["e","n"]);Object.freeze(g);const y=new Set([...g,"d","p","q","dp","dq","qi"]);Object.freeze(y);class RSAKey extends m{constructor(...e){super(...e);this[o]();Object.defineProperties(this,{kty:{value:"RSA",enumerable:true},length:{get(){Object.defineProperty(this,"length",{value:Buffer.byteLength(this.n,"base64")*8,configurable:false});return this.length},configurable:true}})}static get[u](){return g}static get[l](){return y}[s](){return{e:this.e,kty:"RSA",n:this.n}}[d](){return this.algorithms("wrapKey")}[c](){return this.algorithms("unwrapKey")}static async generate(e=2048,t=true){if(!Number.isSafeInteger(e)||e<512||e%8!==0||"electron"in process.versions&&e%128!==0){throw new TypeError("invalid bit length")}let i,n;if(p){({privateKey:i,publicKey:n}=await b("rsa",{modulusLength:e}));return t?i:n}({privateKey:i,publicKey:n}=await b("rsa",{modulusLength:e,publicKeyEncoding:{type:"spki",format:"pem"},privateKeyEncoding:{type:"pkcs8",format:"pem"}}));if(t){return h(i)}else{return f(n)}}static generateSync(e=2048,t=true){if(!Number.isSafeInteger(e)||e<512||e%8!==0||"electron"in process.versions&&e%128!==0){throw new TypeError("invalid bit length")}let i,a;if(p){({privateKey:i,publicKey:a}=n("rsa",{modulusLength:e}));return t?i:a}({privateKey:i,publicKey:a}=n("rsa",{modulusLength:e,publicKeyEncoding:{type:"spki",format:"pem"},privateKeyEncoding:{type:"pkcs8",format:"pem"}}));if(t){return h(i)}else{return f(a)}}}e.exports=RSAKey},,function(e,t,i){const{sign:n,verify:a,createSign:r,createVerify:s,getCurves:o}=i(373);const{derToJose:u,joseToDer:l}=i(97);const{KEYOBJECT:c}=i(771);const d=i(165);const{asInput:p}=i(40);const{dsaEncodingSupported:f}=i(915);const{name:h}=i(997);let m,b;if(f){m=((e,t,{[c]:i},a)=>{if(typeof a==="string"){a=Buffer.from(a)}return n(t,a,{key:p(i,false),dsaEncoding:"ieee-p1363"})});b=((e,t,{[c]:i},n,r)=>{try{return a(t,n,{key:p(i,true),dsaEncoding:"ieee-p1363"},r)}catch(e){return false}})}else{m=((e,t,{[c]:i},n)=>{return u(r(t).update(n).sign(p(i,false)),e)});b=((e,t,{[c]:i},n,a)=>{try{return s(t).update(n).verify(p(i,true),l(a,e))}catch(e){return false}})}const g=e=>{switch(e){case"P-256":return"ES256";case h:return"ES256K";case"P-384":return"ES384";case"P-521":return"ES512"}};e.exports=((e,t)=>{const i=[];if(o().includes("prime256v1")){i.push("ES256")}if(o().includes("secp256k1")){i.push("ES256K")}if(o().includes("secp384r1")){i.push("ES384")}if(o().includes("secp521r1")){i.push("ES512")}i.forEach(i=>{const n=d(i);e.sign.set(i,m.bind(undefined,i,n));e.verify.set(i,b.bind(undefined,i,n));t.EC.sign[i]=(e=>e.private&&t.EC.verify[i](e));t.EC.verify[i]=(e=>(e.use==="sig"||e.use===undefined)&&g(e.crv)===i)})})},,function(e,t,i){var n=i(342);var a=i(64);var r=i(428);var s=i(909);e.exports={parse:n.parseRequest,parseRequest:n.parseRequest,sign:a.signRequest,signRequest:a.signRequest,createSigner:a.createSigner,isSigner:a.isSigner,sshKeyToPEM:s.sshKeyToPEM,sshKeyFingerprint:s.fingerprint,pemToRsaSSHKey:s.pemToRsaSSHKey,verify:r.verifySignature,verifySignature:r.verifySignature,verifyHMAC:r.verifyHMAC}},,,function(e,t,i){e.exports=ForeverAgent;ForeverAgent.SSL=ForeverAgentSSL;var n=i(669),a=i(363).Agent,r=i(631),s=i(818),o=i(211).Agent;function getConnectionName(e,t){var i="";if(typeof e==="string"){i=e+":"+t}else{i=e.host+":"+e.port+":"+(e.localAddress?e.localAddress+":":":")}return i}function ForeverAgent(e){var t=this;t.options=e||{};t.requests={};t.sockets={};t.freeSockets={};t.maxSockets=t.options.maxSockets||a.defaultMaxSockets;t.minSockets=t.options.minSockets||ForeverAgent.defaultMinSockets;t.on("free",function(e,i,n){var a=getConnectionName(i,n);if(t.requests[a]&&t.requests[a].length){t.requests[a].shift().onSocket(e)}else if(t.sockets[a].length0&&!e.useChunkedEncodingByDefault){var r=this.freeSockets[n].pop();r.removeListener("error",r._onIdleError);delete r._onIdleError;e._reusedSocket=true;e.onSocket(r)}else{this.addRequestNoreuse(e,t,i)}};ForeverAgent.prototype.removeSocket=function(e,t,i,n){if(this.sockets[t]){var a=this.sockets[t].indexOf(e);if(a!==-1){this.sockets[t].splice(a,1)}}else if(this.sockets[t]&&this.sockets[t].length===0){delete this.sockets[t];delete this.requests[t]}if(this.freeSockets[t]){var a=this.freeSockets[t].indexOf(e);if(a!==-1){this.freeSockets[t].splice(a,1);if(this.freeSockets[t].length===0){delete this.freeSockets[t]}}}if(this.requests[t]&&this.requests[t].length){this.createSocket(t,i,n).emit("free")}};function ForeverAgentSSL(e){ForeverAgent.call(this,e)}n.inherits(ForeverAgentSSL,ForeverAgent);ForeverAgentSSL.prototype.createConnection=createConnectionSSL;ForeverAgentSSL.prototype.addRequestNoreuse=o.prototype.addRequest;function createConnectionSSL(e,t,i){if(typeof e==="object"){i=e}else if(typeof t==="object"){i=t}else if(typeof i==="object"){i=i}else{i={}}if(typeof e==="number"){i.port=e}if(typeof t==="string"){i.host=t}return s.connect(i)}},,function(e,t,i){"use strict";const{PassThrough:n}=i(413);const a=i(718);const r=i(678);const{HTTPError:s,ReadError:o}=i(774);e.exports=(e=>{const t=new n;const i=new n;const u=a(t,i);const l=new Set;let c=false;e.retry.retries=(()=>0);if(e.body){u.write=(()=>{throw new Error("Got's stream is not writable when the `body` option is used")})}const d=r(e,t);u._destroy=d.abort;d.on("response",t=>{const{statusCode:n}=t;t.on("error",t=>{u.emit("error",new o(t,e))});if(e.throwHttpErrors&&n!==304&&(n<200||n>299)){u.emit("error",new s(t,e),null,t);return}c=true;t.pipe(i);for(const i of l){if(i.headersSent){continue}for(const[n,a]of Object.entries(t.headers)){const t=e.decompress?n!=="content-encoding":true;if(t){i.setHeader(n,a)}}i.statusCode=t.statusCode}u.emit("response",t)});["error","request","redirect","uploadProgress","downloadProgress"].forEach(e=>d.on(e,(...t)=>u.emit(e,...t)));const p=u.pipe.bind(u);const f=u.unpipe.bind(u);u.pipe=((e,t)=>{if(c){throw new Error("Failed to pipe. The response has been emitted already.")}const i=p(e,t);if(Reflect.has(e,"setHeader")){l.add(e)}return i});u.unpipe=(e=>{l.delete(e);return f(e)});return u})},,,function(e,t,i){const{EOL:n}=i(87);const a=i(208);const r=i(490);const s=i(274);let o=i(918);const u=i(322);const{KeyStore:l}=i(851);const c=i(466);const{check:d,verify:p}=i(179);const f=i(715);const{detect:h}=i(995);o=o.bind(undefined,c.JWSInvalid);const m=new Set(["compact","flattened","preparsed"]);const b=(e,t,i,g,{crit:y=[],complete:S=false,algorithms:w,parse:v=true,encoding:z="utf8"}={})=>{g=u(g,true);if(w!==undefined&&(!Array.isArray(w)||w.some(e=>typeof e!=="string"||!e))){throw new TypeError('"algorithms" option must be an array of non-empty strings')}else if(w){w=new Set(w)}if(!Array.isArray(y)||y.some(e=>typeof e!=="string"||!e)){throw new TypeError('"crit" option must be an array of non-empty strings')}if(!t){t=h(i)}let j;let O;let k;let C;let T;if(t==="general"&&i.signatures.length===1){t="flattened";const{signatures:e,...n}=i;i={...n,...e[0]}}let R;if(m.has(t)){let u={};switch(t){case"compact":[j,k,C]=i.split(".");break;case"flattened":({protected:j,payload:k,signature:C,header:O}=i);break;case"preparsed":{({decoded:R}=i);[j,k,C]=i.token.split(".");break}}if(!O){e=true}if(R){u=R.header}else if(j){try{u=a.JSON.decode(j)}catch(e){throw new c.JWSInvalid("could not parse JWS protected header")}}else{e=e||true}if(!e&&!r(u,O)){throw new c.JWSInvalid("JWS Protected and JWS Unprotected Header Parameter names must be disjoint")}const h={...u,...O};o(u,O,y);T=u.alg||O&&O.alg;if(!T){throw new c.JWSInvalid("missing JWS signature algorithm")}else if(w&&!w.has(T)){throw new c.JOSEAlgNotWhitelisted("alg not whitelisted")}if(g instanceof l){const e=g;const n=e.all({kid:h.kid,alg:h.alg,key_ops:["verify"]});switch(n.length){case 0:throw new c.JWKSNoMatchingKey;case 1:g=n[0];break;default:{const e=[];for(const a of n){try{return b(true,t,i,a,{crit:y,complete:S,encoding:z,parse:v,algorithms:w?[...w]:undefined})}catch(t){e.push(t);continue}}const a=new c.JOSEMultiError(e);if([...a].some(e=>e instanceof c.JWSVerificationFailed)){throw new c.JWSVerificationFailed}throw a}}}if(g===f.EmbeddedJWK){if(!s(h.jwk)){throw new c.JWSInvalid('JWS Header Parameter "jwk" must be a JSON object')}g=f.asKey(h.jwk);if(g.type!=="public"){throw new c.JWSInvalid('JWS Header Parameter "jwk" must be a public key')}}else if(g===f.EmbeddedX5C){if(!Array.isArray(h.x5c)||!h.x5c.length||h.x5c.some(e=>typeof e!=="string"||!e)){throw new c.JWSInvalid('JWS Header Parameter "x5c" must be a JSON array of certificate value strings')}g=f.asKey(`-----BEGIN CERTIFICATE-----${n}${(h.x5c[0].match(/.{1,64}/g)||[]).join(n)}${n}-----END CERTIFICATE-----`,{x5c:h.x5c})}d(g,"verify",T);const m=Buffer.concat([Buffer.from(j||""),Buffer.from("."),Buffer.isBuffer(k)?k:Buffer.from(k)]);if(!p(T,g,m,a.decodeToBuffer(C))){throw new c.JWSVerificationFailed}if(!h.crit||!h.crit.includes("b64")||h.b64){if(v){k=R?R.payload:a.JSON.decode.try(k,z)}else{k=a.decodeToBuffer(k)}}if(S){const e={payload:k,key:g};if(j)e.protected=u;if(O)e.header=O;return e}return k}const{signatures:E,...A}=i;const x=[];for(const e of E){try{return b(false,"flattened",{...A,...e},g,{crit:y,complete:S,encoding:z,parse:v,algorithms:w?[...w]:undefined})}catch(e){x.push(e);continue}}const N=new c.JOSEMultiError(x);if([...N].some(e=>e instanceof c.JWSVerificationFailed)){throw new c.JWSVerificationFailed}else if([...N].every(e=>e instanceof c.JWKSNoMatchingKey)){throw new c.JWKSNoMatchingKey}throw N};e.exports={bare:b,verify:b.bind(undefined,false,undefined)}},function(e){const t=new Set(["Ed25519"]);if(!("electron"in process.versions)){t.add("Ed448");t.add("X25519");t.add("X448")}e.exports=t},function(e){"use strict";e.exports={BINARY_TYPES:["nodebuffer","arraybuffer","fragments"],GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),EMPTY_BUFFER:Buffer.alloc(0),NOOP:()=>{}}},,,,function(e,t,i){const n=i(65);const a=(e,t)=>new n(e,t).minor;e.exports=a},,function(e,t,i){"use strict";var n=i(862),a=i(855),r=i(844),s=i(156);var o=i(967);var u=a.ucs2length;var l=i(832);var c=r.Validation;e.exports=compile;function compile(e,t,i,d){var p=this,f=this._opts,h=[undefined],m={},b=[],g={},y=[],S={},w=[];t=t||{schema:e,refVal:h,refs:m};var v=checkCompiling.call(this,e,t,d);var z=this._compilations[v.index];if(v.compiling)return z.callValidate=callValidate;var j=this._formats;var O=this.RULES;try{var k=localCompile(e,t,i,d);z.validate=k;var C=z.callValidate;if(C){C.schema=k.schema;C.errors=null;C.refs=k.refs;C.refVal=k.refVal;C.root=k.root;C.$async=k.$async;if(f.sourceCode)C.source=k.source}return k}finally{endCompiling.call(this,e,t,d)}function callValidate(){var e=z.validate;var t=e.apply(this,arguments);callValidate.errors=e.errors;return t}function localCompile(e,i,s,d){var g=!i||i&&i.schema==e;if(i.schema!=t.schema)return compile.call(p,e,i,s,d);var S=e.$async===true;var v=o({isTop:true,schema:e,isRoot:g,baseId:d,root:i,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:r.MissingRef,RULES:O,validate:o,util:a,resolve:n,resolveRef:resolveRef,usePattern:usePattern,useDefault:useDefault,useCustomRule:useCustomRule,opts:f,formats:j,logger:p.logger,self:p});v=vars(h,refValCode)+vars(b,patternCode)+vars(y,defaultCode)+vars(w,customRuleCode)+v;if(f.processCode)v=f.processCode(v,e);var z;try{var k=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",v);z=k(p,O,j,t,h,y,w,l,u,c);h[0]=z}catch(e){p.logger.error("Error compiling schema, function code:",v);throw e}z.schema=e;z.errors=null;z.refs=m;z.refVal=h;z.root=g?z:i;if(S)z.$async=true;if(f.sourceCode===true){z.source={code:v,patterns:b,defaults:y}}return z}function resolveRef(e,a,r){a=n.url(e,a);var s=m[a];var o,u;if(s!==undefined){o=h[s];u="refVal["+s+"]";return resolvedRef(o,u)}if(!r&&t.refs){var l=t.refs[a];if(l!==undefined){o=t.refVal[l];u=addLocalRef(a,o);return resolvedRef(o,u)}}u=addLocalRef(a);var c=n.call(p,localCompile,t,a);if(c===undefined){var d=i&&i[a];if(d){c=n.inlineRef(d,f.inlineRefs)?d:compile.call(p,d,t,i,e)}}if(c===undefined){removeLocalRef(a)}else{replaceLocalRef(a,c);return resolvedRef(c,u)}}function addLocalRef(e,t){var i=h.length;h[i]=t;m[e]=i;return"refVal"+i}function removeLocalRef(e){delete m[e]}function replaceLocalRef(e,t){var i=m[e];h[i]=t}function resolvedRef(e,t){return typeof e=="object"||typeof e=="boolean"?{code:t,schema:e,inline:true}:{code:t,$async:e&&!!e.$async}}function usePattern(e){var t=g[e];if(t===undefined){t=g[e]=b.length;b[t]=e}return"pattern"+t}function useDefault(e){switch(typeof e){case"boolean":case"number":return""+e;case"string":return a.toQuotedString(e);case"object":if(e===null)return"null";var t=s(e);var i=S[t];if(i===undefined){i=S[t]=y.length;y[i]=e}return"default"+i}}function useCustomRule(e,t,i,n){if(p._opts.validateSchema!==false){var a=e.definition.dependencies;if(a&&!a.every(function(e){return Object.prototype.hasOwnProperty.call(i,e)}))throw new Error("parent schema must have all required keywords: "+a.join(","));var r=e.definition.validateSchema;if(r){var s=r(t);if(!s){var o="keyword schema is invalid: "+p.errorsText(r.errors);if(p._opts.validateSchema=="log")p.logger.error(o);else throw new Error(o)}}}var u=e.definition.compile,l=e.definition.inline,c=e.definition.macro;var d;if(u){d=u.call(p,t,i,n)}else if(c){d=c.call(p,t,i,n);if(f.validateSchema!==false)p.validateSchema(d,true)}else if(l){d=l.call(p,n,e.keyword,t,i)}else{d=e.definition.validate;if(!d)return}if(d===undefined)throw new Error('custom keyword "'+e.keyword+'"failed to compile');var h=w.length;w[h]=d;return{code:"customRule"+h,validate:d}}}function checkCompiling(e,t,i){var n=compIndex.call(this,e,t,i);if(n>=0)return{index:n,compiling:true};n=this._compilations.length;this._compilations[n]={schema:e,root:t,baseId:i};return{index:n,compiling:false}}function endCompiling(e,t,i){var n=compIndex.call(this,e,t,i);if(n>=0)this._compilations.splice(n,1)}function compIndex(e,t,i){for(var n=0;n{let r=null;let s=null;let o=null;try{o=new a(t,i)}catch(e){return null}e.forEach(e=>{if(o.test(e)){if(!r||s.compare(e)===-1){r=e;s=new n(r,i)}}});return r};e.exports=r},,function(e){e.exports={$id:"query.json#",$schema:"http://json-schema.org/draft-06/schema#",type:"object",required:["name","value"],properties:{name:{type:"string"},value:{type:"string"},comment:{type:"string"}}}},function(e){function HARError(e){var t="validation failed";this.name="HARError";this.message=t;this.errors=e;if(typeof Error.captureStackTrace==="function"){Error.captureStackTrace(this,this.constructor)}else{this.stack=new Error(t).stack}}HARError.prototype=Error.prototype;e.exports=HARError},,function(e){e.exports=function(){this.octstr().contains().obj(this.key("privateKey").octstr())}},,function(e){e.exports=require("tls")},function(e,t,i){"use strict";var n=i(457);var a=i(685);function deprecated(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}e.exports.Type=i(945);e.exports.Schema=i(43);e.exports.FAILSAFE_SCHEMA=i(581);e.exports.JSON_SCHEMA=i(23);e.exports.CORE_SCHEMA=i(611);e.exports.DEFAULT_SAFE_SCHEMA=i(723);e.exports.DEFAULT_FULL_SCHEMA=i(910);e.exports.load=n.load;e.exports.loadAll=n.loadAll;e.exports.safeLoad=n.safeLoad;e.exports.safeLoadAll=n.safeLoadAll;e.exports.dump=a.dump;e.exports.safeDump=a.safeDump;e.exports.YAMLException=i(556);e.exports.MINIMAL_SCHEMA=i(581);e.exports.SAFE_SCHEMA=i(723);e.exports.DEFAULT_SCHEMA=i(910);e.exports.scan=deprecated("scan");e.exports.parse=deprecated("parse");e.exports.compose=deprecated("compose");e.exports.addConstructor=deprecated("addConstructor")},function(e){e.exports={$id:"beforeRequest.json#",$schema:"http://json-schema.org/draft-06/schema#",type:"object",optional:true,required:["lastAccess","eTag","hitCount"],properties:{expires:{type:"string",pattern:"^(\\d{4})(-)?(\\d\\d)(-)?(\\d\\d)(T)?(\\d\\d)(:)?(\\d\\d)(:)?(\\d\\d)(\\.\\d+)?(Z|([+-])(\\d\\d)(:)?(\\d\\d))?"},lastAccess:{type:"string",pattern:"^(\\d{4})(-)?(\\d\\d)(-)?(\\d\\d)(T)?(\\d\\d)(:)?(\\d\\d)(:)?(\\d\\d)(\\.\\d+)?(Z|([+-])(\\d\\d)(:)?(\\d\\d))?"},eTag:{type:"string"},hitCount:{type:"integer"},comment:{type:"string"}}}},function(e,t,i){"use strict";const{URL:n}=i(835);const a=i(534);const r=i(433);const s=(e,...t)=>{for(const i of t){for(const[t,r]of Object.entries(i)){if(a.undefined(r)){continue}const i=e[t];if(a.urlInstance(i)&&(a.urlInstance(r)||a.string(r))){e[t]=new n(r,i)}else if(a.plainObject(r)){if(a.plainObject(i)){e[t]=s({},i,r)}else{e[t]=s({},r)}}else if(a.array(r)){e[t]=s([],r)}else{e[t]=r}}}return e};const o=(...e)=>{e=e.map(e=>e||{});const t=s({},...e);const i={};for(const e of r){i[e]=[]}for(const t of e){if(t.hooks){for(const e of r){i[e]=i[e].concat(t.hooks[e])}}}t.hooks=i;return t};const u=(e,t)=>{const i=e.map(e=>e.defaults.handler);const n=e.length-1;return{methods:t,options:o(...e.map(e=>e.defaults.options)),handler:(e,t)=>{let a=-1;const r=e=>i[++a](e,a===n?t:r);return r(e)}}};e.exports=s;e.exports.options=o;e.exports.instances=u},function(e,t,i){const n=i(830);const a=i(298);const r=(e,t)=>{if(a(e,t)){return null}else{const i=n(e);const a=n(t);const r=i.prerelease.length||a.prerelease.length;const s=r?"pre":"";const o=r?"prerelease":"";for(const e in i){if(e==="major"||e==="minor"||e==="patch"){if(i[e]!==a[e]){return s+e}}}return o}};e.exports=r},,,,function(e,t,i){var n=i(139);var a=i(722);function v4(e,t,i){var r=t&&i||0;if(typeof e=="string"){t=e==="binary"?new Array(16):null;e=null}e=e||{};var s=e.random||(e.rng||n)();s[6]=s[6]&15|64;s[8]=s[8]&63|128;if(t){for(var o=0;o<16;++o){t[r+o]=s[o]}}return t||a(s)}e.exports=v4},function(e,t,i){const{improvedDH:n}=i(915);if(n){const{diffieHellman:t}=i(373);const{KeyObject:n}=i(40);const a=i(592);e.exports=(({keyObject:e},i)=>{if(!(i instanceof n)){({keyObject:i}=a(i))}return t({privateKey:e,publicKey:i})})}else{const{createECDH:t,constants:{POINT_CONVERSION_UNCOMPRESSED:n}}=i(373);const a=i(208);const r=e=>{switch(e){case"P-256":return"prime256v1";case"P-384":return"secp384r1";case"P-521":return"secp521r1"}};const s=Buffer.alloc(1,n);const o=(e,t)=>Buffer.concat([s,a.decodeToBuffer(e),a.decodeToBuffer(t)]);e.exports=(({crv:e,d:i},{x:n,y:s})=>{const u=r(e);const l=t(u);l.setPrivateKey(a.decodeToBuffer(i));return l.computeSecret(o(n,s))})}},,function(e,t,i){"use strict";try{const e=i(235);t.isValidUTF8=typeof e==="object"?e.Validation.isValidUTF8:e}catch(e){t.isValidUTF8=(()=>true)}t.isValidStatusCode=(e=>{return e>=1e3&&e<=1014&&e!==1004&&e!==1005&&e!==1006||e>=3e3&&e<=4999})},function(e,t,i){const{MAX_LENGTH:n}=i(181);const{re:a,t:r}=i(976);const s=i(65);const o=(e,t)=>{if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof s){return e}if(typeof e!=="string"){return null}if(e.length>n){return null}const i=t.loose?a[r.LOOSE]:a[r.FULL];if(!i.test(e)){return null}try{return new s(e,t)}catch(e){return null}};e.exports=o},,function(e){"use strict";e.exports=function equal(e,t){if(e===t)return true;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return false;var i,n,a;if(Array.isArray(e)){i=e.length;if(i!=t.length)return false;for(n=i;n--!==0;)if(!equal(e[n],t[n]))return false;return true}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();a=Object.keys(e);i=a.length;if(i!==Object.keys(t).length)return false;for(n=i;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,a[n]))return false;for(n=i;n--!==0;){var r=a[n];if(!equal(e[r],t[r]))return false}return true}return e!==e&&t!==t}},function(e,t,i){var n=i(602);var a=i(747);n.register("cat",_cat,{canReceivePipe:true,cmdOptions:{n:"number"}});function _cat(e,t){var i=n.readFromPipe();if(!t&&!i)n.error("no paths given");t=[].slice.call(arguments,1);t.forEach(function(e){if(!a.existsSync(e)){n.error("no such file or directory: "+e)}else if(n.statFollowLinks(e).isDirectory()){n.error(e+": Is a directory")}i+=a.readFileSync(e,"utf8")});if(e.number){i=addNumbers(i)}return i}e.exports=_cat;function addNumbers(e){var t=e.split("\n");var i=t.pop();t=t.map(function(e,t){return numberedLine(t+1,e)});if(i.length){i=numberedLine(t.length+1,i)}t.push(i);return t.join("\n")}function numberedLine(e,t){var i=(" "+e).slice(-6)+"\t";return i+t}},,function(e){e.exports=require("url")},,,function(e,t,i){var n=i(747);var a=i(622);var r=i(602);r.register("cp",_cp,{cmdOptions:{f:"!no_force",n:"no_force",u:"update",R:"recursive",r:"recursive",L:"followsymlink",P:"noFollowsymlink"},wrapOutput:false});function copyFileSync(e,t,i){if(!n.existsSync(e)){r.error("copyFileSync: no such file or directory: "+e)}var a=process.platform==="win32";try{if(i.update&&r.statFollowLinks(e).mtime=r.config.maxdepth)return;i++;var s=process.platform==="win32";try{n.mkdirSync(t)}catch(e){if(e.code!=="EEXIST")throw e}var o=n.readdirSync(e);for(var u=0;u and/or ")}else{t=[].slice.call(arguments,1,arguments.length-1);i=arguments[arguments.length-1]}var s=n.existsSync(i);var o=s&&r.statFollowLinks(i);if((!s||!o.isDirectory())&&t.length>1){r.error("dest is not a directory (too many sources)")}if(s&&o.isFile()&&e.no_force){return new r.ShellString("","",0)}t.forEach(function(s,u){if(!n.existsSync(s)){if(s==="")s="''";r.error("no such file or directory: "+s,{continue:true});return}var l=r.statFollowLinks(s);if(!e.noFollowsymlink&&l.isDirectory()){if(!e.recursive){r.error("omitting directory '"+s+"'",{continue:true})}else{var c=o&&o.isDirectory()?a.join(i,a.basename(s)):i;try{r.statFollowLinks(a.dirname(i));cpdirSyncRecursive(s,c,0,{no_force:e.no_force,followsymlink:e.followsymlink})}catch(e){r.error("cannot create directory '"+i+"': No such file or directory")}}}else{var d=i;if(o&&o.isDirectory()){d=a.normalize(i+"/"+a.basename(s))}var p=n.existsSync(d);if(p&&checkRecentCreated(t,u)){if(!e.no_force){r.error("will not overwrite just-created '"+d+"' with '"+s+"'",{continue:true})}return}if(p&&e.no_force){return}if(a.relative(s,d)===""){r.error("'"+d+"' and '"+s+"' are the same file",{continue:true});return}copyFileSync(s,d,e)}});return new r.ShellString("",r.state.error,r.state.errorCode)}e.exports=_cp},,,function(e,t,i){"use strict";var n=i(945);var a=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9])"+"-([0-9][0-9])$");var r=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9]?)"+"-([0-9][0-9]?)"+"(?:[Tt]|[ \\t]+)"+"([0-9][0-9]?)"+":([0-9][0-9])"+":([0-9][0-9])"+"(?:\\.([0-9]*))?"+"(?:[ \\t]*(Z|([-+])([0-9][0-9]?)"+"(?::([0-9][0-9]))?))?$");function resolveYamlTimestamp(e){if(e===null)return false;if(a.exec(e)!==null)return true;if(r.exec(e)!==null)return true;return false}function constructYamlTimestamp(e){var t,i,n,s,o,u,l,c=0,d=null,p,f,h;t=a.exec(e);if(t===null)t=r.exec(e);if(t===null)throw new Error("Date resolve error");i=+t[1];n=+t[2]-1;s=+t[3];if(!t[4]){return new Date(Date.UTC(i,n,s))}o=+t[4];u=+t[5];l=+t[6];if(t[7]){c=t[7].slice(0,3);while(c.length<3){c+="0"}c=+c}if(t[9]){p=+t[10];f=+(t[11]||0);d=(p*60+f)*6e4;if(t[9]==="-")d=-d}h=new Date(Date.UTC(i,n,s,o,u,l,c));if(d)h.setTime(h.getTime()-d);return h}function representYamlTimestamp(e){return e.toISOString()}e.exports=new n("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:resolveYamlTimestamp,construct:constructYamlTimestamp,instanceOf:Date,represent:representYamlTimestamp})},function(e,t,i){"use strict";var n=i(945);var a=Object.prototype.hasOwnProperty;var r=Object.prototype.toString;function resolveYamlOmap(e){if(e===null)return true;var t=[],i,n,s,o,u,l=e;for(i=0,n=l.length;itypeof e!=="string")){throw new TypeError("`key_ops` must be a non-empty array of strings when provided")}u=Array.from(new Set(u)).filter(e=>m.has(e))}if(u&&i){if(i==="enc"&&u.some(e=>h.sig.has(e))||i==="sig"&&u.some(e=>h.enc.has(e))){throw new S.JWKInvalid('inconsistent JWK "use" and "key_ops"')}}if(s&&c!==undefined){if(!Array.isArray(c)||!c.length||c.some(e=>typeof e!=="string")){throw new TypeError("`x5c` must be an array of one or more PKIX certificates when provided")}c.forEach((t,i)=>{let a;try{a=o({key:`-----BEGIN CERTIFICATE-----${r}${(t.match(/.{1,64}/g)||[]).join(r)}${r}-----END CERTIFICATE-----`,format:"pem"})}catch(e){throw new S.JWKInvalid(`\`x5c\` member at index ${i} is not a valid base64-encoded DER PKIX certificate`)}if(i===0){try{n.deepEqual(a.export({type:"spki",format:"der"}),(e.type==="public"?e:o(e)).export({type:"spki",format:"der"}))}catch(e){throw new S.JWKInvalid("The key in the first `x5c` certificate MUST match the public key represented by the JWK")}}})}Object.defineProperties(this,{[f]:{value:g(e)?undefined:e},keyObject:{get(){if(!s){throw new S.JOSENotSupported("KeyObject class is not supported in your Node.js runtime version")}return this[f]}},type:{value:e.type},private:{value:e.type==="private"},public:{value:e.type==="public"},secret:{value:e.type==="secret"},alg:{value:t,enumerable:t!==undefined},use:{value:i,enumerable:i!==undefined},x5c:{enumerable:c!==undefined,...c?{get(){return[...c]}}:{value:undefined}},key_ops:{enumerable:u!==undefined,...u?{get(){return[...u]}}:{value:undefined}},kid:{enumerable:true,...a?{value:a}:{get(){Object.defineProperty(this,"kid",{value:this.thumbprint,configurable:false});return this.kid},configurable:true}},...c?{x5t:{enumerable:true,...d?{value:d}:{get(){Object.defineProperty(this,"x5t",{value:y.x5t(this.x5c[0]),configurable:false});return this.x5t},configurable:true}}}:undefined,...c?{"x5t#S256":{enumerable:true,...p?{value:p}:{get(){Object.defineProperty(this,"x5t#S256",{value:y["x5t#S256"](this.x5c[0]),configurable:false});return this["x5t#S256"]},configurable:true}}}:undefined,thumbprint:{get(){Object.defineProperty(this,"thumbprint",{value:y.kid(this[l]()),configurable:false});return this.thumbprint},configurable:true}})}toPEM(e=false,t={}){if(this.secret){throw new TypeError("symmetric keys cannot be exported as PEM")}if(e&&this.public===true){throw new TypeError("public key cannot be exported as private")}const{type:i=(e?"pkcs8":"spki"),cipher:n,passphrase:a}=t;let r=this[f];if(!e){if(this.private){r=o(r)}if(n||a){throw new TypeError("cipher and passphrase can only be applied when exporting private keys")}}if(e){return r.export({format:"pem",type:i,cipher:n,passphrase:a})}return r.export({format:"pem",type:i})}toJWK(e=false){if(e&&this.public===true){throw new TypeError("public key cannot be exported as private")}const t=[...this.constructor[e?d:c]].map(e=>[e,this[e]]);const i={};Object.keys(t).forEach(e=>{const[n,a]=t[e];i[n]=a});i.kty=this.kty;i.kid=this.kid;if(this.alg){i.alg=this.alg}if(this.key_ops&&this.key_ops.length){i.key_ops=this.key_ops}if(this.use){i.use=this.use}if(this.x5c){i.x5c=this.x5c}if(this.x5t){i.x5t=this.x5t}if(this["x5t#S256"]){i["x5t#S256"]=this["x5t#S256"]}return i}[p](){const e=this[f].type==="private"?this.constructor[d]:this.constructor[c];Object.defineProperties(this,[...e].reduce((t,i)=>{t[i]={get(){const t=u(this[f]);Object.defineProperties(this,Object.entries(t).filter(([t])=>e.has(t)).reduce((e,[t,i])=>{e[t]={value:i,enumerable:this.constructor[c].has(t),configurable:false};return e},{}));return this[i]},enumerable:this.constructor[c].has(i),configurable:true};return t},{}))}[a.custom](){return`${this.constructor.name} ${a(this.toJWK(false),{depth:Infinity,colors:process.stdout.isTTY,compact:false,sorted:true})}`}[l](){throw new Error(`"[THUMBPRINT_MATERIAL]()" is not implemented on ${this.constructor.name}`)}algorithms(e,t,i){const{use:n=this.use,alg:a=this.alg,key_ops:r=this.key_ops}=t===w?i:{};if(a){return new Set(this.algorithms(e,w,{alg:null,use:n,key_ops:r}).has(a)?[a]:undefined)}if(typeof e==="symbol"){try{return this[e]()}catch(e){return new Set}}if(e&&r&&!r.includes(e)){return new Set}switch(e){case"decrypt":case"deriveKey":case"encrypt":case"sign":case"unwrapKey":case"verify":case"wrapKey":return new Set(Object.entries(v[this.kty][e]).map(([e,t])=>t(this)?e:undefined).filter(Boolean));case undefined:return new Set([...this.algorithms("sign"),...this.algorithms("verify"),...this.algorithms("decrypt"),...this.algorithms("encrypt"),...this.algorithms("unwrapKey"),...this.algorithms("wrapKey"),...this.algorithms("deriveKey")]);default:throw new TypeError("invalid key operation")}}static async generate(){throw new Error(`"static async generate()" is not implemented on ${this.name}`)}static generateSync(){throw new Error(`"static generateSync()" is not implemented on ${this.name}`)}static get[c](){throw new Error(`"static get [PUBLIC_MEMBERS]()" is not implemented on ${this.name}`)}static get[d](){throw new Error(`"static get [PRIVATE_MEMBERS]()" is not implemented on ${this.name}`)}}e.exports=Key},function(e,t,i){"use strict";const n=i(903);const a=i(676);const r=i(885);const{kStatusCode:s,NOOP:o}=i(60);const u=Buffer.from([0,0,255,255]);const l=Symbol("permessage-deflate");const c=Symbol("total-length");const d=Symbol("callback");const p=Symbol("buffers");const f=Symbol("error");let h;class PerMessageDeflate{constructor(e,t,i){this._maxPayload=i|0;this._options=e||{};this._threshold=this._options.threshold!==undefined?this._options.threshold:1024;this._isServer=!!t;this._deflate=null;this._inflate=null;this.params=null;if(!h){const e=this._options.concurrencyLimit!==undefined?this._options.concurrencyLimit:10;h=new r(e)}}static get extensionName(){return"permessage-deflate"}offer(){const e={};if(this._options.serverNoContextTakeover){e.server_no_context_takeover=true}if(this._options.clientNoContextTakeover){e.client_no_context_takeover=true}if(this._options.serverMaxWindowBits){e.server_max_window_bits=this._options.serverMaxWindowBits}if(this._options.clientMaxWindowBits){e.client_max_window_bits=this._options.clientMaxWindowBits}else if(this._options.clientMaxWindowBits==null){e.client_max_window_bits=true}return e}accept(e){e=this.normalizeParams(e);this.params=this._isServer?this.acceptAsServer(e):this.acceptAsClient(e);return this.params}cleanup(){if(this._inflate){this._inflate.close();this._inflate=null}if(this._deflate){const e=this._deflate[d];this._deflate.close();this._deflate=null;if(e){e(new Error("The deflate stream was closed while data was being processed"))}}}acceptAsServer(e){const t=this._options;const i=e.find(e=>{if(t.serverNoContextTakeover===false&&e.server_no_context_takeover||e.server_max_window_bits&&(t.serverMaxWindowBits===false||typeof t.serverMaxWindowBits==="number"&&t.serverMaxWindowBits>e.server_max_window_bits)||typeof t.clientMaxWindowBits==="number"&&!e.client_max_window_bits){return false}return true});if(!i){throw new Error("None of the extension offers can be accepted")}if(t.serverNoContextTakeover){i.server_no_context_takeover=true}if(t.clientNoContextTakeover){i.client_no_context_takeover=true}if(typeof t.serverMaxWindowBits==="number"){i.server_max_window_bits=t.serverMaxWindowBits}if(typeof t.clientMaxWindowBits==="number"){i.client_max_window_bits=t.clientMaxWindowBits}else if(i.client_max_window_bits===true||t.clientMaxWindowBits===false){delete i.client_max_window_bits}return i}acceptAsClient(e){const t=e[0];if(this._options.clientNoContextTakeover===false&&t.client_no_context_takeover){throw new Error('Unexpected parameter "client_no_context_takeover"')}if(!t.client_max_window_bits){if(typeof this._options.clientMaxWindowBits==="number"){t.client_max_window_bits=this._options.clientMaxWindowBits}}else if(this._options.clientMaxWindowBits===false||typeof this._options.clientMaxWindowBits==="number"&&t.client_max_window_bits>this._options.clientMaxWindowBits){throw new Error('Unexpected or invalid parameter "client_max_window_bits"')}return t}normalizeParams(e){e.forEach(e=>{Object.keys(e).forEach(t=>{let i=e[t];if(i.length>1){throw new Error(`Parameter "${t}" must have only a single value`)}i=i[0];if(t==="client_max_window_bits"){if(i!==true){const e=+i;if(!Number.isInteger(e)||e<8||e>15){throw new TypeError(`Invalid value for parameter "${t}": ${i}`)}i=e}else if(!this._isServer){throw new TypeError(`Invalid value for parameter "${t}": ${i}`)}}else if(t==="server_max_window_bits"){const e=+i;if(!Number.isInteger(e)||e<8||e>15){throw new TypeError(`Invalid value for parameter "${t}": ${i}`)}i=e}else if(t==="client_no_context_takeover"||t==="server_no_context_takeover"){if(i!==true){throw new TypeError(`Invalid value for parameter "${t}": ${i}`)}}else{throw new Error(`Unknown parameter "${t}"`)}e[t]=i})});return e}decompress(e,t,i){h.add(n=>{this._decompress(e,t,(e,t)=>{n();i(e,t)})})}compress(e,t,i){h.add(n=>{this._compress(e,t,(e,t)=>{n();i(e,t)})})}_decompress(e,t,i){const r=this._isServer?"client":"server";if(!this._inflate){const e=`${r}_max_window_bits`;const t=typeof this.params[e]!=="number"?n.Z_DEFAULT_WINDOWBITS:this.params[e];this._inflate=n.createInflateRaw({...this._options.zlibInflateOptions,windowBits:t});this._inflate[l]=this;this._inflate[c]=0;this._inflate[p]=[];this._inflate.on("error",inflateOnError);this._inflate.on("data",inflateOnData)}this._inflate[d]=i;this._inflate.write(e);if(t)this._inflate.write(u);this._inflate.flush(()=>{const e=this._inflate[f];if(e){this._inflate.close();this._inflate=null;i(e);return}const n=a.concat(this._inflate[p],this._inflate[c]);if(t&&this.params[`${r}_no_context_takeover`]){this._inflate.close();this._inflate=null}else{this._inflate[c]=0;this._inflate[p]=[]}i(null,n)})}_compress(e,t,i){const r=this._isServer?"server":"client";if(!this._deflate){const e=`${r}_max_window_bits`;const t=typeof this.params[e]!=="number"?n.Z_DEFAULT_WINDOWBITS:this.params[e];this._deflate=n.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:t});this._deflate[c]=0;this._deflate[p]=[];this._deflate.on("error",o);this._deflate.on("data",deflateOnData)}this._deflate[d]=i;this._deflate.write(e);this._deflate.flush(n.Z_SYNC_FLUSH,()=>{if(!this._deflate){return}let e=a.concat(this._deflate[p],this._deflate[c]);if(t)e=e.slice(0,e.length-4);this._deflate[d]=null;if(t&&this.params[`${r}_no_context_takeover`]){this._deflate.close();this._deflate=null}else{this._deflate[c]=0;this._deflate[p]=[]}i(null,e)})}}e.exports=PerMessageDeflate;function deflateOnData(e){this[p].push(e);this[c]+=e.length}function inflateOnData(e){this[c]+=e.length;if(this[l]._maxPayload<1||this[c]<=this[l]._maxPayload){this[p].push(e);return}this[f]=new RangeError("Max payload size exceeded");this[f][s]=1009;this.removeListener("data",inflateOnData);this.reset()}function inflateOnError(e){this[l]._inflate=null;e[s]=1007;this[d](e)}},function(e,t,i){const n=i(926);e.exports=n},function(e,t,i){e.exports=Key;var n=i(872);var a=i(98);var r=i(373);var s=i(400);var o=i(575);var u=i(532).DiffieHellman;var l=i(753);var c=i(270);var d=i(502);var p;try{p=i(635)}catch(e){}var f=l.InvalidAlgorithmError;var h=l.KeyParseError;var m={};m["auto"]=i(241);m["pem"]=i(268);m["pkcs1"]=i(449);m["pkcs8"]=i(707);m["rfc4253"]=i(538);m["ssh"]=i(603);m["ssh-private"]=i(78);m["openssh"]=m["ssh-private"];m["dnssec"]=i(982);m["putty"]=i(624);m["ppk"]=m["putty"];function Key(e){n.object(e,"options");n.arrayOfObject(e.parts,"options.parts");n.string(e.type,"options.type");n.optionalString(e.comment,"options.comment");var t=a.info[e.type];if(typeof t!=="object")throw new f(e.type);var i={};for(var r=0;r1024)e="sha256";if(this.type==="ed25519")e="sha512";if(this.type==="ecdsa"){if(this.size<=256)e="sha256";else if(this.size<=384)e="sha384";else e="sha512"}return e};Key.prototype.createVerify=function(e){if(e===undefined)e=this.defaultHashAlgorithm();n.string(e,"hash algorithm");if(this.type==="ed25519"&&p!==undefined)return new p.Verifier(this,e);if(this.type==="curve25519")throw new Error("Curve25519 keys are not suitable for "+"signing or verification");var t,i,a;try{i=e.toUpperCase();t=r.createVerify(i)}catch(e){a=e}if(t===undefined||a instanceof Error&&a.message.match(/Unknown message digest/)){i="RSA-";i+=e.toUpperCase();t=r.createVerify(i)}n.ok(t,"failed to create verifier");var s=t.verify.bind(t);var u=this.toBuffer("pkcs8");var l=this.curve;var c=this;t.verify=function(t,i){if(o.isSignature(t,[2,0])){if(t.type!==c.type)return false;if(t.hashAlgorithm&&t.hashAlgorithm!==e)return false;if(t.curve&&c.type==="ecdsa"&&t.curve!==l)return false;return s(u,t.toBuffer("asn1"))}else if(typeof t==="string"||Buffer.isBuffer(t)){return s(u,t,i)}else if(o.isSignature(t,[1,0])){throw new Error("signature was created by too old "+"a version of sshpk and cannot be verified")}else{throw new TypeError("signature must be a string, "+"Buffer, or Signature object")}};return t};Key.prototype.createDiffieHellman=function(){if(this.type==="rsa")throw new Error("RSA keys do not support Diffie-Hellman");return new u(this)};Key.prototype.createDH=Key.prototype.createDiffieHellman;Key.parse=function(e,t,i){if(typeof e!=="string")n.buffer(e,"data");if(t===undefined)t="auto";n.string(t,"format");if(typeof i==="string")i={filename:i};n.optionalObject(i,"options");if(i===undefined)i={};n.optionalString(i.filename,"options.filename");if(i.filename===undefined)i.filename="(unnamed)";n.object(m[t],"formats[format]");try{var a=m[t].read(e,i);if(a instanceof d)a=a.toPublic();if(!a.comment)a.comment=i.filename;return a}catch(e){if(e.name==="KeyEncryptedError")throw e;throw new h(i.filename,t,e)}};Key.isKey=function(e,t){return c.isCompatible(e,Key,t)};Key.prototype._sshpkApiVersion=[1,7];Key._oldVersionDetect=function(e){n.func(e.toBuffer);n.func(e.fingerprint);if(e.createDH)return[1,4];if(e.defaultHashAlgorithm)return[1,3];if(e.formats["auto"])return[1,2];if(e.formats["pkcs1"])return[1,1];return[1,0]}},function(e,t){(function(e,i){true?i(t):undefined})(this,function(e){"use strict";function merge(){for(var e=arguments.length,t=Array(e),i=0;i1){t[0]=t[0].slice(0,-1);var n=t.length-1;for(var a=1;a= 0x80 (not a basic code point)","invalid-input":"Invalid input"};var y=s-o;var S=Math.floor;var w=String.fromCharCode;function error$1(e){throw new RangeError(g[e])}function map(e,t){var i=[];var n=e.length;while(n--){i[n]=t(e[n])}return i}function mapDomain(e,t){var i=e.split("@");var n="";if(i.length>1){n=i[0]+"@";e=i[1]}e=e.replace(b,".");var a=e.split(".");var r=map(a,t).join(".");return n+r}function ucs2decode(e){var t=[];var i=0;var n=e.length;while(i=55296&&a<=56319&&i>1;e+=S(e/t);for(;e>y*u>>1;n+=s){e=S(e/y)}return S(n+(y+1)*e/(e+l))};var k=function decode(e){var t=[];var i=e.length;var n=0;var a=p;var l=d;var c=e.lastIndexOf(f);if(c<0){c=0}for(var h=0;h=128){error$1("not-basic")}t.push(e.charCodeAt(h))}for(var m=c>0?c+1:0;m=i){error$1("invalid-input")}var w=z(e.charCodeAt(m++));if(w>=s||w>S((r-n)/g)){error$1("overflow")}n+=w*g;var v=y<=l?o:y>=l+u?u:y-l;if(wS(r/j)){error$1("overflow")}g*=j}var k=t.length+1;l=O(n-b,k,b==0);if(S(n/k)>r-a){error$1("overflow")}a+=S(n/k);n%=k;t.splice(n++,0,a)}return String.fromCodePoint.apply(String,t)};var C=function encode(e){var t=[];e=ucs2decode(e);var i=e.length;var n=p;var a=0;var l=d;var c=true;var h=false;var m=undefined;try{for(var b=e[Symbol.iterator](),g;!(c=(g=b.next()).done);c=true){var y=g.value;if(y<128){t.push(w(y))}}}catch(e){h=true;m=e}finally{try{if(!c&&b.return){b.return()}}finally{if(h){throw m}}}var v=t.length;var z=v;if(v){t.push(f)}while(z=n&&xS((r-a)/N)){error$1("overflow")}a+=(k-n)*N;n=k;var V=true;var P=false;var D=undefined;try{for(var I=e[Symbol.iterator](),_;!(V=(_=I.next()).done);V=true){var q=_.value;if(qr){error$1("overflow")}if(q==n){var B=a;for(var M=s;;M+=s){var U=M<=l?o:M>=l+u?u:M-l;if(B>6|192).toString(16).toUpperCase()+"%"+(t&63|128).toString(16).toUpperCase();else i="%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(t&63|128).toString(16).toUpperCase();return i}function pctDecChars(e){var t="";var i=0;var n=e.length;while(i=194&&a<224){if(n-i>=6){var r=parseInt(e.substr(i+4,2),16);t+=String.fromCharCode((a&31)<<6|r&63)}else{t+=e.substr(i,6)}i+=6}else if(a>=224){if(n-i>=9){var s=parseInt(e.substr(i+4,2),16);var o=parseInt(e.substr(i+7,2),16);t+=String.fromCharCode((a&15)<<12|(s&63)<<6|o&63)}else{t+=e.substr(i,9)}i+=9}else{t+=e.substr(i,3);i+=3}}return t}function _normalizeComponentEncoding(e,t){function decodeUnreserved(e){var i=pctDecChars(e);return!i.match(t.UNRESERVED)?e:i}if(e.scheme)e.scheme=String(e.scheme).replace(t.PCT_ENCODED,decodeUnreserved).toLowerCase().replace(t.NOT_SCHEME,"");if(e.userinfo!==undefined)e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,decodeUnreserved).replace(t.NOT_USERINFO,pctEncChar).replace(t.PCT_ENCODED,toUpperCase);if(e.host!==undefined)e.host=String(e.host).replace(t.PCT_ENCODED,decodeUnreserved).toLowerCase().replace(t.NOT_HOST,pctEncChar).replace(t.PCT_ENCODED,toUpperCase);if(e.path!==undefined)e.path=String(e.path).replace(t.PCT_ENCODED,decodeUnreserved).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,pctEncChar).replace(t.PCT_ENCODED,toUpperCase);if(e.query!==undefined)e.query=String(e.query).replace(t.PCT_ENCODED,decodeUnreserved).replace(t.NOT_QUERY,pctEncChar).replace(t.PCT_ENCODED,toUpperCase);if(e.fragment!==undefined)e.fragment=String(e.fragment).replace(t.PCT_ENCODED,decodeUnreserved).replace(t.NOT_FRAGMENT,pctEncChar).replace(t.PCT_ENCODED,toUpperCase);return e}function _stripLeadingZeros(e){return e.replace(/^0*(.*)/,"$1")||"0"}function _normalizeIPv4(e,t){var i=e.match(t.IPV4ADDRESS)||[];var a=n(i,2),r=a[1];if(r){return r.split(".").map(_stripLeadingZeros).join(".")}else{return e}}function _normalizeIPv6(e,t){var i=e.match(t.IPV6ADDRESS)||[];var a=n(i,3),r=a[1],s=a[2];if(r){var o=r.toLowerCase().split("::").reverse(),u=n(o,2),l=u[0],c=u[1];var d=c?c.split(":").map(_stripLeadingZeros):[];var p=l.split(":").map(_stripLeadingZeros);var f=t.IPV4ADDRESS.test(p[p.length-1]);var h=f?7:8;var m=p.length-h;var b=Array(h);for(var g=0;g1){var v=b.slice(0,S.index);var z=b.slice(S.index+S.length);w=v.join(":")+"::"+z.join(":")}else{w=b.join(":")}if(s){w+="%"+s}return w}else{return e}}var x=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i;var N="".match(/(){0}/)[1]===undefined;function parse(e){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var a={};var r=n.iri!==false?i:t;if(n.reference==="suffix")e=(n.scheme?n.scheme+":":"")+"//"+e;var s=e.match(x);if(s){if(N){a.scheme=s[1];a.userinfo=s[3];a.host=s[4];a.port=parseInt(s[5],10);a.path=s[6]||"";a.query=s[7];a.fragment=s[8];if(isNaN(a.port)){a.port=s[5]}}else{a.scheme=s[1]||undefined;a.userinfo=e.indexOf("@")!==-1?s[3]:undefined;a.host=e.indexOf("//")!==-1?s[4]:undefined;a.port=parseInt(s[5],10);a.path=s[6]||"";a.query=e.indexOf("?")!==-1?s[7]:undefined;a.fragment=e.indexOf("#")!==-1?s[8]:undefined;if(isNaN(a.port)){a.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?s[4]:undefined}}if(a.host){a.host=_normalizeIPv6(_normalizeIPv4(a.host,r),r)}if(a.scheme===undefined&&a.userinfo===undefined&&a.host===undefined&&a.port===undefined&&!a.path&&a.query===undefined){a.reference="same-document"}else if(a.scheme===undefined){a.reference="relative"}else if(a.fragment===undefined){a.reference="absolute"}else{a.reference="uri"}if(n.reference&&n.reference!=="suffix"&&n.reference!==a.reference){a.error=a.error||"URI is not a "+n.reference+" reference."}var o=A[(n.scheme||a.scheme||"").toLowerCase()];if(!n.unicodeSupport&&(!o||!o.unicodeSupport)){if(a.host&&(n.domainHost||o&&o.domainHost)){try{a.host=E.toASCII(a.host.replace(r.PCT_ENCODED,pctDecChars).toLowerCase())}catch(e){a.error=a.error||"Host's domain name can not be converted to ASCII via punycode: "+e}}_normalizeComponentEncoding(a,t)}else{_normalizeComponentEncoding(a,r)}if(o&&o.parse){o.parse(a,n)}}else{a.error=a.error||"URI can not be parsed."}return a}function _recomposeAuthority(e,n){var a=n.iri!==false?i:t;var r=[];if(e.userinfo!==undefined){r.push(e.userinfo);r.push("@")}if(e.host!==undefined){r.push(_normalizeIPv6(_normalizeIPv4(String(e.host),a),a).replace(a.IPV6ADDRESS,function(e,t,i){return"["+t+(i?"%25"+i:"")+"]"}))}if(typeof e.port==="number"){r.push(":");r.push(e.port.toString(10))}return r.length?r.join(""):undefined}var V=/^\.\.?\//;var P=/^\/\.(\/|$)/;var D=/^\/\.\.(\/|$)/;var I=/^\/?(?:.|\n)*?(?=\/|$)/;function removeDotSegments(e){var t=[];while(e.length){if(e.match(V)){e=e.replace(V,"")}else if(e.match(P)){e=e.replace(P,"/")}else if(e.match(D)){e=e.replace(D,"/");t.pop()}else if(e==="."||e===".."){e=""}else{var i=e.match(I);if(i){var n=i[0];e=e.slice(n.length);t.push(n)}else{throw new Error("Unexpected dot segment condition")}}}return t.join("")}function serialize(e){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var a=n.iri?i:t;var r=[];var s=A[(n.scheme||e.scheme||"").toLowerCase()];if(s&&s.serialize)s.serialize(e,n);if(e.host){if(a.IPV6ADDRESS.test(e.host)){}else if(n.domainHost||s&&s.domainHost){try{e.host=!n.iri?E.toASCII(e.host.replace(a.PCT_ENCODED,pctDecChars).toLowerCase()):E.toUnicode(e.host)}catch(t){e.error=e.error||"Host's domain name can not be converted to "+(!n.iri?"ASCII":"Unicode")+" via punycode: "+t}}}_normalizeComponentEncoding(e,a);if(n.reference!=="suffix"&&e.scheme){r.push(e.scheme);r.push(":")}var o=_recomposeAuthority(e,n);if(o!==undefined){if(n.reference!=="suffix"){r.push("//")}r.push(o);if(e.path&&e.path.charAt(0)!=="/"){r.push("/")}}if(e.path!==undefined){var u=e.path;if(!n.absolutePath&&(!s||!s.absolutePath)){u=removeDotSegments(u)}if(o===undefined){u=u.replace(/^\/\//,"/%2F")}r.push(u)}if(e.query!==undefined){r.push("?");r.push(e.query)}if(e.fragment!==undefined){r.push("#");r.push(e.fragment)}return r.join("")}function resolveComponents(e,t){var i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var n=arguments[3];var a={};if(!n){e=parse(serialize(e,i),i);t=parse(serialize(t,i),i)}i=i||{};if(!i.tolerant&&t.scheme){a.scheme=t.scheme;a.userinfo=t.userinfo;a.host=t.host;a.port=t.port;a.path=removeDotSegments(t.path||"");a.query=t.query}else{if(t.userinfo!==undefined||t.host!==undefined||t.port!==undefined){a.userinfo=t.userinfo;a.host=t.host;a.port=t.port;a.path=removeDotSegments(t.path||"");a.query=t.query}else{if(!t.path){a.path=e.path;if(t.query!==undefined){a.query=t.query}else{a.query=e.query}}else{if(t.path.charAt(0)==="/"){a.path=removeDotSegments(t.path)}else{if((e.userinfo!==undefined||e.host!==undefined||e.port!==undefined)&&!e.path){a.path="/"+t.path}else if(!e.path){a.path=t.path}else{a.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path}a.path=removeDotSegments(a.path)}a.query=t.query}a.userinfo=e.userinfo;a.host=e.host;a.port=e.port}a.scheme=e.scheme}a.fragment=t.fragment;return a}function resolve(e,t,i){var n=assign({scheme:"null"},i);return serialize(resolveComponents(parse(e,n),parse(t,n),n,true),n)}function normalize(e,t){if(typeof e==="string"){e=serialize(parse(e,t),t)}else if(typeOf(e)==="object"){e=parse(serialize(e,t),t)}return e}function equal(e,t,i){if(typeof e==="string"){e=serialize(parse(e,i),i)}else if(typeOf(e)==="object"){e=serialize(e,i)}if(typeof t==="string"){t=serialize(parse(t,i),i)}else if(typeOf(t)==="object"){t=serialize(t,i)}return e===t}function escapeComponent(e,n){return e&&e.toString().replace(!n||!n.iri?t.ESCAPE:i.ESCAPE,pctEncChar)}function unescapeComponent(e,n){return e&&e.toString().replace(!n||!n.iri?t.PCT_ENCODED:i.PCT_ENCODED,pctDecChars)}var _={scheme:"http",domainHost:true,parse:function parse(e,t){if(!e.host){e.error=e.error||"HTTP URIs must have a host."}return e},serialize:function serialize(e,t){if(e.port===(String(e.scheme).toLowerCase()!=="https"?80:443)||e.port===""){e.port=undefined}if(!e.path){e.path="/"}return e}};var q={scheme:"https",domainHost:_.domainHost,parse:_.parse,serialize:_.serialize};var B={};var M=true;var U="[A-Za-z0-9\\-\\.\\_\\~"+(M?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]";var L="[0-9A-Fa-f]";var H=subexp(subexp("%[EFef]"+L+"%"+L+L+"%"+L+L)+"|"+subexp("%[89A-Fa-f]"+L+"%"+L+L)+"|"+subexp("%"+L+L));var Q="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]";var W="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]";var G=merge(W,'[\\"\\\\]');var K="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]";var J=new RegExp(U,"g");var F=new RegExp(H,"g");var Y=new RegExp(merge("[^]",Q,"[\\.]",'[\\"]',G),"g");var X=new RegExp(merge("[^]",U,K),"g");var Z=X;function decodeUnreserved(e){var t=pctDecChars(e);return!t.match(J)?e:t}var $={scheme:"mailto",parse:function parse$$1(e,t){var i=e;var n=i.to=i.path?i.path.split(","):[];i.path=undefined;if(i.query){var a=false;var r={};var s=i.query.split("&");for(var o=0,u=s.length;o{try{const{protocol:t}=new n.URL(e);a(t.match(/^(https?:)$/));return true}catch(e){throw new TypeError("only valid absolute URLs can be requested")}})},function(e,t,i){"use strict";e.exports={copy:copy,checkDataType:checkDataType,checkDataTypes:checkDataTypes,coerceToTypes:coerceToTypes,toHash:toHash,getProperty:getProperty,escapeQuotes:escapeQuotes,equal:i(832),ucs2length:i(767),varOccurences:varOccurences,varReplace:varReplace,schemaHasRules:schemaHasRules,schemaHasRulesExcept:schemaHasRulesExcept,schemaUnknownRules:schemaUnknownRules,toQuotedString:toQuotedString,getPathExpr:getPathExpr,getPath:getPath,getData:getData,unescapeFragment:unescapeFragment,unescapeJsonPointer:unescapeJsonPointer,escapeFragment:escapeFragment,escapeJsonPointer:escapeJsonPointer};function copy(e,t){t=t||{};for(var i in e)t[i]=e[i];return t}function checkDataType(e,t,i,n){var a=n?" !== ":" === ",r=n?" || ":" && ",s=n?"!":"",o=n?"":"!";switch(e){case"null":return t+a+"null";case"array":return s+"Array.isArray("+t+")";case"object":return"("+s+t+r+"typeof "+t+a+'"object"'+r+o+"Array.isArray("+t+"))";case"integer":return"(typeof "+t+a+'"number"'+r+o+"("+t+" % 1)"+r+t+a+t+(i?r+s+"isFinite("+t+")":"")+")";case"number":return"(typeof "+t+a+'"'+e+'"'+(i?r+s+"isFinite("+t+")":"")+")";default:return"typeof "+t+a+'"'+e+'"'}}function checkDataTypes(e,t,i){switch(e.length){case 1:return checkDataType(e[0],t,i,true);default:var n="";var a=toHash(e);if(a.array&&a.object){n=a.null?"(":"(!"+t+" || ";n+="typeof "+t+' !== "object")';delete a.null;delete a.array;delete a.object}if(a.number)delete a.integer;for(var r in a)n+=(n?" && ":"")+checkDataType(r,t,i,true);return n}}var n=toHash(["string","number","integer","boolean","null"]);function coerceToTypes(e,t){if(Array.isArray(t)){var i=[];for(var a=0;a=t)throw new Error("Cannot access property/index "+n+" levels up, current level is "+t);return i[t-n]}if(n>t)throw new Error("Cannot access data "+n+" levels up, current level is "+t);r="data"+(t-n||"");if(!a)return r}var l=r;var c=a.split("/");for(var d=0;d0:e.util.schemaHasRules(w,e.RULES.all)))){m[m.length]=g}}}}else{var m=s}}if(p||m.length){var v=e.errorPath,z=p||m.length>=e.opts.loopRequired,j=e.opts.ownProperties;if(l){n+=" var missing"+a+"; ";if(z){if(!p){n+=" var "+h+" = validate.schema"+o+"; "}var O="i"+a,k="schema"+a+"["+O+"]",C="' + "+k+" + '";if(e.opts._errorDataPathProperty){e.errorPath=e.util.getPathExpr(v,k,e.opts.jsonPointers)}n+=" var "+d+" = true; ";if(p){n+=" if (schema"+a+" === undefined) "+d+" = true; else if (!Array.isArray(schema"+a+")) "+d+" = false; else {"}n+=" for (var "+O+" = 0; "+O+" < "+h+".length; "+O+"++) { "+d+" = "+c+"["+h+"["+O+"]] !== undefined ";if(j){n+=" && Object.prototype.hasOwnProperty.call("+c+", "+h+"["+O+"]) "}n+="; if (!"+d+") break; } ";if(p){n+=" } "}n+=" if (!"+d+") { ";var T=T||[];T.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+"required"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+C+"' } ";if(e.opts.messages!==false){n+=" , message: '";if(e.opts._errorDataPathProperty){n+="is a required property"}else{n+="should have required property \\'"+C+"\\'"}n+="' "}if(e.opts.verbose){n+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}n+=" } "}else{n+=" {} "}var R=n;n=T.pop();if(!e.compositeRule&&l){if(e.async){n+=" throw new ValidationError(["+R+"]); "}else{n+=" validate.errors = ["+R+"]; return false; "}}else{n+=" var err = "+R+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+=" } else { "}else{n+=" if ( ";var E=m;if(E){var A,O=-1,x=E.length-1;while(O{if(r===i){if(n&&t[a]===undefined){throw new z(`expected claim "${a}" in "${i}"`)}else if(t[a]!==undefined){e[a]=t[a]}delete e._claim_names[a]}}}function verifyPresence(e,t,i){if(e[i]===undefined){throw new z({message:`missing required JWT property ${i}`,jwt:t})}}function authorizationParams(e){const t={client_id:this.client_id,scope:"openid",response_type:V.call(this),redirect_uri:P.call(this),...e};Object.entries(t).forEach(([e,i])=>{if(i===null||i===undefined){delete t[e]}else if(e==="claims"&&typeof i==="object"){t[e]=JSON.stringify(i)}else if(e==="resource"&&Array.isArray(i)){t[e]=i}else if(typeof i!=="string"){t[e]=String(i)}});return t}async function claimJWT(e,t){try{const{header:i,payload:n}=d.JWT.decode(t,{complete:true});const{iss:a}=n;if(i.alg==="none"){return n}let r;if(!a||a===this.issuer.issuer){r=await this.issuer.queryKeyStore(i)}else if(A.has(a)){r=await A.get(a).queryKeyStore(i)}else{const e=await this.issuer.constructor.discover(a);r=await e.queryKeyStore(i)}return d.JWT.verify(t,r)}catch(i){if(i instanceof z||i instanceof v||i.name==="AggregateError"){throw i}else{throw new z({printf:["failed to validate the %s JWT (%s: %s)",e,i.name,i.message],jwt:t})}}}function getKeystore(e){const t=d.JWKS.asKeyStore(e);if(t.all().some(e=>e.type!=="private")){throw new TypeError("jwks must only contain private keys")}return t}function checkBasicSupport(e,t,i){try{const t=e.issuer.token_endpoint_auth_methods_supported;if(!t.includes(i.token_endpoint_auth_method)){if(t.includes("client_secret_post")){i.token_endpoint_auth_method="client_secret_post"}}}catch(e){}}function handleCommonMistakes(e,t,i){if(!t.token_endpoint_auth_method){checkBasicSupport(e,t,i)}if(t.redirect_uri){if(t.redirect_uris){throw new TypeError("provide a redirect_uri or redirect_uris, not both")}i.redirect_uris=[t.redirect_uri];delete i.redirect_uri}if(t.response_type){if(t.response_types){throw new TypeError("provide a response_type or response_types, not both")}i.response_types=[t.response_type];delete i.response_type}}function getDefaultsForEndpoint(e,t,i){if(!t[`${e}_endpoint`])return;const n=i.token_endpoint_auth_method;const a=i.token_endpoint_auth_signing_alg;const r=`${e}_endpoint_auth_method`;const s=`${e}_endpoint_auth_signing_alg`;if(i[r]===undefined&&i[s]===undefined){if(n!==undefined){i[r]=n}if(a!==undefined){i[s]=a}}}class BaseClient{}e.exports=((e,t=false)=>(class Client extends BaseClient{constructor(e={},t,i){super();if(typeof e.client_id!=="string"||!e.client_id){throw new TypeError("client_id is required")}const n={...T,...e};handleCommonMistakes(this,e,n);m("token",this.issuer,n);["introspection","revocation"].forEach(e=>{getDefaultsForEndpoint(e,this.issuer,n);m(e,this.issuer,n)});Object.entries(n).forEach(([e,t])=>{x(this).get("metadata").set(e,t);if(!this[e]){Object.defineProperty(this,e,{get(){return x(this).get("metadata").get(e)},enumerable:true})}});if(t!==undefined){const e=getKeystore.call(this,t);x(this).set("keystore",e)}if(i!==undefined){x(this).set("options",i)}this[E]=0}authorizationUrl(e={}){if(!y(e)){throw new TypeError("params must be a plain object")}b(this.issuer,"authorization_endpoint");const t=l.parse(this.issuer.authorization_endpoint,true);t.search=null;t.query={...t.query,...authorizationParams.call(this,e)};return l.format(t)}authorizationPost(e={}){if(!y(e)){throw new TypeError("params must be a plain object")}const t=authorizationParams.call(this,e);const i=Object.keys(t).map(e=>``).join("\n");return`\n\n Requesting Authorization\n\n\n
\n ${i}\n
\n\n`}endSessionUrl(e={}){b(this.issuer,"end_session_endpoint");const{0:t,length:i}=this.post_logout_redirect_uris||[];const{post_logout_redirect_uri:n=(i===1?t:undefined)}=e;let a=e.id_token_hint;if(a instanceof w){if(!a.id_token){throw new TypeError("id_token not present in TokenSet")}a=a.id_token}const r=l.parse(this.issuer.end_session_endpoint,true);r.search=null;r.query={...e,...r.query,...{post_logout_redirect_uri:n,id_token_hint:a}};Object.entries(r.query).forEach(([e,t])=>{if(t===null||t===undefined){delete r.query[e]}});return l.format(r)}callbackParams(e){const t=e instanceof r.IncomingMessage||e&&e.method&&e.url;const i=typeof e==="string";if(!i&&!t){throw new TypeError("#callbackParams only accepts string urls, http.IncomingMessage or a lookalike")}if(t){switch(e.method){case"GET":return pickCb(l.parse(e.url,true).query);case"POST":if(e.body===undefined){throw new TypeError("incoming message body missing, include a body parser prior to this method call")}switch(typeof e.body){case"object":case"string":if(Buffer.isBuffer(e.body)){return pickCb(u.parse(e.body.toString("utf-8")))}if(typeof e.body==="string"){return pickCb(u.parse(e.body))}return pickCb(e.body);default:throw new TypeError("invalid IncomingMessage body object")}default:throw new TypeError("invalid IncomingMessage method")}}else{return pickCb(l.parse(e,true).query)}}async callback(e,t,i={},{exchangeBody:n,clientAssertionPayload:a}={}){let r=pickCb(t);if(i.jarm&&!("response"in t)){throw new z({message:"expected a JARM response",checks:i,params:r})}else if("response"in t){const e=await this.decryptJARM(r.response);r=await this.validateJARM(e)}if(this.default_max_age&&!i.max_age){i.max_age=this.default_max_age}if(r.state&&!i.state){throw new TypeError("checks.state argument is missing")}if(!r.state&&i.state){throw new z({message:"state missing from the response",checks:i,params:r})}if(i.state!==r.state){throw new z({printf:["state mismatch, expected %s, got: %s",i.state,r.state],checks:i,params:r})}if(r.error){throw new v(r)}const s={code:["code"],id_token:["id_token"],token:["access_token","token_type"]};if(i.response_type){for(const e of i.response_type.split(" ")){if(e==="none"){if(r.code||r.id_token||r.access_token){throw new z({message:'unexpected params encountered for "none" response',checks:i,params:r})}}else{for(const t of s[e]){if(!r[t]){throw new z({message:`${t} missing from response`,checks:i,params:r})}}}}}if(r.id_token){const e=new w(r);await this.decryptIdToken(e);await this.validateIdToken(e,i.nonce,"authorization",i.max_age,i.state);if(!r.code){return e}}if(r.code){const t=await this.grant({...n,grant_type:"authorization_code",code:r.code,redirect_uri:e,code_verifier:i.code_verifier},{clientAssertionPayload:a});await this.decryptIdToken(t);await this.validateIdToken(t,i.nonce,"token",i.max_age);if(r.session_state){t.session_state=r.session_state}return t}return new w(r)}async oauthCallback(e,t,i={},{exchangeBody:n,clientAssertionPayload:a}={}){let r=pickCb(t);if(i.jarm&&!("response"in t)){throw new z({message:"expected a JARM response",checks:i,params:r})}else if("response"in t){const e=await this.decryptJARM(r.response);r=await this.validateJARM(e)}if(r.state&&!i.state){throw new TypeError("checks.state argument is missing")}if(!r.state&&i.state){throw new z({message:"state missing from the response",checks:i,params:r})}if(i.state!==r.state){throw new z({printf:["state mismatch, expected %s, got: %s",i.state,r.state],checks:i,params:r})}if(r.error){throw new v(r)}const s={code:["code"],token:["access_token","token_type"]};if(i.response_type){for(const e of i.response_type.split(" ")){if(e==="none"){if(r.code||r.id_token||r.access_token){throw new z({message:'unexpected params encountered for "none" response',checks:i,params:r})}}if(s[e]){for(const t of s[e]){if(!r[t]){throw new z({message:`${t} missing from response`,checks:i,params:r})}}}}}if(r.code){return this.grant({...n,grant_type:"authorization_code",code:r.code,redirect_uri:e,code_verifier:i.code_verifier},{clientAssertionPayload:a})}return new w(r)}async decryptIdToken(e){if(!this.id_token_encrypted_response_alg){return e}let t=e;if(t instanceof w){if(!t.id_token){throw new TypeError("id_token not present in TokenSet")}t=t.id_token}const i=this.id_token_encrypted_response_alg;const n=this.id_token_encrypted_response_enc;const a=await this.decryptJWE(t,i,n);if(e instanceof w){e.id_token=a;return e}return a}async validateJWTUserinfo(e){const t=this.userinfo_signed_response_alg;return this.validateJWT(e,t,[])}async decryptJARM(e){if(!this.authorization_encrypted_response_alg){return e}const t=this.authorization_encrypted_response_alg;const i=this.authorization_encrypted_response_enc;return this.decryptJWE(e,t,i)}async validateJARM(e){const t=this.authorization_signed_response_alg;const{payload:i}=await this.validateJWT(e,t,["iss","exp","aud"]);return pickCb(i)}async decryptJWTUserinfo(e){if(!this.userinfo_encrypted_response_alg){return e}const t=this.userinfo_encrypted_response_alg;const i=this.userinfo_encrypted_response_enc;return this.decryptJWE(e,t,i)}async decryptJWE(e,t,i="A128CBC-HS256"){const n=JSON.parse(p.decode(e.split(".")[0]));if(n.alg!==t){throw new z({printf:["unexpected JWE alg received, expected %s, got: %s",t,n.alg],jwt:e})}if(n.enc!==i){throw new z({printf:["unexpected JWE enc received, expected %s, got: %s",i,n.enc],jwt:e})}let a;if(t.match(/^(?:RSA|ECDH)/)){a=x(this).get("keystore")}else{a=await this.joseSecret(t==="dir"?i:t)}const r=d.JWE.decrypt(e,a);return r.toString("utf8")}async validateIdToken(e,t,i,n,a){let r=e;const s=this.id_token_signed_response_alg;const o=r instanceof w;if(o){if(!r.id_token){throw new TypeError("id_token not present in TokenSet")}r=r.id_token}r=String(r);const u=j();const{protected:l,payload:c,key:d}=await this.validateJWT(r,s);if(n||n!==null&&this.require_auth_time){if(!c.auth_time){throw new z({message:"missing required JWT property auth_time",jwt:r})}if(typeof c.auth_time!=="number"){throw new z({message:"JWT auth_time claim must be a JSON numeric value",jwt:r})}}if(n&&c.auth_time+nr+this[E]){throw new z({printf:["JWT not active yet, now %i, nbf %i",r+this[E],u.nbf],now:r,tolerance:this[E],nbf:u.nbf,jwt:e})}}if(u.exp!==undefined){if(typeof u.exp!=="number"){throw new z({message:"JWT exp claim must be a JSON numeric value",jwt:e})}if(r-this[E]>=u.exp){throw new z({printf:["JWT expired, now %i, exp %i",r-this[E],u.exp],now:r,tolerance:this[E],exp:u.exp,jwt:e})}}if(u.aud!==undefined){if(Array.isArray(u.aud)){if(u.aud.length>1&&!u.azp){throw new z({message:"missing required JWT property azp",jwt:e})}if(!u.aud.includes(this.client_id)){throw new z({printf:["aud is missing the client_id, expected %s to be included in %j",this.client_id,u.aud],jwt:e})}}else if(u.aud!==this.client_id){throw new z({printf:["aud mismatch, expected %s, got: %s",this.client_id,u.aud],jwt:e})}}if(u.azp!==undefined){let{additionalAuthorizedParties:t}=x(this).get("options")||{};if(typeof t==="string"){t=[this.client_id,t]}else if(Array.isArray(t)){t=[this.client_id,...t]}else{t=[this.client_id]}if(!t.includes(u.azp)){throw new z({printf:["azp mismatch, got: %s",u.azp],jwt:e})}}let l;if(a){try{o(y(u.sub_jwk));l=d.JWK.asKey(u.sub_jwk);o.equal(l.type,"public")}catch(t){throw new z({message:"failed to use sub_jwk claim as an asymmetric JSON Web Key",jwt:e})}if(l.thumbprint!==u.sub){throw new z({message:"failed to match the subject with sub_jwk",jwt:e})}}else if(s.alg.startsWith("HS")){l=await this.joseSecret()}else if(s.alg!=="none"){l=await this.issuer.queryKeyStore(s)}if(!l&&s.alg==="none"){return{protected:s,payload:u}}try{return d.JWS.verify(e,l,{complete:true})}catch(t){throw new z({message:"failed to validate JWT signature",jwt:e})}}async refresh(e,{exchangeBody:t,clientAssertionPayload:i}={}){let n=e;if(n instanceof w){if(!n.refresh_token){throw new TypeError("refresh_token not present in TokenSet")}n=n.refresh_token}const a=await this.grant({...t,grant_type:"refresh_token",refresh_token:String(n)},{clientAssertionPayload:i});if(a.id_token){await this.decryptIdToken(a);await this.validateIdToken(a,null,"token",null);if(e instanceof w&&e.id_token){const t=e.claims().sub;const i=a.claims().sub;if(i!==t){throw new z({printf:["sub mismatch, expected %s, got: %s",t,i],jwt:a.id_token})}}}return a}async requestResource(e,t,{method:i,headers:n,body:a,tokenType:r=(t instanceof w?t.token_type:"Bearer")}={}){if(t instanceof w){if(!t.access_token){throw new TypeError("access_token not present in TokenSet")}t=t.access_token}const s={headers:{Authorization:authorizationHeaderValue(t,r),...n},body:a};const o=!!this.tls_client_certificate_bound_access_tokens;return k.call(this,{...s,encoding:null,method:i,url:e},{mTLS:o})}async userinfo(e,{verb:t="GET",via:i="header",tokenType:n,params:a}={}){b(this.issuer,"userinfo_endpoint");const r={tokenType:n,method:String(t).toUpperCase()};if(r.method!=="GET"&&r.method!=="POST"){throw new TypeError("#userinfo() verb can only be POST or a GET")}if(i==="query"&&r.method!=="GET"){throw new TypeError("userinfo endpoints will only parse query strings for GET requests")}else if(i==="body"&&r.method!=="POST"){throw new TypeError("can only send body on POST")}const s=!!(this.userinfo_signed_response_alg||this.userinfo_encrypted_response_alg);if(s){r.headers={Accept:"application/jwt"}}else{r.headers={Accept:"application/json"}}const u=!!this.tls_client_certificate_bound_access_tokens;let d;if(u&&this.issuer.mtls_endpoint_aliases){d=this.issuer.mtls_endpoint_aliases.userinfo_endpoint}d=new l.URL(d||this.issuer.userinfo_endpoint);if(i==="query"){r.headers.Authorization=undefined;d.searchParams.append("access_token",e instanceof w?e.access_token:e)}else if(i==="body"){r.headers.Authorization=undefined;r.headers["Content-Type"]="application/x-www-form-urlencoded";r.body=new l.URLSearchParams;r.body.append("access_token",e instanceof w?e.access_token:e)}if(a){if(r.method==="GET"){Object.entries(a).forEach(([e,t])=>{d.searchParams.append(e,t)})}else if(r.body){Object.entries(a).forEach(([e,t])=>{r.body.append(e,t)})}else{r.body=new l.URLSearchParams;r.headers["Content-Type"]="application/x-www-form-urlencoded";Object.entries(a).forEach(([e,t])=>{r.body.append(e,t)})}}if(r.body){r.body=r.body.toString()}const p=await this.requestResource(d,e,r);let f=S(p,{bearer:true});if(s){if(!R.test(p.headers["content-type"])){throw new z({message:"expected application/jwt response from the userinfo_endpoint",response:p})}const e=p.body.toString();const t=await this.decryptJWTUserinfo(e);if(!this.userinfo_signed_response_alg){try{f=JSON.parse(t);o(y(f))}catch(e){throw new z({message:"failed to parse userinfo JWE payload as JSON",jwt:t})}}else{({payload:f}=await this.validateJWTUserinfo(t))}}else{try{f=JSON.parse(p.body)}catch(e){const t=new c(e,p.statusCode,p.request.gotOptions,p.body);Object.defineProperty(t,"response",{value:p});throw t}}if(e instanceof w&&e.id_token){const t=e.claims().sub;if(f.sub!==t){throw new z({printf:["userinfo sub mismatch, expected %s, got: %s",t,f.sub],body:f,jwt:e.id_token})}}return f}async derivedKey(e){const t=`${e}_key`;if(x(this).has(t)){return x(this).get(t)}const i=e<=256?"sha256":e<=384?"sha384":e<=512?"sha512":false;if(!i){throw new Error("unsupported symmetric encryption key derivation")}const n=s.createHash(i).update(this.client_secret).digest().slice(0,e/8);const a=d.JWK.asKey({k:p.encode(n),kty:"oct"});x(this).set(t,a);return a}async joseSecret(e){if(!this.client_secret){throw new TypeError("client_secret is required")}if(/^A(\d{3})(?:GCM)?KW$/.test(e)){return this.derivedKey(parseInt(RegExp.$1,10))}if(/^A(\d{3})(?:GCM|CBC-HS(\d{3}))$/.test(e)){return this.derivedKey(parseInt(RegExp.$2||RegExp.$1,10))}if(x(this).has("jose_secret")){return x(this).get("jose_secret")}const t=d.JWK.asKey({k:p.encode(this.client_secret),kty:"oct"});x(this).set("jose_secret",t);return t}async grant(e,{clientAssertionPayload:t}={}){b(this.issuer,"token_endpoint");const i=await N.call(this,"token",{form:true,body:e,json:true},{clientAssertionPayload:t});const n=S(i);return new w(n)}async deviceAuthorization(e={},{exchangeBody:t,clientAssertionPayload:i}={}){b(this.issuer,"device_authorization_endpoint");b(this.issuer,"token_endpoint");const n=authorizationParams.call(this,{client_id:this.client_id,redirect_uri:null,response_type:null,...e});const a=await N.call(this,"device_authorization",{form:true,body:n,json:true},{clientAssertionPayload:i,endpointAuthMethod:"token"});const r=S(a);return new D({client:this,exchangeBody:t,clientAssertionPayload:i,response:r,maxAge:e.max_age})}async revoke(e,t,{revokeBody:i,clientAssertionPayload:n}={}){b(this.issuer,"revocation_endpoint");if(t!==undefined&&typeof t!=="string"){throw new TypeError("hint must be a string")}const a={...i,token:e};if(t){a.token_type_hint=t}const r=await N.call(this,"revocation",{body:a,form:true},{clientAssertionPayload:n});S(r,{body:false})}async introspect(e,t,{introspectBody:i,clientAssertionPayload:n}={}){b(this.issuer,"introspection_endpoint");if(t!==undefined&&typeof t!=="string"){throw new TypeError("hint must be a string")}const a={...i,token:e};if(t){a.token_type_hint=t}const r=await N.call(this,"introspection",{body:a,form:true,json:true},{clientAssertionPayload:n});const s=S(r);return s}async fetchDistributedClaims(e,t={}){if(!y(e)){throw new TypeError("claims argument must be a plain object")}if(!y(e._claim_sources)){return e}if(!y(e._claim_names)){return e}const i=Object.entries(e._claim_sources).filter(([,e])=>e&&e.endpoint);await Promise.all(i.map(async([i,n])=>{try{const a={headers:{Accept:"application/jwt",Authorization:authorizationHeaderValue(n.access_token||t[i])}};const r=await k.call(this,{...a,method:"GET",url:n.endpoint});const s=S(r,{bearer:true});const o=await claimJWT.call(this,"distributed",s);delete e._claim_sources[i];Object.entries(e._claim_names).forEach(assignClaim(e,o,i,false))}catch(e){e.src=i;throw e}}));cleanUpClaims(e);return e}async unpackAggregatedClaims(e){if(!y(e)){throw new TypeError("claims argument must be a plain object")}if(!y(e._claim_sources)){return e}if(!y(e._claim_names)){return e}const t=Object.entries(e._claim_sources).filter(([,e])=>e&&e.JWT);await Promise.all(t.map(async([t,i])=>{try{const n=await claimJWT.call(this,"aggregated",i.JWT);delete e._claim_sources[t];Object.entries(e._claim_names).forEach(assignClaim(e,n,t))}catch(e){e.src=t;throw e}}));cleanUpClaims(e);return e}static async register(e,t={}){const{initialAccessToken:i,jwks:n,...a}=t;b(this.issuer,"registration_endpoint");if(n!==undefined&&!(e.jwks||e.jwks_uri)){const t=getKeystore.call(this,n);e.jwks=t.toJWKS(false)}const r=await k.call(this,{headers:i?{Authorization:authorizationHeaderValue(i)}:undefined,json:true,body:e,url:this.issuer.registration_endpoint,method:"POST"});const s=S(r,{statusCode:201,bearer:true});return new this(s,n,a)}get metadata(){const e={};x(this).get("metadata").forEach((t,i)=>{e[i]=t});return e}static async fromUri(e,t,i,n){const a=await k.call(this,{method:"GET",url:e,json:true,headers:{Authorization:authorizationHeaderValue(t)}});const r=S(a,{bearer:true});return new this(r,i,n)}async requestObject(e={},{sign:t=this.request_object_signing_alg||"none",encrypt:{alg:i=this.request_object_encryption_alg,enc:n=this.request_object_encryption_enc||"A128CBC-HS256"}={}}={}){if(!y(e)){throw new TypeError("requestObject must be a plain object")}let a;let r;const s={alg:t,typ:"JWT"};const o=JSON.stringify(h({},e,{iss:this.client_id,aud:this.issuer.issuer,client_id:this.client_id,jti:O(),iat:j(),exp:j()+300}));if(t==="none"){a=[p.encode(JSON.stringify(s)),p.encode(o),""].join(".")}else{const e=t.startsWith("HS");if(e){r=await this.joseSecret()}else{const e=x(this).get("keystore");if(!e){throw new TypeError(`no keystore present for client, cannot sign using alg ${t}`)}r=e.get({alg:t,use:"sig"});if(!r){throw new TypeError(`no key to sign with found for alg ${t}`)}}a=d.JWS.sign(o,r,{...s,kid:e?undefined:r.kid})}if(!i){return a}const u={alg:i,enc:n,cty:"JWT"};if(u.alg.match(/^(RSA|ECDH)/)){[r]=await this.issuer.queryKeyStore({alg:u.alg,enc:u.enc,use:"enc"},{allowMulti:true})}else{r=await this.joseSecret(u.alg==="dir"?u.enc:u.alg)}return d.JWE.encrypt(a,r,{...u,kid:r.kty==="oct"?undefined:r.kid})}static get issuer(){return e}get issuer(){return e}[n.custom](){return`${this.constructor.name} ${n(this.metadata,{depth:Infinity,colors:process.stdout.isTTY,compact:false,sorted:true})}`}}));BaseClient.prototype.resource=a(async function resource(e,t,i){let n=t;const a={verb:"GET",via:"header",...i};if(n instanceof w){if(!n.access_token){throw new TypeError("access_token not present in TokenSet")}a.tokenType=a.tokenType||n.token_type;n=n.access_token}const r=String(a.verb).toUpperCase();let s;switch(a.via){case"query":if(r!=="GET"){throw new TypeError("resource servers should only parse query strings for GET requests")}s={query:{access_token:n}};break;case"body":if(r!=="POST"){throw new TypeError("can only send body on POST")}s={form:true,body:{access_token:n}};break;default:s={headers:{Authorization:authorizationHeaderValue(n,a.tokenType)}}}if(a.params){if(r==="POST"){I(s,{body:a.params})}else{I(s,{query:a.params})}}if(a.headers){I(s,{headers:a.headers})}const o=!!this.tls_client_certificate_bound_access_tokens;return k.call(this,{...s,encoding:null,method:r,url:e},{mTLS:o})},"client.resource() is deprecated, use client.requestResource() instead, see docs for API details");e.exports.BaseClient=BaseClient},function(e,t,i){"use strict";const n=i(413).PassThrough;const a=i(903);const r=i(89);e.exports=(e=>{if(["gzip","deflate"].indexOf(e.headers["content-encoding"])===-1){return e}const t=a.createUnzip();const i=new n;r(e,i);t.on("error",e=>{if(e.code==="Z_BUF_ERROR"){i.end();return}i.emit("error",e)});e.pipe(t).pipe(i);return i})},function(e,t,i){"use strict";var n=i(853),a=i(832),r=i(855),s=i(955),o=i(763);e.exports=resolve;resolve.normalizeId=normalizeId;resolve.fullPath=getFullPath;resolve.url=resolveUrl;resolve.ids=resolveIds;resolve.inlineRef=inlineRef;resolve.schema=resolveSchema;function resolve(e,t,i){var n=this._refs[i];if(typeof n=="string"){if(this._refs[n])n=this._refs[n];else return resolve.call(this,e,t,n)}n=n||this._schemas[i];if(n instanceof s){return inlineRef(n.schema,this._opts.inlineRefs)?n.schema:n.validate||this._compile(n)}var a=resolveSchema.call(this,t,i);var r,o,u;if(a){r=a.schema;t=a.root;u=a.baseId}if(r instanceof s){o=r.validate||e.call(this,r.schema,t,undefined,u)}else if(r!==undefined){o=inlineRef(r,this._opts.inlineRefs)?r:e.call(this,r,t,undefined,u)}return o}function resolveSchema(e,t){var i=n.parse(t),a=_getFullPath(i),r=getFullPath(this._getId(e.schema));if(Object.keys(e.schema).length===0||a!==r){var o=normalizeId(a);var u=this._refs[o];if(typeof u=="string"){return resolveRecursive.call(this,e,u,i)}else if(u instanceof s){if(!u.validate)this._compile(u);e=u}else{u=this._schemas[o];if(u instanceof s){if(!u.validate)this._compile(u);if(o==normalizeId(t))return{schema:u,root:e,baseId:r};e=u}else{return}}if(!e.schema)return;r=getFullPath(this._getId(e.schema))}return getJsonPointer.call(this,i,r,e.schema,e)}function resolveRecursive(e,t,i){var n=resolveSchema.call(this,e,t);if(n){var a=n.schema;var r=n.baseId;e=n.root;var s=this._getId(a);if(s)r=resolveUrl(r,s);return getJsonPointer.call(this,i,r,a,e)}}var u=r.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function getJsonPointer(e,t,i,n){e.fragment=e.fragment||"";if(e.fragment.slice(0,1)!="/")return;var a=e.fragment.split("/");for(var s=1;s1){throw new Error("DER sequence does not contain whole byte "+"stream")}var s=i.offset;i.readSequence();var o=i.offset+i.length;var u=o;if(i.peek()===Local(0)){i.readSequence(Local(0));var l=i.readInt();n.ok(l<=3,"only x.509 versions up to v3 supported")}var c={};c.signatures={};var b=c.signatures.x509={};b.extras={};c.serial=readMPInt(i,"serial");i.readSequence();var g=i.offset+i.length;var y=i.readOID();var S=m[y];if(S===undefined)throw new Error("unknown signature algorithm "+y);i._offset=g;c.issuer=d.parseAsn1(i);i.readSequence();c.validFrom=readDate(i);c.validUntil=readDate(i);c.subjects=[d.parseAsn1(i)];i.readSequence();g=i.offset+i.length;c.subjectKey=h.readPkcs8(undefined,"public",i);i._offset=g;if(i.peek()===Local(1)){i.readSequence(Local(1));b.extras.issuerUniqueID=e.slice(i.offset,i.offset+i.length);i._offset+=i.length}if(i.peek()===Local(2)){i.readSequence(Local(2));b.extras.subjectUniqueID=e.slice(i.offset,i.offset+i.length);i._offset+=i.length}if(i.peek()===Local(3)){i.readSequence(Local(3));var w=i.offset+i.length;i.readSequence();while(i.offset=2050||t.getUTCFullYear()<1950){e.writeString(dateToGTime(t),a.Ber.GeneralizedTime)}else{e.writeString(dateToUTCTime(t),a.Ber.UTCTime)}}var g={OtherName:Local(0),RFC822Name:Context(1),DNSName:Context(2),X400Address:Local(3),DirectoryName:Local(4),EDIPartyName:Local(5),URI:Context(6),IPAddress:Context(7),OID:Context(8)};var y={serverAuth:"1.3.6.1.5.5.7.3.1",clientAuth:"1.3.6.1.5.5.7.3.2",codeSigning:"1.3.6.1.5.5.7.3.3",joyentDocker:"1.3.6.1.4.1.38678.1.4.1",joyentCmon:"1.3.6.1.4.1.38678.1.4.2"};var S={};Object.keys(y).forEach(function(e){S[y[e]]=e});var w=["signature","identity","keyEncryption","encryption","keyAgreement","ca","crl"];function readExtension(e,t,i){i.readSequence();var n=i.offset+i.length;var r=i.readOID();var s;var o=e.signatures.x509;if(!o.extras.exts)o.extras.exts=[];var u;if(i.peek()===a.Ber.Boolean)u=i.readBoolean();switch(r){case b.basicConstraints:i.readSequence(a.Ber.OctetString);i.readSequence();var l=i.offset+i.length;var c=false;if(i.peek()===a.Ber.Boolean)c=i.readBoolean();if(e.purposes===undefined)e.purposes=[];if(c===true)e.purposes.push("ca");var p={oid:r,critical:u};if(i.offset=60)s+=r-1;else s+=r;i.setUTCFullYear(s,parseInt(t[2],10)-1,parseInt(t[3],10));i.setUTCHours(parseInt(t[4],10),parseInt(t[5],10));if(t[6]&&t[6].length>0)i.setUTCSeconds(parseInt(t[6],10));return i}var z=/^([0-9]{4})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})?Z$/;function gTimeToDate(e){var t=e.match(z);n.ok(t);var i=new Date;i.setUTCFullYear(parseInt(t[1],10),parseInt(t[2],10)-1,parseInt(t[3],10));i.setUTCHours(parseInt(t[4],10),parseInt(t[5],10));if(t[6]&&t[6].length>0)i.setUTCSeconds(parseInt(t[6],10));return i}function zeroPad(e,t){if(t===undefined)t=2;var i=""+e;while(i.length0||r.type==="host"||e.purposes!==undefined&&e.purposes.length>0||i.extras&&i.extras.exts){t.startSequence(Local(3));t.startSequence();var u=[];if(e.purposes!==undefined&&e.purposes.length>0){u.push({oid:b.basicConstraints,critical:true});u.push({oid:b.keyUsage,critical:true});u.push({oid:b.extKeyUsage,critical:true})}u.push({oid:b.altName});if(i.extras&&i.extras.exts)u=i.extras.exts;for(var l=0;l>(-2*i&6))}}return r};var d=function(e){e=String(e);if(/[^\0-\xFF]/.test(e)){o("The string to be encoded contains characters outside of the "+"Latin1 range.")}var t=e.length%3;var i="";var n=-1;var a;var r;var s;var l;var c;var d=e.length-t;while(++n>18&63)+u.charAt(c>>12&63)+u.charAt(c>>6&63)+u.charAt(c&63)}if(t==2){a=e.charCodeAt(n)<<8;r=e.charCodeAt(++n);c=a+r;i+=u.charAt(c>>10)+u.charAt(c>>4&63)+u.charAt(c<<2&63)+"="}else if(t==1){c=e.charCodeAt(n);i+=u.charAt(c>>2)+u.charAt(c<<4&63)+"=="}return i};var p={encode:d,decode:c,version:"0.1.0"};if(typeof define=="function"&&typeof define.amd=="object"&&define.amd){define(function(){return p})}else if(n&&!n.nodeType){if(a){a.exports=p}else{for(var f in p){p.hasOwnProperty(f)&&(n[f]=p[f])}}}else{i.base64=p}})(this)},,function(e,t,i){var n=i(357);var a=i(413).Stream;var r=i(669);var s=/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;function _capitalize(e){return e.charAt(0).toUpperCase()+e.slice(1)}function _toss(e,t,i,a,s){throw new n.AssertionError({message:r.format("%s (%s) is required",e,t),actual:s===undefined?typeof a:s(a),expected:t,operator:i||"===",stackStartFunction:_toss.caller})}function _getClass(e){return Object.prototype.toString.call(e).slice(8,-1)}function noop(){}var o={bool:{check:function(e){return typeof e==="boolean"}},func:{check:function(e){return typeof e==="function"}},string:{check:function(e){return typeof e==="string"}},object:{check:function(e){return typeof e==="object"&&e!==null}},number:{check:function(e){return typeof e==="number"&&!isNaN(e)}},finite:{check:function(e){return typeof e==="number"&&!isNaN(e)&&isFinite(e)}},buffer:{check:function(e){return Buffer.isBuffer(e)},operator:"Buffer.isBuffer"},array:{check:function(e){return Array.isArray(e)},operator:"Array.isArray"},stream:{check:function(e){return e instanceof a},operator:"instanceof",actual:_getClass},date:{check:function(e){return e instanceof Date},operator:"instanceof",actual:_getClass},regexp:{check:function(e){return e instanceof RegExp},operator:"instanceof",actual:_getClass},uuid:{check:function(e){return typeof e==="string"&&s.test(e)},operator:"isUUID"}};function _setExports(e){var t=Object.keys(o);var i;if(process.env.NODE_NDEBUG){i=noop}else{i=function(e,t){if(!e){_toss(t,"true",e)}}}t.forEach(function(t){if(e){i[t]=noop;return}var n=o[t];i[t]=function(e,i){if(!n.check(e)){_toss(i,t,n.operator,e,n.actual)}}});t.forEach(function(t){var n="optional"+_capitalize(t);if(e){i[n]=noop;return}var a=o[t];i[n]=function(e,i){if(e===undefined||e===null){return}if(!a.check(e)){_toss(i,t,a.operator,e,a.actual)}}});t.forEach(function(t){var n="arrayOf"+_capitalize(t);if(e){i[n]=noop;return}var a=o[t];var r="["+t+"]";i[n]=function(e,t){if(!Array.isArray(e)){_toss(t,r,a.operator,e,a.actual)}var i;for(i=0;in(e,t,i)!==0;e.exports=a},function(e,t,i){const n=i(65);const a=(e,t,i)=>new n(e,i).compare(new n(t,i));e.exports=a},,function(e,t,i){const n=i(976);e.exports={re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:i(181).SEMVER_SPEC_VERSION,SemVer:i(65),compareIdentifiers:i(760).compareIdentifiers,rcompareIdentifiers:i(760).rcompareIdentifiers,parse:i(830),valid:i(714),clean:i(503),inc:i(928),diff:i(822),major:i(744),minor:i(803),patch:i(489),prerelease:i(968),compare:i(874),rcompare:i(630),compareLoose:i(283),compareBuild:i(16),sort:i(120),rsort:i(593),gt:i(486),lt:i(586),eq:i(298),neq:i(873),gte:i(167),lte:i(898),cmp:i(752),coerce:i(499),Comparator:i(174),Range:i(124),satisfies:i(310),toComparators:i(219),maxSatisfying:i(811),minSatisfying:i(740),minVersion:i(164),validRange:i(480),outside:i(462),gtr:i(531),ltr:i(323),intersects:i(259),simplifyRange:i(877),subset:i(999)}},function(e,t,i){const n=i(310);const a=i(874);e.exports=((e,t,i)=>{const r=[];let s=null;let o=null;const u=e.sort((e,t)=>a(e,t,i));for(const e of u){const a=n(e,t,i);if(a){o=e;if(!s)s=e}else{if(o){r.push([s,o])}o=null;s=null}}if(s)r.push([s,null]);const l=[];for(const[e,t]of r){if(e===t)l.push(e);else if(!t&&e===u[0])l.push("*");else if(!t)l.push(`>=${e}`);else if(e===u[0])l.push(`<=${t}`);else l.push(`${e} - ${t}`)}const c=l.join(" || ");const d=typeof t.raw==="string"?t.raw:String(t);return c.length{if(!t.has(e)){t.set(e,new Map([["metadata",new Map]]))}return t.get(e)})},function(e,t,i){"use strict";var n=i(855);var a=/^(\d\d\d\d)-(\d\d)-(\d\d)$/;var r=[0,31,28,31,30,31,30,31,31,30,31,30,31];var s=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;var o=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i;var u=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@\/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@\/?]|%[0-9a-f]{2})*)?$/i;var l=/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@\/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@\/?]|%[0-9a-f]{2})*)?$/i;var c=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#.\/;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i;var d=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-?)*(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-?)*(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i;var p=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;var f=/^(?:\/(?:[^~\/]|~0|~1)*)*$/;var h=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i;var m=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~\/]|~0|~1)*)*)$/;e.exports=formats;function formats(e){e=e=="full"?"full":"fast";return n.copy(formats[e])}formats.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":c,url:d,email:/^[a-z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:o,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:regex,uuid:p,"json-pointer":f,"json-pointer-uri-fragment":h,"relative-json-pointer":m};formats.full={date:date,time:time,"date-time":date_time,uri:uri,"uri-reference":l,"uri-template":c,url:d,email:/^[a-z0-9!#$%&'*+\/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+\/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:o,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:regex,uuid:p,"json-pointer":f,"json-pointer-uri-fragment":h,"relative-json-pointer":m};function isLeapYear(e){return e%4===0&&(e%100!==0||e%400===0)}function date(e){var t=e.match(a);if(!t)return false;var i=+t[1];var n=+t[2];var s=+t[3];return n>=1&&n<=12&&s>=1&&s<=(n==2&&isLeapYear(i)?29:r[n])}function time(e,t){var i=e.match(s);if(!i)return false;var n=i[1];var a=i[2];var r=i[3];var o=i[5];return(n<=23&&a<=59&&r<=59||n==23&&a==59&&r==60)&&(!t||o)}var b=/t|\s/i;function date_time(e){var t=e.split(b);return t.length==2&&date(t[0])&&time(t[1],true)}var g=/\/|:/;function uri(e){return g.test(e)&&u.test(e)}var y=/[^\\]\\Z/;function regex(e){if(y.test(e))return false;try{new RegExp(e);return true}catch(e){return false}}},,function(e){e.exports={$id:"header.json#",$schema:"http://json-schema.org/draft-06/schema#",type:"object",required:["name","value"],properties:{name:{type:"string"},value:{type:"string"},comment:{type:"string"}}}},function(e,t,i){const n=i(663);const a=new Map;const r=n.define("AlgorithmIdentifier",i(996));a.set("AlgorithmIdentifier",r);const s=n.define("ECPrivateKey",i(401));a.set("ECPrivateKey",s);const o=n.define("PrivateKeyInfo",i(83)(r));a.set("PrivateKeyInfo",o);const u=n.define("PublicKeyInfo",i(69)(r));a.set("PublicKeyInfo",u);const l=n.define("PrivateKey",i(816));a.set("PrivateKey",l);const c=n.define("OneAsymmetricKey",i(481)(r,l));a.set("OneAsymmetricKey",c);const d=n.define("RSAPrivateKey",i(807));a.set("RSAPrivateKey",d);const p=n.define("RSAPublicKey",i(252));a.set("RSAPublicKey",p);e.exports=a},function(e){"use strict";const t=Symbol("kDone");const i=Symbol("kRun");class Limiter{constructor(e){this[t]=(()=>{this.pending--;this[i]()});this.concurrency=e||Infinity;this.jobs=[];this.pending=0}add(e){this.jobs.push(e);this[i]()}[i](){if(this.pending===this.concurrency)return;if(this.jobs.length){const e=this.jobs.shift();this.pending++;e(this[t])}}}e.exports=Limiter},function(e,t,i){var n=i(373);var a=i(242).BigInteger;var r=i(729).ECPointFp;var s=i(215).Buffer;t.ECCurves=i(959);function unstupid(e,t){return e.length>=t?e:unstupid("0"+e,t)}t.ECKey=function(e,t,i){var r;var o=e();var u=o.getN();var l=Math.floor(u.bitLength()/8);if(t){if(i){var e=o.getCurve();this.P=e.decodePointHex(t.toString("hex"))}else{if(t.length!=l)return false;r=new a(t.toString("hex"),16)}}else{var c=u.subtract(a.ONE);var d=new a(n.randomBytes(u.bitLength()));r=d.mod(c).add(a.ONE);this.P=o.getG().multiply(r)}if(this.P){this.PublicKey=s.from(o.getCurve().encodeCompressedPointHex(this.P),"hex")}if(r){this.PrivateKey=s.from(unstupid(r.toString(16),l*2),"hex");this.deriveSharedSecret=function(e){if(!e||!e.P)return false;var t=e.P.multiply(r);return s.from(unstupid(t.getX().toBigInteger().toString(16),l*2),"hex")}}}},function(e,t,i){var n=i(357);var a=i(669);t.sprintf=jsSprintf;t.printf=jsPrintf;t.fprintf=jsFprintf;function jsSprintf(e){var t=["([^%]*)","%","(['\\-+ #0]*?)","([1-9]\\d*)?","(\\.([1-9]\\d*))?","[lhjztL]*?","([diouxXfFeEgGaAcCsSp%jr])"].join("");var i=new RegExp(t);var r=Array.prototype.slice.call(arguments,1);var s=e;var o,u,l,c;var d,p,f,h,m;var b="";var g=1;var y=0;var S;var w;n.equal("string",typeof s,"first argument must be a format string");while((m=i.exec(s))!==null){b+=m[1];s=s.substring(m[0].length);w=m[0].substring(m[1].length);S=y+m[1].length+1;y+=m[0].length;o=m[2]||"";u=m[3]||0;l=m[4]||"";c=m[6];d=false;f=false;p=" ";if(c=="%"){b+="%";continue}if(r.length===0){throw jsError(e,S,w,"has no matching argument "+"(too few arguments passed)")}h=r.shift();g++;if(o.match(/[\' #]/)){throw jsError(e,S,w,"uses unsupported flags")}if(l.length>0){throw jsError(e,S,w,"uses non-zero precision (not supported)")}if(o.match(/-/))d=true;if(o.match(/0/))p="0";if(o.match(/\+/))f=true;switch(c){case"s":if(h===undefined||h===null){throw jsError(e,S,w,"attempted to print undefined or null "+"as a string (argument "+g+" to "+"sprintf)")}b+=doPad(p,u,d,h.toString());break;case"d":h=Math.floor(h);case"f":f=f&&h>0?"+":"";b+=f+doPad(p,u,d,h.toString());break;case"x":b+=doPad(p,u,d,h.toString(16));break;case"j":if(u===0)u=10;b+=a.inspect(h,false,u);break;case"r":b+=dumpException(h);break;default:throw jsError(e,S,w,"is not supported")}}b+=s;return b}function jsError(e,t,i,a){n.equal(typeof e,"string");n.equal(typeof i,"string");n.equal(typeof t,"number");n.equal(typeof a,"string");return new Error('format string "'+e+'": conversion specifier "'+i+'" at character '+t+" "+a)}function jsPrintf(){var e=Array.prototype.slice.call(arguments);e.unshift(process.stdout);jsFprintf.apply(null,e)}function jsFprintf(e){var t=Array.prototype.slice.call(arguments,1);return e.write(jsSprintf.apply(this,t))}function doPad(e,t,i,n){var a=n;while(a.length{const a=e["cmd-path"];const r=e["cmd-args"].split(" ");const s=e["cmd-env"];let o;if(process.platform==="win32"){o=n(a,r,{env:Object.assign({},process.env,s),windowsHide:true,shell:true})}else{o=n(a,r,{env:Object.assign({},process.env,s),windowsHide:true})}let u;try{u=JSON.parse(o.stdout.toString("utf8"))}catch(e){return i(new Error("Failed to run cmd."))}const l=getProperty(e["token-key"].replace(/[{}]+/g,""),u);return t(l)})}}},function(e,t,i){var n=i(602);var a=i(747);n.register("head",_head,{canReceivePipe:true,cmdOptions:{n:"numLines"}});function readSomeLines(e,t){var i=n.buffer();var r=i.length;var s=r;var o=0;var u=a.openSync(e,"r");var l=0;var c="";while(s===r&&l=0&&t<=m}function each(e,t,i){t=optimizeCb(t,i);var n,a;if(isArrayLike(e)){for(n=0,a=e.length;n0?0:s-1;if(!a){n=t[r?r[o]:o];o+=e}for(;o>=0&&o=3;return t(e,optimizeCb(i,a,4),n,r)}}var g=createReduce(1);var y=createReduce(-1);function find(e,t,i){var n=isArrayLike(e)?E:findKey;var a=n(e,t,i);if(a!==void 0&&a!==-1)return e[a]}function filter(e,t,i){var n=[];t=cb(t,i);each(e,function(e,i,a){if(t(e,i,a))n.push(e)});return n}function reject(e,t,i){return filter(e,negate(cb(t)),i)}function every(e,t,i){t=cb(t,i);var n=!isArrayLike(e)&&keys(e),a=(n||e).length;for(var r=0;r=0}var S=restArguments(function(e,t,i){var n,a;if(F(t)){a=t}else if(K(t)){n=t.slice(0,-1);t=t[t.length-1]}return map(e,function(e){var r=a;if(!r){if(n&&n.length){e=deepGet(e,n)}if(e==null)return void 0;r=e[t]}return r==null?r:r.apply(e,i)})});function pluck(e,t){return map(e,property(t))}function where(e,t){return filter(e,matcher(t))}function findWhere(e,t){return find(e,matcher(t))}function max(e,t,i){var n=-Infinity,a=-Infinity,r,s;if(t==null||typeof t=="number"&&typeof e[0]!="object"&&e!=null){e=isArrayLike(e)?e:values(e);for(var o=0,u=e.length;on){n=r}}}else{t=cb(t,i);each(e,function(e,i,r){s=t(e,i,r);if(s>a||s===-Infinity&&n===-Infinity){n=e;a=s}})}return n}function min(e,t,i){var n=Infinity,a=Infinity,r,s;if(t==null||typeof t=="number"&&typeof e[0]!="object"&&e!=null){e=isArrayLike(e)?e:values(e);for(var o=0,u=e.length;on||i===void 0)return 1;if(i0?0:a-1;for(;r>=0&&r0){o=s>=0?s:Math.max(s+u,o)}else{u=s>=0?Math.min(s+1,u):s+u+1}}else if(i&&s&&u){s=i(n,a);return n[s]===a?s:-1}if(a!==a){s=t(r.call(n,o,u),isNaN);return s>=0?s+o:-1}for(s=e>0?o:u-1;s>=0&&st){if(n){clearTimeout(n);n=null}o=l;s=e.apply(a,r);if(!n)a=r=null}else if(!n&&i.trailing!==false){n=setTimeout(u,c)}return s};l.cancel=function(){clearTimeout(n);o=0;n=a=r=null};return l}function debounce(e,t,i){var n,a;var r=function(t,i){n=null;if(i)a=e.apply(t,i)};var s=restArguments(function(s){if(n)clearTimeout(n);if(i){var o=!n;n=setTimeout(r,t);if(o)a=e.apply(this,s)}else{n=I(r,t,this,s)}return a});s.cancel=function(){clearTimeout(n);n=null};return s}function wrap(e,t){return P(t,e)}function negate(e){return function(){return!e.apply(this,arguments)}}function compose(){var e=arguments;var t=e.length-1;return function(){var i=t;var n=e[t].apply(this,arguments);while(i--)n=e[i].call(this,n);return n}}function after(e,t){return function(){if(--e<1){return t.apply(this,arguments)}}}function before(e,t){var i;return function(){if(--e>0){i=t.apply(this,arguments)}if(e<=1)t=null;return i}}var B=P(before,2);var M=!{toString:null}.propertyIsEnumerable("toString");var U=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];function collectNonEnumProps(e,t){var n=U.length;var a=e.constructor;var r=F(a)&&a.prototype||i;var s="constructor";if(_has(e,s)&&!contains(t,s))t.push(s);while(n--){s=U[n];if(s in e&&e[s]!==r[s]&&!contains(t,s)){t.push(s)}}}function keys(e){if(!isObject(e))return[];if(l)return l(e);var t=[];for(var i in e)if(_has(e,i))t.push(i);if(M)collectNonEnumProps(e,t);return t}function allKeys(e){if(!isObject(e))return[];var t=[];for(var i in e)t.push(i);if(M)collectNonEnumProps(e,t);return t}function values(e){var t=keys(e);var i=t.length;var n=Array(i);for(var a=0;a1)n=optimizeCb(n,t[1]);t=allKeys(e)}else{n=keyInObj;t=_flatten(t,false,false);e=Object(e)}for(var a=0,r=t.length;a1)n=t[1]}else{t=map(_flatten(t,false,false),String);i=function(e,i){return!contains(t,i)}}return Q(e,i,n)});var G=createAssigner(allKeys,true);function create(e,t){var i=baseCreate(e);if(t)H(i,t);return i}function clone(e){if(!isObject(e))return e;return K(e)?e.slice():L({},e)}function tap(e,t){t(e);return e}function isMatch(e,t){var i=keys(t),n=i.length;if(e==null)return!n;var a=Object(e);for(var r=0;r":">",'"':""","'":"'","`":"`"};var le=invert(ue);function createEscaper(e){var t=function(t){return e[t]};var i="(?:"+keys(e).join("|")+")";var n=RegExp(i);var a=RegExp(i,"g");return function(e){e=e==null?"":""+e;return n.test(e)?e.replace(a,t):e}}var ce=createEscaper(ue);var de=createEscaper(le);function result(e,t,i){if(!K(t))t=[t];var n=t.length;if(!n){return F(i)?i.call(e):i}for(var a=0;a/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var he=/(.)^/;var me={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"};var be=/\\|'|\r|\n|\u2028|\u2029/g;var ge=function(e){return"\\"+me[e]};function template(e,t,i){if(!t&&i)t=i;t=G({},t,_.templateSettings);var n=RegExp([(t.escape||he).source,(t.interpolate||he).source,(t.evaluate||he).source].join("|")+"|$","g");var a=0;var r="__p+='";e.replace(n,function(t,i,n,s,o){r+=e.slice(a,o).replace(be,ge);a=o+t.length;if(i){r+="'+\n((__t=("+i+"))==null?'':_.escape(__t))+\n'"}else if(n){r+="'+\n((__t=("+n+"))==null?'':__t)+\n'"}else if(s){r+="';\n"+s+"\n__p+='"}return t});r+="';\n";if(!t.variable)r="with(obj||{}){\n"+r+"}\n";r="var __t,__p='',__j=Array.prototype.join,"+"print=function(){__p+=__j.call(arguments,'');};\n"+r+"return __p;\n";var s;try{s=new Function(t.variable||"obj","_",r)}catch(e){e.source=r;throw e}var o=function(e){return s.call(this,e,_)};var u=t.variable||"obj";o.source="function("+u+"){\n"+r+"}";return o}function chain(e){var t=_(e);t._chain=true;return t}function chainResult(e,t){return e._chain?_(t).chain():t}function mixin(e){each(functions(e),function(t){var i=_[t]=e[t];_.prototype[t]=function(){var e=[this._wrapped];a.apply(e,arguments);return chainResult(this,i.apply(_,e))}});return _}each(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var i=t[e];_.prototype[e]=function(){var t=this._wrapped;i.apply(t,arguments);if((e==="shift"||e==="splice")&&t.length===0)delete t[0];return chainResult(this,t)}});each(["concat","join","slice"],function(e){var i=t[e];_.prototype[e]=function(){return chainResult(this,i.apply(this._wrapped,arguments))}});_.prototype.value=function(){return this._wrapped};_.prototype.valueOf=_.prototype.toJSON=_.prototype.value;_.prototype.toString=function(){return String(this._wrapped)};var ye={default:_,VERSION:h,iteratee:iteratee,restArguments:restArguments,each:each,forEach:each,map:map,collect:map,reduce:g,foldl:g,inject:g,reduceRight:y,foldr:y,find:find,detect:find,filter:filter,select:filter,reject:reject,every:every,all:every,some:some,any:some,contains:contains,includes:contains,include:contains,invoke:S,pluck:pluck,where:where,findWhere:findWhere,max:max,min:min,shuffle:shuffle,sample:sample,sortBy:sortBy,groupBy:w,indexBy:v,countBy:z,toArray:toArray,size:size,partition:O,first:first,head:first,take:first,initial:initial,last:last,rest:rest,tail:rest,drop:rest,compact:compact,flatten:flatten,without:k,uniq:uniq,unique:uniq,union:C,intersection:intersection,difference:T,unzip:unzip,zip:R,object:object,findIndex:E,findLastIndex:A,sortedIndex:sortedIndex,indexOf:x,lastIndexOf:N,range:range,chunk:chunk,bind:V,partial:P,bindAll:D,memoize:memoize,delay:I,defer:q,throttle:throttle,debounce:debounce,wrap:wrap,negate:negate,compose:compose,after:after,before:before,once:B,keys:keys,allKeys:allKeys,values:values,mapObject:mapObject,pairs:pairs,invert:invert,functions:functions,methods:functions,extend:L,extendOwn:H,assign:H,findKey:findKey,pick:Q,omit:W,defaults:G,create:create,clone:clone,tap:tap,isMatch:isMatch,isEqual:isEqual,isEmpty:isEmpty,isElement:isElement,isArray:K,isObject:isObject,isArguments:J,isFunction:F,isString:Y,isNumber:X,isDate:Z,isRegExp:$,isError:ee,isSymbol:te,isMap:ie,isWeakMap:ne,isSet:ae,isWeakSet:re,isFinite:isFinite,isNaN:isNaN,isBoolean:isBoolean,isNull:isNull,isUndefined:isUndefined,has:has,identity:identity,constant:constant,noop:noop,property:property,propertyOf:propertyOf,matcher:matcher,matches:matcher,times:times,random:random,now:oe,escape:ce,unescape:de,result:result,uniqueId:uniqueId,templateSettings:fe,template:template,chain:chain,mixin:mixin};var Se=mixin(ye);Se._=Se;return Se})},function(e,t,i){var n=i(157),a=i(147),r=i(939);e.exports=serialOrdered;e.exports.ascending=ascending;e.exports.descending=descending;function serialOrdered(e,t,i,s){var o=a(e,i);n(e,t,o,function iteratorHandler(i,a){if(i){s(i,a);return}o.index++;if(o.index<(o["keyedList"]||e).length){n(e,t,o,iteratorHandler);return}s(null,o.results)});return r.bind(o,s)}function ascending(e,t){return et?1:0}function descending(e,t){return-1*ascending(e,t)}},function(e,t,i){e.exports={read:read,verify:verify,sign:sign,signAsync:signAsync,write:write,fromBuffer:fromBuffer,toBuffer:toBuffer};var n=i(872);var a=i(940);var r=i(373);var s=i(215).Buffer;var o=i(98);var u=i(852);var l=i(502);var c=i(378);var d=i(538);var p=i(575);var f=i(270);var h=i(966);function verify(e,t){return false}var m={user:1,host:2};Object.keys(m).forEach(function(e){m[m[e]]=e});var b=/^ecdsa-sha2-([^@-]+)-cert-v01@openssh.com$/;function read(e,t){if(s.isBuffer(e))e=e.toString("ascii");var i=e.trim().split(/[ \t\n]+/g);if(i.length<2||i.length>3)throw new Error("Not a valid SSH certificate line");var n=i[0];var a=i[1];a=s.from(a,"base64");return fromBuffer(a,n)}function fromBuffer(e,t,i){var r=new a({buffer:e});var s=r.readString();if(t!==undefined&&s!==t)throw new Error("SSH certificate algorithm mismatch");if(t===undefined)t=s;var l={};l.signatures={};l.signatures.openssh={};l.signatures.openssh.nonce=r.readBuffer();var g={};var y=g.parts=[];g.type=getAlg(t);var S=o.info[g.type].parts.length;while(y.length=1,"key must have at least one part");var w=o.info[g.type];if(g.type==="ecdsa"){var v=b.exec(t);n.ok(v!==null);n.strictEqual(v[1],y[0].data.toString())}for(var z=0;z0?g+b:""}},function(e,t,i){const n=i(874);const a=(e,t,i)=>n(e,t,i)<=0;e.exports=a},function(e){e.exports=function(e,t){Object.keys(t).forEach(function(i){e[i]=e[i]||t[i]});return e}},,,function(e,t,i){"use strict";var n=i(623);var a=i(191);function Querystring(e){this.request=e;this.lib=null;this.useQuerystring=null;this.parseOptions=null;this.stringifyOptions=null}Querystring.prototype.init=function(e){if(this.lib){return}this.useQuerystring=e.useQuerystring;this.lib=this.useQuerystring?a:n;this.parseOptions=e.qsParseOptions||{};this.stringifyOptions=e.qsStringifyOptions||{}};Querystring.prototype.stringify=function(e){return this.useQuerystring?this.rfc3986(this.lib.stringify(e,this.stringifyOptions.sep||null,this.stringifyOptions.eq||null,this.stringifyOptions)):this.lib.stringify(e,this.stringifyOptions)};Querystring.prototype.parse=function(e){return this.useQuerystring?this.lib.parse(e,this.parseOptions.sep||null,this.parseOptions.eq||null,this.parseOptions):this.lib.parse(e,this.parseOptions)};Querystring.prototype.rfc3986=function(e){return e.replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})};Querystring.prototype.unescape=a.unescape;t.Querystring=Querystring},function(e){e.exports=require("zlib")},function(e){e.exports={$id:"postData.json#",$schema:"http://json-schema.org/draft-06/schema#",type:"object",optional:true,required:["mimeType"],properties:{mimeType:{type:"string"},text:{type:"string"},params:{type:"array",required:["name"],properties:{name:{type:"string"},value:{type:"string"},fileName:{type:"string"},contentType:{type:"string"},comment:{type:"string"}}},comment:{type:"string"}}}},,,,,function(e,t,i){var n=i(872);var a=i(650);var r=i(669);var s={sha1:true,sha256:true,sha512:true};var o={rsa:true,dsa:true,ecdsa:true};function HttpSignatureError(e,t){if(Error.captureStackTrace)Error.captureStackTrace(this,t||HttpSignatureError);this.message=e;this.name=t.name}r.inherits(HttpSignatureError,Error);function InvalidAlgorithmError(e){HttpSignatureError.call(this,e,InvalidAlgorithmError)}r.inherits(InvalidAlgorithmError,HttpSignatureError);function validateAlgorithm(e){var t=e.toLowerCase().split("-");if(t.length!==2){throw new InvalidAlgorithmError(t[0].toUpperCase()+" is not a "+"valid algorithm")}if(t[0]!=="hmac"&&!o[t[0]]){throw new InvalidAlgorithmError(t[0].toUpperCase()+" type keys "+"are not supported")}if(!s[t[1]]){throw new InvalidAlgorithmError(t[1].toUpperCase()+" is not a "+"supported hash algorithm")}return t}e.exports={HASH_ALGOS:s,PK_ALGOS:o,HttpSignatureError:HttpSignatureError,InvalidAlgorithmError:InvalidAlgorithmError,validateAlgorithm:validateAlgorithm,sshKeyToPEM:function sshKeyToPEM(e){n.string(e,"ssh_key");var t=a.parseKey(e,"ssh");return t.toString("pem")},fingerprint:function fingerprint(e){n.string(e,"ssh_key");var t=a.parseKey(e,"ssh");return t.fingerprint("md5").toString("hex")},pemToRsaSSHKey:function pemToRsaSSHKey(e,t){n.equal("string",typeof e,"typeof pem");var i=a.parseKey(e,"pem");i.comment=t;return i.toString("ssh")}}},function(e,t,i){"use strict";var n=i(43);e.exports=n.DEFAULT=new n({include:[i(723)],explicit:[i(386),i(629),i(352)]})},,,function(e,t,i){"use strict";var n;try{var a=require;n=a("buffer").Buffer}catch(e){}var r=i(945);var s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function resolveYamlBinary(e){if(e===null)return false;var t,i,n=0,a=e.length,r=s;for(i=0;i64)continue;if(t<0)return false;n+=6}return n%8===0}function constructYamlBinary(e){var t,i,a=e.replace(/[\r\n=]/g,""),r=a.length,o=s,u=0,l=[];for(t=0;t>16&255);l.push(u>>8&255);l.push(u&255)}u=u<<6|o.indexOf(a.charAt(t))}i=r%4*6;if(i===0){l.push(u>>16&255);l.push(u>>8&255);l.push(u&255)}else if(i===18){l.push(u>>10&255);l.push(u>>2&255)}else if(i===12){l.push(u>>4&255)}if(n){return n.from?n.from(l):new n(l)}return l}function representYamlBinary(e){var t="",i=0,n,a,r=e.length,o=s;for(n=0;n>18&63];t+=o[i>>12&63];t+=o[i>>6&63];t+=o[i&63]}i=(i<<8)+e[n]}a=r%3;if(a===0){t+=o[i>>18&63];t+=o[i>>12&63];t+=o[i>>6&63];t+=o[i&63]}else if(a===2){t+=o[i>>10&63];t+=o[i>>4&63];t+=o[i<<2&63];t+=o[64]}else if(a===1){t+=o[i>>2&63];t+=o[i<<4&63];t+=o[64];t+=o[64]}return t}function isBinary(e){return n&&n.isBuffer(e)}e.exports=new r("tag:yaml.org,2002:binary",{kind:"scalar",resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary,represent:representYamlBinary})},function(e,t){"use strict";var i=typeof Reflect!=="undefined"?Reflect.construct:undefined;var n=Object.defineProperty;var a=Error.captureStackTrace;if(a===undefined){a=function captureStackTrace(e){var t=new Error;n(e,"stack",{configurable:true,get:function getStack(){var e=t.stack;n(this,"stack",{configurable:true,value:e,writable:true});return e},set:function setStack(t){n(e,"stack",{configurable:true,value:t,writable:true})}})}}function BaseError(e){if(e!==undefined){n(this,"message",{configurable:true,value:e,writable:true})}var t=this.constructor.name;if(t!==undefined&&t!==this.name){n(this,"name",{configurable:true,value:t,writable:true})}a(this,this.constructor)}BaseError.prototype=Object.create(Error.prototype,{constructor:{configurable:true,value:BaseError,writable:true}});var r=function(){function setFunctionName(e,t){return n(e,"name",{configurable:true,value:t})}try{var e=function(){};setFunctionName(e,"foo");if(e.name==="foo"){return setFunctionName}}catch(e){}}();function makeError(e,t){if(t==null||t===Error){t=BaseError}else if(typeof t!=="function"){throw new TypeError("super_ should be a function")}var n;if(typeof e==="string"){n=e;e=i!==undefined?function(){return i(t,arguments,this.constructor)}:function(){t.apply(this,arguments)};if(r!==undefined){r(e,n);n=undefined}}else if(typeof e!=="function"){throw new TypeError("constructor should be either a string or a function")}e.super_=e["super"]=t;var a={constructor:{configurable:true,value:e,writable:true}};if(n!==undefined){a.name={configurable:true,value:n,writable:true}}e.prototype=Object.create(t.prototype,a);return e}t=e.exports=makeError;t.BaseError=BaseError},function(e,t,i){const{diffieHellman:n,KeyObject:a,sign:r,verify:s}=i(373);const[o,u]=process.version.substr(1).split(".").map(e=>parseInt(e,10));e.exports={oaepHashSupported:o>12||o===12&&u>=9,keyObjectSupported:!!a&&o>=12,edDSASupported:!!r&&!!s,dsaEncodingSupported:o>13||o===13&&u>=2||o===12&&u>=16,improvedDH:!!n}},function(e,t,i){"use strict";const n=i(614);const a=i(145);const r=i(534);const s=i(657);const o=i(678);const{HTTPError:u,ParseError:l,ReadError:c}=i(774);const{options:d}=i(821);const{reNormalize:p}=i(523);const f=e=>{const t=new n;const i=new s((i,n,s)=>{const h=o(e);s(h.abort);h.on("response",async s=>{t.emit("response",s);const o=r.null(e.encoding)?a.buffer(s):a(s,e);let m;try{m=await o}catch(t){n(new c(t,e));return}const b=e.followRedirect?299:399;s.body=m;try{for(const[t,i]of Object.entries(e.hooks.afterResponse)){s=await i(s,i=>{i=p(d(e,{...i,retry:0,throwHttpErrors:false}));i.hooks.afterResponse=e.hooks.afterResponse.slice(0,t);return f(i)})}}catch(e){n(e);return}const{statusCode:g}=s;if(e.json&&s.body){try{s.body=JSON.parse(s.body)}catch(t){if(g>=200&&g<300){const i=new l(t,g,e,m);Object.defineProperty(i,"response",{value:s});n(i);return}}}if(g!==304&&(g<200||g>b)){const t=new u(s,e);Object.defineProperty(t,"response",{value:s});if(h.retry(t)===false){if(e.throwHttpErrors){n(t);return}i(s)}return}i(s)});h.once("error",n);["request","redirect","uploadProgress","downloadProgress"].forEach(e=>h.on(e,(...i)=>t.emit(e,...i)))});i.on=((e,n)=>{t.on(e,n);return i});return i};e.exports=f},function(e,t,i){"use strict";const n=i(958);e.exports=(e=>{const t={start:Date.now(),socket:null,lookup:null,connect:null,upload:null,response:null,end:null,error:null,phases:{wait:null,dns:null,tcp:null,request:null,firstByte:null,download:null,total:null}};const i=e=>{const i=e.emit.bind(e);e.emit=((n,...a)=>{if(n==="error"){t.error=Date.now();t.phases.total=t.error-t.start;e.emit=i}return i(n,...a)})};let a=false;const r=()=>{t.upload=Date.now();t.phases.request=t.upload-t.connect};i(e);e.once("socket",e=>{t.socket=Date.now();t.phases.wait=t.socket-t.start;const i=()=>{t.lookup=Date.now();t.phases.dns=t.lookup-t.socket};e.once("lookup",i);n(e,()=>{t.connect=Date.now();if(t.lookup===null){e.removeListener("lookup",i);t.lookup=t.connect;t.phases.dns=t.lookup-t.socket}t.phases.tcp=t.connect-t.lookup;if(a&&!t.upload){r()}})});e.once("finish",()=>{a=true;if(t.connect){r()}});e.once("response",e=>{t.response=Date.now();t.phases.firstByte=t.response-t.upload;i(e);e.once("end",()=>{t.end=Date.now();t.phases.download=t.end-t.response;t.phases.total=t.end-t.start})});return t})},function(e,t,i){const{JOSECritNotUnderstood:n,JWSInvalid:a}=i(466);const r=new Set(["alg","jku","jwk","kid","x5u","x5c","x5t","x5t#S256","typ","cty","crit","enc","zip","epk","apu","apv","iv","tag","p2s","p2c"]);e.exports=function validateCrit(e,t,i,s){if(t&&"crit"in t){if(!Array.isArray(t.crit)||t.crit.length===0||t.crit.some(e=>typeof e!=="string"||!e)){throw new e('"crit" Header Parameter MUST be an array of non-empty strings when present')}const o=new Set(s);const u={...t,...i};t.crit.forEach(i=>{if(r.has(i)){throw new e(`The critical list contains a non-extension Header Parameter ${i}`)}if(!o.has(i)){throw new n(`critical "${i}" is not understood`)}if(i==="b64"){if(!("b64"in t)){throw new a('"b64" critical parameter must be integrity protected')}if(typeof t.b64!=="boolean"){throw new a('"b64" critical parameter must be a boolean')}}else if(!(i in u)){throw new e(`critical parameter "${i}" is missing`)}})}if(i&&"crit"in i){throw new e('"crit" Header Parameter MUST be integrity protected when present')}}},function(e){e.exports={$id:"entry.json#",$schema:"http://json-schema.org/draft-06/schema#",type:"object",optional:true,required:["startedDateTime","time","request","response","cache","timings"],properties:{pageref:{type:"string"},startedDateTime:{type:"string",format:"date-time",pattern:"^(\\d{4})(-)?(\\d\\d)(-)?(\\d\\d)(T)?(\\d\\d)(:)?(\\d\\d)(:)?(\\d\\d)(\\.\\d+)?(Z|([+-])(\\d\\d)(:)?(\\d\\d))"},time:{type:"number",min:0},request:{$ref:"request.json#"},response:{$ref:"response.json#"},cache:{$ref:"cache.json#"},timings:{$ref:"timings.json#"},serverIPAddress:{type:"string",oneOf:[{format:"ipv4"},{format:"ipv6"}]},connection:{type:"string"},comment:{type:"string"}}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=i(422);const a=i(695);class ListWatch{constructor(e,t,i,n=true){this.path=e;this.watch=t;this.listFn=i;this.objects=[];this.indexCache={};this.callbackCache={};this.watch=t;this.listFn=i;if(n){this.doneHandler(null)}}start(){this.doneHandler(null)}on(e,t){if(e!==a.ADD&&e!==a.UPDATE&&e!==a.DELETE){throw new Error(`Unknown verb: ${e}`)}if(!this.callbackCache[e]){this.callbackCache[e]=[]}this.callbackCache[e].push(t)}get(e,t){return this.objects.find(i=>{return i.metadata.name===e&&(!t||i.metadata.namespace===t)})}list(e){if(!e){return this.objects}return this.indexCache[e]}doneHandler(e){return n.__awaiter(this,void 0,void 0,function*(){const e=this.listFn();const t=yield e;const i=t.body;deleteItems(this.objects,i.items,this.callbackCache[a.DELETE]);this.addOrUpdateItems(i.items);this.watch.watch(this.path,{resourceVersion:i.metadata.resourceVersion},this.watchHandler.bind(this),this.doneHandler.bind(this))})}addOrUpdateItems(e){e.forEach(e=>{addOrUpdateObject(this.objects,e,this.callbackCache[a.ADD],this.callbackCache[a.UPDATE]);if(e.metadata.namespace){this.indexObj(e)}})}indexObj(e){let t=this.indexCache[e.metadata.namespace];if(!t){t=[];this.indexCache[e.metadata.namespace]=t}addOrUpdateObject(t,e)}watchHandler(e,t){switch(e){case"ADDED":case"MODIFIED":addOrUpdateObject(this.objects,t,this.callbackCache[a.ADD],this.callbackCache[a.UPDATE]);if(t.metadata.namespace){this.indexObj(t)}break;case"DELETED":deleteObject(this.objects,t,this.callbackCache[a.DELETE]);if(t.metadata.namespace){const e=this.indexCache[t.metadata.namespace];if(e){deleteObject(e,t)}}break}}}t.ListWatch=ListWatch;function deleteItems(e,t,i){return e.filter(e=>{if(findKubernetesObject(t,e)===-1){if(i){i.forEach(t=>t(e))}return false}return true})}t.deleteItems=deleteItems;function addOrUpdateObject(e,t,i,n){const a=findKubernetesObject(e,t);if(a===-1){e.push(t);if(i){i.forEach(e=>e(t))}}else{e[a]=t;if(n){n.forEach(e=>e(t))}}}t.addOrUpdateObject=addOrUpdateObject;function isSameObject(e,t){return e.metadata.name===t.metadata.name&&e.metadata.namespace===t.metadata.namespace}function findKubernetesObject(e,t){return e.findIndex(e=>{return isSameObject(e,t)})}function deleteObject(e,t,i){const n=findKubernetesObject(e,t);if(n!==-1){e.splice(n,1);if(i){i.forEach(e=>e(t))}}}t.deleteObject=deleteObject},function(e,t,i){"use strict";var n=i(945);e.exports=new n("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})},,function(e,t,i){const{getCurves:n}=i(373);const{name:a}=i(997);const r=new Set;if(n().includes("prime256v1")){r.add("P-256")}if(n().includes("secp256k1")){r.add(a)}if(n().includes("secp384r1")){r.add("P-384")}if(n().includes("secp521r1")){r.add("P-521")}e.exports=r},,function(e,t,i){"use strict";const n=i(614);const a=i(211);const r=i(363);const s=i(631);const o=i(818);const{randomBytes:u,createHash:l}=i(373);const{URL:c}=i(835);const d=i(850);const p=i(954);const f=i(118);const{BINARY_TYPES:h,EMPTY_BUFFER:m,GUID:b,kStatusCode:g,kWebSocket:y,NOOP:S}=i(60);const{addEventListener:w,removeEventListener:v}=i(440);const{format:z,parse:j}=i(271);const{toBuffer:O}=i(676);const k=["CONNECTING","OPEN","CLOSING","CLOSED"];const C=[8,13];const T=30*1e3;class WebSocket extends n{constructor(e,t,i){super();this.readyState=WebSocket.CONNECTING;this.protocol="";this._binaryType=h[0];this._closeFrameReceived=false;this._closeFrameSent=false;this._closeMessage="";this._closeTimer=null;this._closeCode=1006;this._extensions={};this._receiver=null;this._sender=null;this._socket=null;if(e!==null){this._bufferedAmount=0;this._isServer=false;this._redirects=0;if(Array.isArray(t)){t=t.join(", ")}else if(typeof t==="object"&&t!==null){i=t;t=undefined}initAsClient(this,e,t,i)}else{this._isServer=true}}get CONNECTING(){return WebSocket.CONNECTING}get CLOSING(){return WebSocket.CLOSING}get CLOSED(){return WebSocket.CLOSED}get OPEN(){return WebSocket.OPEN}get binaryType(){return this._binaryType}set binaryType(e){if(!h.includes(e))return;this._binaryType=e;if(this._receiver)this._receiver._binaryType=e}get bufferedAmount(){if(!this._socket)return this._bufferedAmount;return this._socket._writableState.length+this._sender._bufferedBytes}get extensions(){return Object.keys(this._extensions).join()}setSocket(e,t,i){const n=new p(this._binaryType,this._extensions,this._isServer,i);this._sender=new f(e,this._extensions);this._receiver=n;this._socket=e;n[y]=this;e[y]=this;n.on("conclude",receiverOnConclude);n.on("drain",receiverOnDrain);n.on("error",receiverOnError);n.on("message",receiverOnMessage);n.on("ping",receiverOnPing);n.on("pong",receiverOnPong);e.setTimeout(0);e.setNoDelay();if(t.length>0)e.unshift(t);e.on("close",socketOnClose);e.on("data",socketOnData);e.on("end",socketOnEnd);e.on("error",socketOnError);this.readyState=WebSocket.OPEN;this.emit("open")}emitClose(){if(!this._socket){this.readyState=WebSocket.CLOSED;this.emit("close",this._closeCode,this._closeMessage);return}if(this._extensions[d.extensionName]){this._extensions[d.extensionName].cleanup()}this._receiver.removeAllListeners();this.readyState=WebSocket.CLOSED;this.emit("close",this._closeCode,this._closeMessage)}close(e,t){if(this.readyState===WebSocket.CLOSED)return;if(this.readyState===WebSocket.CONNECTING){const e="WebSocket was closed before the connection was established";return abortHandshake(this,this._req,e)}if(this.readyState===WebSocket.CLOSING){if(this._closeFrameSent&&this._closeFrameReceived)this._socket.end();return}this.readyState=WebSocket.CLOSING;this._sender.close(e,t,!this._isServer,e=>{if(e)return;this._closeFrameSent=true;if(this._closeFrameReceived)this._socket.end()});this._closeTimer=setTimeout(this._socket.destroy.bind(this._socket),T)}ping(e,t,i){if(this.readyState===WebSocket.CONNECTING){throw new Error("WebSocket is not open: readyState 0 (CONNECTING)")}if(typeof e==="function"){i=e;e=t=undefined}else if(typeof t==="function"){i=t;t=undefined}if(typeof e==="number")e=e.toString();if(this.readyState!==WebSocket.OPEN){sendAfterClose(this,e,i);return}if(t===undefined)t=!this._isServer;this._sender.ping(e||m,t,i)}pong(e,t,i){if(this.readyState===WebSocket.CONNECTING){throw new Error("WebSocket is not open: readyState 0 (CONNECTING)")}if(typeof e==="function"){i=e;e=t=undefined}else if(typeof t==="function"){i=t;t=undefined}if(typeof e==="number")e=e.toString();if(this.readyState!==WebSocket.OPEN){sendAfterClose(this,e,i);return}if(t===undefined)t=!this._isServer;this._sender.pong(e||m,t,i)}send(e,t,i){if(this.readyState===WebSocket.CONNECTING){throw new Error("WebSocket is not open: readyState 0 (CONNECTING)")}if(typeof t==="function"){i=t;t={}}if(typeof e==="number")e=e.toString();if(this.readyState!==WebSocket.OPEN){sendAfterClose(this,e,i);return}const n={binary:typeof e!=="string",mask:!this._isServer,compress:true,fin:true,...t};if(!this._extensions[d.extensionName]){n.compress=false}this._sender.send(e||m,n,i)}terminate(){if(this.readyState===WebSocket.CLOSED)return;if(this.readyState===WebSocket.CONNECTING){const e="WebSocket was closed before the connection was established";return abortHandshake(this,this._req,e)}if(this._socket){this.readyState=WebSocket.CLOSING;this._socket.destroy()}}}k.forEach((e,t)=>{WebSocket[e]=t});["open","error","close","message"].forEach(e=>{Object.defineProperty(WebSocket.prototype,`on${e}`,{get(){const t=this.listeners(e);for(let e=0;e{abortHandshake(e,S,"Opening handshake has timed out")})}S.on("error",t=>{if(e._req.aborted)return;S=e._req=null;e.readyState=WebSocket.CLOSING;e.emit("error",t);e.emitClose()});S.on("response",a=>{const r=a.headers.location;const o=a.statusCode;if(r&&s.followRedirects&&o>=300&&o<400){if(++e._redirects>s.maxRedirects){abortHandshake(e,S,"Maximum redirects exceeded");return}S.abort();const a=new c(r,t);initAsClient(e,a,i,n)}else if(!e.emit("unexpected-response",S,a)){abortHandshake(e,S,`Unexpected server response: ${a.statusCode}`)}});S.on("upgrade",(t,n,a)=>{e.emit("upgrade",t);if(e.readyState!==WebSocket.CONNECTING)return;S=e._req=null;const r=l("sha1").update(m+b).digest("base64");if(t.headers["sec-websocket-accept"]!==r){abortHandshake(e,n,"Invalid Sec-WebSocket-Accept header");return}const o=t.headers["sec-websocket-protocol"];const u=(i||"").split(/, */);let c;if(!i&&o){c="Server sent a subprotocol but none was requested"}else if(i&&!o){c="Server sent no subprotocol"}else if(o&&!u.includes(o)){c="Server sent an invalid subprotocol"}if(c){abortHandshake(e,n,c);return}if(o)e.protocol=o;if(y){try{const i=j(t.headers["sec-websocket-extensions"]);if(i[d.extensionName]){y.accept(i[d.extensionName]);e._extensions[d.extensionName]=y}}catch(t){abortHandshake(e,n,"Invalid Sec-WebSocket-Extensions header");return}}e.setSocket(n,a,s.maxPayload)})}function netConnect(e){e.path=e.socketPath;return s.connect(e)}function tlsConnect(e){e.path=undefined;if(!e.servername&&e.servername!==""){e.servername=e.host}return o.connect(e)}function abortHandshake(e,t,i){e.readyState=WebSocket.CLOSING;const n=new Error(i);Error.captureStackTrace(n,abortHandshake);if(t.setHeader){t.abort();t.once("abort",e.emitClose.bind(e));e.emit("error",n)}else{t.destroy(n);t.once("error",e.emit.bind(e,"error"));t.once("close",e.emitClose.bind(e))}}function sendAfterClose(e,t,i){if(t){const i=O(t).length;if(e._socket)e._sender._bufferedBytes+=i;else e._bufferedAmount+=i}if(i){const t=new Error(`WebSocket is not open: readyState ${e.readyState} `+`(${k[e.readyState]})`);i(t)}}function receiverOnConclude(e,t){const i=this[y];i._socket.removeListener("data",socketOnData);i._socket.resume();i._closeFrameReceived=true;i._closeMessage=t;i._closeCode=e;if(e===1005)i.close();else i.close(e,t)}function receiverOnDrain(){this[y]._socket.resume()}function receiverOnError(e){const t=this[y];t._socket.removeListener("data",socketOnData);t.readyState=WebSocket.CLOSING;t._closeCode=e[g];t.emit("error",e);t._socket.destroy()}function receiverOnFinish(){this[y].emitClose()}function receiverOnMessage(e){this[y].emit("message",e)}function receiverOnPing(e){const t=this[y];t.pong(e,!t._isServer,S);t.emit("ping",e)}function receiverOnPong(e){this[y].emit("pong",e)}function socketOnClose(){const e=this[y];this.removeListener("close",socketOnClose);this.removeListener("end",socketOnEnd);e.readyState=WebSocket.CLOSING;e._socket.read();e._receiver.end();this.removeListener("data",socketOnData);this[y]=undefined;clearTimeout(e._closeTimer);if(e._receiver._writableState.finished||e._receiver._writableState.errorEmitted){e.emitClose()}else{e._receiver.on("error",receiverOnFinish);e._receiver.on("finish",receiverOnFinish)}}function socketOnData(e){if(!this[y]._receiver.write(e)){this.pause()}}function socketOnEnd(){const e=this[y];e.readyState=WebSocket.CLOSING;e._receiver.end();this.end()}function socketOnError(){const e=this[y];this.removeListener("error",socketOnError);this.on("error",S);if(e){e.readyState=WebSocket.CLOSING;this.destroy()}}},function(e,t,i){const{deprecate:n,inspect:a}=i(669);const r=i(274);const{generate:s,generateSync:o}=i(626);const{USES_MAPPING:u}=i(771);const{isKey:l,asKey:c}=i(715);const d=(e,{alg:t,use:i,ops:n})=>{let a=0;if(t&&e.alg){a++}if(i&&e.use){a++}if(n&&e.key_ops){a++}return a};class KeyStore{constructor(...e){while(e.some(Array.isArray)){e=e.flat?e.flat():e.reduce((e,t)=>{if(Array.isArray(t)){return[...e,...t]}e.push(t);return e},[])}if(e.some(e=>!l(e)||!e.kty)){throw new TypeError("all keys must be instances of a key instantiated by JWK.asKey")}this._keys=new Set(e)}all({alg:e,kid:t,thumbprint:i,use:n,kty:a,key_ops:r,x5t:s,"x5t#S256":o,crv:l}={}){if(r!==undefined&&(!Array.isArray(r)||!r.length||r.some(e=>typeof e!=="string"))){throw new TypeError("`key_ops` must be a non-empty array of strings")}const c={alg:e,use:n,ops:r};return[...this._keys].filter(c=>{let d=true;if(d&&t!==undefined&&c.kid!==t){d=false}if(d&&i!==undefined&&c.thumbprint!==i){d=false}if(d&&s!==undefined&&c.x5t!==s){d=false}if(d&&o!==undefined&&c["x5t#S256"]!==o){d=false}if(d&&a!==undefined&&c.kty!==a){d=false}if(d&&l!==undefined&&c.crv!==l){d=false}if(e!==undefined&&!c.algorithms().has(e)){d=false}if(d&&n!==undefined&&(c.use!==undefined&&c.use!==n)){d=false}if(d&&r!==undefined&&(c.key_ops!==undefined||c.use!==undefined)){let e;if(c.key_ops){e=new Set(c.key_ops)}else{e=u[c.use]}if(r.some(t=>!e.has(t))){d=false}}return d}).sort((e,t)=>d(t,c)-d(e,c))}get(...e){return this.all(...e)[0]}add(e){if(!l(e)||!e.kty){throw new TypeError("key must be an instance of a key instantiated by JWK.asKey")}this._keys.add(e)}remove(e){if(!l(e)){throw new TypeError("key must be an instance of a key instantiated by JWK.asKey")}this._keys.delete(e)}toJWKS(e=false){return{keys:[...this._keys.values()].map(t=>t.toJWK(e&&(t.private||t.secret&&t.k)))}}async generate(...e){this._keys.add(await s(...e))}generateSync(...e){this._keys.add(o(...e))}get size(){return this._keys.size}[a.custom](){return`${this.constructor.name} ${a(this.toJWKS(false),{depth:Infinity,colors:process.stdout.isTTY,compact:false,sorted:true})}`}*[Symbol.iterator](){for(const e of this._keys){yield e}}}function asKeyStore(e,{ignoreErrors:t=false,calculateMissingRSAPrimes:i=false}={}){if(!r(e)||!Array.isArray(e.keys)||e.keys.some(e=>!r(e)||!("kty"in e))){throw new TypeError("jwks must be a JSON Web Key Set formatted object")}const n=e.keys.map(e=>{try{return c(e,{calculateMissingRSAPrimes:i})}catch(e){if(!t){throw e}}}).filter(Boolean);return new KeyStore(...n)}Object.defineProperty(KeyStore,"fromJWKS",{value:n(e=>asKeyStore(e,{calculateMissingRSAPrimes:true}),"JWKS.KeyStore.fromJWKS() is deprecated, use JWKS.asKeyStore() instead"),enumerable:false});e.exports={KeyStore:KeyStore,asKeyStore:asKeyStore}},,function(e,t,i){const n=i(65);const a=(e,t,i,a)=>{if(typeof i==="string"){a=i;i=undefined}try{return new n(e,i).inc(t,a).version}catch(e){return null}};e.exports=a},,,function(e,t,i){const n=i(150);const a=i(331);const r=i(745);const s=i(203);e.exports={decode:n,sign:a,verify:r,...s}},,function(e,t,i){const n=i(549);const a=i(295);class TokenSet{constructor(e){Object.assign(this,e)}set expires_in(e){this.expires_at=a()+Number(e)}get expires_in(){return Math.max.apply(null,[this.expires_at-a(),0])}expired(){return this.expires_in===0}claims(){if(!this.id_token){throw new TypeError("id_token not present in TokenSet")}return JSON.parse(n.decode(this.id_token.split(".")[1]))}}e.exports=TokenSet},function(e){e.exports={sign:new Map,verify:new Map,keyManagementEncrypt:new Map,keyManagementDecrypt:new Map,encrypt:new Map,decrypt:new Map}},,function(e,t,i){var n=i(602);n.register("set",_set,{allowGlobbing:false,wrapOutput:false});function _set(e){if(!e){var t=[].slice.call(arguments,0);if(t.length<2)n.error("must provide an argument");e=t[1]}var i=e[0]==="+";if(i){e="-"+e.slice(1)}e=n.parseOptions(e,{e:"fatal",v:"verbose",f:"noglob"});if(i){Object.keys(e).forEach(function(t){e[t]=!e[t]})}Object.keys(e).forEach(function(t){if(i!==e[t]){n.config[t]=e[t]}});return}e.exports=_set},,,function(e,t,i){var n=i(566),a=i(751);e.exports=terminator;function terminator(e){if(!Object.keys(this.jobs).length){return}this.index=this.size;n(this);a(e)(null,this.results)}},function(e,t,i){e.exports=SSHBuffer;var n=i(872);var a=i(215).Buffer;function SSHBuffer(e){n.object(e,"options");if(e.buffer!==undefined)n.buffer(e.buffer,"options.buffer");this._size=e.buffer?e.buffer.length:1024;this._buffer=e.buffer||a.alloc(this._size);this._offset=0}SSHBuffer.prototype.toBuffer=function(){return this._buffer.slice(0,this._offset)};SSHBuffer.prototype.atEnd=function(){return this._offset>=this._buffer.length};SSHBuffer.prototype.remainder=function(){return this._buffer.slice(this._offset)};SSHBuffer.prototype.skip=function(e){this._offset+=e};SSHBuffer.prototype.expand=function(){this._size*=2;var e=a.alloc(this._size);this._buffer.copy(e,0);this._buffer=e};SSHBuffer.prototype.readPart=function(){return{data:this.readBuffer()}};SSHBuffer.prototype.readBuffer=function(){var e=this._buffer.readUInt32BE(this._offset);this._offset+=4;n.ok(this._offset+e<=this._buffer.length,"length out of bounds at +0x"+this._offset.toString(16)+" (data truncated?)");var t=this._buffer.slice(this._offset,this._offset+e);this._offset+=e;return t};SSHBuffer.prototype.readString=function(){return this.readBuffer().toString()};SSHBuffer.prototype.readCString=function(){var e=this._offset;while(ethis._size)this.expand();this._buffer.writeUInt32BE(e.length,this._offset);this._offset+=4;e.copy(this._buffer,this._offset);this._offset+=e.length};SSHBuffer.prototype.writeString=function(e){this.writeBuffer(a.from(e,"utf8"))};SSHBuffer.prototype.writeCString=function(e){while(this._offset+1+e.length>this._size)this.expand();this._buffer.write(e,this._offset);this._offset+=e.length;this._buffer[this._offset++]=0};SSHBuffer.prototype.writeInt=function(e){while(this._offset+4>this._size)this.expand();this._buffer.writeUInt32BE(e,this._offset);this._offset+=4};SSHBuffer.prototype.writeInt64=function(e){n.buffer(e,"value");if(e.length>8){var t=e.slice(0,e.length-8);for(var i=0;ithis._size)this.expand();e.copy(this._buffer,this._offset);this._offset+=8};SSHBuffer.prototype.writeChar=function(e){while(this._offset+1>this._size)this.expand();this._buffer[this._offset++]=e};SSHBuffer.prototype.writePart=function(e){this.writeBuffer(e.data)};SSHBuffer.prototype.write=function(e){while(this._offset+e.length>this._size)this.expand();e.copy(this._buffer,this._offset);this._offset+=e.length}},,function(e,t,i){var n=i(373),a=i(835).parse;var r=["acl","location","logging","notification","partNumber","policy","requestPayment","torrent","uploadId","uploads","versionId","versioning","versions","website"];function authorization(e){return"AWS "+e.key+":"+sign(e)}e.exports=authorization;e.exports.authorization=authorization;function hmacSha1(e){return n.createHmac("sha1",e.secret).update(e.message).digest("base64")}e.exports.hmacSha1=hmacSha1;function sign(e){e.message=stringToSign(e);return hmacSha1(e)}e.exports.sign=sign;function signQuery(e){e.message=queryStringToSign(e);return hmacSha1(e)}e.exports.signQuery=signQuery;function stringToSign(e){var t=e.amazonHeaders||"";if(t)t+="\n";var i=[e.verb,e.md5,e.contentType,e.date?e.date.toUTCString():"",t+e.resource];return i.join("\n")}e.exports.stringToSign=stringToSign;function queryStringToSign(e){return"GET\n\n\n"+e.date+"\n"+e.resource}e.exports.queryStringToSign=queryStringToSign;function canonicalizeHeaders(e){var t=[],i=Object.keys(e);for(var n=0,a=i.length;n{let d;if(typeof t==="string"){d=normalizeUrlObject(a.parse(t));t={}}else if(t instanceof a.URL){d=normalizeUrlObject(a.parse(t.toString()));t={}}else{const[e,...i]=(t.path||"").split("?");const n=i.length>0?`?${i.join("?")}`:"";d=normalizeUrlObject({...t,pathname:e,search:n})}t={headers:{},method:"GET",cache:true,strictTtl:false,automaticFailover:false,...t,...urlObjectToRequestOptions(d)};t.headers=l(t.headers);const p=new n;const f=r(a.format(d),{stripWWW:false,removeTrailingSlash:false,stripAuthentication:false});const h=`${t.method}:${f}`;let m=false;let b=false;const g=t=>{b=true;let n=false;let a;const r=new Promise(e=>{a=(()=>{if(!n){n=true;e()}})});const l=e=>{if(m&&!t.forceRefresh){e.status=e.statusCode;const i=o.fromObject(m.cachePolicy).revalidatedPolicy(t,e);if(!i.modified){const t=i.policy.responseHeaders();e=new u(m.statusCode,t,m.body,m.url);e.cachePolicy=i.policy;e.fromCache=true}}if(!e.fromCache){e.cachePolicy=new o(t,e,t);e.fromCache=false}let a;if(t.cache&&e.cachePolicy.storable()){a=c(e);(async()=>{try{const i=s.buffer(e);await Promise.race([r,new Promise(t=>e.once("end",t))]);if(n){return}const a=await i;const o={cachePolicy:e.cachePolicy.toObject(),url:e.url,statusCode:e.fromCache?m.statusCode:e.statusCode,body:a};let u=t.strictTtl?e.cachePolicy.timeToLive():undefined;if(t.maxTtl){u=u?Math.min(u,t.maxTtl):t.maxTtl}await this.cache.set(h,o,u)}catch(e){p.emit("error",new CacheableRequest.CacheError(e))}})()}else if(t.cache&&m){(async()=>{try{await this.cache.delete(h)}catch(e){p.emit("error",new CacheableRequest.CacheError(e))}})()}p.emit("response",a||e);if(typeof i==="function"){i(a||e)}};try{const i=e(t,l);i.once("error",a);i.once("abort",a);p.emit("request",i)}catch(e){p.emit("error",new CacheableRequest.RequestError(e))}};(async()=>{const e=async e=>{await Promise.resolve();const t=e.cache?await this.cache.get(h):undefined;if(typeof t==="undefined"){return g(e)}const n=o.fromObject(t.cachePolicy);if(n.satisfiesWithoutRevalidation(e)&&!e.forceRefresh){const e=n.responseHeaders();const a=new u(t.statusCode,e,t.body,t.url);a.cachePolicy=n;a.fromCache=true;p.emit("response",a);if(typeof i==="function"){i(a)}}else{m=t;e.headers=n.revalidationHeaders(e);g(e)}};const n=e=>p.emit("error",new CacheableRequest.CacheError(e));this.cache.once("error",n);p.on("response",()=>this.cache.removeListener("error",n));try{await e(t)}catch(e){if(t.automaticFailover&&!b){g(t)}p.emit("error",new CacheableRequest.CacheError(e))}})();return p}}}function urlObjectToRequestOptions(e){const t={...e};t.path=`${e.pathname||"/"}${e.search||""}`;delete t.pathname;delete t.search;return t}function normalizeUrlObject(e){return{protocol:e.protocol,auth:e.auth,hostname:e.hostname||e.host||"localhost",port:e.port,pathname:e.pathname,search:e.search}}CacheableRequest.RequestError=class extends Error{constructor(e){super(e.message);this.name="RequestError";Object.assign(this,e)}};CacheableRequest.CacheError=class extends Error{constructor(e){super(e.message);this.name="CacheError";Object.assign(this,e)}};e.exports=CacheableRequest},function(e,t,i){"use strict";var n=i(945);var a=Object.prototype.toString;function resolveYamlPairs(e){if(e===null)return true;var t,i,n,r,s,o=e;s=new Array(o.length);for(t=0,i=o.length;t=i.length){t.set(this._buffers.shift(),n)}else{t.set(new Uint8Array(i.buffer,i.byteOffset,e),n);this._buffers[0]=i.slice(e)}e-=i.length}while(e>0);return t}startLoop(e){let t;this._loop=true;do{switch(this._state){case h:t=this.getInfo();break;case m:t=this.getPayloadLength16();break;case b:t=this.getPayloadLength64();break;case g:this.getMask();break;case y:t=this.getData(e);break;default:this._loop=false;return}}while(this._loop);e(t)}getInfo(){if(this._bufferedBytes<2){this._loop=false;return}const e=this.consume(2);if((e[0]&48)!==0){this._loop=false;return error(RangeError,"RSV2 and RSV3 must be clear",true,1002)}const t=(e[0]&64)===64;if(t&&!this._extensions[a.extensionName]){this._loop=false;return error(RangeError,"RSV1 must be clear",true,1002)}this._fin=(e[0]&128)===128;this._opcode=e[0]&15;this._payloadLength=e[1]&127;if(this._opcode===0){if(t){this._loop=false;return error(RangeError,"RSV1 must be clear",true,1002)}if(!this._fragmented){this._loop=false;return error(RangeError,"invalid opcode 0",true,1002)}this._opcode=this._fragmented}else if(this._opcode===1||this._opcode===2){if(this._fragmented){this._loop=false;return error(RangeError,`invalid opcode ${this._opcode}`,true,1002)}this._compressed=t}else if(this._opcode>7&&this._opcode<11){if(!this._fin){this._loop=false;return error(RangeError,"FIN must be set",true,1002)}if(t){this._loop=false;return error(RangeError,"RSV1 must be clear",true,1002)}if(this._payloadLength>125){this._loop=false;return error(RangeError,`invalid payload length ${this._payloadLength}`,true,1002)}}else{this._loop=false;return error(RangeError,`invalid opcode ${this._opcode}`,true,1002)}if(!this._fin&&!this._fragmented)this._fragmented=this._opcode;this._masked=(e[1]&128)===128;if(this._isServer){if(!this._masked){this._loop=false;return error(RangeError,"MASK must be set",true,1002)}}else if(this._masked){this._loop=false;return error(RangeError,"MASK must be clear",true,1002)}if(this._payloadLength===126)this._state=m;else if(this._payloadLength===127)this._state=b;else return this.haveLength()}getPayloadLength16(){if(this._bufferedBytes<2){this._loop=false;return}this._payloadLength=this.consume(2).readUInt16BE(0);return this.haveLength()}getPayloadLength64(){if(this._bufferedBytes<8){this._loop=false;return}const e=this.consume(8);const t=e.readUInt32BE(0);if(t>Math.pow(2,53-32)-1){this._loop=false;return error(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",false,1009)}this._payloadLength=t*Math.pow(2,32)+e.readUInt32BE(4);return this.haveLength()}haveLength(){if(this._payloadLength&&this._opcode<8){this._totalPayloadLength+=this._payloadLength;if(this._totalPayloadLength>this._maxPayload&&this._maxPayload>0){this._loop=false;return error(RangeError,"Max payload size exceeded",false,1009)}}if(this._masked)this._state=g;else this._state=y}getMask(){if(this._bufferedBytes<4){this._loop=false;return}this._mask=this.consume(4);this._state=y}getData(e){let t=s;if(this._payloadLength){if(this._bufferedBytes7)return this.controlMessage(t);if(this._compressed){this._state=S;this.decompress(t,e);return}if(t.length){this._messageLength=this._totalPayloadLength;this._fragments.push(t)}return this.dataMessage()}decompress(e,t){const i=this._extensions[a.extensionName];i.decompress(e,this._fin,(e,i)=>{if(e)return t(e);if(i.length){this._messageLength+=i.length;if(this._messageLength>this._maxPayload&&this._maxPayload>0){return t(error(RangeError,"Max payload size exceeded",false,1009))}this._fragments.push(i)}const n=this.dataMessage();if(n)return t(n);this.startLoop(t)})}dataMessage(){if(this._fin){const e=this._messageLength;const t=this._fragments;this._totalPayloadLength=0;this._messageLength=0;this._fragmented=0;this._fragments=[];if(this._opcode===2){let i;if(this._binaryType==="nodebuffer"){i=l(t,e)}else if(this._binaryType==="arraybuffer"){i=c(l(t,e))}else{i=t}this.emit("message",i)}else{const i=l(t,e);if(!f(i)){this._loop=false;return error(Error,"invalid UTF-8 sequence",true,1007)}this.emit("message",i.toString())}}this._state=h}controlMessage(e){if(this._opcode===8){this._loop=false;if(e.length===0){this.emit("conclude",1005,"");this.end()}else if(e.length===1){return error(RangeError,"invalid payload length 1",true,1002)}else{const t=e.readUInt16BE(0);if(!p(t)){return error(RangeError,`invalid status code ${t}`,true,1002)}const i=e.slice(2);if(!f(i)){return error(Error,"invalid UTF-8 sequence",true,1007)}this.emit("conclude",t,i.toString());this.end()}}else if(this._opcode===9){this.emit("ping",e)}else{this.emit("pong",e)}this._state=h}}e.exports=Receiver;function error(e,t,i,n){const a=new e(i?`Invalid WebSocket frame: ${t}`:t);Error.captureStackTrace(a,error);a[o]=n;return a}},function(e,t,i){"use strict";var n=i(855);e.exports=SchemaObject;function SchemaObject(e){n.copy(e,this)}},function(e,t,i){var n=i(872);var a=i(669);var r=i(887);var s=i(286).isError;var o=r.sprintf;e.exports=VError;VError.VError=VError;VError.SError=SError;VError.WError=WError;VError.MultiError=MultiError;function parseConstructorArguments(e){var t,i,a,r,u;n.object(e,"args");n.bool(e.strict,"args.strict");n.array(e.argv,"args.argv");t=e.argv;if(t.length===0){i={};a=[]}else if(s(t[0])){i={cause:t[0]};a=t.slice(1)}else if(typeof t[0]==="object"){i={};for(u in t[0]){i[u]=t[0][u]}a=t.slice(1)}else{n.string(t[0],"first argument to VError, SError, or WError "+"constructor must be a string, object, or Error");i={};a=t}n.object(i);if(!i.strict&&!e.strict){a=a.map(function(e){return e===null?"null":e===undefined?"undefined":e})}if(a.length===0){r=""}else{r=o.apply(null,a)}return{options:i,shortmessage:r}}function VError(){var e,t,i,a,r,o,u;e=Array.prototype.slice.call(arguments,0);if(!(this instanceof VError)){t=Object.create(VError.prototype);VError.apply(t,arguments);return t}i=parseConstructorArguments({argv:e,strict:false});if(i.options.name){n.string(i.options.name,'error\'s "name" must be a string');this.name=i.options.name}this.jse_shortmsg=i.shortmessage;o=i.shortmessage;a=i.options.cause;if(a){n.ok(s(a),"cause is not an Error");this.jse_cause=a;if(!i.options.skipCauseMessage){o+=": "+a.message}}this.jse_info={};if(i.options.info){for(u in i.options.info){this.jse_info[u]=i.options.info[u]}}this.message=o;Error.call(this,o);if(Error.captureStackTrace){r=i.options.constructorOpt||this.constructor;Error.captureStackTrace(this,r)}return this}a.inherits(VError,Error);VError.prototype.name="VError";VError.prototype.toString=function ve_toString(){var e=this.hasOwnProperty("name")&&this.name||this.constructor.name||this.constructor.prototype.name;if(this.message)e+=": "+this.message;return e};VError.prototype.cause=function ve_cause(){var e=VError.cause(this);return e===null?undefined:e};VError.cause=function(e){n.ok(s(e),"err must be an Error");return s(e.jse_cause)?e.jse_cause:null};VError.info=function(e){var t,i,a;n.ok(s(e),"err must be an Error");i=VError.cause(e);if(i!==null){t=VError.info(i)}else{t={}}if(typeof e.jse_info=="object"&&e.jse_info!==null){for(a in e.jse_info){t[a]=e.jse_info[a]}}return t};VError.findCauseByName=function(e,t){var i;n.ok(s(e),"err must be an Error");n.string(t,"name");n.ok(t.length>0,"name cannot be empty");for(i=e;i!==null;i=VError.cause(i)){n.ok(s(i));if(i.name==t){return i}}return null};VError.hasCauseWithName=function(e,t){return VError.findCauseByName(e,t)!==null};VError.fullStack=function(e){n.ok(s(e),"err must be an Error");var t=VError.cause(e);if(t){return e.stack+"\ncaused by: "+VError.fullStack(t)}return e.stack};VError.errorFromList=function(e){n.arrayOfObject(e,"errors");if(e.length===0){return null}e.forEach(function(e){n.ok(s(e))});if(e.length==1){return e[0]}return new MultiError(e)};VError.errorForEach=function(e,t){n.ok(s(e),"err must be an Error");n.func(t,"func");if(e instanceof MultiError){e.errors().forEach(function iterError(e){t(e)})}else{t(e)}};function SError(){var e,t,i,n;e=Array.prototype.slice.call(arguments,0);if(!(this instanceof SError)){t=Object.create(SError.prototype);SError.apply(t,arguments);return t}i=parseConstructorArguments({argv:e,strict:true});n=i.options;VError.call(this,n,"%s",i.shortmessage);return this}a.inherits(SError,VError);function MultiError(e){n.array(e,"list of errors");n.ok(e.length>0,"must be at least one error");this.ase_errors=e;VError.call(this,{cause:e[0]},"first of %d error%s",e.length,e.length==1?"":"s")}a.inherits(MultiError,VError);MultiError.prototype.name="MultiError";MultiError.prototype.errors=function me_errors(){return this.ase_errors.slice(0)};function WError(){var e,t,i,n;e=Array.prototype.slice.call(arguments,0);if(!(this instanceof WError)){t=Object.create(WError.prototype);WError.apply(t,e);return t}i=parseConstructorArguments({argv:e,strict:false});n=i.options;n["skipCauseMessage"]=true;VError.call(this,n,"%s",i.shortmessage);return this}a.inherits(WError,VError);WError.prototype.name="WError";WError.prototype.toString=function we_toString(){var e=this.hasOwnProperty("name")&&this.name||this.constructor.name||this.constructor.prototype.name;if(this.message)e+=": "+this.message;if(this.jse_cause&&this.jse_cause.message)e+="; caused by "+this.jse_cause.toString();return e};WError.prototype.cause=function we_cause(e){if(s(e))this.jse_cause=e;return this.jse_cause}},function(e,t,i){"use strict";const n=i(631);class TimeoutError extends Error{constructor(e,t){super(`Timeout awaiting '${t}' for ${e}ms`);this.name="TimeoutError";this.code="ETIMEDOUT";this.event=t}}const a=Symbol("reentry");const r=()=>{};e.exports=((e,t,i)=>{if(e[a]){return}e[a]=true;let s=false;const o=(e,t,...i)=>{if(s){return r}let n;const a=setTimeout(()=>{n=setImmediate(t,e,...i);if(n.unref){n.unref()}},e);if(a.unref){a.unref()}const o=()=>{clearTimeout(a);clearImmediate(n)};d.push(o);return o};const{host:u,hostname:l}=i;const c=(t,i)=>{e.emit("error",new TimeoutError(t,i));e.once("error",()=>{});e.abort()};const d=[];const p=()=>{s=true;d.forEach(e=>e())};e.once("error",p);e.once("response",e=>{e.once("end",p)});if(t.request!==undefined){o(t.request,c,"request")}if(t.socket!==undefined){const i=()=>{c(t.socket,"socket")};e.setTimeout(t.socket,i);d.push(()=>e.removeListener("timeout",i))}if(t.lookup!==undefined&&!e.socketPath&&!n.isIP(l||u)){e.once("socket",e=>{if(e.connecting){const i=o(t.lookup,c,"lookup");e.once("lookup",i)}})}if(t.connect!==undefined){e.once("socket",i=>{if(i.connecting){const a=()=>o(t.connect,c,"connect");if(e.socketPath||n.isIP(l||u)){i.once("connect",a())}else{i.once("lookup",e=>{if(e===null){i.once("connect",a())}})}}})}if(t.secureConnect!==undefined&&i.protocol==="https:"){e.once("socket",e=>{if(e.connecting){e.once("connect",()=>{const i=o(t.secureConnect,c,"secureConnect");e.once("secureConnect",i)})}})}if(t.send!==undefined){e.once("socket",i=>{const n=()=>o(t.send,c,"send");if(i.connecting){i.once("connect",()=>{e.once("upload-complete",n())})}else{e.once("upload-complete",n())}})}if(t.response!==undefined){e.once("upload-complete",()=>{const i=o(t.response,c,"response");e.once("response",i)})}});e.exports.TimeoutError=TimeoutError},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=i(818);const a=(e,t)=>{let i;if(typeof t==="function"){const e=t;i={connect:e}}else{i=t}const a=typeof i.connect==="function";const r=typeof i.secureConnect==="function";const s=typeof i.close==="function";const o=()=>{if(a){i.connect()}if(e instanceof n.TLSSocket&&r){if(e.authorized){i.secureConnect()}else if(!e.authorizationError){e.once("secureConnect",i.secureConnect)}}if(s){e.once("close",i.close)}};if(e.writable&&!e.connecting){o()}else if(e.connecting){e.once("connect",o)}else if(e.destroyed&&s){i.close(e._hadError)}};t.default=a;e.exports=a;e.exports.default=a},function(e,t,i){var n=i(242).BigInteger;var a=i(729).ECCurveFp;function X9ECParameters(e,t,i,n){this.curve=e;this.g=t;this.n=i;this.h=n}function x9getCurve(){return this.curve}function x9getG(){return this.g}function x9getN(){return this.n}function x9getH(){return this.h}X9ECParameters.prototype.getCurve=x9getCurve;X9ECParameters.prototype.getG=x9getG;X9ECParameters.prototype.getN=x9getN;X9ECParameters.prototype.getH=x9getH;function fromHex(e){return new n(e,16)}function secp128r1(){var e=fromHex("FFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFF");var t=fromHex("FFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFC");var i=fromHex("E87579C11079F43DD824993C2CEE5ED3");var r=fromHex("FFFFFFFE0000000075A30D1B9038A115");var s=n.ONE;var o=new a(e,t,i);var u=o.decodePointHex("04"+"161FF7528B899B2D0C28607CA52C5B86"+"CF5AC8395BAFEB13C02DA292DDED7A83");return new X9ECParameters(o,u,r,s)}function secp160k1(){var e=fromHex("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFAC73");var t=n.ZERO;var i=fromHex("7");var r=fromHex("0100000000000000000001B8FA16DFAB9ACA16B6B3");var s=n.ONE;var o=new a(e,t,i);var u=o.decodePointHex("04"+"3B4C382CE37AA192A4019E763036F4F5DD4D7EBB"+"938CF935318FDCED6BC28286531733C3F03C4FEE");return new X9ECParameters(o,u,r,s)}function secp160r1(){var e=fromHex("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7FFFFFFF");var t=fromHex("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7FFFFFFC");var i=fromHex("1C97BEFC54BD7A8B65ACF89F81D4D4ADC565FA45");var r=fromHex("0100000000000000000001F4C8F927AED3CA752257");var s=n.ONE;var o=new a(e,t,i);var u=o.decodePointHex("04"+"4A96B5688EF573284664698968C38BB913CBFC82"+"23A628553168947D59DCC912042351377AC5FB32");return new X9ECParameters(o,u,r,s)}function secp192k1(){var e=fromHex("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFEE37");var t=n.ZERO;var i=fromHex("3");var r=fromHex("FFFFFFFFFFFFFFFFFFFFFFFE26F2FC170F69466A74DEFD8D");var s=n.ONE;var o=new a(e,t,i);var u=o.decodePointHex("04"+"DB4FF10EC057E9AE26B07D0280B7F4341DA5D1B1EAE06C7D"+"9B2F2F6D9C5628A7844163D015BE86344082AA88D95E2F9D");return new X9ECParameters(o,u,r,s)}function secp192r1(){var e=fromHex("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFF");var t=fromHex("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFC");var i=fromHex("64210519E59C80E70FA7E9AB72243049FEB8DEECC146B9B1");var r=fromHex("FFFFFFFFFFFFFFFFFFFFFFFF99DEF836146BC9B1B4D22831");var s=n.ONE;var o=new a(e,t,i);var u=o.decodePointHex("04"+"188DA80EB03090F67CBF20EB43A18800F4FF0AFD82FF1012"+"07192B95FFC8DA78631011ED6B24CDD573F977A11E794811");return new X9ECParameters(o,u,r,s)}function secp224r1(){var e=fromHex("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000000000000000000001");var t=fromHex("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFE");var i=fromHex("B4050A850C04B3ABF54132565044B0B7D7BFD8BA270B39432355FFB4");var r=fromHex("FFFFFFFFFFFFFFFFFFFFFFFFFFFF16A2E0B8F03E13DD29455C5C2A3D");var s=n.ONE;var o=new a(e,t,i);var u=o.decodePointHex("04"+"B70E0CBD6BB4BF7F321390B94A03C1D356C21122343280D6115C1D21"+"BD376388B5F723FB4C22DFE6CD4375A05A07476444D5819985007E34");return new X9ECParameters(o,u,r,s)}function secp256r1(){var e=fromHex("FFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFF");var t=fromHex("FFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFC");var i=fromHex("5AC635D8AA3A93E7B3EBBD55769886BC651D06B0CC53B0F63BCE3C3E27D2604B");var r=fromHex("FFFFFFFF00000000FFFFFFFFFFFFFFFFBCE6FAADA7179E84F3B9CAC2FC632551");var s=n.ONE;var o=new a(e,t,i);var u=o.decodePointHex("04"+"6B17D1F2E12C4247F8BCE6E563A440F277037D812DEB33A0F4A13945D898C296"+"4FE342E2FE1A7F9B8EE7EB4A7C0F9E162BCE33576B315ECECBB6406837BF51F5");return new X9ECParameters(o,u,r,s)}function getSECCurveByName(e){if(e=="secp128r1")return secp128r1();if(e=="secp160k1")return secp160k1();if(e=="secp160r1")return secp160r1();if(e=="secp192k1")return secp192k1();if(e=="secp192r1")return secp192r1();if(e=="secp224r1")return secp224r1();if(e=="secp256r1")return secp256r1();return null}e.exports={secp128r1:secp128r1,secp160k1:secp160k1,secp160r1:secp160r1,secp192k1:secp192k1,secp192r1:secp192r1,secp224r1:secp224r1,secp256r1:secp256r1}},function(e,t,i){e.exports={der:i(94),pem:i(265)}},,function(e,t,i){const n=i(923);const a=i(651);const r=i(934);const s=i(18);const o=i(994);const u=i(798);const l=i(563);e.exports={EC_CURVES:n,ECDH_DERIVE_LENGTHS:l,IVLENGTHS:a,JWA:r,JWK:s,KEYLENGTHS:o,OKP_CURVES:u}},,function(e,t,i){"use strict";var n=i(373);function randomString(e){var t=(e+1)*6;var i=n.randomBytes(Math.ceil(t/8));var a=i.toString("base64").replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"");return a.slice(0,e)}function calculatePayloadHash(e,t,i){var a=n.createHash(t);a.update("hawk.1.payload\n");a.update((i?i.split(";")[0].trim().toLowerCase():"")+"\n");a.update(e||"");a.update("\n");return a.digest("base64")}t.calculateMac=function(e,t){var i="hawk.1.header\n"+t.ts+"\n"+t.nonce+"\n"+(t.method||"").toUpperCase()+"\n"+t.resource+"\n"+t.host.toLowerCase()+"\n"+t.port+"\n"+(t.hash||"")+"\n";if(t.ext){i=i+t.ext.replace("\\","\\\\").replace("\n","\\n")}i=i+"\n";if(t.app){i=i+t.app+"\n"+(t.dlg||"")+"\n"}var a=n.createHmac(e.algorithm,e.key).update(i);var r=a.digest("base64");return r};t.header=function(e,i,n){var a=n.timestamp||Math.floor((Date.now()+(n.localtimeOffsetMsec||0))/1e3);var r=n.credentials;if(!r||!r.id||!r.key||!r.algorithm){return""}if(["sha1","sha256"].indexOf(r.algorithm)===-1){return""}var s={ts:a,nonce:n.nonce||randomString(6),method:i,resource:e.pathname+(e.search||""),host:e.hostname,port:e.port||(e.protocol==="http:"?80:443),hash:n.hash,ext:n.ext,app:n.app,dlg:n.dlg};if(!s.hash&&(n.payload||n.payload==="")){s.hash=calculatePayloadHash(n.payload,r.algorithm,n.contentType)}var o=t.calculateMac(r,s);var u=s.ext!==null&&s.ext!==undefined&&s.ext!=="";var l='Hawk id="'+r.id+'", ts="'+s.ts+'", nonce="'+s.nonce+(s.hash?'", hash="'+s.hash:"")+(u?'", ext="'+s.ext.replace(/\\/g,"\\\\").replace(/"/g,'\\"'):"")+'", mac="'+o+'"';if(s.app){l=l+', app="'+s.app+(s.dlg?'", dlg="'+s.dlg:"")+'"'}return l}},function(e,t,i){const{createSign:n,createVerify:a}=i(373);const{KEYOBJECT:r}=i(771);const s=i(165);const{asInput:o}=i(40);const u=(e,{[r]:t},i)=>{return n(e).update(i).sign(o(t,false))};const l=(e,{[r]:t},i,n)=>{return a(e).update(i).verify(o(t,true),n)};const c={RS256:0,RS384:624,RS512:752};e.exports=((e,t)=>{["RS256","RS384","RS512"].forEach(i=>{const n=s(i);e.sign.set(i,u.bind(undefined,n));e.verify.set(i,l.bind(undefined,n));t.RSA.sign[i]=(e=>e.private&&t.RSA.verify[i](e));t.RSA.verify[i]=(e=>(e.use==="sig"||e.use===undefined)&&e.length>=c[i])})})},function(e,t,i){e.exports=Certificate;var n=i(872);var a=i(215).Buffer;var r=i(98);var s=i(373);var o=i(400);var u=i(575);var l=i(753);var c=i(669);var d=i(270);var p=i(852);var f=i(502);var h=i(378);var m={};m["openssh"]=i(893);m["x509"]=i(866);m["pem"]=i(680);var b=l.CertificateParseError;var g=l.InvalidAlgorithmError;function Certificate(e){n.object(e,"options");n.arrayOfObject(e.subjects,"options.subjects");d.assertCompatible(e.subjects[0],h,[1,0],"options.subjects");d.assertCompatible(e.subjectKey,p,[1,0],"options.subjectKey");d.assertCompatible(e.issuer,h,[1,0],"options.issuer");if(e.issuerKey!==undefined){d.assertCompatible(e.issuerKey,p,[1,0],"options.issuerKey")}n.object(e.signatures,"options.signatures");n.buffer(e.serial,"options.serial");n.date(e.validFrom,"options.validFrom");n.date(e.validUntil,"optons.validUntil");n.optionalArrayOfString(e.purposes,"options.purposes");this._hashCache={};this.subjects=e.subjects;this.issuer=e.issuer;this.subjectKey=e.subjectKey;this.issuerKey=e.issuerKey;this.signatures=e.signatures;this.serial=e.serial;this.validFrom=e.validFrom;this.validUntil=e.validUntil;this.purposes=e.purposes}Certificate.formats=m;Certificate.prototype.toBuffer=function(e,t){if(e===undefined)e="x509";n.string(e,"format");n.object(m[e],"formats[format]");n.optionalObject(t,"options");return m[e].write(this,t)};Certificate.prototype.toString=function(e,t){if(e===undefined)e="pem";return this.toBuffer(e,t).toString()};Certificate.prototype.fingerprint=function(e){if(e===undefined)e="sha256";n.string(e,"algorithm");var t={type:"certificate",hash:this.hash(e),algorithm:e};return new o(t)};Certificate.prototype.hash=function(e){n.string(e,"algorithm");e=e.toLowerCase();if(r.hashAlgs[e]===undefined)throw new g(e);if(this._hashCache[e])return this._hashCache[e];var t=s.createHash(e).update(this.toBuffer("x509")).digest();this._hashCache[e]=t;return t};Certificate.prototype.isExpired=function(e){if(e===undefined)e=new Date;return!(e.getTime()>=this.validFrom.getTime()&&e.getTime()0&&this.issuer.purposes.indexOf("ca")===-1){return false}return this.isSignedByKey(e.subjectKey)};Certificate.prototype.getExtension=function(e){n.string(e,"keyOrOid");var t=this.getExtensions().filter(function(t){if(t.format==="x509")return t.oid===e;if(t.format==="openssh")return t.name===e;return false})[0];return t};Certificate.prototype.getExtensions=function(){var e=[];var t=this.signatures.x509;if(t&&t.extras&&t.extras.exts){t.extras.exts.forEach(function(t){t.format="x509";e.push(t)})}var i=this.signatures.openssh;if(i&&i.exts){i.exts.forEach(function(t){t.format="openssh";e.push(t)})}return e};Certificate.prototype.isSignedByKey=function(e){d.assertCompatible(e,p,[1,2],"issuerKey");if(this.issuerKey!==undefined){return this.issuerKey.fingerprint("sha512").matches(e)}var t=Object.keys(this.signatures)[0];var i=m[t].verify(this,e);if(i)this.issuerKey=e;return i};Certificate.prototype.signWith=function(e){d.assertCompatible(e,f,[1,2],"key");var t=Object.keys(m);var i=false;for(var n=0;n0){if(c.indexOf("serverAuth")===-1)c.push("serverAuth")}if(m.length>0){if(c.indexOf("clientAuth")===-1)c.push("clientAuth")}if(m.length>0||p.length>0){if(c.indexOf("keyAgreement")===-1)c.push("keyAgreement");if(t.type==="rsa"&&c.indexOf("encryption")===-1)c.push("encryption")}}var b=new Certificate({subjects:r,issuer:r[0],subjectKey:t.toPublic(),issuerKey:t.toPublic(),signatures:{},serial:l,validFrom:s,validUntil:o,purposes:c});b.signWith(t);return b};Certificate.create=function(e,t,i,r,s){var o;if(Array.isArray(e))o=e;else o=[e];n.arrayOfObject(o);o.forEach(function(e){d.assertCompatible(e,h,[1,0],"subject")});d.assertCompatible(t,p,[1,0],"key");if(f.isPrivateKey(t))t=t.toPublic();d.assertCompatible(i,h,[1,0],"issuer");d.assertCompatible(r,f,[1,2],"issuer key");n.optionalObject(s,"options");if(s===undefined)s={};n.optionalObject(s.validFrom,"options.validFrom");n.optionalObject(s.validUntil,"options.validUntil");var u=s.validFrom;var l=s.validUntil;if(u===undefined)u=new Date;if(l===undefined){n.optionalNumber(s.lifetime,"options.lifetime");var c=s.lifetime;if(c===undefined)c=10*365*24*3600;l=new Date;l.setTime(l.getTime()+c*1e3)}n.optionalBuffer(s.serial,"options.serial");var m=s.serial;if(m===undefined)m=a.from("0000000000000001","hex");var b=s.purposes;if(b===undefined)b=[];if(b.indexOf("signature")===-1)b.push("signature");if(s.ca===true){if(b.indexOf("ca")===-1)b.push("ca");if(b.indexOf("crl")===-1)b.push("crl")}var g=o.filter(function(e){return e.type==="host"});var y=o.filter(function(e){return e.type==="user"});if(g.length>0){if(b.indexOf("serverAuth")===-1)b.push("serverAuth")}if(y.length>0){if(b.indexOf("clientAuth")===-1)b.push("clientAuth")}if(y.length>0||g.length>0){if(b.indexOf("keyAgreement")===-1)b.push("keyAgreement");if(t.type==="rsa"&&b.indexOf("encryption")===-1)b.push("encryption")}var S=new Certificate({subjects:o,issuer:i,subjectKey:t,issuerKey:r.toPublic(),signatures:{},serial:m,validFrom:u,validUntil:l,purposes:b});S.signWith(r);return S};Certificate.parse=function(e,t,i){if(typeof e!=="string")n.buffer(e,"data");if(t===undefined)t="auto";n.string(t,"format");if(typeof i==="string")i={filename:i};n.optionalObject(i,"options");if(i===undefined)i={};n.optionalString(i.filename,"options.filename");if(i.filename===undefined)i.filename="(unnamed)";n.object(m[t],"formats[format]");try{var a=m[t].read(e,i);return a}catch(e){throw new b(i.filename,t,e)}};Certificate.isCertificate=function(e,t){return d.isCompatible(e,Certificate,t)};Certificate.prototype._sshpkApiVersion=[1,1];Certificate._oldVersionDetect=function(e){return[1,0]}},function(e){"use strict";e.exports=function generate_validate(e,t,i){var n="";var a=e.schema.$async===true,r=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),s=e.self._getId(e.schema);if(e.opts.strictKeywords){var o=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(o){var u="unknown keyword: "+o;if(e.opts.strictKeywords==="log")e.logger.warn(u);else throw new Error(u)}}if(e.isTop){n+=" var validate = ";if(a){e.async=true;n+="async "}n+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ";if(s&&(e.opts.sourceCode||e.opts.processCode)){n+=" "+("/*# sourceURL="+s+" */")+" "}}if(typeof e.schema=="boolean"||!(r||e.schema.$ref)){var t="false schema";var l=e.level;var c=e.dataLevel;var d=e.schema[t];var p=e.schemaPath+e.util.getProperty(t);var f=e.errSchemaPath+"/"+t;var h=!e.opts.allErrors;var m;var b="data"+(c||"");var g="valid"+l;if(e.schema===false){if(e.isTop){h=true}else{n+=" var "+g+" = false; "}var y=y||[];y.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+(m||"false schema")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(f)+" , params: {} ";if(e.opts.messages!==false){n+=" , message: 'boolean schema is false' "}if(e.opts.verbose){n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+b+" "}n+=" } "}else{n+=" {} "}var S=n;n=y.pop();if(!e.compositeRule&&h){if(e.async){n+=" throw new ValidationError(["+S+"]); "}else{n+=" validate.errors = ["+S+"]; return false; "}}else{n+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}}else{if(e.isTop){if(a){n+=" return data; "}else{n+=" validate.errors = null; return true; "}}else{n+=" var "+g+" = true; "}}if(e.isTop){n+=" }; return validate; "}return n}if(e.isTop){var w=e.isTop,l=e.level=0,c=e.dataLevel=0,b="data";e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema));e.baseId=e.baseId||e.rootId;delete e.isTop;e.dataPathArr=[undefined];if(e.schema.default!==undefined&&e.opts.useDefaults&&e.opts.strictDefaults){var v="default is ignored in the schema root";if(e.opts.strictDefaults==="log")e.logger.warn(v);else throw new Error(v)}n+=" var vErrors = null; ";n+=" var errors = 0; ";n+=" if (rootData === undefined) rootData = data; "}else{var l=e.level,c=e.dataLevel,b="data"+(c||"");if(s)e.baseId=e.resolve.url(e.baseId,s);if(a&&!e.async)throw new Error("async schema in sync schema");n+=" var errs_"+l+" = errors;"}var g="valid"+l,h=!e.opts.allErrors,z="",j="";var m;var O=e.schema.type,k=Array.isArray(O);if(O&&e.opts.nullable&&e.schema.nullable===true){if(k){if(O.indexOf("null")==-1)O=O.concat("null")}else if(O!="null"){O=[O,"null"];k=true}}if(k&&O.length==1){O=O[0];k=false}if(e.schema.$ref&&r){if(e.opts.extendRefs=="fail"){throw new Error('$ref: validation keywords used in schema at path "'+e.errSchemaPath+'" (see option extendRefs)')}else if(e.opts.extendRefs!==true){r=false;e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"')}}if(e.schema.$comment&&e.opts.$comment){n+=" "+e.RULES.all.$comment.code(e,"$comment")}if(O){if(e.opts.coerceTypes){var C=e.util.coerceToTypes(e.opts.coerceTypes,O)}var T=e.RULES.types[O];if(C||k||T===true||T&&!$shouldUseGroup(T)){var p=e.schemaPath+".type",f=e.errSchemaPath+"/type";var p=e.schemaPath+".type",f=e.errSchemaPath+"/type",R=k?"checkDataTypes":"checkDataType";n+=" if ("+e.util[R](O,b,e.opts.strictNumbers,true)+") { ";if(C){var E="dataType"+l,A="coerced"+l;n+=" var "+E+" = typeof "+b+"; var "+A+" = undefined; ";if(e.opts.coerceTypes=="array"){n+=" if ("+E+" == 'object' && Array.isArray("+b+") && "+b+".length == 1) { "+b+" = "+b+"[0]; "+E+" = typeof "+b+"; if ("+e.util.checkDataType(e.schema.type,b,e.opts.strictNumbers)+") "+A+" = "+b+"; } "}n+=" if ("+A+" !== undefined) ; ";var x=C;if(x){var N,V=-1,P=x.length-1;while(V{const i=n(e,t);return i&&i.prerelease.length?i.prerelease:null};e.exports=a},,,function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=i(414);function loadYaml(e,t){return n.safeLoad(e,t)}t.loadYaml=loadYaml;function loadAllYaml(e,t){return n.safeLoadAll(e,undefined,t)}t.loadAllYaml=loadAllYaml;function dumpYaml(e,t){return n.safeDump(e,t)}t.dumpYaml=dumpYaml},function(e,t,i){e.exports=i(512)},function(e,t,i){const{inspect:n}=i(669);const a=i(849);class EmbeddedJWK extends a{constructor(){super({type:"embedded"});Object.defineProperties(this,{kid:{value:undefined},kty:{value:undefined},thumbprint:{value:undefined},toJWK:{value:undefined},toPEM:{value:undefined}})}[n.custom](){return"Embedded.JWK {}"}algorithms(){return new Set}}e.exports=new EmbeddedJWK},,function(e,t,i){const n=i(274);let a=i(918);const{JWEInvalid:r}=i(466);a=a.bind(undefined,r);const s=(e,[t])=>{return`${e.protected}.${t.encrypted_key}.${e.iv}.${e.ciphertext}.${e.tag}`};s.validate=((e,t,i,{0:{header:n},length:s})=>{if(s!==1||i||t||n){throw new r("JWE Compact Serialization doesn't support multiple recipients, JWE unprotected headers or AAD")}a(e,t,e?e.crit:undefined)});const o=(e,[t])=>{const{header:i,encrypted_key:n}=t;return{...e.protected?{protected:e.protected}:undefined,...e.unprotected?{unprotected:e.unprotected}:undefined,...i?{header:i}:undefined,...n?{encrypted_key:n}:undefined,...e.aad?{aad:e.aad}:undefined,iv:e.iv,ciphertext:e.ciphertext,tag:e.tag}};o.validate=((e,t,i,{0:{header:n},length:s})=>{if(s!==1){throw new r("Flattened JWE JSON Serialization doesn't support multiple recipients")}a(e,{...t,...n},e?e.crit:undefined)});const u=(e,t)=>{const i={...e.protected?{protected:e.protected}:undefined,...e.unprotected?{unprotected:e.unprotected}:undefined,recipients:t.map(({header:e,encrypted_key:t,generatedHeader:i})=>{if(!e&&!t&&!i){return false}return{...e||i?{header:{...e,...i}}:undefined,...t?{encrypted_key:t}:undefined}}).filter(Boolean),...e.aad?{aad:e.aad}:undefined,iv:e.iv,ciphertext:e.ciphertext,tag:e.tag};if(!i.recipients.length){delete i.recipients}return i};u.validate=((e,t,i,n)=>{n.forEach(({header:i})=>{a(e,{...i,...t},e?e.crit:undefined)})});const l=e=>{return n(e)&&typeof e.ciphertext==="string"&&typeof e.iv==="string"&&typeof e.tag==="string"&&(e.unprotected===undefined||n(e.unprotected))&&(e.protected===undefined||typeof e.protected==="string")&&(e.aad===undefined||typeof e.aad==="string")};const c=e=>{return(e.encrypted_key===undefined||typeof e.encrypted_key==="string")&&(e.header===undefined||n(e.header))};const d=e=>{return n(e)&&typeof e.encrypted_key==="string"&&(e.header===undefined||n(e.header))};const p=e=>{if(Array.isArray(e.recipients)&&e.recipients.every(d)){return true}return false};const f=e=>{if(typeof e==="string"&&e.split(".").length===5){return"compact"}if(l(e)){if(p(e)){return"general"}if(c(e)){return"flattened"}}throw new r("JWE malformed or invalid serialization")};e.exports={compact:s,flattened:o,general:u,detect:f}},function(e,t,i){const{MAX_SAFE_COMPONENT_LENGTH:n}=i(181);const a=i(548);t=e.exports={};const r=t.re=[];const s=t.src=[];const o=t.t={};let u=0;const l=(e,t,i)=>{const n=u++;a(n,t);o[e]=n;s[n]=t;r[n]=new RegExp(t,i?"g":undefined)};l("NUMERICIDENTIFIER","0|[1-9]\\d*");l("NUMERICIDENTIFIERLOOSE","[0-9]+");l("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");l("MAINVERSION",`(${s[o.NUMERICIDENTIFIER]})\\.`+`(${s[o.NUMERICIDENTIFIER]})\\.`+`(${s[o.NUMERICIDENTIFIER]})`);l("MAINVERSIONLOOSE",`(${s[o.NUMERICIDENTIFIERLOOSE]})\\.`+`(${s[o.NUMERICIDENTIFIERLOOSE]})\\.`+`(${s[o.NUMERICIDENTIFIERLOOSE]})`);l("PRERELEASEIDENTIFIER",`(?:${s[o.NUMERICIDENTIFIER]}|${s[o.NONNUMERICIDENTIFIER]})`);l("PRERELEASEIDENTIFIERLOOSE",`(?:${s[o.NUMERICIDENTIFIERLOOSE]}|${s[o.NONNUMERICIDENTIFIER]})`);l("PRERELEASE",`(?:-(${s[o.PRERELEASEIDENTIFIER]}(?:\\.${s[o.PRERELEASEIDENTIFIER]})*))`);l("PRERELEASELOOSE",`(?:-?(${s[o.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${s[o.PRERELEASEIDENTIFIERLOOSE]})*))`);l("BUILDIDENTIFIER","[0-9A-Za-z-]+");l("BUILD",`(?:\\+(${s[o.BUILDIDENTIFIER]}(?:\\.${s[o.BUILDIDENTIFIER]})*))`);l("FULLPLAIN",`v?${s[o.MAINVERSION]}${s[o.PRERELEASE]}?${s[o.BUILD]}?`);l("FULL",`^${s[o.FULLPLAIN]}$`);l("LOOSEPLAIN",`[v=\\s]*${s[o.MAINVERSIONLOOSE]}${s[o.PRERELEASELOOSE]}?${s[o.BUILD]}?`);l("LOOSE",`^${s[o.LOOSEPLAIN]}$`);l("GTLT","((?:<|>)?=?)");l("XRANGEIDENTIFIERLOOSE",`${s[o.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);l("XRANGEIDENTIFIER",`${s[o.NUMERICIDENTIFIER]}|x|X|\\*`);l("XRANGEPLAIN",`[v=\\s]*(${s[o.XRANGEIDENTIFIER]})`+`(?:\\.(${s[o.XRANGEIDENTIFIER]})`+`(?:\\.(${s[o.XRANGEIDENTIFIER]})`+`(?:${s[o.PRERELEASE]})?${s[o.BUILD]}?`+`)?)?`);l("XRANGEPLAINLOOSE",`[v=\\s]*(${s[o.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${s[o.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${s[o.XRANGEIDENTIFIERLOOSE]})`+`(?:${s[o.PRERELEASELOOSE]})?${s[o.BUILD]}?`+`)?)?`);l("XRANGE",`^${s[o.GTLT]}\\s*${s[o.XRANGEPLAIN]}$`);l("XRANGELOOSE",`^${s[o.GTLT]}\\s*${s[o.XRANGEPLAINLOOSE]}$`);l("COERCE",`${"(^|[^\\d])"+"(\\d{1,"}${n}})`+`(?:\\.(\\d{1,${n}}))?`+`(?:\\.(\\d{1,${n}}))?`+`(?:$|[^\\d])`);l("COERCERTL",s[o.COERCE],true);l("LONETILDE","(?:~>?)");l("TILDETRIM",`(\\s*)${s[o.LONETILDE]}\\s+`,true);t.tildeTrimReplace="$1~";l("TILDE",`^${s[o.LONETILDE]}${s[o.XRANGEPLAIN]}$`);l("TILDELOOSE",`^${s[o.LONETILDE]}${s[o.XRANGEPLAINLOOSE]}$`);l("LONECARET","(?:\\^)");l("CARETTRIM",`(\\s*)${s[o.LONECARET]}\\s+`,true);t.caretTrimReplace="$1^";l("CARET",`^${s[o.LONECARET]}${s[o.XRANGEPLAIN]}$`);l("CARETLOOSE",`^${s[o.LONECARET]}${s[o.XRANGEPLAINLOOSE]}$`);l("COMPARATORLOOSE",`^${s[o.GTLT]}\\s*(${s[o.LOOSEPLAIN]})$|^$`);l("COMPARATOR",`^${s[o.GTLT]}\\s*(${s[o.FULLPLAIN]})$|^$`);l("COMPARATORTRIM",`(\\s*)${s[o.GTLT]}\\s*(${s[o.LOOSEPLAIN]}|${s[o.XRANGEPLAIN]})`,true);t.comparatorTrimReplace="$1$2$3";l("HYPHENRANGE",`^\\s*(${s[o.XRANGEPLAIN]})`+`\\s+-\\s+`+`(${s[o.XRANGEPLAIN]})`+`\\s*$`);l("HYPHENRANGELOOSE",`^\\s*(${s[o.XRANGEPLAINLOOSE]})`+`\\s+-\\s+`+`(${s[o.XRANGEPLAINLOOSE]})`+`\\s*$`);l("STAR","(<|>)?=?\\s*\\*");l("GTE0","^\\s*>=\\s*0.0.0\\s*$");l("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")},,function(e,t,i){const n=i(510);const a=i(372);const r=(e,t,i,a,r,s)=>{return new n(t,a,r,s).recipient(i).encrypt(e)};e.exports.Encrypt=n;e.exports.encrypt=r.bind(undefined,"compact");e.exports.encrypt.flattened=r.bind(undefined,"flattened");e.exports.encrypt.general=r.bind(undefined,"general");e.exports.decrypt=a},,,function(e,t,i){const{createHmac:n}=i(373);const{KEYOBJECT:a}=i(771);const r=i(355);const s=i(165);const{asInput:o}=i(40);const u=(e,t,{[a]:i},r)=>{const s=n(t,o(i,false));s.update(r);return s.digest()};const l=(e,t,i,n,a)=>{const s=u(e,t,i,n);const o=a;return r(o,s)};e.exports=((e,t)=>{["HS256","HS384","HS512"].forEach(i=>{const n=s(i);e.sign.set(i,u.bind(undefined,i,n));e.verify.set(i,l.bind(undefined,i,n));t.oct.sign[i]=t.oct.verify[i]=(e=>e.use==="sig"||e.use===undefined)})})},function(e,t,i){e.exports={read:read,write:write};var n=i(872);var a=i(215).Buffer;var r=i(852);var s=i(502);var o=i(270);var u=i(940);var l=i(532);var c={"rsa-sha1":5,"rsa-sha256":8,"rsa-sha512":10,"ecdsa-p256-sha256":13,"ecdsa-p384-sha384":14};var d={};Object.keys(c).forEach(function(e){d[c[e]]=e.toUpperCase()});function read(e,t){if(typeof e!=="string"){n.buffer(e,"buf");e=e.toString("ascii")}var i=e.split("\n");if(i[0].match(/^Private-key-format\: v1/)){var a=i[1].split(" ");var r=parseInt(a[1],10);var s=a[2];if(!d[r])throw new Error("Unsupported algorithm: "+s);return readDNSSECPrivateKey(r,i.slice(2))}var o=0;while(i[o].match(/^\;/))o++;if((i[o].match(/\. IN KEY /)||i[o].match(/\. IN DNSKEY /))&&i[o+1].length===0){return readRFC3110(i[o])}throw new Error("Cannot parse dnssec key")}function readRFC3110(e){var t=e.split(" ");var i=parseInt(t[5],10);if(!d[i])throw new Error("Unsupported algorithm: "+i);var n=t.slice(6,t.length).join();var s=a.from(n,"base64");if(d[i].match(/^RSA-/)){var u=s.readUInt8(0);if(u!=3&&u!=1)throw new Error("Cannot parse dnssec key: "+"unsupported exponent length");var l=s.slice(1,u+1);l=o.mpNormalize(l);var c=s.slice(1+u);c=o.mpNormalize(c);var p={type:"rsa",parts:[]};p.parts.push({name:"e",data:l});p.parts.push({name:"n",data:c});return new r(p)}if(d[i]==="ECDSA-P384-SHA384"||d[i]==="ECDSA-P256-SHA256"){var f="nistp384";var h=384;if(d[i].match(/^ECDSA-P256-SHA256/)){f="nistp256";h=256}var m={type:"ecdsa",curve:f,size:h,parts:[{name:"curve",data:a.from(f)},{name:"Q",data:o.ecNormalize(s)}]};return new r(m)}throw new Error("Unsupported algorithm: "+d[i])}function elementToBuf(e){return a.from(e.split(" ")[1],"base64")}function readDNSSECRSAPrivateKey(e){var t={};e.forEach(function(e){if(e.split(" ")[0]==="Modulus:")t["n"]=elementToBuf(e);else if(e.split(" ")[0]==="PublicExponent:")t["e"]=elementToBuf(e);else if(e.split(" ")[0]==="PrivateExponent:")t["d"]=elementToBuf(e);else if(e.split(" ")[0]==="Prime1:")t["p"]=elementToBuf(e);else if(e.split(" ")[0]==="Prime2:")t["q"]=elementToBuf(e);else if(e.split(" ")[0]==="Exponent1:")t["dmodp"]=elementToBuf(e);else if(e.split(" ")[0]==="Exponent2:")t["dmodq"]=elementToBuf(e);else if(e.split(" ")[0]==="Coefficient:")t["iqmp"]=elementToBuf(e)});var i={type:"rsa",parts:[{name:"e",data:o.mpNormalize(t["e"])},{name:"n",data:o.mpNormalize(t["n"])},{name:"d",data:o.mpNormalize(t["d"])},{name:"p",data:o.mpNormalize(t["p"])},{name:"q",data:o.mpNormalize(t["q"])},{name:"dmodp",data:o.mpNormalize(t["dmodp"])},{name:"dmodq",data:o.mpNormalize(t["dmodq"])},{name:"iqmp",data:o.mpNormalize(t["iqmp"])}]};return new s(i)}function readDNSSECPrivateKey(e,t){if(d[e].match(/^RSA-/)){return readDNSSECRSAPrivateKey(t)}if(d[e]==="ECDSA-P384-SHA384"||d[e]==="ECDSA-P256-SHA256"){var i=a.from(t[0].split(" ")[1],"base64");var n="nistp384";var r=384;if(d[e]==="ECDSA-P256-SHA256"){n="nistp256";r=256}var u=o.publicFromPrivateECDSA(n,i);var l=u.part["Q"].data;var c={type:"ecdsa",curve:n,size:r,parts:[{name:"curve",data:a.from(n)},{name:"d",data:i},{name:"Q",data:l}]};return new s(c)}throw new Error("Unsupported algorithm: "+d[e])}function dnssecTimestamp(e){var t=e.getFullYear()+"";var i=e.getMonth()+1;var n=t+i+e.getUTCDate();n+=""+e.getUTCHours()+e.getUTCMinutes();n+=e.getUTCSeconds();return n}function rsaAlgFromOptions(e){if(!e||!e.hashAlgo||e.hashAlgo==="sha1")return"5 (RSASHA1)";else if(e.hashAlgo==="sha256")return"8 (RSASHA256)";else if(e.hashAlgo==="sha512")return"10 (RSASHA512)";else throw new Error("Unknown or unsupported hash: "+e.hashAlgo)}function writeRSA(e,t){if(!e.part.dmodp||!e.part.dmodq){o.addRSAMissing(e)}var i="";i+="Private-key-format: v1.3\n";i+="Algorithm: "+rsaAlgFromOptions(t)+"\n";var n=o.mpDenormalize(e.part["n"].data);i+="Modulus: "+n.toString("base64")+"\n";var r=o.mpDenormalize(e.part["e"].data);i+="PublicExponent: "+r.toString("base64")+"\n";var s=o.mpDenormalize(e.part["d"].data);i+="PrivateExponent: "+s.toString("base64")+"\n";var u=o.mpDenormalize(e.part["p"].data);i+="Prime1: "+u.toString("base64")+"\n";var l=o.mpDenormalize(e.part["q"].data);i+="Prime2: "+l.toString("base64")+"\n";var c=o.mpDenormalize(e.part["dmodp"].data);i+="Exponent1: "+c.toString("base64")+"\n";var d=o.mpDenormalize(e.part["dmodq"].data);i+="Exponent2: "+d.toString("base64")+"\n";var p=o.mpDenormalize(e.part["iqmp"].data);i+="Coefficient: "+p.toString("base64")+"\n";var f=new Date;i+="Created: "+dnssecTimestamp(f)+"\n";i+="Publish: "+dnssecTimestamp(f)+"\n";i+="Activate: "+dnssecTimestamp(f)+"\n";return a.from(i,"ascii")}function writeECDSA(e,t){var i="";i+="Private-key-format: v1.3\n";if(e.curve==="nistp256"){i+="Algorithm: 13 (ECDSAP256SHA256)\n"}else if(e.curve==="nistp384"){i+="Algorithm: 14 (ECDSAP384SHA384)\n"}else{throw new Error("Unsupported curve")}var n=e.part["d"].data.toString("base64");i+="PrivateKey: "+n+"\n";var r=new Date;i+="Created: "+dnssecTimestamp(r)+"\n";i+="Publish: "+dnssecTimestamp(r)+"\n";i+="Activate: "+dnssecTimestamp(r)+"\n";return a.from(i,"ascii")}function write(e,t){if(s.isPrivateKey(e)){if(e.type==="rsa"){return writeRSA(e,t)}else if(e.type==="ecdsa"){return writeECDSA(e,t)}else{throw new Error("Unsupported algorithm: "+e.type)}}else if(r.isKey(e)){throw new Error('Format "dnssec" only supports '+"writing private keys")}else{throw new Error("key is not a Key or PrivateKey")}}},,,function(e,t,i){"use strict";const n=i(272).Component;const a=i(418)("kubernetes-client");const r=i(747);const s=i(314);const o=i(622);const u=i(903);const l=i(198);const c=i(610);class Root extends n{_getSpec(e){return this.backend.http({method:"GET",pathname:e}).then(e=>{return e.body})}loadSpec(){return this._getSpec("/openapi/v2").catch(()=>{return this._getSpec("/swagger.json")}).then(e=>{this._addSpec(e);return this}).catch(e=>{throw new Error(`Failed to get /openapi/v2 and /swagger.json: ${e.message}`)})}_getLogByteStream(e){return this.backend.getLogByteStream(Object.assign({method:"GET",pathItemObject:this.pathItemObject,pathname:this.getPath(),pathnameParameters:this.getPathnameParameters()},e))}async _getWatchObjectStream(e){return this.backend.getWatchObjectStream(Object.assign({method:"GET",pathItemObject:this.pathItemObject,pathname:this.getPath(),pathnameParameters:this.getPathnameParameters()},e))}_addEndpoint(e){const t=super._addEndpoint(e);if(!t)return t;if(e.pathItem.get){const i=e.pathItem.get["x-kubernetes-action"];if(i==="watch"||i==="watchlist"){t.getStream=a.function(t.getStream,".getStream use .getObjectStream, see "+"https://github.com/godaddy/kubernetes-client/blob/master/merging-with-kubernetes.md");t.getObjectStream=t._getWatchObjectStream}else if(e.name==="/api/v1/namespaces/{namespace}/pods/{name}/log"){t.getStream=a.function(t.getStream,".getStream use .getByteStream, see "+"https://github.com/godaddy/kubernetes-client/blob/master/merging-with-kubernetes.md");t.getByteStream=t._getLogByteStream}else{t.getStream=a.function(t.getStream,".getStream see https://github.com/godaddy/kubernetes-client/blob/master/merging-with-kubernetes.md")}}}addCustomResourceDefinition(e){const t=e.spec.group;const i=e.spec.names.plural;const n=e.spec.scope==="Cluster"?"":"/namespaces/{namespace}";const a=a=>{const r={paths:{}};const s=`/apis/${t}/${a}${n}/${i}/{name}`;r.paths[s]=["delete","get","patch","put"].reduce((e,t)=>{e[t]={operationId:`${t}Template${i}`};return e},{});const o=`/apis/${t}/${a}${n}/${i}`;r.paths[o]=["get","post"].reduce((e,t)=>{e[t]={operationId:`${t}${i}`};return e},{});if(e.spec.scope==="Namespaced"){const e=`/apis/${t}/${a}/${i}`;r.paths[e]={get:{operationId:`getCluster${i}`}}}const u={watchCluster:`/apis/${t}/${a}/watch/${i}`,watchNamespace:`/apis/${t}/${a}/watch${n}/${i}`,watchResource:`/apis/${t}/${a}/watch${n}/${i}/{name}`};Object.keys(u).forEach(e=>{const t=u[e];r.paths[t]={get:{"x-kubernetes-action":"watch",operationId:`operationId${i}`}}});if(e.spec.subresources&&e.spec.subresources.status){const e=`/apis/${t}/${a}${n}/${i}/{name}/status`;r.paths[e]=["get","put"].reduce((e,t)=>{e[t]={operationId:`${t}Template${i}`};return e},{})}if(e.spec.subresources&&e.spec.subresources.scale){const e=`/apis/${t}/${a}${n}/${i}/{name}/scale`;r.paths[e]=["get","put"].reduce((e,t)=>{e[t]={operationId:`${t}Template${i}`};return e},{})}this._addSpec(r)};if(e.spec.version){a(e.spec.version)}else{const t=e.spec.versions||[];t.forEach(e=>a(e.name))}}}class Client{constructor(e){e=e||{};if(e.config){a("Client({ config }), see "+"https://github.com/godaddy/kubernetes-client/blob/master/merging-with-kubernetes.md")}let t=e.backend;if(!t){if(e.config){t=new c(e.config)}else{const e=new s;e.loadFromDefault();t=new c({kubeconfig:e})}}let i=e.spec;if(!i&&e.version){const t=o.join(__dirname,"specs",`swagger-${e.version}.json.gz`);i=JSON.parse(u.gunzipSync(r.readFileSync(t)))}const n=new Root({splits:[],backend:t,getNames:e.getNames||l});if(i)n._addSpec(i);return n}}class Client1_13 extends Client{constructor(e){super(Object.assign({},e,{version:"1.13"}))}}e.exports={Client:Client,Client1_13:Client1_13}},function(e,t,i){"use strict";var n=this&&this.__awaiter||function(e,t,i,n){function adopt(e){return e instanceof i?e:new i(function(t){t(e)})}return new(i||(i=Promise))(function(i,a){function fulfilled(e){try{step(n.next(e))}catch(e){a(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){a(e)}}function step(e){e.done?i(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)if(Object.hasOwnProperty.call(e,i))t[i]=e[i];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const r=a(i(9));function exec(e,t,i){return n(this,void 0,void 0,function*(){const n=r.argStringToArray(e);if(n.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const a=n[0];t=n.slice(1).concat(t||[]);const s=new r.ToolRunner(a,t,i);return s.exec()})}t.exec=exec},,function(e,t,i){"use strict";var n=i(945);e.exports=new n("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})},function(e,t,i){var n=i(602);var a=i(747);n.register("sed",_sed,{globStart:3,canReceivePipe:true,cmdOptions:{i:"inplace"}});function _sed(e,t,i,r){var s=n.readFromPipe();if(typeof i!=="string"&&typeof i!=="function"){if(typeof i==="number"){i=i.toString()}else{n.error("invalid replacement string")}}if(typeof t==="string"){t=RegExp(t)}if(!r&&!s){n.error("no files given")}r=[].slice.call(arguments,3);if(s){r.unshift("-")}var o=[];r.forEach(function(r){if(!a.existsSync(r)&&r!=="-"){n.error("no such file or directory: "+r,2,{continue:true});return}var u=r==="-"?s:a.readFileSync(r,"utf8");var l=u.split("\n");var c=l.map(function(e){return e.replace(t,i)}).join("\n");o.push(c);if(e.inplace){a.writeFileSync(r,c,"utf8")}});return o.join("\n")}e.exports=_sed},,,,function(e){e.exports={$id:"cache.json#",$schema:"http://json-schema.org/draft-06/schema#",properties:{beforeRequest:{oneOf:[{type:"null"},{$ref:"beforeRequest.json#"}]},afterRequest:{oneOf:[{type:"null"},{$ref:"afterRequest.json#"}]},comment:{type:"string"}}}},function(e){e.exports=new Map([["A128CBC-HS256",256],["A128GCM",128],["A192CBC-HS384",384],["A192GCM",192],["A256CBC-HS512",512],["A256GCM",256]])},function(e,t,i){const n=i(274);let a=i(918);const{JWSInvalid:r}=i(466);a=a.bind(undefined,r);const s=(e,[t])=>{return`${t.protected}.${e}.${t.signature}`};s.validate=((e,{0:{unprotectedHeader:t,protectedHeader:i},length:n})=>{if(n!==1||t){throw new r("JWS Compact Serialization doesn't support multiple recipients or JWS unprotected headers")}a(i,t,i?i.crit:undefined)});const o=(e,[t])=>{const{header:i,signature:n,protected:a}=t;return{payload:e,...a?{protected:a}:undefined,...i?{header:i}:undefined,signature:n}};o.validate=((e,{0:{unprotectedHeader:t,protectedHeader:i},length:n})=>{if(n!==1){throw new r("Flattened JWS JSON Serialization doesn't support multiple recipients")}a(i,t,i?i.crit:undefined)});const u=(e,t)=>{return{payload:e,signatures:t.map(({header:e,signature:t,protected:i})=>{return{...i?{protected:i}:undefined,...e?{header:e}:undefined,signature:t}})}};u.validate=((e,t)=>{let i=false;t.forEach(({protectedHeader:e,unprotectedHeader:t})=>{if(e&&!i&&"b64"in e){i=true}a(e,t,e?e.crit:undefined)});if(i){const e=t.map(({protectedHeader:e})=>e&&e.b64);if(!e.every((e,t,[i])=>e===i)){throw new r('the "b64" Header Parameter value MUST be the same for all recipients')}}});const l=e=>{return n(e)&&(typeof e.payload==="string"||Buffer.isBuffer(e.payload))};const c=e=>{return n(e)&&typeof e.signature==="string"&&(e.header===undefined||n(e.header))&&(e.protected===undefined||typeof e.protected==="string")};const d=e=>{if(Array.isArray(e.signatures)&&e.signatures.every(c)){return true}return false};const p=e=>{if(typeof e==="string"&&e.split(".").length===3){return"compact"}if(l(e)){if(d(e)){return"general"}if(c(e)){return"flattened"}}throw new r("JWS malformed or invalid serialization")};e.exports={compact:s,flattened:o,general:u,detect:p}},function(e,t,i){const n=i(255);e.exports=function(){this.seq().obj(this.key("algorithm").objid(n),this.key("parameters").optional().choice({namedCurve:this.objid(n),null:this.null_()}))}},function(e,t,i){const{deprecate:n}=i(669);const a=n(()=>{},'"P-256K" EC curve name is deprecated');e.exports={name:"secp256k1",rename(t){if(t!=="secp256k1"){a()}e.exports.name=t}}},function(e,t,i){var n=i(357);var a=i(215).Buffer;var r=i(362);var s=i(584);var o=s.newInvalidAsn1Error;var u={size:1024,growthFactor:8};function merge(e,t){n.ok(e);n.equal(typeof e,"object");n.ok(t);n.equal(typeof t,"object");var i=Object.getOwnPropertyNames(e);i.forEach(function(i){if(t[i])return;var n=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,n)});return t}function Writer(e){e=merge(u,e||{});this._buf=a.alloc(e.size||1024);this._size=this._buf.length;this._offset=0;this._options=e;this._seq=[]}Object.defineProperty(Writer.prototype,"buffer",{get:function(){if(this._seq.length)throw o(this._seq.length+" unended sequence(s)");return this._buf.slice(0,this._offset)}});Writer.prototype.writeByte=function(e){if(typeof e!=="number")throw new TypeError("argument must be a Number");this._ensure(1);this._buf[this._offset++]=e};Writer.prototype.writeInt=function(e,t){if(typeof e!=="number")throw new TypeError("argument must be a Number");if(typeof t!=="number")t=r.Integer;var i=4;while(((e&4286578688)===0||(e&4286578688)===4286578688>>0)&&i>1){i--;e<<=8}if(i>4)throw o("BER ints cannot be > 0xffffffff");this._ensure(2+i);this._buf[this._offset++]=t;this._buf[this._offset++]=i;while(i-- >0){this._buf[this._offset++]=(e&4278190080)>>>24;e<<=8}};Writer.prototype.writeNull=function(){this.writeByte(r.Null);this.writeByte(0)};Writer.prototype.writeEnumeration=function(e,t){if(typeof e!=="number")throw new TypeError("argument must be a Number");if(typeof t!=="number")t=r.Enumeration;return this.writeInt(e,t)};Writer.prototype.writeBoolean=function(e,t){if(typeof e!=="boolean")throw new TypeError("argument must be a Boolean");if(typeof t!=="number")t=r.Boolean;this._ensure(3);this._buf[this._offset++]=t;this._buf[this._offset++]=1;this._buf[this._offset++]=e?255:0};Writer.prototype.writeString=function(e,t){if(typeof e!=="string")throw new TypeError("argument must be a string (was: "+typeof e+")");if(typeof t!=="number")t=r.OctetString;var i=a.byteLength(e);this.writeByte(t);this.writeLength(i);if(i){this._ensure(i);this._buf.write(e,this._offset);this._offset+=i}};Writer.prototype.writeBuffer=function(e,t){if(typeof t!=="number")throw new TypeError("tag must be a number");if(!a.isBuffer(e))throw new TypeError("argument must be a buffer");this.writeByte(t);this.writeLength(e.length);this._ensure(e.length);e.copy(this._buf,this._offset,0,e.length);this._offset+=e.length};Writer.prototype.writeStringArray=function(e){if(!e instanceof Array)throw new TypeError("argument must be an Array[String]");var t=this;e.forEach(function(e){t.writeString(e)})};Writer.prototype.writeOID=function(e,t){if(typeof e!=="string")throw new TypeError("argument must be a string");if(typeof t!=="number")t=r.OID;if(!/^([0-9]+\.){3,}[0-9]+$/.test(e))throw new Error("argument is not a valid OID string");function encodeOctet(e,t){if(t<128){e.push(t)}else if(t<16384){e.push(t>>>7|128);e.push(t&127)}else if(t<2097152){e.push(t>>>14|128);e.push((t>>>7|128)&255);e.push(t&127)}else if(t<268435456){e.push(t>>>21|128);e.push((t>>>14|128)&255);e.push((t>>>7|128)&255);e.push(t&127)}else{e.push((t>>>28|128)&255);e.push((t>>>21|128)&255);e.push((t>>>14|128)&255);e.push((t>>>7|128)&255);e.push(t&127)}}var i=e.split(".");var n=[];n.push(parseInt(i[0],10)*40+parseInt(i[1],10));i.slice(2).forEach(function(e){encodeOctet(n,parseInt(e,10))});var a=this;this._ensure(2+n.length);this.writeByte(t);this.writeLength(n.length);n.forEach(function(e){a.writeByte(e)})};Writer.prototype.writeLength=function(e){if(typeof e!=="number")throw new TypeError("argument must be a Number");this._ensure(4);if(e<=127){this._buf[this._offset++]=e}else if(e<=255){this._buf[this._offset++]=129;this._buf[this._offset++]=e}else if(e<=65535){this._buf[this._offset++]=130;this._buf[this._offset++]=e>>8;this._buf[this._offset++]=e}else if(e<=16777215){this._buf[this._offset++]=131;this._buf[this._offset++]=e>>16;this._buf[this._offset++]=e>>8;this._buf[this._offset++]=e}else{throw o("Length too long (> 4 bytes)")}};Writer.prototype.startSequence=function(e){if(typeof e!=="number")e=r.Sequence|r.Constructor;this.writeByte(e);this._seq.push(this._offset);this._ensure(3);this._offset+=3};Writer.prototype.endSequence=function(){var e=this._seq.pop();var t=e+3;var i=this._offset-t;if(i<=127){this._shift(t,i,-2);this._buf[e]=i}else if(i<=255){this._shift(t,i,-1);this._buf[e]=129;this._buf[e+1]=i}else if(i<=65535){this._buf[e]=130;this._buf[e+1]=i>>8;this._buf[e+2]=i}else if(i<=16777215){this._shift(t,i,1);this._buf[e]=131;this._buf[e+1]=i>>16;this._buf[e+2]=i>>8;this._buf[e+3]=i}else{throw o("Sequence too long")}};Writer.prototype._shift=function(e,t,i){n.ok(e!==undefined);n.ok(t!==undefined);n.ok(i);this._buf.copy(this._buf,e+i,e,e+t);this._offset+=i};Writer.prototype._ensure=function(e){n.ok(e);if(this._size-this._offset{e=new n(e,i);t=new n(t,i);let a=false;e:for(const n of e.set){for(const e of t.set){const t=u(n,e,i);a=a||t!==null;if(t)continue e}if(a)return false}return true};const u=(e,t,i)=>{if(e.length===1&&e[0].semver===a)return t.length===1&&t[0].semver===a;const n=new Set;let o,u;for(const t of e){if(t.operator===">"||t.operator===">=")o=l(o,t,i);else if(t.operator==="<"||t.operator==="<=")u=c(u,t,i);else n.add(t.semver)}if(n.size>1)return null;let d;if(o&&u){d=s(o.semver,u.semver,i);if(d>0)return null;else if(d===0&&(o.operator!==">="||u.operator!=="<="))return null}for(const e of n){if(o&&!r(e,String(o),i))return null;if(u&&!r(e,String(u),i))return null;for(const n of t){if(!r(e,String(n),i))return false}return true}let p,f;let h,m;for(const e of t){m=m||e.operator===">"||e.operator===">=";h=h||e.operator==="<"||e.operator==="<=";if(o){if(e.operator===">"||e.operator===">="){p=l(o,e,i);if(p===e)return false}else if(o.operator===">="&&!r(o.semver,String(e),i))return false}if(u){if(e.operator==="<"||e.operator==="<="){f=c(u,e,i);if(f===e)return false}else if(u.operator==="<="&&!r(u.semver,String(e),i))return false}if(!e.operator&&(u||o)&&d!==0)return false}if(o&&h&&!u&&d!==0)return false;if(u&&m&&!o&&d!==0)return false;return true};const l=(e,t,i)=>{if(!e)return t;const n=s(e.semver,t.semver,i);return n>0?e:n<0?t:t.operator===">"&&e.operator===">="?t:e};const c=(e,t,i)=>{if(!e)return t;const n=s(e.semver,t.semver,i);return n<0?e:n>0?t:t.operator==="<"&&e.operator==="<="?t:e};e.exports=o}],function(e){"use strict";!function(){e.nmd=function(e){e.paths=[];if(!e.children)e.children=[];Object.defineProperty(e,"loaded",{enumerable:true,get:function(){return e.l}});Object.defineProperty(e,"id",{enumerable:true,get:function(){return e.i}});return e}}();!function(){e.r=function(e){if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}}();!function(){var t=Object.prototype.hasOwnProperty;e.d=function(e,i,n){if(!t.call(e,i)){Object.defineProperty(e,i,{enumerable:true,get:n})}}}();!function(){e.t=function(t,i){if(i&1)t=this(t);if(i&8)return t;if(i&4&&typeof t==="object"&&t&&t.__esModule)return t;var n=Object.create(null);e.r(n);Object.defineProperty(n,"default",{enumerable:true,value:t});if(i&2&&typeof t!="string")for(var a in t)e.d(n,a,function(e){return t[e]}.bind(null,a));return n}}();!function(){e.n=function(t){var i=t&&t.__esModule?function getDefault(){return t["default"]}:function getModuleExports(){return t};e.d(i,"a",i);return i}}();!function(){e.hmd=function(e){e=Object.create(e);if(!e.children)e.children=[];Object.defineProperty(e,"loaded",{enumerable:true,get:function(){return e.l}});Object.defineProperty(e,"id",{enumerable:true,get:function(){return e.i}});Object.defineProperty(e,"exports",{enumerable:true,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}});return e}}()}); \ No newline at end of file +module.exports=function(e,t){"use strict";var i={};function __webpack_require__(t){if(i[t]){return i[t].exports}var n=i[t]={i:t,l:false,exports:{}};e[t].call(n.exports,n,n.exports,__webpack_require__);n.l=true;return n.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(452)}t(__webpack_require__);return startup()}([function(e){e.exports=(e=>Math.floor(e.getTime()/1e3))},function(e,t,i){"use strict";var n=this&&this.__awaiter||function(e,t,i,n){function adopt(e){return e instanceof i?e:new i(function(t){t(e)})}return new(i||(i=Promise))(function(i,a){function fulfilled(e){try{step(n.next(e))}catch(e){a(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){a(e)}}function step(e){e.done?i(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:true});const a=i(129);const r=i(622);const s=i(669);const o=i(672);const u=s.promisify(a.exec);function cp(e,t,i={}){return n(this,void 0,void 0,function*(){const{force:n,recursive:a}=readCopyOptions(i);const s=(yield o.exists(t))?yield o.stat(t):null;if(s&&s.isFile()&&!n){return}const u=s&&s.isDirectory()?r.join(t,r.basename(e)):t;if(!(yield o.exists(e))){throw new Error(`no such file or directory: ${e}`)}const l=yield o.stat(e);if(l.isDirectory()){if(!a){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,u,0,n)}}else{if(r.relative(e,u)===""){throw new Error(`'${u}' and '${e}' are the same file`)}yield copyFile(e,u,n)}})}t.cp=cp;function mv(e,t,i={}){return n(this,void 0,void 0,function*(){if(yield o.exists(t)){let n=true;if(yield o.isDirectory(t)){t=r.join(t,r.basename(e));n=yield o.exists(t)}if(n){if(i.force==null||i.force){yield rmRF(t)}else{throw new Error("Destination already exists")}}}yield mkdirP(r.dirname(t));yield o.rename(e,t)})}t.mv=mv;function rmRF(e){return n(this,void 0,void 0,function*(){if(o.IS_WINDOWS){try{if(yield o.isDirectory(e,true)){yield u(`rd /s /q "${e}"`)}else{yield u(`del /f /a "${e}"`)}}catch(e){if(e.code!=="ENOENT")throw e}try{yield o.unlink(e)}catch(e){if(e.code!=="ENOENT")throw e}}else{let t=false;try{t=yield o.isDirectory(e)}catch(e){if(e.code!=="ENOENT")throw e;return}if(t){yield u(`rm -rf "${e}"`)}else{yield o.unlink(e)}}})}t.rmRF=rmRF;function mkdirP(e){return n(this,void 0,void 0,function*(){yield o.mkdirP(e)})}t.mkdirP=mkdirP;function which(e,t){return n(this,void 0,void 0,function*(){if(!e){throw new Error("parameter 'tool' is required")}if(t){const t=yield which(e,false);if(!t){if(o.IS_WINDOWS){throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`)}else{throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`)}}}try{const t=[];if(o.IS_WINDOWS&&process.env.PATHEXT){for(const e of process.env.PATHEXT.split(r.delimiter)){if(e){t.push(e)}}}if(o.isRooted(e)){const i=yield o.tryGetExecutablePath(e,t);if(i){return i}return""}if(e.includes("/")||o.IS_WINDOWS&&e.includes("\\")){return""}const i=[];if(process.env.PATH){for(const e of process.env.PATH.split(r.delimiter)){if(e){i.push(e)}}}for(const n of i){const i=yield o.tryGetExecutablePath(n+r.sep+e,t);if(i){return i}}return""}catch(e){throw new Error(`which failed with message ${e.message}`)}})}t.which=which;function readCopyOptions(e){const t=e.force==null?true:e.force;const i=Boolean(e.recursive);return{force:t,recursive:i}}function cpDirRecursive(e,t,i,a){return n(this,void 0,void 0,function*(){if(i>=255)return;i++;yield mkdirP(t);const n=yield o.readdir(e);for(const r of n){const n=`${e}/${r}`;const s=`${t}/${r}`;const u=yield o.lstat(n);if(u.isDirectory()){yield cpDirRecursive(n,s,i,a)}else{yield copyFile(n,s,a)}}yield o.chmod(t,(yield o.stat(e)).mode)})}function copyFile(e,t,i){return n(this,void 0,void 0,function*(){if((yield o.lstat(e)).isSymbolicLink()){try{yield o.lstat(t);yield o.unlink(t)}catch(e){if(e.code==="EPERM"){yield o.chmod(t,"0666");yield o.unlink(t)}}const i=yield o.readlink(e);yield o.symlink(i,t,o.IS_WINDOWS?"junction":null)}else if(!(yield o.exists(t))||i){yield o.copyFile(e,t)}})}},,function(e,t,i){var n=i(49);var a=function(){};var r=function(e){return e.setHeader&&typeof e.abort==="function"};var s=function(e){return e.stdio&&Array.isArray(e.stdio)&&e.stdio.length===3};var o=function(e,t,i){if(typeof t==="function")return o(e,null,t);if(!t)t={};i=n(i||a);var u=e._writableState;var l=e._readableState;var c=t.readable||t.readable!==false&&e.readable;var d=t.writable||t.writable!==false&&e.writable;var p=false;var f=function(){if(!e.writable)h()};var h=function(){d=false;if(!c)i.call(e)};var m=function(){c=false;if(!d)i.call(e)};var b=function(t){i.call(e,t?new Error("exited with error code: "+t):null)};var g=function(t){i.call(e,t)};var y=function(){process.nextTick(S)};var S=function(){if(p)return;if(c&&!(l&&(l.ended&&!l.destroyed)))return i.call(e,new Error("premature close"));if(d&&!(u&&(u.ended&&!u.destroyed)))return i.call(e,new Error("premature close"))};var w=function(){e.req.on("finish",h)};if(r(e)){e.on("complete",h);e.on("abort",y);if(e.req)w();else e.on("request",w)}else if(d&&!u){e.on("end",f);e.on("close",f)}if(s(e))e.on("exit",b);e.on("end",m);e.on("finish",h);if(t.error!==false)e.on("error",g);e.on("close",y);return function(){p=true;e.removeListener("complete",h);e.removeListener("abort",y);e.removeListener("request",w);if(e.req)e.req.removeListener("finish",h);e.removeListener("end",f);e.removeListener("close",f);e.removeListener("finish",h);e.removeListener("exit",b);e.removeListener("end",m);e.removeListener("error",g);e.removeListener("close",y)}};e.exports=o},function(e){"use strict";var t=Object.prototype.hasOwnProperty;var i=Array.isArray;var n=function(){var e=[];for(var t=0;t<256;++t){e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase())}return e}();var a=function compactQueue(e){while(e.length>1){var t=e.pop();var n=t.obj[t.prop];if(i(n)){var a=[];for(var r=0;r=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122){r+=a.charAt(s);continue}if(o<128){r=r+n[o];continue}if(o<2048){r=r+(n[192|o>>6]+n[128|o&63]);continue}if(o<55296||o>=57344){r=r+(n[224|o>>12]+n[128|o>>6&63]+n[128|o&63]);continue}s+=1;o=65536+((o&1023)<<10|a.charCodeAt(s)&1023);r+=n[240|o>>18]+n[128|o>>12&63]+n[128|o>>6&63]+n[128|o&63]}return r};var c=function compact(e){var t=[{obj:{o:e},prop:"o"}];var i=[];for(var n=0;n-1){const e=n.substring(0,a);i(e);n=n.substring(a+r.EOL.length);a=n.indexOf(r.EOL)}t=n}catch(e){this._debug(`error processing line. Failed with error ${e}`)}}_getSpawnFileName(){if(d){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(d){if(this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const i of this.args){t+=" ";t+=e.windowsVerbatimArguments?i:this._windowsQuoteCmdArg(i)}t+='"';return[t]}}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile()){return this._uvQuoteCmdArg(e)}if(!e){return'""'}const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let i=false;for(const n of e){if(t.some(e=>e===n)){i=true;break}}if(!i){return e}let n='"';let a=true;for(let t=e.length;t>0;t--){n+=e[t-1];if(a&&e[t-1]==="\\"){n+="\\"}else if(e[t-1]==='"'){a=true;n+='"'}else{a=false}}n+='"';return n.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e){return'""'}if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"')){return e}if(!e.includes('"')&&!e.includes("\\")){return`"${e}"`}let t='"';let i=true;for(let n=e.length;n>0;n--){t+=e[n-1];if(i&&e[n-1]==="\\"){t+="\\"}else if(e[n-1]==='"'){i=true;t+="\\"}else{i=false}}t+='"';return t.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};const t={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||false,windowsVerbatimArguments:e.windowsVerbatimArguments||false,failOnStdErr:e.failOnStdErr||false,ignoreReturnCode:e.ignoreReturnCode||false,delay:e.delay||1e4};t.outStream=e.outStream||process.stdout;t.errStream=e.errStream||process.stderr;return t}_getSpawnOptions(e,t){e=e||{};const i={};i.cwd=e.cwd;i.env=e.env;i["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){i.argv0=`"${t}"`}return i}exec(){return n(this,void 0,void 0,function*(){if(!c.isRooted(this.toolPath)&&(this.toolPath.includes("/")||d&&this.toolPath.includes("\\"))){this.toolPath=u.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield l.which(this.toolPath,true);return new Promise((e,t)=>{this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const e of this.args){this._debug(` ${e}`)}const i=this._cloneExecOptions(this.options);if(!i.silent&&i.outStream){i.outStream.write(this._getCommandString(i)+r.EOL)}const n=new ExecState(i,this.toolPath);n.on("debug",e=>{this._debug(e)});const a=this._getSpawnFileName();const s=o.spawn(a,this._getSpawnArgs(i),this._getSpawnOptions(this.options,a));const u="";if(s.stdout){s.stdout.on("data",e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!i.silent&&i.outStream){i.outStream.write(e)}this._processLineBuffer(e,u,e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}})})}const l="";if(s.stderr){s.stderr.on("data",e=>{n.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!i.silent&&i.errStream&&i.outStream){const t=i.failOnStdErr?i.errStream:i.outStream;t.write(e)}this._processLineBuffer(e,l,e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}})})}s.on("error",e=>{n.processError=e.message;n.processExited=true;n.processClosed=true;n.CheckComplete()});s.on("exit",e=>{n.processExitCode=e;n.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);n.CheckComplete()});s.on("close",e=>{n.processExitCode=e;n.processExited=true;n.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);n.CheckComplete()});n.on("done",(i,n)=>{if(u.length>0){this.emit("stdline",u)}if(l.length>0){this.emit("errline",l)}s.removeAllListeners();if(i){t(i)}else{e(n)}});if(this.options.input){if(!s.stdin){throw new Error("child process missing stdin")}s.stdin.end(this.options.input)}})})}}t.ToolRunner=ToolRunner;function argStringToArray(e){const t=[];let i=false;let n=false;let a="";function append(e){if(n&&e!=='"'){a+="\\"}a+=e;n=false}for(let r=0;r0){t.push(a);a=""}continue}append(s)}if(a.length>0){t.push(a.trim())}return t}t.argStringToArray=argStringToArray;class ExecState extends s.EventEmitter{constructor(e,t){super();this.processClosed=false;this.processError="";this.processExitCode=0;this.processExited=false;this.processStderr=false;this.delay=1e4;this.done=false;this.timeout=null;if(!t){throw new Error("toolPath must not be empty")}this.options=e;this.toolPath=t;if(e.delay){this.delay=e.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=setTimeout(ExecState.HandleTimeout,this.delay,this)}}_debug(e){this.emit("debug",e)}_setResult(){let e;if(this.processExited){if(this.processError){e=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`)}else if(this.processExitCode!==0&&!this.options.ignoreReturnCode){e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)}}if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.done=true;this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(e.done){return}if(!e.processClosed&&e.processExited){const t=`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;e._debug(t)}e._setResult()}}},function(e,t,i){"use strict";const{randomBytes:n}=i(373);const a=i(301);const{EMPTY_BUFFER:r}=i(799);const{isValidStatusCode:s}=i(562);const{mask:o,toBuffer:u}=i(104);class Sender{constructor(e,t){this._extensions=t||{};this._socket=e;this._firstFragment=true;this._compress=false;this._bufferedBytes=0;this._deflating=false;this._queue=[]}static frame(e,t){const i=t.mask&&t.readOnly;var a=t.mask?6:2;var r=e.length;if(e.length>=65536){a+=8;r=127}else if(e.length>125){a+=2;r=126}const s=Buffer.allocUnsafe(i?e.length+a:a);s[0]=t.fin?t.opcode|128:t.opcode;if(t.rsv1)s[0]|=64;s[1]=r;if(r===126){s.writeUInt16BE(e.length,2)}else if(r===127){s.writeUInt32BE(0,2);s.writeUInt32BE(e.length,6)}if(!t.mask)return[s,e];const u=n(4);s[1]|=128;s[a-4]=u[0];s[a-3]=u[1];s[a-2]=u[2];s[a-1]=u[3];if(i){o(e,u,s,a,e.length);return[s]}o(e,u,e,0,e.length);return[s,e]}close(e,t,i,n){var a;if(e===undefined){a=r}else if(typeof e!=="number"||!s(e)){throw new TypeError("First argument must be a valid error code number")}else if(t===undefined||t===""){a=Buffer.allocUnsafe(2);a.writeUInt16BE(e,0)}else{a=Buffer.allocUnsafe(2+Buffer.byteLength(t));a.writeUInt16BE(e,0);a.write(t,2)}if(this._deflating){this.enqueue([this.doClose,a,i,n])}else{this.doClose(a,i,n)}}doClose(e,t,i){this.sendFrame(Sender.frame(e,{fin:true,rsv1:false,opcode:8,mask:t,readOnly:false}),i)}ping(e,t,i){const n=u(e);if(this._deflating){this.enqueue([this.doPing,n,t,u.readOnly,i])}else{this.doPing(n,t,u.readOnly,i)}}doPing(e,t,i,n){this.sendFrame(Sender.frame(e,{fin:true,rsv1:false,opcode:9,mask:t,readOnly:i}),n)}pong(e,t,i){const n=u(e);if(this._deflating){this.enqueue([this.doPong,n,t,u.readOnly,i])}else{this.doPong(n,t,u.readOnly,i)}}doPong(e,t,i,n){this.sendFrame(Sender.frame(e,{fin:true,rsv1:false,opcode:10,mask:t,readOnly:i}),n)}send(e,t,i){const n=u(e);const r=this._extensions[a.extensionName];var s=t.binary?2:1;var o=t.compress;if(this._firstFragment){this._firstFragment=false;if(o&&r){o=n.length>=r._threshold}this._compress=o}else{o=false;s=0}if(t.fin)this._firstFragment=true;if(r){const e={fin:t.fin,rsv1:o,opcode:s,mask:t.mask,readOnly:u.readOnly};if(this._deflating){this.enqueue([this.dispatch,n,this._compress,e,i])}else{this.dispatch(n,this._compress,e,i)}}else{this.sendFrame(Sender.frame(n,{fin:t.fin,rsv1:false,opcode:s,mask:t.mask,readOnly:u.readOnly}),i)}}dispatch(e,t,i,n){if(!t){this.sendFrame(Sender.frame(e,i),n);return}const r=this._extensions[a.extensionName];this._deflating=true;r.compress(e,i.fin,(e,t)=>{this._deflating=false;i.readOnly=false;this.sendFrame(Sender.frame(t,i),n);this.dequeue()})}dequeue(){while(!this._deflating&&this._queue.length){const e=this._queue.shift();this._bufferedBytes-=e[1].length;e[0].apply(this,e.slice(1))}}enqueue(e){this._bufferedBytes+=e[1].length;this._queue.push(e)}sendFrame(e,t){if(e.length===2){this._socket.cork();this._socket.write(e[0]);this._socket.write(e[1],t);this._socket.uncork()}else{this._socket.write(e[0],t)}}}e.exports=Sender},function(e){e.exports=wrappy;function wrappy(e,t){if(e&&t)return wrappy(e)(t);if(typeof e!=="function")throw new TypeError("need wrapper function");Object.keys(e).forEach(function(t){wrapper[t]=e[t]});return wrapper;function wrapper(){var t=new Array(arguments.length);for(var i=0;i{t=Object.assign({pretty:false},t);return e.replace(/\\/g,"/").split("\n").filter(e=>{const t=e.match(a);if(t===null||!t[1]){return true}const i=t[1];if(i.includes(".app/Contents/Resources/electron.asar")||i.includes(".app/Contents/Resources/default_app.asar")){return false}return!r.test(i)}).filter(e=>e.trim()!=="").map(e=>{if(t.pretty){return e.replace(a,(e,t)=>e.replace(t,t.replace(s,"~")))}return e}).join("\n")})},function(e,t,i){const n=i(65);const a=(e,t,i)=>{const a=new n(e,i);const r=new n(t,i);return a.compare(r)||a.compareBuild(r)};e.exports=a},function(e,t,i){const n=i(490);const a=i(208);let r=i(918);const{JWEInvalid:s,JOSENotSupported:o}=i(466);r=r.bind(undefined,s);e.exports=((e,t,i,u,l)=>{if(typeof e==="string"){try{e=a.JSON.decode(e)}catch(e){throw new s("could not parse JWE protected header")}}let c=[];const d=new Set;if(!n(e,t)||!i.every(({header:i})=>{if(typeof i==="object"){c.push(i.alg);d.add(i.enc)}const a={...t,...i};r(e,a,l);if("zip"in a){throw new s('"zip" Header Parameter MUST be integrity protected')}else if(e&&"zip"in e&&e.zip!=="DEF"){throw new o('only "DEF" compression algorithm is supported')}return n(i,e)&&n(i,t)})){throw new s("JWE Shared Protected, JWE Shared Unprotected and JWE Per-Recipient Header Parameter names must be disjoint")}if(typeof e==="object"){c.push(e.alg);d.add(e.enc)}if(typeof t==="object"){c.push(t.alg);d.add(t.enc)}c=c.filter(Boolean);d.delete(undefined);if(i.length!==1){if(c.includes("dir")||c.includes("ECDH-ES")){throw new s("dir and ECDH-ES alg may only be used with a single recipient")}}if(u){if(c.length!==i.length){throw new s("missing Key Management algorithm")}if(d.size===0){throw new s("missing Content Encryption algorithm")}else if(d.size!==1){throw new s("there must only be one Content Encryption algorithm")}}else{if(d.size>1){throw new s("there must only be one Content Encryption algorithm")}}return[...d][0]})},function(e){e.exports={oct:{decrypt:{},deriveKey:{},encrypt:{},sign:{},unwrapKey:{},verify:{},wrapKey:{}},EC:{decrypt:{},deriveKey:{},encrypt:{},sign:{},unwrapKey:{},verify:{},wrapKey:{}},RSA:{decrypt:{},deriveKey:{},encrypt:{},sign:{},unwrapKey:{},verify:{},wrapKey:{}},OKP:{decrypt:{},deriveKey:{},encrypt:{},sign:{},unwrapKey:{},verify:{},wrapKey:{}}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=i(422);const a=i(191);const r=i(669);const s=i(131);class PortForward{constructor(e,t,i){if(!i){this.handler=new s.WebSocketHandler(e)}else{this.handler=i}this.disconnectOnErr=r.isUndefined(t)?true:t}portForward(e,t,i,r,o,u,l=0){return n.__awaiter(this,void 0,void 0,function*(){if(i.length===0){throw new Error("You must provide at least one port to forward to.")}if(i.length>1){throw new Error("Only one port is currently supported for port-forward")}const n={ports:i[0]};const c=a.stringify(n);const d=[];i.forEach((e,t)=>{d[t*2]=true;d[t*2+1]=true});const p=`/api/v1/namespaces/${e}/pods/${t}/portforward?${c}`;const f=()=>{return this.handler.connect(p,null,(e,t)=>{if(e>=i.length*2){return!this.disconnectOnErr}if(d[e]){t=t.slice(2);d[e]=false}if(e%2===1){if(o){o.write(t)}}else{r.write(t)}return true})};if(l<1){const e=yield f();s.WebSocketHandler.handleStandardInput(e,u,0);return e}return s.WebSocketHandler.restartableHandleStandardInput(f,u,0,l)})}}t.PortForward=PortForward},function(e,t,i){const{EOL:n}=i(87);const a=i(466);const{keyObjectSupported:r}=i(915);const{createPublicKey:s}=i(40);const o=i(208);const u=i(884);const l=i(694);const{OKP_CURVES:c,EC_CURVES:d}=i(962);const p=(e,t)=>`-----BEGIN ${t} KEY-----${n}${(e.match(/.{1,64}/g)||[]).join(n)}${n}-----END ${t} KEY-----`;const f={private(e,t){const i=t.export({type:"pkcs8",format:"der"});const n=u.get("OneAsymmetricKey");const{privateKey:{privateKey:a}}=n.decode(i);return{...f.public(e,s(t)),d:o.encodeBuffer(a)}},public(e,t){const i=t.export({type:"spki",format:"der"});const n=u.get("PublicKeyInfo");const{publicKey:{data:a}}=n.decode(i);return{kty:"OKP",crv:e,x:o.encodeBuffer(a)}}};const h={rsa:{private(e){const t=e.export({type:"pkcs8",format:"der"});const i=u.get("PrivateKeyInfo");const n=u.get("RSAPrivateKey");const{privateKey:r}=i.decode(t);const{version:s,n:l,e:c,d:d,p:p,q:f,dp:h,dq:m,qi:b}=n.decode(r);if(s!=="two-prime"){throw new a.JOSENotSupported("Private RSA keys with more than two primes are not supported")}return{kty:"RSA",n:o.encodeBigInt(l),e:o.encodeBigInt(c),d:o.encodeBigInt(d),p:o.encodeBigInt(p),q:o.encodeBigInt(f),dp:o.encodeBigInt(h),dq:o.encodeBigInt(m),qi:o.encodeBigInt(b)}},public(e){const t=e.export({type:"spki",format:"der"});const i=u.get("PublicKeyInfo");const n=u.get("RSAPublicKey");const{publicKey:{data:a}}=i.decode(t);const{n:r,e:s}=n.decode(a);return{kty:"RSA",n:o.encodeBigInt(r),e:o.encodeBigInt(s)}}},ec:{private(e){const t=e.export({type:"pkcs8",format:"der"});const i=u.get("PrivateKeyInfo");const n=u.get("ECPrivateKey");const{privateKey:l,algorithm:{parameters:{value:c}}}=i.decode(t);const{privateKey:d,publicKey:p}=n.decode(l);if(typeof p==="undefined"){if(r){return{...h.ec.public(s(e)),d:o.encodeBuffer(d)}}throw new a.JOSENotSupported("Private EC keys without the public key embedded are not supported in your Node.js runtime version")}const f=p.data.slice(1,(p.data.length-1)/2+1);const m=p.data.slice((p.data.length-1)/2+1);return{kty:"EC",crv:c,d:o.encodeBuffer(d),x:o.encodeBuffer(f),y:o.encodeBuffer(m)}},public(e){const t=e.export({type:"spki",format:"der"});const i=u.get("PublicKeyInfo");const{publicKey:{data:n},algorithm:{parameters:{value:a}}}=i.decode(t);const r=n.slice(1,(n.length-1)/2+1);const s=n.slice((n.length-1)/2+1);return{kty:"EC",crv:a,x:o.encodeBuffer(r),y:o.encodeBuffer(s)}}},ed25519:{private(e){return f.private("Ed25519",e)},public(e){return f.public("Ed25519",e)}},ed448:{private(e){return f.private("Ed448",e)},public(e){return f.public("Ed448",e)}},x25519:{private(e){return f.private("X25519",e)},public(e){return f.public("X25519",e)}},x448:{private(e){return f.private("X448",e)},public(e){return f.public("X448",e)}}};e.exports.keyObjectToJWK=(e=>{if(e.type==="private"){return h[e.asymmetricKeyType].private(e)}return h[e.asymmetricKeyType].public(e)});const m=(e,t)=>({unused:0,data:Buffer.concat([Buffer.alloc(1,4),o.decodeToBuffer(e),o.decodeToBuffer(t)])});const b={RSA:{private(e,{calculateMissingRSAPrimes:t}){const i=u.get("RSAPrivateKey");if("oth"in e){throw new a.JOSENotSupported("Private RSA keys with more than two primes are not supported")}if(e.p||e.q||e.dp||e.dq||e.qi){if(!(e.p&&e.q&&e.dp&&e.dq&&e.qi)){throw new a.JWKInvalid("all other private key parameters must be present when any one of them is present")}}else if(t){e=l(e)}else if(!t){throw new a.JOSENotSupported("importing private RSA keys without all other private key parameters is not enabled, see documentation and its advisory on how and when its ok to enable it")}return i.encode({version:0,n:BigInt(`0x${o.decodeToBuffer(e.n).toString("hex")}`),e:BigInt(`0x${o.decodeToBuffer(e.e).toString("hex")}`),d:BigInt(`0x${o.decodeToBuffer(e.d).toString("hex")}`),p:BigInt(`0x${o.decodeToBuffer(e.p).toString("hex")}`),q:BigInt(`0x${o.decodeToBuffer(e.q).toString("hex")}`),dp:BigInt(`0x${o.decodeToBuffer(e.dp).toString("hex")}`),dq:BigInt(`0x${o.decodeToBuffer(e.dq).toString("hex")}`),qi:BigInt(`0x${o.decodeToBuffer(e.qi).toString("hex")}`)},"pem",{label:"RSA PRIVATE KEY"})},public(e){const t=u.get("RSAPublicKey");return t.encode({version:0,n:BigInt(`0x${o.decodeToBuffer(e.n).toString("hex")}`),e:BigInt(`0x${o.decodeToBuffer(e.e).toString("hex")}`)},"pem",{label:"RSA PUBLIC KEY"})}},EC:{private(e){const t=u.get("ECPrivateKey");return t.encode({version:1,privateKey:o.decodeToBuffer(e.d),parameters:{type:"namedCurve",value:e.crv},publicKey:m(e.x,e.y)},"pem",{label:"EC PRIVATE KEY"})},public(e){const t=u.get("PublicKeyInfo");return t.encode({algorithm:{algorithm:"ecPublicKey",parameters:{type:"namedCurve",value:e.crv}},publicKey:m(e.x,e.y)},"pem",{label:"PUBLIC KEY"})}},OKP:{private(e){const t=u.get("OneAsymmetricKey");const i=t.encode({version:0,privateKey:{privateKey:o.decodeToBuffer(e.d)},algorithm:{algorithm:e.crv}},"der");i.write("04",12,1,"hex");return p(i.toString("base64"),"PRIVATE")},public(e){const t=u.get("PublicKeyInfo");return t.encode({algorithm:{algorithm:e.crv},publicKey:{unused:0,data:o.decodeToBuffer(e.x)}},"pem",{label:"PUBLIC KEY"})}}};e.exports.jwkToPem=((e,{calculateMissingRSAPrimes:t=false}={})=>{switch(e.kty){case"EC":if(!d.has(e.crv)){throw new a.JOSENotSupported(`unsupported EC key curve: ${e.crv}`)}break;case"OKP":if(!c.has(e.crv)){throw new a.JOSENotSupported(`unsupported OKP key curve: ${e.crv}`)}break;case"RSA":break;default:throw new a.JOSENotSupported(`unsupported key type: ${e.kty}`)}if(e.d){return b[e.kty].private(e,{calculateMissingRSAPrimes:t})}return b[e.kty].public(e)})},function(e,t,i){"use strict";const n=i(614);const a=i(373);const r=i(211);const s=i(363);const o=i(631);const u=i(818);const l=i(835);const c=i(301);const d=i(646);const p=i(330);const f=i(738);const h=i(10);const{BINARY_TYPES:m,EMPTY_BUFFER:b,GUID:g,kStatusCode:y,kWebSocket:S,NOOP:w}=i(799);const v=["CONNECTING","OPEN","CLOSING","CLOSED"];const z=[8,13];const j=30*1e3;class WebSocket extends n{constructor(e,t,i){super();this.readyState=WebSocket.CONNECTING;this.protocol="";this._binaryType=m[0];this._closeFrameReceived=false;this._closeFrameSent=false;this._closeMessage="";this._closeTimer=null;this._closeCode=1006;this._extensions={};this._receiver=null;this._sender=null;this._socket=null;if(e!==null){this._isServer=false;this._redirects=0;if(Array.isArray(t)){t=t.join(", ")}else if(typeof t==="object"&&t!==null){i=t;t=undefined}initAsClient(this,e,t,i)}else{this._isServer=true}}get CONNECTING(){return WebSocket.CONNECTING}get CLOSING(){return WebSocket.CLOSING}get CLOSED(){return WebSocket.CLOSED}get OPEN(){return WebSocket.OPEN}get binaryType(){return this._binaryType}set binaryType(e){if(!m.includes(e))return;this._binaryType=e;if(this._receiver)this._receiver._binaryType=e}get bufferedAmount(){if(!this._socket)return 0;return(this._socket.bufferSize||0)+this._sender._bufferedBytes}get extensions(){return Object.keys(this._extensions).join()}setSocket(e,t,i){const n=new f(this._binaryType,this._extensions,i);this._sender=new h(e,this._extensions);this._receiver=n;this._socket=e;n[S]=this;e[S]=this;n.on("conclude",receiverOnConclude);n.on("drain",receiverOnDrain);n.on("error",receiverOnError);n.on("message",receiverOnMessage);n.on("ping",receiverOnPing);n.on("pong",receiverOnPong);e.setTimeout(0);e.setNoDelay();if(t.length>0)e.unshift(t);e.on("close",socketOnClose);e.on("data",socketOnData);e.on("end",socketOnEnd);e.on("error",socketOnError);this.readyState=WebSocket.OPEN;this.emit("open")}emitClose(){this.readyState=WebSocket.CLOSED;if(!this._socket){this.emit("close",this._closeCode,this._closeMessage);return}if(this._extensions[c.extensionName]){this._extensions[c.extensionName].cleanup()}this._receiver.removeAllListeners();this.emit("close",this._closeCode,this._closeMessage)}close(e,t){if(this.readyState===WebSocket.CLOSED)return;if(this.readyState===WebSocket.CONNECTING){const e="WebSocket was closed before the connection was established";return abortHandshake(this,this._req,e)}if(this.readyState===WebSocket.CLOSING){if(this._closeFrameSent&&this._closeFrameReceived)this._socket.end();return}this.readyState=WebSocket.CLOSING;this._sender.close(e,t,!this._isServer,e=>{if(e)return;this._closeFrameSent=true;if(this._closeFrameReceived)this._socket.end()});this._closeTimer=setTimeout(this._socket.destroy.bind(this._socket),j)}ping(e,t,i){if(typeof e==="function"){i=e;e=t=undefined}else if(typeof t==="function"){i=t;t=undefined}if(this.readyState!==WebSocket.OPEN){const e=new Error(`WebSocket is not open: readyState ${this.readyState} `+`(${v[this.readyState]})`);if(i)return i(e);throw e}if(typeof e==="number")e=e.toString();if(t===undefined)t=!this._isServer;this._sender.ping(e||b,t,i)}pong(e,t,i){if(typeof e==="function"){i=e;e=t=undefined}else if(typeof t==="function"){i=t;t=undefined}if(this.readyState!==WebSocket.OPEN){const e=new Error(`WebSocket is not open: readyState ${this.readyState} `+`(${v[this.readyState]})`);if(i)return i(e);throw e}if(typeof e==="number")e=e.toString();if(t===undefined)t=!this._isServer;this._sender.pong(e||b,t,i)}send(e,t,i){if(typeof t==="function"){i=t;t={}}if(this.readyState!==WebSocket.OPEN){const e=new Error(`WebSocket is not open: readyState ${this.readyState} `+`(${v[this.readyState]})`);if(i)return i(e);throw e}if(typeof e==="number")e=e.toString();const n=Object.assign({binary:typeof e!=="string",mask:!this._isServer,compress:true,fin:true},t);if(!this._extensions[c.extensionName]){n.compress=false}this._sender.send(e||b,n,i)}terminate(){if(this.readyState===WebSocket.CLOSED)return;if(this.readyState===WebSocket.CONNECTING){const e="WebSocket was closed before the connection was established";return abortHandshake(this,this._req,e)}if(this._socket){this.readyState=WebSocket.CLOSING;this._socket.destroy()}}}v.forEach((e,t)=>{WebSocket[e]=t});["open","error","close","message"].forEach(e=>{Object.defineProperty(WebSocket.prototype,`on${e}`,{get(){const t=this.listeners(e);for(var i=0;i{abortHandshake(e,w,"Opening handshake has timed out")})}w.on("error",t=>{if(e._req.aborted)return;w=e._req=null;e.readyState=WebSocket.CLOSING;e.emit("error",t);e.emitClose()});w.on("response",a=>{const r=a.headers.location;const s=a.statusCode;if(r&&o.followRedirects&&s>=300&&s<400){if(++e._redirects>o.maxRedirects){abortHandshake(e,w,"Maximum redirects exceeded");return}w.abort();const a=l.URL?new l.URL(r,t):l.resolve(t,r);initAsClient(e,a,i,n)}else if(!e.emit("unexpected-response",w,a)){abortHandshake(e,w,`Unexpected server response: ${a.statusCode}`)}});w.on("upgrade",(t,n,r)=>{e.emit("upgrade",t);if(e.readyState!==WebSocket.CONNECTING)return;w=e._req=null;const s=a.createHash("sha1").update(m+g).digest("base64");if(t.headers["sec-websocket-accept"]!==s){abortHandshake(e,n,"Invalid Sec-WebSocket-Accept header");return}const u=t.headers["sec-websocket-protocol"];const l=(i||"").split(/, */);var d;if(!i&&u){d="Server sent a subprotocol but none was requested"}else if(i&&!u){d="Server sent no subprotocol"}else if(u&&!l.includes(u)){d="Server sent an invalid subprotocol"}if(d){abortHandshake(e,n,d);return}if(u)e.protocol=u;if(S){try{const i=p.parse(t.headers["sec-websocket-extensions"]);if(i[c.extensionName]){S.accept(i[c.extensionName]);e._extensions[c.extensionName]=S}}catch(t){abortHandshake(e,n,"Invalid Sec-WebSocket-Extensions header");return}}e.setSocket(n,r,o.maxPayload)})}function netConnect(e){if(e.protocolVersion)e.path=e.socketPath;return o.connect(e)}function tlsConnect(e){e.path=undefined;e.servername=e.servername||e.host;return u.connect(e)}function abortHandshake(e,t,i){e.readyState=WebSocket.CLOSING;const n=new Error(i);Error.captureStackTrace(n,abortHandshake);if(t.setHeader){t.abort();t.once("abort",e.emitClose.bind(e));e.emit("error",n)}else{t.destroy(n);t.once("error",e.emit.bind(e,"error"));t.once("close",e.emitClose.bind(e))}}function receiverOnConclude(e,t){const i=this[S];i._socket.removeListener("data",socketOnData);i._socket.resume();i._closeFrameReceived=true;i._closeMessage=t;i._closeCode=e;if(e===1005)i.close();else i.close(e,t)}function receiverOnDrain(){this[S]._socket.resume()}function receiverOnError(e){const t=this[S];t._socket.removeListener("data",socketOnData);t.readyState=WebSocket.CLOSING;t._closeCode=e[y];t.emit("error",e);t._socket.destroy()}function receiverOnFinish(){this[S].emitClose()}function receiverOnMessage(e){this[S].emit("message",e)}function receiverOnPing(e){const t=this[S];t.pong(e,!t._isServer,w);t.emit("ping",e)}function receiverOnPong(e){this[S].emit("pong",e)}function socketOnClose(){const e=this[S];this.removeListener("close",socketOnClose);this.removeListener("end",socketOnEnd);e.readyState=WebSocket.CLOSING;e._socket.read();e._receiver.end();this.removeListener("data",socketOnData);this[S]=undefined;clearTimeout(e._closeTimer);if(e._receiver._writableState.finished||e._receiver._writableState.errorEmitted){e.emitClose()}else{e._receiver.on("error",receiverOnFinish);e._receiver.on("finish",receiverOnFinish)}}function socketOnData(e){if(!this[S]._receiver.write(e)){this.pause()}}function socketOnEnd(){const e=this[S];e.readyState=WebSocket.CLOSING;e._receiver.end();this.end()}function socketOnError(){const e=this[S];this.removeListener("error",socketOnError);this.on("error",w);e.readyState=WebSocket.CLOSING;this.destroy()}},,function(e,t,i){"use strict";var n=i(43);e.exports=new n({include:[i(581)],implicit:[i(809),i(228),i(44),i(417)]})},function(module){module.exports=eval("require")("bufferutil")},,,,function(e){"use strict";e.exports=function generate_comment(e,t,i){var n=" ";var a=e.schema[t];var r=e.errSchemaPath+"/"+t;var s=!e.opts.allErrors;var o=e.util.toQuotedString(a);if(e.opts.$comment===true){n+=" console.log("+o+");"}else if(typeof e.opts.$comment=="function"){n+=" self._opts.$comment("+o+", "+e.util.toQuotedString(r)+", validate.root.schema);"}return n}},,,,function(e,t,i){const{createHash:n}=i(373);const a=i(208);const r=(e,t)=>a.encodeBuffer(n(e).update(Buffer.from(t,"base64")).digest());e.exports.kid=(e=>a.encodeBuffer(n("sha256").update(JSON.stringify(e)).digest()));e.exports.x5t=r.bind(undefined,"sha1");e.exports["x5t#S256"]=r.bind(undefined,"sha256")},,function(e,t,i){const{createSign:n,createVerify:a,constants:r}=i(373);const{KEYOBJECT:s}=i(771);const o=i(165);const{asInput:u}=i(40);const l=(e,{[s]:t},i)=>{const a=u(t,false);return n(e).update(i).sign({key:a,padding:r.RSA_PKCS1_PSS_PADDING,saltLength:r.RSA_PSS_SALTLEN_DIGEST})};const c=(e,{[s]:t},i,n)=>{const o=u(t,true);return a(e).update(i).verify({key:o,padding:r.RSA_PKCS1_PSS_PADDING,saltLength:r.RSA_PSS_SALTLEN_DIGEST},n)};const d={PS256:528,PS384:784,PS512:1040};e.exports=((e,t)=>{["PS256","PS384","PS512"].forEach(i=>{const n=o(i);e.sign.set(i,l.bind(undefined,n));e.verify.set(i,c.bind(undefined,n));t.RSA.sign[i]=(e=>e.private&&t.RSA.verify[i](e));t.RSA.verify[i]=(e=>(e.use==="sig"||e.use===undefined)&&e.length>=d[i])})})},function(e,t,i){"use strict";var n=i(701);var a=n.Cookie;var r=n.CookieJar;t.parse=function(e){if(e&&e.uri){e=e.uri}if(typeof e!=="string"){throw new Error("The cookie function only accepts STRING as param")}return a.parse(e,{loose:true})};function RequestJar(e){var t=this;t._jar=new r(e,{looseMode:true})}RequestJar.prototype.setCookie=function(e,t,i){var n=this;return n._jar.setCookieSync(e,t,i||{})};RequestJar.prototype.getCookieString=function(e){var t=this;return t._jar.getCookieStringSync(e)};RequestJar.prototype.getCookies=function(e){var t=this;return t._jar.getCookiesSync(e)};t.jar=function(e){return new RequestJar(e)}},function(e,t,i){const{createCipheriv:n,createDecipheriv:a,getCiphers:r}=i(373);const{KEYOBJECT:s}=i(771);const{asInput:o}=i(40);const u=e=>{if(e!==undefined&&e.length%8!==0){throw new Error("invalid data length")}};const l=(e,{[s]:t},i)=>{const a=o(t,false);const r=n(e,a,Buffer.alloc(8,"a6","hex"));return{wrapped:Buffer.concat([r.update(i),r.final()])}};const c=(e,{[s]:t},i)=>{const n=o(t,false);u(i);const r=a(e,n,Buffer.alloc(8,"a6","hex"));return Buffer.concat([r.update(i),r.final()])};e.exports=((e,t)=>{["A128KW","A192KW","A256KW"].forEach(i=>{const n=parseInt(i.substr(1,3),10);const a=`aes${n}-wrap`;if(r().includes(a)){e.keyManagementEncrypt.set(i,l.bind(undefined,a));e.keyManagementDecrypt.set(i,c.bind(undefined,a));t.oct.wrapKey[i]=t.oct.unwrapKey[i]=(e=>(e.use==="enc"||e.use===undefined)&&e.length===n)}})})},,function(e){const t=60;const i=t*60;const n=i*24;const a=n*7;const r=n*365.25;const s=/^(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)$/i;e.exports=(e=>{const o=s.exec(e);if(!o){throw new TypeError(`invalid time period format ("${e}")`)}const u=parseFloat(o[1]);const l=o[2].toLowerCase();switch(l){case"sec":case"secs":case"second":case"seconds":case"s":return Math.round(u);case"minute":case"minutes":case"min":case"mins":case"m":return Math.round(u*t);case"hour":case"hours":case"hr":case"hrs":case"h":return Math.round(u*i);case"day":case"days":case"d":return Math.round(u*n);case"week":case"weeks":case"w":return Math.round(u*a);case"year":case"years":case"yr":case"yrs":case"y":return Math.round(u*r)}})},function(e,t,i){const{inspect:n,deprecate:a}=i(669);const r=i(835);const s=i(387);const o=i(101);const u=i(702);const l=i(472);const{RPError:c}=i(572);const d=i(860);const p=i(564);const f=i(88);const h=i(244);const m=i(880);const b=i(204);const{assertIssuerConfiguration:g}=i(770);const{ISSUER_DEFAULTS:y,OIDC_DISCOVERY:S,OAUTH2_DISCOVERY:w,WEBFINGER:v,REL:z,AAD_MULTITENANT_DISCOVERY:j}=i(468);const O=Symbol("AAD_MULTITENANT");class Issuer{constructor(e={}){const t=e[O];delete e[O];["introspection","revocation"].forEach(t=>{if(e[`${t}_endpoint`]&&e[`${t}_endpoint_auth_methods_supported`]===undefined&&e[`${t}_endpoint_auth_signing_alg_values_supported`]===undefined){if(e.token_endpoint_auth_methods_supported){e[`${t}_endpoint_auth_methods_supported`]=e.token_endpoint_auth_methods_supported}if(e.token_endpoint_auth_signing_alg_values_supported){e[`${t}_endpoint_auth_signing_alg_values_supported`]=e.token_endpoint_auth_signing_alg_values_supported}}});Object.entries(e).forEach(([e,t])=>{m(this).get("metadata").set(e,t);if(!this[e]){Object.defineProperty(this,e,{get(){return m(this).get("metadata").get(e)},enumerable:true})}});m(this).set("cache",new u({max:100}));p.set(this.issuer,this);Object.defineProperty(this,"Client",{value:d(this,t)});Object.defineProperty(this,"FAPIClient",{value:class FAPIClient extends this.Client{}})}async keystore(e=false){g(this,"jwks_uri");const t=m(this).get("keystore");const i=m(this).get("cache");if(e||!t){i.reset();const e=await b.call(this,{method:"GET",json:true,url:this.jwks_uri});const t=f(e);const n=s.JWKS.asKeyStore(t,{ignoreErrors:true});i.set("throttle",true,60*1e3);m(this).set("keystore",n);return n}return t}async queryKeyStore({kid:e,kty:t,alg:i,use:n,key_ops:a},{allowMulti:r=false}={}){const o=m(this).get("cache");const u={kid:e,kty:t,alg:i,use:n,key_ops:a};const d=l(u,{algorithm:"sha256",ignoreUnknown:true,unorderedArrays:true,unorderedSets:true});const p=o.get(d)||o.get("throttle");const f=await this.keystore(!p);const h=f.all(u);if(h.length===0){throw new c({printf:["no valid key found in issuer's jwks_uri for key parameters %j",u],jwks:f})}if(!r&&h.length>1&&!e){throw new c({printf:["multiple matching keys found in issuer's jwks_uri for key parameters %j, kid must be provided in this case",u],jwks:f})}o.set(d,true);return new s.JWKS.KeyStore(h)}get metadata(){const e={};m(this).get("metadata").forEach((t,i)=>{e[i]=t});return e}static async webfinger(e){const t=h(e);const{host:i}=r.parse(t);const n=`https://${i}${v}`;const a=await b.call(this,{method:"GET",url:n,json:true,query:{resource:t,rel:z},followRedirect:true});const s=f(a);const o=Array.isArray(s.links)&&s.links.find(e=>typeof e==="object"&&e.rel===z&&e.href);if(!o){throw new c({message:"no issuer found in webfinger response",body:s})}if(typeof o.href!=="string"||!o.href.startsWith("https://")){throw new c({printf:["invalid issuer location %s",o.href],body:s})}const u=o.href;if(p.has(u)){return p.get(u)}const l=await this.discover(u);if(l.issuer!==u){p.delete(l.issuer);throw new c("discovered issuer mismatch, expected %s, got: %s",u,l.issuer)}return l}static async discover(e){const t=r.parse(e);if(t.pathname.includes("/.well-known/")){const t=await b.call(this,{method:"GET",json:true,url:e});const i=f(t);return new Issuer({...y,...i,[O]:!!j.find(t=>e.startsWith(t))})}const i=[];if(t.pathname==="/"){i.push(`${w}`)}else{i.push(`${w}${t.pathname}`)}if(t.pathname.endsWith("/")){i.push(`${t.pathname}${S.substring(1)}`)}else{i.push(`${t.pathname}${S}`)}return o(i.map(async e=>{const i=r.format({...t,pathname:e});const n=await b.call(this,{method:"GET",json:true,url:i});const a=f(n);return new Issuer({...y,...a,[O]:!!j.find(e=>i.startsWith(e))})}))}[n.custom](){return`${this.constructor.name} ${n(this.metadata,{depth:Infinity,colors:process.stdout.isTTY,compact:false,sorted:true})}`}}Issuer.prototype.key=a(async function key({kid:e,kty:t,alg:i,use:n,key_ops:a},r=false){const s=m(this).get("cache");const o={kid:e,kty:t,alg:i,use:n,key_ops:a};const u=l(o,{algorithm:"sha256",ignoreUnknown:true,unorderedArrays:true,unorderedSets:true});const d=s.get(u)||s.get("throttle");const p=await this.keystore(!d);const f=p.all(o);if(f.length===0){throw new c({printf:["no valid key found in issuer's jwks_uri for key parameters %j",o],jwks:p})}if(!r){if(f.length!==1){throw new c({printf:["multiple matching keys found in issuer's jwks_uri for key parameters %j, kid must be provided in this case",o],jwks:p})}s.set(u,true)}return f[0]},"issuer.key is not only a private API, it is also deprecated");e.exports=Issuer},function(e,t,i){const{keyObjectSupported:n}=i(915);let a;let r;let s;let o;let u;if(n){({createPublicKey:a,createPrivateKey:r,createSecretKey:s,KeyObject:o}=i(373));u=(e=>e)}else{const{EOL:e}=i(87);const t=i(466);const n=i(274);const l=i(884);const c=Symbol("toInput");const d=Symbol("namedCurve");u=((e,t)=>{if(e instanceof o){return e[c](t)}return s(e)[c](t)});const p=e=>Buffer.from(e.replace(/(?:-----(?:BEGIN|END)(?: (?:RSA|EC))? (?:PRIVATE|PUBLIC) KEY-----|\s)/g,""),"base64");const f=(t,i)=>`-----BEGIN ${i}-----${e}${(t.toString("base64").match(/.{1,64}/g)||[]).join(e)}${e}-----END ${i}-----`;const h=e=>{const i=typeof e==="string"?e:`OID ${e.join(".")}`;throw new t.JOSENotSupported(`${i} is not supported in your Node.js runtime version`)};o=class KeyObject{export({cipher:e,passphrase:i,type:n,format:a}={}){if(this._type==="secret"){return this._buffer}if(this._type==="public"){if(this.asymmetricKeyType==="rsa"){switch(n){case"pkcs1":if(a==="pem"){return this._pem}return p(this._pem);case"spki":{const e=l.get("PublicKeyInfo");const t=e.encode({algorithm:{algorithm:"rsaEncryption",parameters:{type:"null"}},publicKey:{unused:0,data:p(this._pem)}},"pem",{label:"PUBLIC KEY"});return a==="pem"?t:p(t)}default:throw new TypeError(`The value ${n} is invalid for option "type"`)}}if(this.asymmetricKeyType==="ec"){if(n!=="spki"){throw new TypeError(`The value ${n} is invalid for option "type"`)}if(a==="pem"){return this._pem}return p(this._pem)}}if(this._type==="private"){if(i!==undefined||e!==undefined){throw new t.JOSENotSupported("encrypted private keys are not supported in your Node.js runtime version")}if(n==="pkcs8"){if(this._pkcs8){if(a==="der"&&typeof this._pkcs8==="string"){return p(this._pkcs8)}if(a==="pem"&&Buffer.isBuffer(this._pkcs8)){return f(this._pkcs8,"PRIVATE KEY")}return this._pkcs8}if(this.asymmetricKeyType==="rsa"){const e=this._asn1;const t=l.get("RSAPrivateKey");const i=t.encode(e);const r=l.get("PrivateKeyInfo");const s=r.encode({version:0,privateKey:i,algorithm:{algorithm:"rsaEncryption",parameters:{type:"null"}}});this._pkcs8=s;return this.export({type:n,format:a})}if(this.asymmetricKeyType==="ec"){const e=this._asn1;const t=l.get("ECPrivateKey");const i=t.encode({version:e.version,privateKey:e.privateKey,publicKey:e.publicKey});const r=l.get("PrivateKeyInfo");const s=r.encode({version:0,privateKey:i,algorithm:{algorithm:"ecPublicKey",parameters:this._asn1.parameters}});this._pkcs8=s;return this.export({type:n,format:a})}}if(this.asymmetricKeyType==="rsa"&&n==="pkcs1"){if(a==="pem"){return this._pem}return p(this._pem)}else if(this.asymmetricKeyType==="ec"&&n==="sec1"){if(a==="pem"){return this._pem}return p(this._pem)}else{throw new TypeError(`The value ${n} is invalid for option "type"`)}}}get type(){return this._type}get asymmetricKeyType(){return this._asymmetricKeyType}get symmetricKeySize(){return this._symmetricKeySize}[c](e){switch(this._type){case"secret":return this._buffer;case"public":return this._pem;default:if(e){if(!("_pub"in this)){this._pub=a(this)}return this._pub[c](false)}return this._pem}}};s=(e=>{if(!Buffer.isBuffer(e)||!e.length){throw new TypeError("input must be a non-empty Buffer instance")}const t=new o;t._buffer=Buffer.from(e);t._symmetricKeySize=e.length;t._type="secret";return t});a=(e=>{if(e instanceof o){if(e.type!=="private"){throw new TypeError(`Invalid key object type ${e.type}, expected private.`)}switch(e.asymmetricKeyType){case"ec":{const t=l.get("PublicKeyInfo");const i=t.encode({algorithm:{algorithm:"ecPublicKey",parameters:e._asn1.parameters},publicKey:e._asn1.publicKey});return a({key:i,format:"der",type:"spki"})}case"rsa":{const t=l.get("RSAPublicKey");const i=t.encode(e._asn1);return a({key:i,format:"der",type:"pkcs1"})}}}if(typeof e==="string"||Buffer.isBuffer(e)){e={key:e,format:"pem"}}if(!n(e)){throw new TypeError("input must be a string, Buffer or an object")}const{format:i,passphrase:s}=e;let{key:u,type:c}=e;if(typeof u!=="string"&&!Buffer.isBuffer(u)){throw new TypeError("key must be a string or Buffer")}if(i!=="pem"&&i!=="der"){throw new TypeError('format must be one of "pem" or "der"')}let d;if(i==="pem"){u=u.toString();switch(u.split(/\r?\n/g)[0].toString()){case"-----BEGIN PUBLIC KEY-----":c="spki";d="PUBLIC KEY";break;case"-----BEGIN RSA PUBLIC KEY-----":c="pkcs1";d="RSA PUBLIC KEY";break;case"-----BEGIN CERTIFICATE-----":throw new t.JOSENotSupported("X.509 certificates are not supported in your Node.js runtime version");case"-----BEGIN PRIVATE KEY-----":case"-----BEGIN EC PRIVATE KEY-----":case"-----BEGIN RSA PRIVATE KEY-----":return a(r(u));default:throw new TypeError("unknown/unsupported PEM type")}}switch(c){case"spki":{const e=l.get("PublicKeyInfo");const t=e.decode(u,i,{label:d});let n,r;switch(t.algorithm.algorithm){case"ecPublicKey":{r=new o;r._asn1=t;r._asymmetricKeyType="ec";r._type="public";r._pem=e.encode(t,"pem",{label:"PUBLIC KEY"});break}case"rsaEncryption":{n="pkcs1";r=a({type:n,key:t.publicKey.data,format:"der"});break}default:h(t.algorithm.algorithm)}return r}case"pkcs1":{const e=l.get("RSAPublicKey");const t=e.decode(u,i,{label:d});if(t.n===BigInt(0)){return a(r({key:u,format:i,type:c,passphrase:s}))}const n=new o;n._asn1=t;n._asymmetricKeyType="rsa";n._type="public";n._pem=e.encode(t,"pem",{label:"RSA PUBLIC KEY"});return n}case"pkcs8":case"sec1":return a(r({format:i,key:u,type:c,passphrase:s}));default:throw new TypeError(`The value ${c} is invalid for option "type"`)}});r=((e,i)=>{if(typeof e==="string"||Buffer.isBuffer(e)){e={key:e,format:"pem"}}if(!n(e)){throw new TypeError("input must be a string, Buffer or an object")}const{format:a,passphrase:s}=e;let{key:u,type:c}=e;if(typeof u!=="string"&&!Buffer.isBuffer(u)){throw new TypeError("key must be a string or Buffer")}if(s!==undefined){throw new t.JOSENotSupported("encrypted private keys are not supported in your Node.js runtime version")}if(a!=="pem"&&a!=="der"){throw new TypeError('format must be one of "pem" or "der"')}let p;if(a==="pem"){u=u.toString();switch(u.split(/\r?\n/g)[0].toString()){case"-----BEGIN PRIVATE KEY-----":c="pkcs8";p="PRIVATE KEY";break;case"-----BEGIN EC PRIVATE KEY-----":c="sec1";p="EC PRIVATE KEY";break;case"-----BEGIN RSA PRIVATE KEY-----":c="pkcs1";p="RSA PRIVATE KEY";break;default:throw new TypeError("unknown/unsupported PEM type")}}switch(c){case"pkcs8":{const e=l.get("PrivateKeyInfo");const t=e.decode(u,a,{label:p});let i,n;switch(t.algorithm.algorithm){case"ecPublicKey":{i="sec1";n=r({type:i,key:t.privateKey,format:"der"},{[d]:t.algorithm.parameters.value});break}case"rsaEncryption":{i="pkcs1";n=r({type:i,key:t.privateKey,format:"der"});break}default:h(t.algorithm.algorithm)}n._pkcs8=u;return n}case"pkcs1":{const e=l.get("RSAPrivateKey");const t=e.decode(u,a,{label:p});const i=new o;i._asn1=t;i._asymmetricKeyType="rsa";i._type="private";i._pem=e.encode(t,"pem",{label:"RSA PRIVATE KEY"});return i}case"sec1":{const e=l.get("ECPrivateKey");let t=e.decode(u,a,{label:p});if(!("parameters"in t)&&!i[d]){throw new Error("invalid sec1")}else if(!("parameters"in t)){t={...t,parameters:{type:"namedCurve",value:i[d]}}}const n=new o;n._asn1=t;n._asymmetricKeyType="ec";n._type="private";n._pem=e.encode(t,"pem",{label:"EC PRIVATE KEY"});return n}default:throw new TypeError(`The value ${c} is invalid for option "type"`)}})}e.exports={createPublicKey:a,createPrivateKey:r,createSecretKey:s,KeyObject:o,asInput:u}},function(e){e.exports={$id:"har.json#",$schema:"http://json-schema.org/draft-06/schema#",type:"object",required:["log"],properties:{log:{$ref:"log.json#"}}}},,function(e,t,i){"use strict";var n=i(128);var a=i(556);var r=i(945);function compileList(e,t,i){var n=[];e.include.forEach(function(e){i=compileList(e,t,i)});e[t].forEach(function(e){i.forEach(function(t,i){if(t.tag===e.tag&&t.kind===e.kind){n.push(i)}});i.push(e)});return i.filter(function(e,t){return n.indexOf(t)===-1})}function compileMap(){var e={scalar:{},sequence:{},mapping:{},fallback:{}},t,i;function collectType(t){e[t.kind][t.tag]=e["fallback"][t.tag]=t}for(t=0,i=arguments.length;t=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},function(e,t,i){"use strict";var n=/^[a-z_$][a-z0-9_$-]*$/i;var a=i(187);var r=i(952);e.exports={add:addKeyword,get:getKeyword,remove:removeKeyword,validate:validateKeyword};function addKeyword(e,t){var i=this.RULES;if(i.keywords[e])throw new Error("Keyword "+e+" is already defined");if(!n.test(e))throw new Error("Keyword "+e+" is not a valid identifier");if(t){this.validateKeyword(t,true);var r=t.type;if(Array.isArray(r)){for(var s=0;s{return t.some(t=>t instanceof RegExp?t.test(e):t===e)};const o=(e,{stripHash:t})=>{const i=e.match(/^data:(.*?),(.*?)(?:#(.*))?$/);if(!i){throw new Error(`Invalid URL: ${e}`)}const n=i[1].split(";");const s=i[2];const o=t?"":i[3];let u=false;if(n[n.length-1]==="base64"){n.pop();u=true}const l=(n.shift()||"").toLowerCase();const c=n.map(e=>{let[t,i=""]=e.split("=").map(e=>e.trim());if(t==="charset"){i=i.toLowerCase();if(i===r){return""}}return`${t}${i?`=${i}`:""}`}).filter(Boolean);const d=[...c];if(u){d.push("base64")}if(d.length!==0||l&&l!==a){d.unshift(l)}return`data:${d.join(";")},${u?s.trim():s}${o?`#${o}`:""}`};const u=(e,t)=>{t={defaultProtocol:"http:",normalizeProtocol:true,forceHttp:false,forceHttps:false,stripAuthentication:true,stripHash:false,stripWWW:true,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:true,removeDirectoryIndex:false,sortQueryParameters:true,...t};if(Reflect.has(t,"normalizeHttps")){throw new Error("options.normalizeHttps is renamed to options.forceHttp")}if(Reflect.has(t,"normalizeHttp")){throw new Error("options.normalizeHttp is renamed to options.forceHttps")}if(Reflect.has(t,"stripFragment")){throw new Error("options.stripFragment is renamed to options.stripHash")}e=e.trim();if(/^data:/i.test(e)){return o(e,t)}const i=e.startsWith("//");const a=!i&&/^\.*\//.test(e);if(!a){e=e.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,t.defaultProtocol)}const r=new n(e);if(t.forceHttp&&t.forceHttps){throw new Error("The `forceHttp` and `forceHttps` options cannot be used together")}if(t.forceHttp&&r.protocol==="https:"){r.protocol="http:"}if(t.forceHttps&&r.protocol==="http:"){r.protocol="https:"}if(t.stripAuthentication){r.username="";r.password=""}if(t.stripHash){r.hash=""}if(r.pathname){r.pathname=r.pathname.replace(/((?!:).|^)\/{2,}/g,(e,t)=>{if(/^(?!\/)/g.test(t)){return`${t}/`}return"/"})}if(r.pathname){r.pathname=decodeURI(r.pathname)}if(t.removeDirectoryIndex===true){t.removeDirectoryIndex=[/^index\.[a-z]+$/]}if(Array.isArray(t.removeDirectoryIndex)&&t.removeDirectoryIndex.length>0){let e=r.pathname.split("/");const i=e[e.length-1];if(s(i,t.removeDirectoryIndex)){e=e.slice(0,e.length-1);r.pathname=e.slice(1).join("/")+"/"}}if(r.hostname){r.hostname=r.hostname.replace(/\.$/,"");if(t.stripWWW&&/^www\.([a-z\-\d]{2,63})\.([a-z.]{2,5})$/.test(r.hostname)){r.hostname=r.hostname.replace(/^www\./,"")}}if(Array.isArray(t.removeQueryParameters)){for(const e of[...r.searchParams.keys()]){if(s(e,t.removeQueryParameters)){r.searchParams.delete(e)}}}if(t.sortQueryParameters){r.searchParams.sort()}if(t.removeTrailingSlash){r.pathname=r.pathname.replace(/\/$/,"")}e=r.toString();if((t.removeTrailingSlash||r.pathname==="/")&&r.hash===""){e=e.replace(/\/$/,"")}if(i&&!t.normalizeProtocol){e=e.replace(/^http:\/\//,"//")}if(t.stripProtocol){e=e.replace(/^(?:https?:)?\/\//,"")}return e};e.exports=u;e.exports.default=u},function(e,t){"use strict";function pathMatch(e,t){if(t===e){return true}var i=e.indexOf(t);if(i===0){if(t.substr(-1)==="/"){return true}if(e.substr(t.length,1)==="/"){return true}}return false}t.pathMatch=pathMatch},,,function(e,t,i){"use strict";const n=i(747);const a=i(669);const r=i(534);const s=i(504);e.exports=(async e=>{const{body:t}=e;if(e.headers["content-length"]){return Number(e.headers["content-length"])}if(!t&&!e.stream){return 0}if(r.string(t)){return Buffer.byteLength(t)}if(s(t)){return a.promisify(t.getLength.bind(t))()}if(t instanceof n.ReadStream){const{size:e}=await a.promisify(n.stat)(t.path);return e}return null})},,function(e,t,i){"use strict";e.exports=i(237)},function(e){"use strict";e.exports={BINARY_TYPES:["nodebuffer","arraybuffer","fragments"],GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),EMPTY_BUFFER:Buffer.alloc(0),NOOP:()=>{}}},,function(e,t,i){var n=i(602);var a=i(747);n.register("tail",_tail,{canReceivePipe:true,cmdOptions:{n:"numLines"}});function _tail(e,t){var i=[];var r=n.readFromPipe();if(!t&&!r)n.error("no paths given");var s=1;if(e.numLines===true){s=2;e.numLines=Number(arguments[1])}else if(e.numLines===false){e.numLines=10}e.numLines=-1*Math.abs(e.numLines);t=[].slice.call(arguments,s);if(r){t.unshift("-")}var o=false;t.forEach(function(t){if(t!=="-"){if(!a.existsSync(t)){n.error("no such file or directory: "+t,{continue:true});return}else if(n.statFollowLinks(t).isDirectory()){n.error("error reading '"+t+"': Is a directory",{continue:true});return}}var s=t==="-"?r:a.readFileSync(t,"utf8");var u=s.split("\n");if(u[u.length-1]===""){u.pop();o=true}else{o=false}i=i.concat(u.slice(e.numLines))});if(o){i.push("")}return i.join("\n")}e.exports=_tail},function(e,t,i){var n=i(747);var a=i(622);var r=i(602);var s=i(838);var o=i(688);r.register("mv",_mv,{cmdOptions:{f:"!no_force",n:"no_force"}});function checkRecentCreated(e,t){var i=e[t];return e.slice(0,t).some(function(e){return a.basename(e)===a.basename(i)})}function _mv(e,t,i){if(arguments.length<3){r.error("missing and/or ")}else if(arguments.length>3){t=[].slice.call(arguments,1,arguments.length-1);i=arguments[arguments.length-1]}else if(typeof t==="string"){t=[t]}else{r.error("invalid arguments")}var u=n.existsSync(i);var l=u&&r.statFollowLinks(i);if((!u||!l.isDirectory())&&t.length>1){r.error("dest is not a directory (too many sources)")}if(u&&l.isFile()&&e.no_force){r.error("dest file already exists: "+i)}t.forEach(function(u,l){if(!n.existsSync(u)){r.error("no such file or directory: "+u,{continue:true});return}var c=i;if(n.existsSync(i)&&r.statFollowLinks(i).isDirectory()){c=a.normalize(i+"/"+a.basename(u))}var d=n.existsSync(c);if(d&&checkRecentCreated(t,l)){if(!e.no_force){r.error("will not overwrite just-created '"+c+"' with '"+u+"'",{continue:true})}return}if(n.existsSync(c)&&e.no_force){r.error("dest file already exists: "+c,{continue:true});return}if(a.resolve(u)===a.dirname(a.resolve(c))){r.error("cannot move to self: "+u,{continue:true});return}try{n.renameSync(u,c)}catch(e){if(e.code==="EXDEV"){s("-r",u,c);o("-rf",u)}}});return""}e.exports=_mv},function(e,t,i){var n=i(872);var a=i(373);var r=i(363);var s=i(669);var o=i(650);var u=i(348);var l=i(909);var c=i(669).format;var d=l.HASH_ALGOS;var p=l.PK_ALGOS;var f=l.InvalidAlgorithmError;var h=l.HttpSignatureError;var m=l.validateAlgorithm;var b='Signature keyId="%s",algorithm="%s",headers="%s",signature="%s"';function MissingHeaderError(e){h.call(this,e,MissingHeaderError)}s.inherits(MissingHeaderError,h);function StrictParsingError(e){h.call(this,e,StrictParsingError)}s.inherits(StrictParsingError,h);function RequestSigner(e){n.object(e,"options");var t=[];if(e.algorithm!==undefined){n.string(e.algorithm,"options.algorithm");t=m(e.algorithm)}this.rs_alg=t;if(e.sign!==undefined){n.func(e.sign,"options.sign");this.rs_signFunc=e.sign}else if(t[0]==="hmac"&&e.key!==undefined){n.string(e.keyId,"options.keyId");this.rs_keyId=e.keyId;if(typeof e.key!=="string"&&!Buffer.isBuffer(e.key))throw new TypeError("options.key for HMAC must be a string or Buffer");this.rs_signer=a.createHmac(t[1].toUpperCase(),e.key);this.rs_signer.sign=function(){var e=this.digest("base64");return{hashAlgorithm:t[1],toString:function(){return e}}}}else if(e.key!==undefined){var i=e.key;if(typeof i==="string"||Buffer.isBuffer(i))i=o.parsePrivateKey(i);n.ok(o.PrivateKey.isPrivateKey(i,[1,2]),"options.key must be a sshpk.PrivateKey");this.rs_key=i;n.string(e.keyId,"options.keyId");this.rs_keyId=e.keyId;if(!p[i.type]){throw new f(i.type.toUpperCase()+" type "+"keys are not supported")}if(t[0]!==undefined&&i.type!==t[0]){throw new f("options.key must be a "+t[0].toUpperCase()+" key, was given a "+i.type.toUpperCase()+" key instead")}this.rs_signer=i.createSign(t[1])}else{throw new TypeError("options.sign (func) or options.key is required")}this.rs_headers=[];this.rs_lines=[]}RequestSigner.prototype.writeHeader=function(e,t){n.string(e,"header");e=e.toLowerCase();n.string(t,"value");this.rs_headers.push(e);if(this.rs_signFunc){this.rs_lines.push(e+": "+t)}else{var i=e+": "+t;if(this.rs_headers.length>0)i="\n"+i;this.rs_signer.update(i)}return t};RequestSigner.prototype.writeDateHeader=function(){return this.writeHeader("date",u.rfc1123(new Date))};RequestSigner.prototype.writeTarget=function(e,t){n.string(e,"method");n.string(t,"path");e=e.toLowerCase();this.writeHeader("(request-target)",e+" "+t)};RequestSigner.prototype.sign=function(e){n.func(e,"callback");if(this.rs_headers.length<1)throw new Error("At least one header must be signed");var t,i;if(this.rs_signFunc){var a=this.rs_lines.join("\n");var r=this;this.rs_signFunc(a,function(a,s){if(a){e(a);return}try{n.object(s,"signature");n.string(s.keyId,"signature.keyId");n.string(s.algorithm,"signature.algorithm");n.string(s.signature,"signature.signature");t=m(s.algorithm);i=c(b,s.keyId,s.algorithm,r.rs_headers.join(" "),s.signature)}catch(t){e(t);return}e(null,i)})}else{try{var s=this.rs_signer.sign()}catch(t){e(t);return}t=(this.rs_alg[0]||this.rs_key.type)+"-"+s.hashAlgorithm;var o=s.toString();i=c(b,this.rs_keyId,t,this.rs_headers.join(" "),o);e(null,i)}};e.exports={isSigner:function(e){if(typeof e==="object"&&e instanceof RequestSigner)return true;return false},createSigner:function createSigner(e){return new RequestSigner(e)},signRequest:function signRequest(e,t){n.object(e,"request");n.object(t,"options");n.optionalString(t.algorithm,"options.algorithm");n.string(t.keyId,"options.keyId");n.optionalArrayOfString(t.headers,"options.headers");n.optionalString(t.httpVersion,"options.httpVersion");if(!e.getHeader("Date"))e.setHeader("Date",u.rfc1123(new Date));if(!t.headers)t.headers=["date"];if(!t.httpVersion)t.httpVersion="1.1";var i=[];if(t.algorithm){t.algorithm=t.algorithm.toLowerCase();i=m(t.algorithm)}var r;var s="";for(r=0;ra){throw new TypeError(`version is longer than ${a} characters`)}n("SemVer",e,t);this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;const i=e.trim().match(t.loose?s[o.LOOSE]:s[o.FULL]);if(!i){throw new TypeError(`Invalid Version: ${e}`)}this.raw=e;this.major=+i[1];this.minor=+i[2];this.patch=+i[3];if(this.major>r||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>r||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>r||this.patch<0){throw new TypeError("Invalid patch version")}if(!i[4]){this.prerelease=[]}else{this.prerelease=i[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t=0){if(typeof this.prerelease[e]==="number"){this.prerelease[e]++;e=-2}}if(e===-1){this.prerelease.push(0)}}if(t){if(this.prerelease[0]===t){if(isNaN(this.prerelease[1])){this.prerelease=[t,0]}}else{this.prerelease=[t,0]}}break;default:throw new Error(`invalid increment argument: ${e}`)}this.format();this.raw=this.version;return this}}e.exports=SemVer},,,function(e,t,i){const{createHash:n}=i(373);const a=i(827);const r=(e,t,i)=>{const a=Math.ceil(t/32);let r;for(let t=1;t<=a;t++){const a=Buffer.allocUnsafe(4+e.length+i.length);a.writeUInt32BE(t,0);e.copy(a,4);i.copy(a,4+e.length);if(!r){r=n("sha256").update(a).digest()}else{r=Buffer.concat([r,n("sha256").update(a).digest()])}}return r.slice(0,t)};const s=(e,t=Buffer.allocUnsafe(4))=>{t.writeUInt32BE(e);return t};const o=e=>Buffer.concat([s(e.length),e]);e.exports=((e,t,i,n,{apu:u=Buffer.alloc(0),apv:l=Buffer.alloc(0)}={},c=a)=>{const d=Buffer.concat([o(Buffer.from(e)),o(u),o(l),s(t)]);const p=c(i,n);return r(p,t/8,d)})},function(e){e.exports=(e=>(function(){this.seq().obj(this.key("algorithm").use(e),this.key("publicKey").bitstr())}))},,,,,,,,,function(e,t,i){e.exports={read:read,readSSHPrivate:readSSHPrivate,write:write};var n=i(872);var a=i(325);var r=i(215).Buffer;var s=i(98);var o=i(270);var u=i(373);var l=i(852);var c=i(502);var d=i(268);var p=i(538);var f=i(940);var h=i(753);var m;function read(e,t){return d.read(e,t)}var b="openssh-key-v1";function readSSHPrivate(e,t,a){t=new f({buffer:t});var s=t.readCString();n.strictEqual(s,b,"bad magic string");var l=t.readString();var c=t.readString();var d=t.readBuffer();var g=t.readInt();if(g!==1){throw new Error("OpenSSH-format key file contains "+"multiple keys: this is unsupported.")}var y=t.readBuffer();if(e==="public"){n.ok(t.atEnd(),"excess bytes left after key");return p.read(y)}var S=t.readBuffer();n.ok(t.atEnd(),"excess bytes left after key");var w=new f({buffer:d});switch(c){case"none":if(l!=="none"){throw new Error('OpenSSH-format key uses KDF "none" '+'but specifies a cipher other than "none"')}break;case"bcrypt":var v=w.readBuffer();var z=w.readInt();var j=o.opensshCipherInfo(l);if(m===undefined){m=i(641)}if(typeof a.passphrase==="string"){a.passphrase=r.from(a.passphrase,"utf-8")}if(!r.isBuffer(a.passphrase)){throw new h.KeyEncryptedError(a.filename,"OpenSSH")}var O=new Uint8Array(a.passphrase);var k=new Uint8Array(v);var C=new Uint8Array(j.keySize+j.blockSize);var T=m.pbkdf(O,O.length,k,k.length,C,C.length,z);if(T!==0){throw new Error("bcrypt_pbkdf function returned "+"failure, parameters invalid")}C=r.from(C);var R=C.slice(0,j.keySize);var E=C.slice(j.keySize,j.keySize+j.blockSize);var A=u.createDecipheriv(j.opensslName,R,E);A.setAutoPadding(false);var x,N=[];A.once("error",function(e){if(e.toString().indexOf("bad decrypt")!==-1){throw new Error("Incorrect passphrase "+"supplied, could not decrypt key")}throw e});A.write(S);A.end();while((x=A.read())!==null)N.push(x);S=r.concat(N);break;default:throw new Error('OpenSSH-format key uses unknown KDF "'+c+'"')}t=new f({buffer:S});var V=t.readInt();var P=t.readInt();if(V!==P){throw new Error("Incorrect passphrase supplied, could not "+"decrypt key")}var D={};var I=p.readInternal(D,"private",t.remainder());t.skip(D.consumed);var _=t.readString();I.comment=_;return I}function write(e,t){var a;if(c.isPrivateKey(e))a=e.toPublic();else a=e;var s="none";var l="none";var d=r.alloc(0);var p={blockSize:8};var h;if(t!==undefined){h=t.passphrase;if(typeof h==="string")h=r.from(h,"utf-8");if(h!==undefined){n.buffer(h,"options.passphrase");n.optionalString(t.cipher,"options.cipher");s=t.cipher;if(s===undefined)s="aes128-ctr";p=o.opensshCipherInfo(s);l="bcrypt"}}var g;if(c.isPrivateKey(e)){g=new f({});var y=u.randomBytes(4).readUInt32BE(0);g.writeInt(y);g.writeInt(y);g.write(e.toBuffer("rfc4253"));g.writeString(e.comment||"");var S=1;while(g._offset%p.blockSize!==0)g.writeChar(S++);g=g.toBuffer()}switch(l){case"none":break;case"bcrypt":var w=u.randomBytes(16);var v=16;var z=new f({});z.writeBuffer(w);z.writeInt(v);d=z.toBuffer();if(m===undefined){m=i(641)}var j=new Uint8Array(h);var O=new Uint8Array(w);var k=new Uint8Array(p.keySize+p.blockSize);var C=m.pbkdf(j,j.length,O,O.length,k,k.length,v);if(C!==0){throw new Error("bcrypt_pbkdf function returned "+"failure, parameters invalid")}k=r.from(k);var T=k.slice(0,p.keySize);var R=k.slice(p.keySize,p.keySize+p.blockSize);var E=u.createCipheriv(p.opensslName,T,R);E.setAutoPadding(false);var A,x=[];E.once("error",function(e){throw e});E.write(g);E.end();while((A=E.read())!==null)x.push(A);g=r.concat(x);break;default:throw new Error("Unsupported kdf "+l)}var N=new f({});N.writeCString(b);N.writeString(s);N.writeString(l);N.writeBuffer(d);N.writeInt(1);N.writeBuffer(a.toBuffer("rfc4253"));if(g)N.writeBuffer(g);N=N.toBuffer();var V;if(c.isPrivateKey(e))V="OPENSSH PRIVATE KEY";else V="OPENSSH PUBLIC KEY";var P=N.toString("base64");var D=P.length+P.length/70+18+16+V.length*2+10;N=r.alloc(D);var I=0;I+=N.write("-----BEGIN "+V+"-----\n",I);for(var _=0;_P.length)q=P.length;I+=N.write(P.slice(_,q),I);N[I++]=10;_=q}I+=N.write("-----END "+V+"-----\n",I);return N.slice(0,I)}},,,,function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}t.toCommandValue=toCommandValue},function(e){e.exports=(e=>(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(e),this.key("privateKey").octstr())}))},function(e,t,i){e.exports={der:i(313)}},function(e){"use strict";e.exports=function generate__limitItems(e,t,i){var n=" ";var a=e.level;var r=e.dataLevel;var s=e.schema[t];var o=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var l=!e.opts.allErrors;var c;var d="data"+(r||"");var p=e.opts.$data&&s&&s.$data,f;if(p){n+=" var schema"+a+" = "+e.util.getData(s.$data,r,e.dataPathArr)+"; ";f="schema"+a}else{f=s}if(!(p||typeof s=="number")){throw new Error(t+" must be number")}var h=t=="maxItems"?">":"<";n+="if ( ";if(p){n+=" ("+f+" !== undefined && typeof "+f+" != 'number') || "}n+=" "+d+".length "+h+" "+f+") { ";var c=t;var m=m||[];m.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+(c||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+f+" } ";if(e.opts.messages!==false){n+=" , message: 'should NOT have ";if(t=="maxItems"){n+="more"}else{n+="fewer"}n+=" than ";if(p){n+="' + "+f+" + '"}else{n+=""+s}n+=" items' "}if(e.opts.verbose){n+=" , schema: ";if(p){n+="validate.schema"+o}else{n+=""+s}n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}n+=" } "}else{n+=" {} "}var b=n;n=m.pop();if(!e.compositeRule&&l){if(e.async){n+=" throw new ValidationError(["+b+"]); "}else{n+=" validate.errors = ["+b+"]; return false; "}}else{n+=" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+="} ";if(l){n+=" else { "}return n}},function(e){"use strict";e.exports=function(e){var t={};var i=Object.keys(Object(e));for(var n=0;n{const t={};try{while(s.exec(e.headers["www-authenticate"])!==null){if(RegExp.$1&&RegExp.$2){t[RegExp.$1]=RegExp.$2.slice(1,-1)}}}catch(e){}if(t.error){throw new r(t,e)}};const u=e=>{let t=false;try{let i;if(typeof e.body!=="object"||Buffer.isBuffer(e.body)){i=JSON.parse(e.body)}else{i=e.body}t=typeof i.error==="string"&&i.error.length;if(t)e.body=i}catch(e){}return t};function processResponse(e,{statusCode:t=200,body:i=true,bearer:s=false}={}){if(e.statusCode!==t){if(s){o(e)}if(u(e)){throw new r(e.body,e)}throw new r({error:a("expected %i %s, got: %i %s",t,n[t],e.statusCode,n[e.statusCode])},e)}if(i&&!e.body){throw new r({error:a("expected %i %s with body but no body was returned",t,n[t])},e)}return e.body}e.exports=processResponse},function(e){"use strict";const t=["destroy","setTimeout","socket","headers","trailers","rawHeaders","statusCode","httpVersion","httpVersionMinor","httpVersionMajor","rawTrailers","statusMessage"];e.exports=((e,i)=>{const n=new Set(Object.keys(e).concat(t));for(const t of n){if(t in i){continue}i[t]=typeof e[t]==="function"?e[t].bind(e):e[t]}})},,function(e,t,i){var n=i(892);e.exports=serial;function serial(e,t,i){return n(e,t,null,i)}},,function(e,t,i){"use strict";var n=i(128);function Mark(e,t,i,n,a){this.name=e;this.buffer=t;this.position=i;this.line=n;this.column=a}Mark.prototype.getSnippet=function getSnippet(e,t){var i,a,r,s,o;if(!this.buffer)return null;e=e||4;t=t||75;i="";a=this.position;while(a>0&&"\0\r\n…\u2028\u2029".indexOf(this.buffer.charAt(a-1))===-1){a-=1;if(this.position-a>t/2-1){i=" ... ";a+=5;break}}r="";s=this.position;while(st/2-1){r=" ... ";s-=5;break}}o=this.buffer.slice(a,s);return n.repeat(" ",e)+i+o+r+"\n"+n.repeat(" ",e+this.position-a+i.length)+"^"};Mark.prototype.toString=function toString(e){var t,i="";if(this.name){i+='in "'+this.name+'" '}i+="at line "+(this.line+1)+", column "+(this.column+1);if(!e){t=this.getSnippet();if(t){i+=":\n"+t}}return i};e.exports=Mark},function(e,t,i){const{inherits:n}=i(669);const a=i(720);const r=i(313);function DEREncoder(e){this.enc="der";this.name=e.name;this.entity=e;this.tree=new DERNode;this.tree._init(e.body)}DEREncoder.prototype.encode=function encode(e,t){return this.tree._encode(e,t).join()};function DERNode(e){a.call(this,"der",e)}n(DERNode,a);DERNode.prototype._encodeComposite=function encodeComposite(e,t,i,n){const a=encodeTag(e,t,i,this.reporter);if(n.length<128){const e=Buffer.alloc(2);e[0]=a;e[1]=n.length;return this._createEncoderBuffer([e,n])}let r=1;for(let e=n.length;e>=256;e>>=8){r++}const s=Buffer.alloc(1+1+r);s[0]=a;s[1]=128|r;for(let e=1+r,t=n.length;t>0;e--,t>>=8){s[e]=t&255}return this._createEncoderBuffer([s,n])};DERNode.prototype._encodeStr=function encodeStr(e,t){if(t==="bitstr"){return this._createEncoderBuffer([e.unused|0,e.data])}else if(t==="bmpstr"){const t=Buffer.alloc(e.length*2);for(let i=0;i=40){return this.reporter.error("Second objid identifier OOB")}e.splice(0,2,e[0]*40+e[1])}let n=0;for(let t=0;t=128;i>>=7){n++}}const a=Buffer.alloc(n);let r=a.length-1;for(let t=e.length-1;t>=0;t--){let i=e[t];a[r--]=i&127;while((i>>=7)>0){a[r--]=128|i&127}}return this._createEncoderBuffer(a)};function two(e){if(e<10){return`0${e}`}else{return e}}DERNode.prototype._encodeTime=function encodeTime(e,t){let i;const n=new Date(e);if(t==="gentime"){i=[two(n.getUTCFullYear()),two(n.getUTCMonth()+1),two(n.getUTCDate()),two(n.getUTCHours()),two(n.getUTCMinutes()),two(n.getUTCSeconds()),"Z"].join("")}else if(t==="utctime"){i=[two(n.getUTCFullYear()%100),two(n.getUTCMonth()+1),two(n.getUTCDate()),two(n.getUTCHours()),two(n.getUTCMinutes()),two(n.getUTCSeconds()),"Z"].join("")}else{this.reporter.error(`Encoding ${t} time is not supported yet`)}return this._encodeStr(i,"octstr")};DERNode.prototype._encodeNull=function encodeNull(){return this._createEncoderBuffer("")};function bnToBuf(e){var t=BigInt(e).toString(16);if(t.length%2){t="0"+t}var i=t.length/2;var n=new Uint8Array(i);var a=0;var r=0;while(a=256;t>>=8){i++}const n=new Array(i);for(let t=n.length-1;t>=0;t--){n[t]=e&255;e>>=8}if(n[0]&128){n.unshift(0)}return this._createEncoderBuffer(Buffer.from(n))};DERNode.prototype._encodeBool=function encodeBool(e){return this._createEncoderBuffer(e?255:0)};DERNode.prototype._use=function use(e,t){if(typeof e==="function"){e=e(t)}return e._getEncoder("der").tree};DERNode.prototype._skipDefault=function skipDefault(e,t,i){const n=this._baseState;let a;if(n.default===null){return false}const r=e.join();if(n.defaultBuffer===undefined){n.defaultBuffer=this._encodeValue(n.default,t,i).join()}if(r.length!==n.defaultBuffer.length){return false}for(a=0;a=31){return n.error("Multi-octet tag encoding unsupported")}if(!t){a|=32}a|=r.tagClassByName[i||"universal"]<<6;return a}e.exports=DEREncoder},,function(e,t,i){const{inspect:n}=i(669);const a=i(849);class NoneKey extends a{constructor(){super({type:"unsecured"},{alg:"none"});Object.defineProperties(this,{kid:{value:undefined},kty:{value:undefined},thumbprint:{value:undefined},toJWK:{value:undefined},toPEM:{value:undefined}})}[n.custom](){return"None {}"}algorithms(e){switch(e){case"sign":case"verify":case undefined:return new Set(["none"]);default:return new Set}}}e.exports=new NoneKey},function(e){const t=128;const i=0;const n=32;const a=16;const r=2;const s=a|n|i<<6;const o=r|i<<6;const u=e=>(e/8|0)+(e%8===0?0:1);const l={ES256:u(256),ES256K:u(256),ES384:u(384),ES512:u(521)};const c=(e,i,n)=>{let a=0;while(i+a=t;if(r){--a}return a};e.exports.derToJose=((e,i)=>{if(!Buffer.isBuffer(e)){throw new TypeError("ECDSA signature must be a Buffer")}if(!l[i]){throw new Error(`Unknown algorithm "${i}"`)}const n=l[i];const a=n+1;const r=e.length;let u=0;if(e[u++]!==s){throw new Error('Could not find expected "seq"')}let c=e[u++];if(c===(t|1)){c=e[u++]}if(r-u{if(!Buffer.isBuffer(e)){throw new TypeError("ECDSA signature must be a Buffer")}if(!l[i]){throw new TypeError(`Unknown algorithm "${i}"`)}const n=l[i];const a=e.length;if(a!==n*2){throw new Error(`"${i}" signatures must be "${n*2}" bytes, saw "${a}"`)}const r=c(e,0,n);const u=c(e,n,e.length);const d=n-r;const p=n-u;const f=1+1+d+1+1+p;const h=f{const l=i.export();d(e,r);const c=e/8;const p=l.slice(c);const f=n(`aes-${e}-cbc`,p,r);const h=Buffer.concat([f.update(a),f.final()]);const m=Buffer.concat([o,r,h,s(o.length*8)]);const b=l.slice(0,c);const g=t({[u]:b},m).slice(0,c);return{ciphertext:h,tag:g}};const f=(e,t,{[u]:i},n,{iv:r,tag:l=Buffer.alloc(0),aad:p=Buffer.alloc(0)})=>{d(e,r,l);const f=e/8;const h=i.export();const m=h.slice(f);const b=h.slice(0,f);const g=Buffer.concat([p,r,n,s(p.length*8)]);const y=t({[u]:b},g,l).slice(0,f);const S=o(l,y);let w;try{const t=a(`aes-${e}-cbc`,m,r);w=Buffer.concat([t.update(n),t.final()])}catch(e){}if(!w||!S){throw new c}return w};e.exports=((e,t)=>{["A128CBC-HS256","A192CBC-HS384","A256CBC-HS512"].forEach(i=>{const n=parseInt(i.substr(1,3),10);const a=e.sign.get(`HS${n*2}`);if(r().includes(`aes-${n}-cbc`)){e.encrypt.set(i,p.bind(undefined,n,a));e.decrypt.set(i,f.bind(undefined,n,a));t.oct.encrypt[i]=t.oct.decrypt[i]=(e=>(e.use==="enc"||e.use===undefined)&&e.length/2===n)}})})},function(e,t,i){"use strict";var n=i(945);var a=Object.prototype.hasOwnProperty;function resolveYamlSet(e){if(e===null)return true;var t,i=e;for(t in i){if(a.call(i,t)){if(i[t]!==null)return false}}return true}function constructYamlSet(e){return e!==null?e:{}}e.exports=new n("tag:yaml.org,2002:set",{kind:"mapping",resolve:resolveYamlSet,construct:constructYamlSet})},function(e,t,i){"use strict";const n=i(463);const a=i(557);e.exports=((e,t)=>{const i=n(e,{...t,count:1});return a.fn(async e=>{e(()=>{i.cancel()});const[t]=await i;return t})()});e.exports.AggregateError=n.AggregateError},function(e,t,i){"use strict";var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)if(Object.hasOwnProperty.call(e,i))t[i]=e[i];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const a=n(i(747));const r=n(i(87));const s=i(82);function issueCommand(e,t){const i=process.env[`GITHUB_${e}`];if(!i){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!a.existsSync(i)){throw new Error(`Missing file at path: ${i}`)}a.appendFileSync(i,`${s.toCommandValue(t)}${r.EOL}`,{encoding:"utf8"})}t.issueCommand=issueCommand},,function(e,t,i){"use strict";const{EMPTY_BUFFER:n}=i(799);function concat(e,t){if(e.length===0)return n;if(e.length===1)return e[0];const i=Buffer.allocUnsafe(t);var a=0;for(var r=0;rthis.resize(getTerminalSize(e)))}resize(e){this.push(JSON.stringify(e))}}t.TerminalSizeQueue=TerminalSizeQueue;function isResizable(e){if(e==null){return false}const t="rows"in e;const i="columns"in e;const n=typeof e.on==="function";return t&&i&&n}t.isResizable=isResizable;function getTerminalSize(e){return{height:e.rows,width:e.columns}}},,function(e){"use strict";e.exports=function generate_allOf(e,t,i){var n=" ";var a=e.schema[t];var r=e.schemaPath+e.util.getProperty(t);var s=e.errSchemaPath+"/"+t;var o=!e.opts.allErrors;var u=e.util.copy(e);var l="";u.level++;var c="valid"+u.level;var d=u.baseId,p=true;var f=a;if(f){var h,m=-1,b=f.length-1;while(m0:e.util.schemaHasRules(h,e.RULES.all)){p=false;u.schema=h;u.schemaPath=r+"["+m+"]";u.errSchemaPath=s+"/"+m;n+=" "+e.validate(u)+" ";u.baseId=d;if(o){n+=" if ("+c+") { ";l+="}"}}}}if(o){if(p){n+=" if (true) { "}else{n+=" "+l.slice(0,-1)+" "}}return n}},function(e){e.exports=function pick(e,...t){const i={};for(const n of t){if(e[n]){i[n]=e[n]}}return i}},,function(e,t,i){const n=i(312);class Client{constructor(e){const t=e.backend;if(!t)throw new Error('expected "backend"');const i=new n({splits:[],backend:t,getNames:e.getNames});if(e.spec)i._addSpec(e.spec);return i}}e.exports=Client},,,function(e,t,i){var n=i(373);function sha(e,t,i){return n.createHmac(i,e).update(t).digest("base64")}function rsa(e,t){return n.createSign("RSA-SHA1").update(t).sign(e,"base64")}function rfc3986(e){return encodeURIComponent(e).replace(/!/g,"%21").replace(/\*/g,"%2A").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/'/g,"%27")}function map(e){var t,i,n=[];for(t in e){i=e[t];if(Array.isArray(i))for(var a=0;at?1:e=e.length){if(t)t[s]=e;return i(null,e)}u.lastIndex=d;var n=u.exec(e);h=p;p+=n[0];f=h+n[1];d=u.lastIndex;if(c[f]||t&&t[f]===f){return process.nextTick(LOOP)}if(t&&Object.prototype.hasOwnProperty.call(t,f)){return gotResolvedLink(t[f])}return r.lstat(f,gotStat)}function gotStat(e,n){if(e)return i(e);if(!n.isSymbolicLink()){c[f]=true;if(t)t[f]=f;return process.nextTick(LOOP)}if(!a){var s=n.dev.toString(32)+":"+n.ino.toString(32);if(o.hasOwnProperty(s)){return gotTarget(null,o[s],f)}}r.stat(f,function(e){if(e)return i(e);r.readlink(f,function(e,t){if(!a)o[s]=t;gotTarget(e,t)})})}function gotTarget(e,a,r){if(e)return i(e);var s=n.resolve(h,a);if(t)t[r]=s;gotResolvedLink(s)}function gotResolvedLink(t){e=n.resolve(t,e.slice(d));start()}}},function(e,t,i){"use strict";const{randomFillSync:n}=i(373);const a=i(850);const{EMPTY_BUFFER:r}=i(60);const{isValidStatusCode:s}=i(829);const{mask:o,toBuffer:u}=i(676);const l=Buffer.alloc(4);class Sender{constructor(e,t){this._extensions=t||{};this._socket=e;this._firstFragment=true;this._compress=false;this._bufferedBytes=0;this._deflating=false;this._queue=[]}static frame(e,t){const i=t.mask&&t.readOnly;let a=t.mask?6:2;let r=e.length;if(e.length>=65536){a+=8;r=127}else if(e.length>125){a+=2;r=126}const s=Buffer.allocUnsafe(i?e.length+a:a);s[0]=t.fin?t.opcode|128:t.opcode;if(t.rsv1)s[0]|=64;s[1]=r;if(r===126){s.writeUInt16BE(e.length,2)}else if(r===127){s.writeUInt32BE(0,2);s.writeUInt32BE(e.length,6)}if(!t.mask)return[s,e];n(l,0,4);s[1]|=128;s[a-4]=l[0];s[a-3]=l[1];s[a-2]=l[2];s[a-1]=l[3];if(i){o(e,l,s,a,e.length);return[s]}o(e,l,e,0,e.length);return[s,e]}close(e,t,i,n){let a;if(e===undefined){a=r}else if(typeof e!=="number"||!s(e)){throw new TypeError("First argument must be a valid error code number")}else if(t===undefined||t===""){a=Buffer.allocUnsafe(2);a.writeUInt16BE(e,0)}else{const i=Buffer.byteLength(t);if(i>123){throw new RangeError("The message must not be greater than 123 bytes")}a=Buffer.allocUnsafe(2+i);a.writeUInt16BE(e,0);a.write(t,2)}if(this._deflating){this.enqueue([this.doClose,a,i,n])}else{this.doClose(a,i,n)}}doClose(e,t,i){this.sendFrame(Sender.frame(e,{fin:true,rsv1:false,opcode:8,mask:t,readOnly:false}),i)}ping(e,t,i){const n=u(e);if(n.length>125){throw new RangeError("The data size must not be greater than 125 bytes")}if(this._deflating){this.enqueue([this.doPing,n,t,u.readOnly,i])}else{this.doPing(n,t,u.readOnly,i)}}doPing(e,t,i,n){this.sendFrame(Sender.frame(e,{fin:true,rsv1:false,opcode:9,mask:t,readOnly:i}),n)}pong(e,t,i){const n=u(e);if(n.length>125){throw new RangeError("The data size must not be greater than 125 bytes")}if(this._deflating){this.enqueue([this.doPong,n,t,u.readOnly,i])}else{this.doPong(n,t,u.readOnly,i)}}doPong(e,t,i,n){this.sendFrame(Sender.frame(e,{fin:true,rsv1:false,opcode:10,mask:t,readOnly:i}),n)}send(e,t,i){const n=u(e);const r=this._extensions[a.extensionName];let s=t.binary?2:1;let o=t.compress;if(this._firstFragment){this._firstFragment=false;if(o&&r){o=n.length>=r._threshold}this._compress=o}else{o=false;s=0}if(t.fin)this._firstFragment=true;if(r){const e={fin:t.fin,rsv1:o,opcode:s,mask:t.mask,readOnly:u.readOnly};if(this._deflating){this.enqueue([this.dispatch,n,this._compress,e,i])}else{this.dispatch(n,this._compress,e,i)}}else{this.sendFrame(Sender.frame(n,{fin:t.fin,rsv1:false,opcode:s,mask:t.mask,readOnly:u.readOnly}),i)}}dispatch(e,t,i,n){if(!t){this.sendFrame(Sender.frame(e,i),n);return}const r=this._extensions[a.extensionName];this._bufferedBytes+=e.length;this._deflating=true;r.compress(e,i.fin,(t,a)=>{if(this._socket.destroyed){const e=new Error("The socket was closed while data was being compressed");if(typeof n==="function")n(e);for(let t=0;te.sort((e,i)=>n(e,i,t));e.exports=a},,,,function(e,t,i){class Range{constructor(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof n){this.raw=e.value;this.set=[[e]];this.format();return this}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e;this.set=e.split(/\s*\|\|\s*/).map(e=>this.parseRange(e.trim())).filter(e=>e.length);if(!this.set.length){throw new TypeError(`Invalid SemVer Range: ${e}`)}this.format()}format(){this.range=this.set.map(e=>{return e.join(" ").trim()}).join("||").trim();return this.range}toString(){return this.range}parseRange(e){const t=this.options.loose;e=e.trim();const i=t?s[o.HYPHENRANGELOOSE]:s[o.HYPHENRANGE];e=e.replace(i,z(this.options.includePrerelease));a("hyphen replace",e);e=e.replace(s[o.COMPARATORTRIM],u);a("comparator trim",e,s[o.COMPARATORTRIM]);e=e.replace(s[o.TILDETRIM],l);e=e.replace(s[o.CARETTRIM],c);e=e.split(/\s+/).join(" ");const r=t?s[o.COMPARATORLOOSE]:s[o.COMPARATOR];return e.split(" ").map(e=>p(e,this.options)).join(" ").split(/\s+/).map(e=>v(e,this.options)).filter(this.options.loose?e=>!!e.match(r):()=>true).map(e=>new n(e,this.options))}intersects(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some(i=>{return d(i,t)&&e.set.some(e=>{return d(e,t)&&i.every(i=>{return e.every(e=>{return i.intersects(e,t)})})})})}test(e){if(!e){return false}if(typeof e==="string"){try{e=new r(e,this.options)}catch(e){return false}}for(let t=0;t{let i=true;const n=e.slice();let a=n.pop();while(i&&n.length){i=n.every(e=>{return a.intersects(e,t)});a=n.pop()}return i};const p=(e,t)=>{a("comp",e,t);e=b(e,t);a("caret",e);e=h(e,t);a("tildes",e);e=y(e,t);a("xrange",e);e=w(e,t);a("stars",e);return e};const f=e=>!e||e.toLowerCase()==="x"||e==="*";const h=(e,t)=>e.trim().split(/\s+/).map(e=>{return m(e,t)}).join(" ");const m=(e,t)=>{const i=t.loose?s[o.TILDELOOSE]:s[o.TILDE];return e.replace(i,(t,i,n,r,s)=>{a("tilde",e,t,i,n,r,s);let o;if(f(i)){o=""}else if(f(n)){o=`>=${i}.0.0 <${+i+1}.0.0-0`}else if(f(r)){o=`>=${i}.${n}.0 <${i}.${+n+1}.0-0`}else if(s){a("replaceTilde pr",s);o=`>=${i}.${n}.${r}-${s} <${i}.${+n+1}.0-0`}else{o=`>=${i}.${n}.${r} <${i}.${+n+1}.0-0`}a("tilde return",o);return o})};const b=(e,t)=>e.trim().split(/\s+/).map(e=>{return g(e,t)}).join(" ");const g=(e,t)=>{a("caret",e,t);const i=t.loose?s[o.CARETLOOSE]:s[o.CARET];const n=t.includePrerelease?"-0":"";return e.replace(i,(t,i,r,s,o)=>{a("caret",e,t,i,r,s,o);let u;if(f(i)){u=""}else if(f(r)){u=`>=${i}.0.0${n} <${+i+1}.0.0-0`}else if(f(s)){if(i==="0"){u=`>=${i}.${r}.0${n} <${i}.${+r+1}.0-0`}else{u=`>=${i}.${r}.0${n} <${+i+1}.0.0-0`}}else if(o){a("replaceCaret pr",o);if(i==="0"){if(r==="0"){u=`>=${i}.${r}.${s}-${o} <${i}.${r}.${+s+1}-0`}else{u=`>=${i}.${r}.${s}-${o} <${i}.${+r+1}.0-0`}}else{u=`>=${i}.${r}.${s}-${o} <${+i+1}.0.0-0`}}else{a("no pr");if(i==="0"){if(r==="0"){u=`>=${i}.${r}.${s}${n} <${i}.${r}.${+s+1}-0`}else{u=`>=${i}.${r}.${s}${n} <${i}.${+r+1}.0-0`}}else{u=`>=${i}.${r}.${s} <${+i+1}.0.0-0`}}a("caret return",u);return u})};const y=(e,t)=>{a("replaceXRanges",e,t);return e.split(/\s+/).map(e=>{return S(e,t)}).join(" ")};const S=(e,t)=>{e=e.trim();const i=t.loose?s[o.XRANGELOOSE]:s[o.XRANGE];return e.replace(i,(i,n,r,s,o,u)=>{a("xRange",e,i,n,r,s,o,u);const l=f(r);const c=l||f(s);const d=c||f(o);const p=d;if(n==="="&&p){n=""}u=t.includePrerelease?"-0":"";if(l){if(n===">"||n==="<"){i="<0.0.0-0"}else{i="*"}}else if(n&&p){if(c){s=0}o=0;if(n===">"){n=">=";if(c){r=+r+1;s=0;o=0}else{s=+s+1;o=0}}else if(n==="<="){n="<";if(c){r=+r+1}else{s=+s+1}}if(n==="<")u="-0";i=`${n+r}.${s}.${o}${u}`}else if(c){i=`>=${r}.0.0${u} <${+r+1}.0.0-0`}else if(d){i=`>=${r}.${s}.0${u} <${r}.${+s+1}.0-0`}a("xRange return",i);return i})};const w=(e,t)=>{a("replaceStars",e,t);return e.trim().replace(s[o.STAR],"")};const v=(e,t)=>{a("replaceGTE0",e,t);return e.trim().replace(s[t.includePrerelease?o.GTE0PRE:o.GTE0],"")};const z=e=>(t,i,n,a,r,s,o,u,l,c,d,p,h)=>{if(f(n)){i=""}else if(f(a)){i=`>=${n}.0.0${e?"-0":""}`}else if(f(r)){i=`>=${n}.${a}.0${e?"-0":""}`}else if(s){i=`>=${i}`}else{i=`>=${i}${e?"-0":""}`}if(f(l)){u=""}else if(f(c)){u=`<${+l+1}.0.0-0`}else if(f(d)){u=`<${l}.${+c+1}.0-0`}else if(p){u=`<=${l}.${c}.${d}-${p}`}else if(e){u=`<${l}.${c}.${+d+1}-0`}else{u=`<=${u}`}return`${i} ${u}`.trim()};const j=(e,t,i)=>{for(let i=0;i0){const n=e[i].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch){return true}}}return false}return true}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=i(422);const a=i(191);const r=i(105);const s=i(131);class Attach{constructor(e,t){if(t){this.handler=t}else{this.handler=new s.WebSocketHandler(e)}}attach(e,t,i,o,u,l,c){return n.__awaiter(this,void 0,void 0,function*(){const n={container:i,stderr:u!=null,stdin:l!=null,stdout:o!=null,tty:c};const d=a.stringify(n);const p=`/api/v1/namespaces/${e}/pods/${t}/attach?${d}`;const f=yield this.handler.connect(p,null,(e,t)=>{s.WebSocketHandler.handleStandardStreams(e,t,o,u);return true});if(l!=null){s.WebSocketHandler.handleStandardInput(f,l,s.WebSocketHandler.StdinStream)}if(r.isResizable(o)){this.terminalSizeQueue=new r.TerminalSizeQueue;s.WebSocketHandler.handleStandardInput(f,this.terminalSizeQueue,s.WebSocketHandler.ResizeStream);this.terminalSizeQueue.handleResizes(o)}return f})}}t.Attach=Attach},,,function(e){"use strict";function isNothing(e){return typeof e==="undefined"||e===null}function isObject(e){return typeof e==="object"&&e!==null}function toArray(e){if(Array.isArray(e))return e;else if(isNothing(e))return[];return[e]}function extend(e,t){var i,n,a,r;if(t){r=Object.keys(t);for(i=0,n=r.length;i{const n=Buffer.alloc(t.length+1);n.writeInt8(i,0);if(t instanceof Buffer){t.copy(n,1)}else{n.write(t,1)}e.send(n)});t.on("end",()=>{e.close()});return true}static restartableHandleStandardInput(e,t,i=0,r=3){if(r<0){throw new Error("retryCount can't be lower than 0.")}let s=Promise.resolve();let o;function processData(t){return n.__awaiter(this,void 0,void 0,function*(){const n=Buffer.alloc(t.length+1);n.writeInt8(i,0);if(t instanceof Buffer){t.copy(n,1)}else{n.write(t,1)}let s=0;for(;s=r){throw new Error("can't send data to ws")}})}t.on("data",e=>{s=s.then(()=>processData(e))});t.on("end",()=>{if(o){o.close()}});return()=>o}connect(e,t,i){const n=this.config.getCurrentCluster();if(!n){throw new Error("No cluster is defined.")}const s=n.server;const o=s.startsWith("https://");const u=o?s.substr(8):s.substr(7);const l=o?"wss":"ws";const c=`${l}://${u}${e}`;const d={};this.config.applytoHTTPSOptions(d);return new Promise((e,n)=>{const s=this.socketFactory?this.socketFactory(c,d):new a(c,r,d);let o=false;s.onopen=(()=>{o=true;e(s)});s.onerror=(e=>{if(!o){n(e)}});s.onmessage=(({data:e})=>{if(typeof e==="string"){if(t&&!t(e)){s.close()}}else if(e instanceof Buffer){const t=e.readInt8(0);if(i&&!i(t,e.slice(1))){s.close()}}})})}}WebSocketHandler.StdinStream=0;WebSocketHandler.StdoutStream=1;WebSocketHandler.StderrStream=2;WebSocketHandler.StatusStream=3;WebSocketHandler.ResizeStream=4;t.WebSocketHandler=WebSocketHandler},,function(e){e.exports={$id:"request.json#",$schema:"http://json-schema.org/draft-06/schema#",type:"object",required:["method","url","httpVersion","cookies","headers","queryString","headersSize","bodySize"],properties:{method:{type:"string"},url:{type:"string",format:"uri"},httpVersion:{type:"string"},cookies:{type:"array",items:{$ref:"cookie.json#"}},headers:{type:"array",items:{$ref:"header.json#"}},queryString:{type:"array",items:{$ref:"query.json#"}},postData:{$ref:"postData.json#"},headersSize:{type:"integer"},bodySize:{type:"integer"},comment:{type:"string"}}}},,function(e,t,i){const{inherits:n}=i(669);const a=i(960);const r=i(474);e.exports.define=function define(e,t){return new Entity(e,t)};function Entity(e,t){this.name=e;this.body=t;this.decoders={};this.encoders={}}Entity.prototype._createNamed=function createNamed(e){const t=this.name;function Generated(e){this._initNamed(e,t)}n(Generated,e);Generated.prototype._initNamed=function _initNamed(t,i){e.call(this,t,i)};return new Generated(this)};Entity.prototype._getDecoder=function _getDecoder(e){e=e||"der";if(!Object.prototype.hasOwnProperty.call(this.decoders,e)){this.decoders[e]=this._createNamed(r[e])}return this.decoders[e]};Entity.prototype.decode=function decode(e,t,i){return this._getDecoder(t).decode(e,i)};Entity.prototype._getEncoder=function _getEncoder(e){e=e||"der";if(!Object.prototype.hasOwnProperty.call(this.encoders,e)){this.encoders[e]=this._createNamed(a[e])}return this.encoders[e]};Entity.prototype.encode=function encode(e,t,i){return this._getEncoder(t).encode(e,i)}},,,,function(e,t,i){var n=i(373);e.exports=function nodeRNG(){return n.randomBytes(16)}},function(e){e.exports={$id:"afterRequest.json#",$schema:"http://json-schema.org/draft-06/schema#",type:"object",optional:true,required:["lastAccess","eTag","hitCount"],properties:{expires:{type:"string",pattern:"^(\\d{4})(-)?(\\d\\d)(-)?(\\d\\d)(T)?(\\d\\d)(:)?(\\d\\d)(:)?(\\d\\d)(\\.\\d+)?(Z|([+-])(\\d\\d)(:)?(\\d\\d))?"},lastAccess:{type:"string",pattern:"^(\\d{4})(-)?(\\d\\d)(-)?(\\d\\d)(T)?(\\d\\d)(:)?(\\d\\d)(:)?(\\d\\d)(\\.\\d+)?(Z|([+-])(\\d\\d)(:)?(\\d\\d))?"},eTag:{type:"string"},hitCount:{type:"integer"},comment:{type:"string"}}}},function(e,t,i){"use strict";const n=i(413).Readable;const a=i(86);class Response extends n{constructor(e,t,i,n){if(typeof e!=="number"){throw new TypeError("Argument `statusCode` should be a number")}if(typeof t!=="object"){throw new TypeError("Argument `headers` should be an object")}if(!(i instanceof Buffer)){throw new TypeError("Argument `body` should be a buffer")}if(typeof n!=="string"){throw new TypeError("Argument `url` should be a string")}super();this.statusCode=e;this.headers=a(t);this.body=i;this.url=n}_read(){this.push(this.body);this.push(null)}}e.exports=Response},,,,function(e,t,i){"use strict";const n=i(453);const a=i(158);class MaxBufferError extends Error{constructor(){super("maxBuffer exceeded");this.name="MaxBufferError"}}function getStream(e,t){if(!e){return Promise.reject(new Error("Expected a stream"))}t=Object.assign({maxBuffer:Infinity},t);const{maxBuffer:i}=t;let r;return new Promise((s,o)=>{const u=e=>{if(e){e.bufferedData=r.getBufferedValue()}o(e)};r=n(e,a(t),e=>{if(e){u(e);return}s()});r.on("data",()=>{if(r.getBufferedLength()>i){u(new MaxBufferError)}})}).then(()=>r.getBufferedValue())}e.exports=getStream;e.exports.buffer=((e,t)=>getStream(e,Object.assign({},t,{encoding:"buffer"})));e.exports.array=((e,t)=>getStream(e,Object.assign({},t,{array:true})));e.exports.MaxBufferError=MaxBufferError},,function(e){e.exports=state;function state(e,t){var i=!Array.isArray(e),n={index:0,keyedList:i||t?Object.keys(e):null,jobs:{},results:i?{}:[],size:i?Object.keys(e).length:e.length};if(t){n.keyedList.sort(i?t:function(i,n){return t(e[i],e[n])})}return n}},,,function(e,t,i){const n=i(208);const a=i(466);e.exports=((e,{complete:t=false}={})=>{if(typeof e!=="string"||!e){throw new TypeError("JWT must be a string")}const{0:i,1:r,2:s,length:o}=e.split(".");if(o===5){throw new TypeError("JWTs must be decrypted first")}if(o!==3){throw new a.JWTMalformed("JWTs must have three components")}try{const e={header:n.JSON.decode(i),payload:n.JSON.decode(r),signature:s};return t?e:e.payload}catch(e){throw new a.JWTMalformed("JWT is malformed")}})},,function(e,t,i){var n=i(413).Stream;var a=i(669);e.exports=DelayedStream;function DelayedStream(){this.source=null;this.dataSize=0;this.maxDataSize=1024*1024;this.pauseStream=true;this._maxDataSizeExceeded=false;this._released=false;this._bufferedEvents=[]}a.inherits(DelayedStream,n);DelayedStream.create=function(e,t){var i=new this;t=t||{};for(var n in t){i[n]=t[n]}i.source=e;var a=e.emit;e.emit=function(){i._handleEmit(arguments);return a.apply(e,arguments)};e.on("error",function(){});if(i.pauseStream){e.pause()}return i};Object.defineProperty(DelayedStream.prototype,"readable",{configurable:true,enumerable:true,get:function(){return this.source.readable}});DelayedStream.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};DelayedStream.prototype.resume=function(){if(!this._released){this.release()}this.source.resume()};DelayedStream.prototype.pause=function(){this.source.pause()};DelayedStream.prototype.release=function(){this._released=true;this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this));this._bufferedEvents=[]};DelayedStream.prototype.pipe=function(){var e=n.prototype.pipe.apply(this,arguments);this.resume();return e};DelayedStream.prototype._handleEmit=function(e){if(this._released){this.emit.apply(this,e);return}if(e[0]==="data"){this.dataSize+=e[1].length;this._checkIfMaxDataSizeExceeded()}this._bufferedEvents.push(e)};DelayedStream.prototype._checkIfMaxDataSizeExceeded=function(){if(this._maxDataSizeExceeded){return}if(this.dataSize<=this.maxDataSize){return}this._maxDataSizeExceeded=true;var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(e))}},,function(e){"use strict";e.exports=function generate_contains(e,t,i){var n=" ";var a=e.level;var r=e.dataLevel;var s=e.schema[t];var o=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var l=!e.opts.allErrors;var c="data"+(r||"");var d="valid"+a;var p="errs__"+a;var f=e.util.copy(e);var h="";f.level++;var m="valid"+f.level;var b="i"+a,g=f.dataLevel=e.dataLevel+1,y="data"+g,S=e.baseId,w=e.opts.strictKeywords?typeof s=="object"&&Object.keys(s).length>0:e.util.schemaHasRules(s,e.RULES.all);n+="var "+p+" = errors;var "+d+";";if(w){var v=e.compositeRule;e.compositeRule=f.compositeRule=true;f.schema=s;f.schemaPath=o;f.errSchemaPath=u;n+=" var "+m+" = false; for (var "+b+" = 0; "+b+" < "+c+".length; "+b+"++) { ";f.errorPath=e.util.getPathExpr(e.errorPath,b,e.opts.jsonPointers,true);var z=c+"["+b+"]";f.dataPathArr[g]=b;var j=e.validate(f);f.baseId=S;if(e.util.varOccurences(j,y)<2){n+=" "+e.util.varReplace(j,y,z)+" "}else{n+=" var "+y+" = "+z+"; "+j+" "}n+=" if ("+m+") break; } ";e.compositeRule=f.compositeRule=v;n+=" "+h+" if (!"+m+") {"}else{n+=" if ("+c+".length == 0) {"}var O=O||[];O.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+"contains"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ";if(e.opts.messages!==false){n+=" , message: 'should contain a valid item' "}if(e.opts.verbose){n+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}n+=" } "}else{n+=" {} "}var k=n;n=O.pop();if(!e.compositeRule&&l){if(e.async){n+=" throw new ValidationError(["+k+"]); "}else{n+=" validate.errors = ["+k+"]; return false; "}}else{n+=" var err = "+k+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+=" } else { ";if(w){n+=" errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } "}if(e.opts.allErrors){n+=" } "}return n}},,function(e){"use strict";e.exports=function(e,t){if(!t)t={};if(typeof t==="function")t={cmp:t};var i=typeof t.cycles==="boolean"?t.cycles:false;var n=t.cmp&&function(e){return function(t){return function(i,n){var a={key:i,value:t[i]};var r={key:n,value:t[n]};return e(a,r)}}}(t.cmp);var a=[];return function stringify(e){if(e&&e.toJSON&&typeof e.toJSON==="function"){e=e.toJSON()}if(e===undefined)return;if(typeof e=="number")return isFinite(e)?""+e:"null";if(typeof e!=="object")return JSON.stringify(e);var t,r;if(Array.isArray(e)){r="[";for(t=0;t{e=Object.assign({},e);const{array:t}=e;let{encoding:i}=e;const a=i==="buffer";let r=false;if(t){r=!(i||a)}else{i=i||"utf8"}if(a){i=null}let s=0;const o=[];const u=new n({objectMode:r});if(i){u.setEncoding(i)}u.on("data",e=>{o.push(e);if(r){s=o.length}else{s+=e.length}});u.getBufferedValue=(()=>{if(t){return o}return a?Buffer.concat(o,s):o.join("")});u.getBufferedLength=(()=>s);return u})},,,,function(e){e.exports={$id:"content.json#",$schema:"http://json-schema.org/draft-06/schema#",type:"object",required:["size","mimeType"],properties:{size:{type:"integer"},compression:{type:"integer"},mimeType:{type:"string"},text:{type:"string"},encoding:{type:"string"},comment:{type:"string"}}}},,function(e,t,i){const n=i(65);const a=i(124);const r=i(486);const s=(e,t)=>{e=new a(e,t);let i=new n("0.0.0");if(e.test(i)){return i}i=new n("0.0.0-0");if(e.test(i)){return i}i=null;for(let t=0;t{const t=new n(e.semver.version);switch(e.operator){case">":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!i||r(i,t)){i=t}break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})}if(i&&e.test(i)){return i}return null};e.exports=s},function(e){e.exports=(e=>`sha${e.substr(2,3)}`)},function(e,t,i){const n=i(835);const{format:a}=i(669);const r=i(604);const{RPError:s,OPError:o}=i(572);const{BaseClient:u}=i(860);const{random:l,codeChallenge:c}=i(368);const d=i(108);const{resolveResponseType:p,resolveRedirectUri:f}=i(285);function verified(e,t,i={}){if(e){this.error(e)}else if(!t){this.fail(i)}else{this.success(t,i)}}function OpenIDConnectStrategy({client:e,params:t={},passReqToCallback:i=false,sessionKey:a,usePKCE:s=false}={},o){if(!(e instanceof u)){throw new TypeError("client must be an instance of openid-client Client")}if(typeof o!=="function"){throw new TypeError("verify callback must be a function")}if(!e.issuer||!e.issuer.issuer){throw new TypeError("client must have an issuer with an identifier")}this._client=e;this._issuer=e.issuer;this._verify=o;this._passReqToCallback=i;this._usePKCE=s;this._key=a||`oidc:${n.parse(this._issuer.issuer).hostname}`;this._params=r(t);if(this._usePKCE===true){const e=this._issuer.code_challenge_methods_supported;if(!Array.isArray(e)){throw new TypeError("code_challenge_methods_supported is not properly set on issuer")}if(e.includes("S256")){this._usePKCE="S256"}else if(e.includes("plain")){this._usePKCE="plain"}else{throw new TypeError("neither supported code_challenge_method is supported by the issuer")}}else if(typeof this._usePKCE==="string"&&!["plain","S256"].includes(this._usePKCE)){throw new TypeError(`${this._usePKCE} is not valid/implemented PKCE code_challenge_method`)}this.name=n.parse(e.issuer.issuer).hostname;if(!this._params.response_type)this._params.response_type=p.call(e);if(!this._params.redirect_uri)this._params.redirect_uri=f.call(e);if(!this._params.scope)this._params.scope="openid"}OpenIDConnectStrategy.prototype.authenticate=function authenticate(e,t){(async()=>{const i=this._client;if(!e.session){throw new TypeError("authentication requires session support")}const n=i.callbackParams(e);const r=this._key;if(Object.keys(n).length===0){const n={state:l(),...this._params,...t};if(!n.nonce&&n.response_type.includes("id_token")){n.nonce=l()}e.session[r]=d(n,"nonce","state","max_age","response_type");if(this._usePKCE){const t=l();e.session[r].code_verifier=t;switch(this._usePKCE){case"S256":n.code_challenge=c(t);n.code_challenge_method="S256";break;case"plain":n.code_challenge=t;break}}this.redirect(i.authorizationUrl(n));return}const o=e.session[r];if(Object.keys(o||{}).length===0){throw new Error(a('did not find expected authorization request details in session, req.session["%s"] is %j',r,o))}const{state:u,nonce:p,max_age:f,code_verifier:h,response_type:m}=o;try{delete e.session[r]}catch(e){}const b={redirect_uri:this._params.redirect_uri,...t};const g={state:u,nonce:p,max_age:f,code_verifier:h,response_type:m};const y=await i.callback(b.redirect_uri,n,g);const S=this._passReqToCallback;const w=this._verify.length>(S?3:2)&&i.issuer.userinfo_endpoint;const v=[y,verified.bind(this)];if(w){if(!y.access_token){throw new s({message:"expected access_token to be returned when asking for userinfo in verify callback",tokenset:y})}const e=await i.userinfo(y);v.splice(1,0,e)}if(S){v.unshift(e)}this._verify(...v)})().catch(e=>{if(e instanceof o&&e.error!=="server_error"&&!e.error.startsWith("invalid")||e instanceof s){this.fail(e)}else{this.error(e)}})};e.exports=OpenIDConnectStrategy},function(e,t,i){const n=i(874);const a=(e,t,i)=>n(e,t,i)>=0;e.exports=a},,,function(e,t,i){const n=i(208);const a=i(490);const r=i(274);const s=i(545);const{JWSInvalid:o}=i(466);const{sign:u}=i(179);const l=i(322);const c=i(995);const d=Symbol("PROCESS_RECIPIENT");class Sign{constructor(e){if(typeof e==="string"){e=n.encode(e)}else if(Buffer.isBuffer(e)){e=n.encodeBuffer(e);this._binary=true}else if(r(e)){e=n.JSON.encode(e)}else{throw new TypeError("payload argument must be a Buffer, string or an object")}this._payload=e;this._recipients=[]}recipient(e,t,i){e=l(e);if(t!==undefined&&!r(t)){throw new TypeError("protectedHeader argument must be a plain object when provided")}if(i!==undefined&&!r(i)){throw new TypeError("unprotectedHeader argument must be a plain object when provided")}if(!a(t,i)){throw new o("JWS Protected and JWS Unprotected Header Parameter names must be disjoint")}this._recipients.push({key:e,protectedHeader:t?s(t):undefined,unprotectedHeader:i?s(i):undefined});return this}[d](e,t){const{key:i,protectedHeader:a,unprotectedHeader:r}=e;if(i.use==="enc"){throw new TypeError('a key with "use":"enc" is not usable for signing')}const s={protected:a||{},unprotected:r||{}};let l=s.protected.alg||s.unprotected.alg;if(!l){l=i.alg||[...i.algorithms("sign")][0];if(e.protectedHeader){s.protected.alg=e.protectedHeader.alg=l}else{s.protected=e.protectedHeader={alg:l}}}if(!l){throw new o('could not resolve a usable "alg" for a recipient')}e.header=r;e.protected=Object.keys(s.protected).length?n.JSON.encode(s.protected):"";if(t&&s.protected.crit&&s.protected.crit.includes("b64")&&s.protected.b64===false){if(this._binary){this._payload=n.decodeToBuffer(this._payload)}else{this._payload=n.decode(this._payload)}}const c=Buffer.concat([Buffer.from(e.protected||""),Buffer.from("."),Buffer.from(this._payload)]);e.signature=n.encodeBuffer(u(l,i,c))}sign(e){const t=c[e];if(!t){throw new TypeError('serialization must be one of "compact", "flattened", "general"')}if(!this._recipients.length){throw new o("missing recipients")}t.validate(this,this._recipients);this._recipients.forEach((e,t)=>{this[d](e,t===0)});return t(this._payload,this._recipients)}}e.exports=Sign},,function(e,t,i){var n=i(547);var a=i(669);var r=i(622);var s=i(363);var o=i(211);var u=i(835).parse;var l=i(747);var c=i(779);var d=i(334);var p=i(899);e.exports=FormData;a.inherits(FormData,n);function FormData(e){if(!(this instanceof FormData)){return new FormData}this._overheadLength=0;this._valueLength=0;this._valuesToMeasure=[];n.call(this);e=e||{};for(var t in e){this[t]=e[t]}}FormData.LINE_BREAK="\r\n";FormData.DEFAULT_CONTENT_TYPE="application/octet-stream";FormData.prototype.append=function(e,t,i){i=i||{};if(typeof i=="string"){i={filename:i}}var r=n.prototype.append.bind(this);if(typeof t=="number"){t=""+t}if(a.isArray(t)){this._error(new Error("Arrays are not supported."));return}var s=this._multiPartHeader(e,t,i);var o=this._multiPartFooter();r(s);r(t);r(o);this._trackLength(s,t,i)};FormData.prototype._trackLength=function(e,t,i){var n=0;if(i.knownLength!=null){n+=+i.knownLength}else if(Buffer.isBuffer(t)){n=t.length}else if(typeof t==="string"){n=Buffer.byteLength(t)}this._valueLength+=n;this._overheadLength+=Buffer.byteLength(e)+FormData.LINE_BREAK.length;if(!t||!t.path&&!(t.readable&&t.hasOwnProperty("httpVersion"))){return}if(!i.knownLength){this._valuesToMeasure.push(t)}};FormData.prototype._lengthRetriever=function(e,t){if(e.hasOwnProperty("fd")){if(e.end!=undefined&&e.end!=Infinity&&e.start!=undefined){t(null,e.end+1-(e.start?e.start:0))}else{l.stat(e.path,function(i,n){var a;if(i){t(i);return}a=n.size-(e.start?e.start:0);t(null,a)})}}else if(e.hasOwnProperty("httpVersion")){t(null,+e.headers["content-length"])}else if(e.hasOwnProperty("httpModule")){e.on("response",function(i){e.pause();t(null,+i.headers["content-length"])});e.resume()}else{t("Unknown stream")}};FormData.prototype._multiPartHeader=function(e,t,i){if(typeof i.header=="string"){return i.header}var n=this._getContentDisposition(t,i);var a=this._getContentType(t,i);var r="";var s={"Content-Disposition":["form-data",'name="'+e+'"'].concat(n||[]),"Content-Type":[].concat(a||[])};if(typeof i.header=="object"){p(s,i.header)}var o;for(var u in s){if(!s.hasOwnProperty(u))continue;o=s[u];if(o==null){continue}if(!Array.isArray(o)){o=[o]}if(o.length){r+=u+": "+o.join("; ")+FormData.LINE_BREAK}}return"--"+this.getBoundary()+FormData.LINE_BREAK+r+FormData.LINE_BREAK};FormData.prototype._getContentDisposition=function(e,t){var i,n;if(typeof t.filepath==="string"){i=r.normalize(t.filepath).replace(/\\/g,"/")}else if(t.filename||e.name||e.path){i=r.basename(t.filename||e.name||e.path)}else if(e.readable&&e.hasOwnProperty("httpVersion")){i=r.basename(e.client._httpMessage.path)}if(i){n='filename="'+i+'"'}return n};FormData.prototype._getContentType=function(e,t){var i=t.contentType;if(!i&&e.name){i=c.lookup(e.name)}if(!i&&e.path){i=c.lookup(e.path)}if(!i&&e.readable&&e.hasOwnProperty("httpVersion")){i=e.headers["content-type"]}if(!i&&(t.filepath||t.filename)){i=c.lookup(t.filepath||t.filename)}if(!i&&typeof e=="object"){i=FormData.DEFAULT_CONTENT_TYPE}return i};FormData.prototype._multiPartFooter=function(){return function(e){var t=FormData.LINE_BREAK;var i=this._streams.length===0;if(i){t+=this._lastBoundary()}e(t)}.bind(this)};FormData.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+FormData.LINE_BREAK};FormData.prototype.getHeaders=function(e){var t;var i={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e){if(e.hasOwnProperty(t)){i[t.toLowerCase()]=e[t]}}return i};FormData.prototype.getBoundary=function(){if(!this._boundary){this._generateBoundary()}return this._boundary};FormData.prototype._generateBoundary=function(){var e="--------------------------";for(var t=0;t<24;t++){e+=Math.floor(Math.random()*10).toString(16)}this._boundary=e};FormData.prototype.getLengthSync=function(){var e=this._overheadLength+this._valueLength;if(this._streams.length){e+=this._lastBoundary().length}if(!this.hasKnownLength()){this._error(new Error("Cannot calculate proper length in synchronous way."))}return e};FormData.prototype.hasKnownLength=function(){var e=true;if(this._valuesToMeasure.length){e=false}return e};FormData.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;if(this._streams.length){t+=this._lastBoundary().length}if(!this._valuesToMeasure.length){process.nextTick(e.bind(this,null,t));return}d.parallel(this._valuesToMeasure,this._lengthRetriever,function(i,n){if(i){e(i);return}n.forEach(function(e){t+=e});e(null,t)})};FormData.prototype.submit=function(e,t){var i,n,a={method:"post"};if(typeof e=="string"){e=u(e);n=p({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},a)}else{n=p(e,a);if(!n.port){n.port=n.protocol=="https:"?443:80}}n.headers=this.getHeaders(e.headers);if(n.protocol=="https:"){i=o.request(n)}else{i=s.request(n)}this.getLength(function(e,n){if(e){this._error(e);return}i.setHeader("Content-Length",n);this.pipe(i);if(t){i.on("error",t);i.on("response",t.bind(this,null))}}.bind(this));return i};FormData.prototype._error=function(e){if(!this.error){this.error=e;this.pause();this.emit("error",e)}};FormData.prototype.toString=function(){return"[object FormData]"}},function(e,t,i){"use strict";const n=i(835);const a=i(783);e.exports=((e,t)=>{if(typeof e!=="string"){throw new TypeError(`Expected \`url\` to be of type \`string\`, got \`${typeof e}\` instead.`)}const i=a(e,Object.assign({https:true},t));return n.parse(i)})},function(e,t,i){const n=Symbol("SemVer ANY");class Comparator{static get ANY(){return n}constructor(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}o("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===n){this.value=""}else{this.value=this.operator+this.semver.version}o("comp",this)}parse(e){const t=this.options.loose?a[r.COMPARATORLOOSE]:a[r.COMPARATOR];const i=e.match(t);if(!i){throw new TypeError(`Invalid comparator: ${e}`)}this.operator=i[1]!==undefined?i[1]:"";if(this.operator==="="){this.operator=""}if(!i[2]){this.semver=n}else{this.semver=new u(i[2],this.options.loose)}}toString(){return this.value}test(e){o("Comparator.test",e,this.options.loose);if(this.semver===n||e===n){return true}if(typeof e==="string"){try{e=new u(e,this.options)}catch(e){return false}}return s(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(this.operator===""){if(this.value===""){return true}return new l(e.value,t).test(this.value)}else if(e.operator===""){if(e.value===""){return true}return new l(this.value,t).test(e.semver)}const i=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");const n=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");const a=this.semver.version===e.semver.version;const r=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");const o=s(this.semver,"<",e.semver,t)&&(this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<");const u=s(this.semver,">",e.semver,t)&&(this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">");return i||n||a&&r||o||u}}e.exports=Comparator;const{re:a,t:r}=i(976);const s=i(752);const o=i(548);const u=i(65);const l=i(124)},,function(e,t,i){"use strict";const n=i(861);const a=i(534);const r=i(89);const s=i(365);e.exports=((e,t,i)=>{const o=Number(e.headers["content-length"])||null;const u=s.download(e,i,o);r(e,u);const l=t.decompress===true&&a.function(n)&&t.method!=="HEAD"?n(u):u;if(!t.decompress&&["gzip","deflate"].includes(e.headers["content-encoding"])){t.encoding=null}i.emit("response",l);i.emit("downloadProgress",{percent:0,transferred:0,total:o});e.pipe(u)})},,function(e){e.exports=function(e){return new LruCache(e)};function LruCache(e){this.capacity=e|0;this.map=Object.create(null);this.list=new DoublyLinkedList}LruCache.prototype.get=function(e){var t=this.map[e];if(t==null)return undefined;this.used(t);return t.val};LruCache.prototype.set=function(e,t){var i=this.map[e];if(i!=null){i.val=t}else{if(!this.capacity)this.prune();if(!this.capacity)return false;i=new DoublyLinkedNode(e,t);this.map[e]=i;this.capacity--}this.used(i);return true};LruCache.prototype.used=function(e){this.list.moveToFront(e)};LruCache.prototype.prune=function(){var e=this.list.pop();if(e!=null){delete this.map[e.key];this.capacity++}};function DoublyLinkedList(){this.firstNode=null;this.lastNode=null}DoublyLinkedList.prototype.moveToFront=function(e){if(this.firstNode==e)return;this.remove(e);if(this.firstNode==null){this.firstNode=e;this.lastNode=e;e.prev=null;e.next=null}else{e.prev=null;e.next=this.firstNode;e.next.prev=e;this.firstNode=e}};DoublyLinkedList.prototype.pop=function(){var e=this.lastNode;if(e!=null){this.remove(e)}return e};DoublyLinkedList.prototype.remove=function(e){if(this.firstNode==e){this.firstNode=e.next}else if(e.prev!=null){e.prev.next=e.next}if(this.lastNode==e){this.lastNode=e.prev}else if(e.next!=null){e.next.prev=e.prev}};function DoublyLinkedNode(e,t){this.key=e;this.val=t;this.prev=null;this.next=null}},function(e,t,i){const{JWKKeySupport:n,JOSENotSupported:a}=i(466);const{KEY_MANAGEMENT_ENCRYPT:r,KEY_MANAGEMENT_DECRYPT:s}=i(771);const{JWA:o,JWK:u}=i(962);i(981)(o,u);i(787)(o,u);i(736)(o,u);i(34)(o,u);i(965)(o,u);i(749)(o);i(99)(o,u);i(408)(o,u);i(209)(o,u);i(36)(o,u);i(507)(o,u);i(533)(o,u);i(432)(o,u);i(713)(o,u);const l=(e,t,i)=>{const u=`_${t}_${i}`;let c;let d;if(t==="keyManagementEncrypt"){c="key management (encryption)";d=r}else if(t==="keyManagementDecrypt"){c="key management (decryption)";d=s}if(u in e){if(e[u]){return}throw new n(`the key does not support ${i} ${c||t} algorithm`)}let p=true;if(!o[t].has(i)){throw new a(`unsupported ${c||t} alg: ${i}`)}else if(!e.algorithms(d).has(i)){p=false}Object.defineProperty(e,u,{value:p,enumerable:false});if(!p){return l(e,t,i)}};e.exports={check:l,sign:(e,t,i)=>{l(t,"sign",e);return o.sign.get(e)(t,i)},verify:(e,t,i,n)=>{l(t,"verify",e);return o.verify.get(e)(t,i,n)},keyManagementEncrypt:(e,t,i,n)=>{l(t,"keyManagementEncrypt",e);return o.keyManagementEncrypt.get(e)(t,i,n)},keyManagementDecrypt:(e,t,i,n)=>{l(t,"keyManagementDecrypt",e);return o.keyManagementDecrypt.get(e)(t,i,n)},encrypt:(e,t,i,n)=>{l(t,"encrypt",e);return o.encrypt.get(e)(t,i,n)},decrypt:(e,t,i,n)=>{l(t,"decrypt",e);return o.decrypt.get(e)(t,i,n)}}},,function(e){const t="2.0.0";const i=256;const n=Number.MAX_SAFE_INTEGER||9007199254740991;const a=16;e.exports={SEMVER_SPEC_VERSION:t,MAX_LENGTH:i,MAX_SAFE_INTEGER:n,MAX_SAFE_COMPONENT_LENGTH:a}},,,function(e){e.exports=require("vm")},,function(e,t,i){const{generateKeyPairSync:n,generateKeyPair:a}=i(373);const{promisify:r}=i(669);const{THUMBPRINT_MATERIAL:s,JWK_MEMBERS:o,PUBLIC_MEMBERS:u,PRIVATE_MEMBERS:l,KEY_MANAGEMENT_DECRYPT:c,KEY_MANAGEMENT_ENCRYPT:d}=i(771);const{EC_CURVES:p}=i(962);const{keyObjectSupported:f}=i(915);const{createPublicKey:h,createPrivateKey:m}=i(40);const b=i(466);const{name:g}=i(997);const y=i(849);const S=r(a);const w=new Set(["crv","x","y"]);Object.freeze(w);const v=new Set([...w,"d"]);Object.freeze(v);class ECKey extends y{constructor(...e){super(...e);this[o]();Object.defineProperty(this,"kty",{value:"EC",enumerable:true});if(!p.has(this.crv)){throw new b.JOSENotSupported("unsupported EC key curve")}}static get[u](){return w}static get[l](){return v}[s](){return{crv:this.crv,kty:"EC",x:this.x,y:this.y}}[d](){return this.algorithms("deriveKey")}[c](){if(this.public){return new Set}return this.algorithms("deriveKey")}static async generate(e="P-256",t=true){if(!p.has(e)){throw new b.JOSENotSupported(`unsupported EC key curve: ${e}`)}if(e===g&&e!=="secp256k1"){e="secp256k1"}let i,n;if(f){({privateKey:i,publicKey:n}=await S("ec",{namedCurve:e}));return t?i:n}({privateKey:i,publicKey:n}=await S("ec",{namedCurve:e,publicKeyEncoding:{type:"spki",format:"pem"},privateKeyEncoding:{type:"pkcs8",format:"pem"}}));if(t){return m(i)}else{return h(n)}}static generateSync(e="P-256",t=true){if(!p.has(e)){throw new b.JOSENotSupported(`unsupported EC key curve: ${e}`)}if(e===g&&e!=="secp256k1"){e="secp256k1"}let i,a;if(f){({privateKey:i,publicKey:a}=n("ec",{namedCurve:e}));return t?i:a}({privateKey:i,publicKey:a}=n("ec",{namedCurve:e,publicKeyEncoding:{type:"spki",format:"pem"},privateKeyEncoding:{type:"pkcs8",format:"pem"}}));if(t){return m(i)}else{return h(a)}}}e.exports=ECKey},function(e){"use strict";e.exports=function generate_custom(e,t,i){var n=" ";var a=e.level;var r=e.dataLevel;var s=e.schema[t];var o=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var l=!e.opts.allErrors;var c;var d="data"+(r||"");var p="valid"+a;var f="errs__"+a;var h=e.opts.$data&&s&&s.$data,m;if(h){n+=" var schema"+a+" = "+e.util.getData(s.$data,r,e.dataPathArr)+"; ";m="schema"+a}else{m=s}var b=this,g="definition"+a,y=b.definition,S="";var w,v,z,j,O;if(h&&y.$data){O="keywordValidate"+a;var k=y.validateSchema;n+=" var "+g+" = RULES.custom['"+t+"'].definition; var "+O+" = "+g+".validate;"}else{j=e.useCustomRule(b,s,e.schema,e);if(!j)return;m="validate.schema"+o;O=j.code;w=y.compile;v=y.inline;z=y.macro}var C=O+".errors",T="i"+a,R="ruleErr"+a,E=y.async;if(E&&!e.async)throw new Error("async keyword in sync schema");if(!(v||z)){n+=""+C+" = null;"}n+="var "+f+" = errors;var "+p+";";if(h&&y.$data){S+="}";n+=" if ("+m+" === undefined) { "+p+" = true; } else { ";if(k){S+="}";n+=" "+p+" = "+g+".validateSchema("+m+"); if ("+p+") { "}}if(v){if(y.statements){n+=" "+j.validate+" "}else{n+=" "+p+" = "+j.validate+"; "}}else if(z){var A=e.util.copy(e);var S="";A.level++;var x="valid"+A.level;A.schema=j.validate;A.schemaPath="";var N=e.compositeRule;e.compositeRule=A.compositeRule=true;var V=e.validate(A).replace(/validate\.schema/g,O);e.compositeRule=A.compositeRule=N;n+=" "+V}else{var P=P||[];P.push(n);n="";n+=" "+O+".call( ";if(e.opts.passContext){n+="this"}else{n+="self"}if(w||y.schema===false){n+=" , "+d+" "}else{n+=" , "+m+" , "+d+" , validate.schema"+e.schemaPath+" "}n+=" , (dataPath || '')";if(e.errorPath!='""'){n+=" + "+e.errorPath}var D=r?"data"+(r-1||""):"parentData",I=r?e.dataPathArr[r]:"parentDataProperty";n+=" , "+D+" , "+I+" , rootData ) ";var _=n;n=P.pop();if(y.errors===false){n+=" "+p+" = ";if(E){n+="await "}n+=""+_+"; "}else{if(E){C="customErrors"+a;n+=" var "+C+" = null; try { "+p+" = await "+_+"; } catch (e) { "+p+" = false; if (e instanceof ValidationError) "+C+" = e.errors; else throw e; } "}else{n+=" "+C+" = null; "+p+" = "+_+"; "}}}if(y.modifying){n+=" if ("+D+") "+d+" = "+D+"["+I+"];"}n+=""+S;if(y.valid){if(l){n+=" if (true) { "}}else{n+=" if ( ";if(y.valid===undefined){n+=" !";if(z){n+=""+x}else{n+=""+p}}else{n+=" "+!y.valid+" "}n+=") { ";c=b.keyword;var P=P||[];P.push(n);n="";var P=P||[];P.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+(c||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { keyword: '"+b.keyword+"' } ";if(e.opts.messages!==false){n+=" , message: 'should pass \""+b.keyword+"\" keyword validation' "}if(e.opts.verbose){n+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}n+=" } "}else{n+=" {} "}var q=n;n=P.pop();if(!e.compositeRule&&l){if(e.async){n+=" throw new ValidationError(["+q+"]); "}else{n+=" validate.errors = ["+q+"]; return false; "}}else{n+=" var err = "+q+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}var B=n;n=P.pop();if(v){if(y.errors){if(y.errors!="full"){n+=" for (var "+T+"="+f+"; "+T+">24&255;e[t+1]=i>>16&255;e[t+2]=i>>8&255;e[t+3]=i&255;e[t+4]=n>>24&255;e[t+5]=n>>16&255;e[t+6]=n>>8&255;e[t+7]=n&255}function vn(e,t,i,n,a){var r,s=0;for(r=0;r>>8)-1}function crypto_verify_16(e,t,i,n){return vn(e,t,i,n,16)}function crypto_verify_32(e,t,i,n){return vn(e,t,i,n,32)}function core_salsa20(e,t,i,n){var a=n[0]&255|(n[1]&255)<<8|(n[2]&255)<<16|(n[3]&255)<<24,r=i[0]&255|(i[1]&255)<<8|(i[2]&255)<<16|(i[3]&255)<<24,s=i[4]&255|(i[5]&255)<<8|(i[6]&255)<<16|(i[7]&255)<<24,o=i[8]&255|(i[9]&255)<<8|(i[10]&255)<<16|(i[11]&255)<<24,u=i[12]&255|(i[13]&255)<<8|(i[14]&255)<<16|(i[15]&255)<<24,l=n[4]&255|(n[5]&255)<<8|(n[6]&255)<<16|(n[7]&255)<<24,c=t[0]&255|(t[1]&255)<<8|(t[2]&255)<<16|(t[3]&255)<<24,d=t[4]&255|(t[5]&255)<<8|(t[6]&255)<<16|(t[7]&255)<<24,p=t[8]&255|(t[9]&255)<<8|(t[10]&255)<<16|(t[11]&255)<<24,f=t[12]&255|(t[13]&255)<<8|(t[14]&255)<<16|(t[15]&255)<<24,h=n[8]&255|(n[9]&255)<<8|(n[10]&255)<<16|(n[11]&255)<<24,m=i[16]&255|(i[17]&255)<<8|(i[18]&255)<<16|(i[19]&255)<<24,b=i[20]&255|(i[21]&255)<<8|(i[22]&255)<<16|(i[23]&255)<<24,g=i[24]&255|(i[25]&255)<<8|(i[26]&255)<<16|(i[27]&255)<<24,y=i[28]&255|(i[29]&255)<<8|(i[30]&255)<<16|(i[31]&255)<<24,S=n[12]&255|(n[13]&255)<<8|(n[14]&255)<<16|(n[15]&255)<<24;var w=a,v=r,z=s,j=o,O=u,k=l,C=c,T=d,R=p,E=f,A=h,x=m,N=b,V=g,P=y,D=S,I;for(var _=0;_<20;_+=2){I=w+N|0;O^=I<<7|I>>>32-7;I=O+w|0;R^=I<<9|I>>>32-9;I=R+O|0;N^=I<<13|I>>>32-13;I=N+R|0;w^=I<<18|I>>>32-18;I=k+v|0;E^=I<<7|I>>>32-7;I=E+k|0;V^=I<<9|I>>>32-9;I=V+E|0;v^=I<<13|I>>>32-13;I=v+V|0;k^=I<<18|I>>>32-18;I=A+C|0;P^=I<<7|I>>>32-7;I=P+A|0;z^=I<<9|I>>>32-9;I=z+P|0;C^=I<<13|I>>>32-13;I=C+z|0;A^=I<<18|I>>>32-18;I=D+x|0;j^=I<<7|I>>>32-7;I=j+D|0;T^=I<<9|I>>>32-9;I=T+j|0;x^=I<<13|I>>>32-13;I=x+T|0;D^=I<<18|I>>>32-18;I=w+j|0;v^=I<<7|I>>>32-7;I=v+w|0;z^=I<<9|I>>>32-9;I=z+v|0;j^=I<<13|I>>>32-13;I=j+z|0;w^=I<<18|I>>>32-18;I=k+O|0;C^=I<<7|I>>>32-7;I=C+k|0;T^=I<<9|I>>>32-9;I=T+C|0;O^=I<<13|I>>>32-13;I=O+T|0;k^=I<<18|I>>>32-18;I=A+E|0;x^=I<<7|I>>>32-7;I=x+A|0;R^=I<<9|I>>>32-9;I=R+x|0;E^=I<<13|I>>>32-13;I=E+R|0;A^=I<<18|I>>>32-18;I=D+P|0;N^=I<<7|I>>>32-7;I=N+D|0;V^=I<<9|I>>>32-9;I=V+N|0;P^=I<<13|I>>>32-13;I=P+V|0;D^=I<<18|I>>>32-18}w=w+a|0;v=v+r|0;z=z+s|0;j=j+o|0;O=O+u|0;k=k+l|0;C=C+c|0;T=T+d|0;R=R+p|0;E=E+f|0;A=A+h|0;x=x+m|0;N=N+b|0;V=V+g|0;P=P+y|0;D=D+S|0;e[0]=w>>>0&255;e[1]=w>>>8&255;e[2]=w>>>16&255;e[3]=w>>>24&255;e[4]=v>>>0&255;e[5]=v>>>8&255;e[6]=v>>>16&255;e[7]=v>>>24&255;e[8]=z>>>0&255;e[9]=z>>>8&255;e[10]=z>>>16&255;e[11]=z>>>24&255;e[12]=j>>>0&255;e[13]=j>>>8&255;e[14]=j>>>16&255;e[15]=j>>>24&255;e[16]=O>>>0&255;e[17]=O>>>8&255;e[18]=O>>>16&255;e[19]=O>>>24&255;e[20]=k>>>0&255;e[21]=k>>>8&255;e[22]=k>>>16&255;e[23]=k>>>24&255;e[24]=C>>>0&255;e[25]=C>>>8&255;e[26]=C>>>16&255;e[27]=C>>>24&255;e[28]=T>>>0&255;e[29]=T>>>8&255;e[30]=T>>>16&255;e[31]=T>>>24&255;e[32]=R>>>0&255;e[33]=R>>>8&255;e[34]=R>>>16&255;e[35]=R>>>24&255;e[36]=E>>>0&255;e[37]=E>>>8&255;e[38]=E>>>16&255;e[39]=E>>>24&255;e[40]=A>>>0&255;e[41]=A>>>8&255;e[42]=A>>>16&255;e[43]=A>>>24&255;e[44]=x>>>0&255;e[45]=x>>>8&255;e[46]=x>>>16&255;e[47]=x>>>24&255;e[48]=N>>>0&255;e[49]=N>>>8&255;e[50]=N>>>16&255;e[51]=N>>>24&255;e[52]=V>>>0&255;e[53]=V>>>8&255;e[54]=V>>>16&255;e[55]=V>>>24&255;e[56]=P>>>0&255;e[57]=P>>>8&255;e[58]=P>>>16&255;e[59]=P>>>24&255;e[60]=D>>>0&255;e[61]=D>>>8&255;e[62]=D>>>16&255;e[63]=D>>>24&255}function core_hsalsa20(e,t,i,n){var a=n[0]&255|(n[1]&255)<<8|(n[2]&255)<<16|(n[3]&255)<<24,r=i[0]&255|(i[1]&255)<<8|(i[2]&255)<<16|(i[3]&255)<<24,s=i[4]&255|(i[5]&255)<<8|(i[6]&255)<<16|(i[7]&255)<<24,o=i[8]&255|(i[9]&255)<<8|(i[10]&255)<<16|(i[11]&255)<<24,u=i[12]&255|(i[13]&255)<<8|(i[14]&255)<<16|(i[15]&255)<<24,l=n[4]&255|(n[5]&255)<<8|(n[6]&255)<<16|(n[7]&255)<<24,c=t[0]&255|(t[1]&255)<<8|(t[2]&255)<<16|(t[3]&255)<<24,d=t[4]&255|(t[5]&255)<<8|(t[6]&255)<<16|(t[7]&255)<<24,p=t[8]&255|(t[9]&255)<<8|(t[10]&255)<<16|(t[11]&255)<<24,f=t[12]&255|(t[13]&255)<<8|(t[14]&255)<<16|(t[15]&255)<<24,h=n[8]&255|(n[9]&255)<<8|(n[10]&255)<<16|(n[11]&255)<<24,m=i[16]&255|(i[17]&255)<<8|(i[18]&255)<<16|(i[19]&255)<<24,b=i[20]&255|(i[21]&255)<<8|(i[22]&255)<<16|(i[23]&255)<<24,g=i[24]&255|(i[25]&255)<<8|(i[26]&255)<<16|(i[27]&255)<<24,y=i[28]&255|(i[29]&255)<<8|(i[30]&255)<<16|(i[31]&255)<<24,S=n[12]&255|(n[13]&255)<<8|(n[14]&255)<<16|(n[15]&255)<<24;var w=a,v=r,z=s,j=o,O=u,k=l,C=c,T=d,R=p,E=f,A=h,x=m,N=b,V=g,P=y,D=S,I;for(var _=0;_<20;_+=2){I=w+N|0;O^=I<<7|I>>>32-7;I=O+w|0;R^=I<<9|I>>>32-9;I=R+O|0;N^=I<<13|I>>>32-13;I=N+R|0;w^=I<<18|I>>>32-18;I=k+v|0;E^=I<<7|I>>>32-7;I=E+k|0;V^=I<<9|I>>>32-9;I=V+E|0;v^=I<<13|I>>>32-13;I=v+V|0;k^=I<<18|I>>>32-18;I=A+C|0;P^=I<<7|I>>>32-7;I=P+A|0;z^=I<<9|I>>>32-9;I=z+P|0;C^=I<<13|I>>>32-13;I=C+z|0;A^=I<<18|I>>>32-18;I=D+x|0;j^=I<<7|I>>>32-7;I=j+D|0;T^=I<<9|I>>>32-9;I=T+j|0;x^=I<<13|I>>>32-13;I=x+T|0;D^=I<<18|I>>>32-18;I=w+j|0;v^=I<<7|I>>>32-7;I=v+w|0;z^=I<<9|I>>>32-9;I=z+v|0;j^=I<<13|I>>>32-13;I=j+z|0;w^=I<<18|I>>>32-18;I=k+O|0;C^=I<<7|I>>>32-7;I=C+k|0;T^=I<<9|I>>>32-9;I=T+C|0;O^=I<<13|I>>>32-13;I=O+T|0;k^=I<<18|I>>>32-18;I=A+E|0;x^=I<<7|I>>>32-7;I=x+A|0;R^=I<<9|I>>>32-9;I=R+x|0;E^=I<<13|I>>>32-13;I=E+R|0;A^=I<<18|I>>>32-18;I=D+P|0;N^=I<<7|I>>>32-7;I=N+D|0;V^=I<<9|I>>>32-9;I=V+N|0;P^=I<<13|I>>>32-13;I=P+V|0;D^=I<<18|I>>>32-18}e[0]=w>>>0&255;e[1]=w>>>8&255;e[2]=w>>>16&255;e[3]=w>>>24&255;e[4]=k>>>0&255;e[5]=k>>>8&255;e[6]=k>>>16&255;e[7]=k>>>24&255;e[8]=A>>>0&255;e[9]=A>>>8&255;e[10]=A>>>16&255;e[11]=A>>>24&255;e[12]=D>>>0&255;e[13]=D>>>8&255;e[14]=D>>>16&255;e[15]=D>>>24&255;e[16]=C>>>0&255;e[17]=C>>>8&255;e[18]=C>>>16&255;e[19]=C>>>24&255;e[20]=T>>>0&255;e[21]=T>>>8&255;e[22]=T>>>16&255;e[23]=T>>>24&255;e[24]=R>>>0&255;e[25]=R>>>8&255;e[26]=R>>>16&255;e[27]=R>>>24&255;e[28]=E>>>0&255;e[29]=E>>>8&255;e[30]=E>>>16&255;e[31]=E>>>24&255}function crypto_core_salsa20(e,t,i,n){core_salsa20(e,t,i,n)}function crypto_core_hsalsa20(e,t,i,n){core_hsalsa20(e,t,i,n)}var h=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function crypto_stream_salsa20_xor(e,t,i,n,a,r,s){var o=new Uint8Array(16),u=new Uint8Array(64);var l,c;for(c=0;c<16;c++)o[c]=0;for(c=0;c<8;c++)o[c]=r[c];while(a>=64){crypto_core_salsa20(u,o,s,h);for(c=0;c<64;c++)e[t+c]=i[n+c]^u[c];l=1;for(c=8;c<16;c++){l=l+(o[c]&255)|0;o[c]=l&255;l>>>=8}a-=64;t+=64;n+=64}if(a>0){crypto_core_salsa20(u,o,s,h);for(c=0;c=64){crypto_core_salsa20(s,r,a,h);for(u=0;u<64;u++)e[t+u]=s[u];o=1;for(u=8;u<16;u++){o=o+(r[u]&255)|0;r[u]=o&255;o>>>=8}i-=64;t+=64}if(i>0){crypto_core_salsa20(s,r,a,h);for(u=0;u>>13|i<<3)&8191;n=e[4]&255|(e[5]&255)<<8;this.r[2]=(i>>>10|n<<6)&7939;a=e[6]&255|(e[7]&255)<<8;this.r[3]=(n>>>7|a<<9)&8191;r=e[8]&255|(e[9]&255)<<8;this.r[4]=(a>>>4|r<<12)&255;this.r[5]=r>>>1&8190;s=e[10]&255|(e[11]&255)<<8;this.r[6]=(r>>>14|s<<2)&8191;o=e[12]&255|(e[13]&255)<<8;this.r[7]=(s>>>11|o<<5)&8065;u=e[14]&255|(e[15]&255)<<8;this.r[8]=(o>>>8|u<<8)&8191;this.r[9]=u>>>5&127;this.pad[0]=e[16]&255|(e[17]&255)<<8;this.pad[1]=e[18]&255|(e[19]&255)<<8;this.pad[2]=e[20]&255|(e[21]&255)<<8;this.pad[3]=e[22]&255|(e[23]&255)<<8;this.pad[4]=e[24]&255|(e[25]&255)<<8;this.pad[5]=e[26]&255|(e[27]&255)<<8;this.pad[6]=e[28]&255|(e[29]&255)<<8;this.pad[7]=e[30]&255|(e[31]&255)<<8};m.prototype.blocks=function(e,t,i){var n=this.fin?0:1<<11;var a,r,s,o,u,l,c,d,p;var f,h,m,b,g,y,S,w,v,z;var j=this.h[0],O=this.h[1],k=this.h[2],C=this.h[3],T=this.h[4],R=this.h[5],E=this.h[6],A=this.h[7],x=this.h[8],N=this.h[9];var V=this.r[0],P=this.r[1],D=this.r[2],I=this.r[3],_=this.r[4],q=this.r[5],B=this.r[6],M=this.r[7],U=this.r[8],L=this.r[9];while(i>=16){a=e[t+0]&255|(e[t+1]&255)<<8;j+=a&8191;r=e[t+2]&255|(e[t+3]&255)<<8;O+=(a>>>13|r<<3)&8191;s=e[t+4]&255|(e[t+5]&255)<<8;k+=(r>>>10|s<<6)&8191;o=e[t+6]&255|(e[t+7]&255)<<8;C+=(s>>>7|o<<9)&8191;u=e[t+8]&255|(e[t+9]&255)<<8;T+=(o>>>4|u<<12)&8191;R+=u>>>1&8191;l=e[t+10]&255|(e[t+11]&255)<<8;E+=(u>>>14|l<<2)&8191;c=e[t+12]&255|(e[t+13]&255)<<8;A+=(l>>>11|c<<5)&8191;d=e[t+14]&255|(e[t+15]&255)<<8;x+=(c>>>8|d<<8)&8191;N+=d>>>5|n;p=0;f=p;f+=j*V;f+=O*(5*L);f+=k*(5*U);f+=C*(5*M);f+=T*(5*B);p=f>>>13;f&=8191;f+=R*(5*q);f+=E*(5*_);f+=A*(5*I);f+=x*(5*D);f+=N*(5*P);p+=f>>>13;f&=8191;h=p;h+=j*P;h+=O*V;h+=k*(5*L);h+=C*(5*U);h+=T*(5*M);p=h>>>13;h&=8191;h+=R*(5*B);h+=E*(5*q);h+=A*(5*_);h+=x*(5*I);h+=N*(5*D);p+=h>>>13;h&=8191;m=p;m+=j*D;m+=O*P;m+=k*V;m+=C*(5*L);m+=T*(5*U);p=m>>>13;m&=8191;m+=R*(5*M);m+=E*(5*B);m+=A*(5*q);m+=x*(5*_);m+=N*(5*I);p+=m>>>13;m&=8191;b=p;b+=j*I;b+=O*D;b+=k*P;b+=C*V;b+=T*(5*L);p=b>>>13;b&=8191;b+=R*(5*U);b+=E*(5*M);b+=A*(5*B);b+=x*(5*q);b+=N*(5*_);p+=b>>>13;b&=8191;g=p;g+=j*_;g+=O*I;g+=k*D;g+=C*P;g+=T*V;p=g>>>13;g&=8191;g+=R*(5*L);g+=E*(5*U);g+=A*(5*M);g+=x*(5*B);g+=N*(5*q);p+=g>>>13;g&=8191;y=p;y+=j*q;y+=O*_;y+=k*I;y+=C*D;y+=T*P;p=y>>>13;y&=8191;y+=R*V;y+=E*(5*L);y+=A*(5*U);y+=x*(5*M);y+=N*(5*B);p+=y>>>13;y&=8191;S=p;S+=j*B;S+=O*q;S+=k*_;S+=C*I;S+=T*D;p=S>>>13;S&=8191;S+=R*P;S+=E*V;S+=A*(5*L);S+=x*(5*U);S+=N*(5*M);p+=S>>>13;S&=8191;w=p;w+=j*M;w+=O*B;w+=k*q;w+=C*_;w+=T*I;p=w>>>13;w&=8191;w+=R*D;w+=E*P;w+=A*V;w+=x*(5*L);w+=N*(5*U);p+=w>>>13;w&=8191;v=p;v+=j*U;v+=O*M;v+=k*B;v+=C*q;v+=T*_;p=v>>>13;v&=8191;v+=R*I;v+=E*D;v+=A*P;v+=x*V;v+=N*(5*L);p+=v>>>13;v&=8191;z=p;z+=j*L;z+=O*U;z+=k*M;z+=C*B;z+=T*q;p=z>>>13;z&=8191;z+=R*_;z+=E*I;z+=A*D;z+=x*P;z+=N*V;p+=z>>>13;z&=8191;p=(p<<2)+p|0;p=p+f|0;f=p&8191;p=p>>>13;h+=p;j=f;O=h;k=m;C=b;T=g;R=y;E=S;A=w;x=v;N=z;t+=16;i-=16}this.h[0]=j;this.h[1]=O;this.h[2]=k;this.h[3]=C;this.h[4]=T;this.h[5]=R;this.h[6]=E;this.h[7]=A;this.h[8]=x;this.h[9]=N};m.prototype.finish=function(e,t){var i=new Uint16Array(10);var n,a,r,s;if(this.leftover){s=this.leftover;this.buffer[s++]=1;for(;s<16;s++)this.buffer[s]=0;this.fin=1;this.blocks(this.buffer,0,16)}n=this.h[1]>>>13;this.h[1]&=8191;for(s=2;s<10;s++){this.h[s]+=n;n=this.h[s]>>>13;this.h[s]&=8191}this.h[0]+=n*5;n=this.h[0]>>>13;this.h[0]&=8191;this.h[1]+=n;n=this.h[1]>>>13;this.h[1]&=8191;this.h[2]+=n;i[0]=this.h[0]+5;n=i[0]>>>13;i[0]&=8191;for(s=1;s<10;s++){i[s]=this.h[s]+n;n=i[s]>>>13;i[s]&=8191}i[9]-=1<<13;a=(n^1)-1;for(s=0;s<10;s++)i[s]&=a;a=~a;for(s=0;s<10;s++)this.h[s]=this.h[s]&a|i[s];this.h[0]=(this.h[0]|this.h[1]<<13)&65535;this.h[1]=(this.h[1]>>>3|this.h[2]<<10)&65535;this.h[2]=(this.h[2]>>>6|this.h[3]<<7)&65535;this.h[3]=(this.h[3]>>>9|this.h[4]<<4)&65535;this.h[4]=(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14)&65535;this.h[5]=(this.h[6]>>>2|this.h[7]<<11)&65535;this.h[6]=(this.h[7]>>>5|this.h[8]<<8)&65535;this.h[7]=(this.h[8]>>>8|this.h[9]<<5)&65535;r=this.h[0]+this.pad[0];this.h[0]=r&65535;for(s=1;s<8;s++){r=(this.h[s]+this.pad[s]|0)+(r>>>16)|0;this.h[s]=r&65535}e[t+0]=this.h[0]>>>0&255;e[t+1]=this.h[0]>>>8&255;e[t+2]=this.h[1]>>>0&255;e[t+3]=this.h[1]>>>8&255;e[t+4]=this.h[2]>>>0&255;e[t+5]=this.h[2]>>>8&255;e[t+6]=this.h[3]>>>0&255;e[t+7]=this.h[3]>>>8&255;e[t+8]=this.h[4]>>>0&255;e[t+9]=this.h[4]>>>8&255;e[t+10]=this.h[5]>>>0&255;e[t+11]=this.h[5]>>>8&255;e[t+12]=this.h[6]>>>0&255;e[t+13]=this.h[6]>>>8&255;e[t+14]=this.h[7]>>>0&255;e[t+15]=this.h[7]>>>8&255};m.prototype.update=function(e,t,i){var n,a;if(this.leftover){a=16-this.leftover;if(a>i)a=i;for(n=0;n=16){a=i-i%16;this.blocks(e,t,a);t+=a;i-=a}if(i){for(n=0;n>16&1);s[n-1]&=65535}s[15]=o[15]-32767-(s[14]>>16&1);r=s[15]>>16&1;s[14]&=65535;sel25519(o,s,1-r)}for(n=0;n<16;n++){e[2*n]=o[n]&255;e[2*n+1]=o[n]>>8}}function neq25519(e,t){var i=new Uint8Array(32),n=new Uint8Array(32);pack25519(i,e);pack25519(n,t);return crypto_verify_32(i,0,n,0)}function par25519(e){var t=new Uint8Array(32);pack25519(t,e);return t[0]&1}function unpack25519(e,t){var i;for(i=0;i<16;i++)e[i]=t[2*i]+(t[2*i+1]<<8);e[15]&=32767}function A(e,t,i){for(var n=0;n<16;n++)e[n]=t[n]+i[n]}function Z(e,t,i){for(var n=0;n<16;n++)e[n]=t[n]-i[n]}function M(e,t,i){var n,a,r=0,s=0,o=0,u=0,l=0,c=0,d=0,p=0,f=0,h=0,m=0,b=0,g=0,y=0,S=0,w=0,v=0,z=0,j=0,O=0,k=0,C=0,T=0,R=0,E=0,A=0,x=0,N=0,V=0,P=0,D=0,I=i[0],_=i[1],q=i[2],B=i[3],M=i[4],U=i[5],L=i[6],H=i[7],Q=i[8],W=i[9],G=i[10],K=i[11],J=i[12],F=i[13],Y=i[14],X=i[15];n=t[0];r+=n*I;s+=n*_;o+=n*q;u+=n*B;l+=n*M;c+=n*U;d+=n*L;p+=n*H;f+=n*Q;h+=n*W;m+=n*G;b+=n*K;g+=n*J;y+=n*F;S+=n*Y;w+=n*X;n=t[1];s+=n*I;o+=n*_;u+=n*q;l+=n*B;c+=n*M;d+=n*U;p+=n*L;f+=n*H;h+=n*Q;m+=n*W;b+=n*G;g+=n*K;y+=n*J;S+=n*F;w+=n*Y;v+=n*X;n=t[2];o+=n*I;u+=n*_;l+=n*q;c+=n*B;d+=n*M;p+=n*U;f+=n*L;h+=n*H;m+=n*Q;b+=n*W;g+=n*G;y+=n*K;S+=n*J;w+=n*F;v+=n*Y;z+=n*X;n=t[3];u+=n*I;l+=n*_;c+=n*q;d+=n*B;p+=n*M;f+=n*U;h+=n*L;m+=n*H;b+=n*Q;g+=n*W;y+=n*G;S+=n*K;w+=n*J;v+=n*F;z+=n*Y;j+=n*X;n=t[4];l+=n*I;c+=n*_;d+=n*q;p+=n*B;f+=n*M;h+=n*U;m+=n*L;b+=n*H;g+=n*Q;y+=n*W;S+=n*G;w+=n*K;v+=n*J;z+=n*F;j+=n*Y;O+=n*X;n=t[5];c+=n*I;d+=n*_;p+=n*q;f+=n*B;h+=n*M;m+=n*U;b+=n*L;g+=n*H;y+=n*Q;S+=n*W;w+=n*G;v+=n*K;z+=n*J;j+=n*F;O+=n*Y;k+=n*X;n=t[6];d+=n*I;p+=n*_;f+=n*q;h+=n*B;m+=n*M;b+=n*U;g+=n*L;y+=n*H;S+=n*Q;w+=n*W;v+=n*G;z+=n*K;j+=n*J;O+=n*F;k+=n*Y;C+=n*X;n=t[7];p+=n*I;f+=n*_;h+=n*q;m+=n*B;b+=n*M;g+=n*U;y+=n*L;S+=n*H;w+=n*Q;v+=n*W;z+=n*G;j+=n*K;O+=n*J;k+=n*F;C+=n*Y;T+=n*X;n=t[8];f+=n*I;h+=n*_;m+=n*q;b+=n*B;g+=n*M;y+=n*U;S+=n*L;w+=n*H;v+=n*Q;z+=n*W;j+=n*G;O+=n*K;k+=n*J;C+=n*F;T+=n*Y;R+=n*X;n=t[9];h+=n*I;m+=n*_;b+=n*q;g+=n*B;y+=n*M;S+=n*U;w+=n*L;v+=n*H;z+=n*Q;j+=n*W;O+=n*G;k+=n*K;C+=n*J;T+=n*F;R+=n*Y;E+=n*X;n=t[10];m+=n*I;b+=n*_;g+=n*q;y+=n*B;S+=n*M;w+=n*U;v+=n*L;z+=n*H;j+=n*Q;O+=n*W;k+=n*G;C+=n*K;T+=n*J;R+=n*F;E+=n*Y;A+=n*X;n=t[11];b+=n*I;g+=n*_;y+=n*q;S+=n*B;w+=n*M;v+=n*U;z+=n*L;j+=n*H;O+=n*Q;k+=n*W;C+=n*G;T+=n*K;R+=n*J;E+=n*F;A+=n*Y;x+=n*X;n=t[12];g+=n*I;y+=n*_;S+=n*q;w+=n*B;v+=n*M;z+=n*U;j+=n*L;O+=n*H;k+=n*Q;C+=n*W;T+=n*G;R+=n*K;E+=n*J;A+=n*F;x+=n*Y;N+=n*X;n=t[13];y+=n*I;S+=n*_;w+=n*q;v+=n*B;z+=n*M;j+=n*U;O+=n*L;k+=n*H;C+=n*Q;T+=n*W;R+=n*G;E+=n*K;A+=n*J;x+=n*F;N+=n*Y;V+=n*X;n=t[14];S+=n*I;w+=n*_;v+=n*q;z+=n*B;j+=n*M;O+=n*U;k+=n*L;C+=n*H;T+=n*Q;R+=n*W;E+=n*G;A+=n*K;x+=n*J;N+=n*F;V+=n*Y;P+=n*X;n=t[15];w+=n*I;v+=n*_;z+=n*q;j+=n*B;O+=n*M;k+=n*U;C+=n*L;T+=n*H;R+=n*Q;E+=n*W;A+=n*G;x+=n*K;N+=n*J;V+=n*F;P+=n*Y;D+=n*X;r+=38*v;s+=38*z;o+=38*j;u+=38*O;l+=38*k;c+=38*C;d+=38*T;p+=38*R;f+=38*E;h+=38*A;m+=38*x;b+=38*N;g+=38*V;y+=38*P;S+=38*D;a=1;n=r+a+65535;a=Math.floor(n/65536);r=n-a*65536;n=s+a+65535;a=Math.floor(n/65536);s=n-a*65536;n=o+a+65535;a=Math.floor(n/65536);o=n-a*65536;n=u+a+65535;a=Math.floor(n/65536);u=n-a*65536;n=l+a+65535;a=Math.floor(n/65536);l=n-a*65536;n=c+a+65535;a=Math.floor(n/65536);c=n-a*65536;n=d+a+65535;a=Math.floor(n/65536);d=n-a*65536;n=p+a+65535;a=Math.floor(n/65536);p=n-a*65536;n=f+a+65535;a=Math.floor(n/65536);f=n-a*65536;n=h+a+65535;a=Math.floor(n/65536);h=n-a*65536;n=m+a+65535;a=Math.floor(n/65536);m=n-a*65536;n=b+a+65535;a=Math.floor(n/65536);b=n-a*65536;n=g+a+65535;a=Math.floor(n/65536);g=n-a*65536;n=y+a+65535;a=Math.floor(n/65536);y=n-a*65536;n=S+a+65535;a=Math.floor(n/65536);S=n-a*65536;n=w+a+65535;a=Math.floor(n/65536);w=n-a*65536;r+=a-1+37*(a-1);a=1;n=r+a+65535;a=Math.floor(n/65536);r=n-a*65536;n=s+a+65535;a=Math.floor(n/65536);s=n-a*65536;n=o+a+65535;a=Math.floor(n/65536);o=n-a*65536;n=u+a+65535;a=Math.floor(n/65536);u=n-a*65536;n=l+a+65535;a=Math.floor(n/65536);l=n-a*65536;n=c+a+65535;a=Math.floor(n/65536);c=n-a*65536;n=d+a+65535;a=Math.floor(n/65536);d=n-a*65536;n=p+a+65535;a=Math.floor(n/65536);p=n-a*65536;n=f+a+65535;a=Math.floor(n/65536);f=n-a*65536;n=h+a+65535;a=Math.floor(n/65536);h=n-a*65536;n=m+a+65535;a=Math.floor(n/65536);m=n-a*65536;n=b+a+65535;a=Math.floor(n/65536);b=n-a*65536;n=g+a+65535;a=Math.floor(n/65536);g=n-a*65536;n=y+a+65535;a=Math.floor(n/65536);y=n-a*65536;n=S+a+65535;a=Math.floor(n/65536);S=n-a*65536;n=w+a+65535;a=Math.floor(n/65536);w=n-a*65536;r+=a-1+37*(a-1);e[0]=r;e[1]=s;e[2]=o;e[3]=u;e[4]=l;e[5]=c;e[6]=d;e[7]=p;e[8]=f;e[9]=h;e[10]=m;e[11]=b;e[12]=g;e[13]=y;e[14]=S;e[15]=w}function S(e,t){M(e,t,t)}function inv25519(e,i){var n=t();var a;for(a=0;a<16;a++)n[a]=i[a];for(a=253;a>=0;a--){S(n,n);if(a!==2&&a!==4)M(n,n,i)}for(a=0;a<16;a++)e[a]=n[a]}function pow2523(e,i){var n=t();var a;for(a=0;a<16;a++)n[a]=i[a];for(a=250;a>=0;a--){S(n,n);if(a!==1)M(n,n,i)}for(a=0;a<16;a++)e[a]=n[a]}function crypto_scalarmult(e,i,n){var a=new Uint8Array(32);var r=new Float64Array(80),s,o;var l=t(),c=t(),d=t(),p=t(),f=t(),h=t();for(o=0;o<31;o++)a[o]=i[o];a[31]=i[31]&127|64;a[0]&=248;unpack25519(r,n);for(o=0;o<16;o++){c[o]=r[o];p[o]=l[o]=d[o]=0}l[0]=p[0]=1;for(o=254;o>=0;--o){s=a[o>>>3]>>>(o&7)&1;sel25519(l,c,s);sel25519(d,p,s);A(f,l,d);Z(l,l,d);A(d,c,p);Z(c,c,p);S(p,f);S(h,l);M(l,d,l);M(d,c,f);A(f,l,d);Z(l,l,d);S(c,l);Z(d,p,h);M(l,d,u);A(l,l,p);M(d,d,l);M(l,p,h);M(p,c,r);S(c,f);sel25519(l,c,s);sel25519(d,p,s)}for(o=0;o<16;o++){r[o+16]=l[o];r[o+32]=d[o];r[o+48]=c[o];r[o+64]=p[o]}var m=r.subarray(32);var b=r.subarray(16);inv25519(m,m);M(b,b,m);pack25519(e,b);return 0}function crypto_scalarmult_base(e,t){return crypto_scalarmult(e,t,r)}function crypto_box_keypair(e,t){n(t,32);return crypto_scalarmult_base(e,t)}function crypto_box_beforenm(e,t,i){var n=new Uint8Array(32);crypto_scalarmult(n,i,t);return crypto_core_hsalsa20(e,a,n,h)}var b=crypto_secretbox;var g=crypto_secretbox_open;function crypto_box(e,t,i,n,a,r){var s=new Uint8Array(32);crypto_box_beforenm(s,a,r);return b(e,t,i,n,s)}function crypto_box_open(e,t,i,n,a,r){var s=new Uint8Array(32);crypto_box_beforenm(s,a,r);return g(e,t,i,n,s)}var y=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function crypto_hashblocks_hl(e,t,i,n){var a=new Int32Array(16),r=new Int32Array(16),s,o,u,l,c,d,p,f,h,m,b,g,S,w,v,z,j,O,k,C,T,R,E,A,x,N;var V=e[0],P=e[1],D=e[2],I=e[3],_=e[4],q=e[5],B=e[6],M=e[7],U=t[0],L=t[1],H=t[2],Q=t[3],W=t[4],G=t[5],K=t[6],J=t[7];var F=0;while(n>=128){for(k=0;k<16;k++){C=8*k+F;a[k]=i[C+0]<<24|i[C+1]<<16|i[C+2]<<8|i[C+3];r[k]=i[C+4]<<24|i[C+5]<<16|i[C+6]<<8|i[C+7]}for(k=0;k<80;k++){s=V;o=P;u=D;l=I;c=_;d=q;p=B;f=M;h=U;m=L;b=H;g=Q;S=W;w=G;v=K;z=J;T=M;R=J;E=R&65535;A=R>>>16;x=T&65535;N=T>>>16;T=(_>>>14|W<<32-14)^(_>>>18|W<<32-18)^(W>>>41-32|_<<32-(41-32));R=(W>>>14|_<<32-14)^(W>>>18|_<<32-18)^(_>>>41-32|W<<32-(41-32));E+=R&65535;A+=R>>>16;x+=T&65535;N+=T>>>16;T=_&q^~_&B;R=W&G^~W&K;E+=R&65535;A+=R>>>16;x+=T&65535;N+=T>>>16;T=y[k*2];R=y[k*2+1];E+=R&65535;A+=R>>>16;x+=T&65535;N+=T>>>16;T=a[k%16];R=r[k%16];E+=R&65535;A+=R>>>16;x+=T&65535;N+=T>>>16;A+=E>>>16;x+=A>>>16;N+=x>>>16;j=x&65535|N<<16;O=E&65535|A<<16;T=j;R=O;E=R&65535;A=R>>>16;x=T&65535;N=T>>>16;T=(V>>>28|U<<32-28)^(U>>>34-32|V<<32-(34-32))^(U>>>39-32|V<<32-(39-32));R=(U>>>28|V<<32-28)^(V>>>34-32|U<<32-(34-32))^(V>>>39-32|U<<32-(39-32));E+=R&65535;A+=R>>>16;x+=T&65535;N+=T>>>16;T=V&P^V&D^P&D;R=U&L^U&H^L&H;E+=R&65535;A+=R>>>16;x+=T&65535;N+=T>>>16;A+=E>>>16;x+=A>>>16;N+=x>>>16;f=x&65535|N<<16;z=E&65535|A<<16;T=l;R=g;E=R&65535;A=R>>>16;x=T&65535;N=T>>>16;T=j;R=O;E+=R&65535;A+=R>>>16;x+=T&65535;N+=T>>>16;A+=E>>>16;x+=A>>>16;N+=x>>>16;l=x&65535|N<<16;g=E&65535|A<<16;P=s;D=o;I=u;_=l;q=c;B=d;M=p;V=f;L=h;H=m;Q=b;W=g;G=S;K=w;J=v;U=z;if(k%16===15){for(C=0;C<16;C++){T=a[C];R=r[C];E=R&65535;A=R>>>16;x=T&65535;N=T>>>16;T=a[(C+9)%16];R=r[(C+9)%16];E+=R&65535;A+=R>>>16;x+=T&65535;N+=T>>>16;j=a[(C+1)%16];O=r[(C+1)%16];T=(j>>>1|O<<32-1)^(j>>>8|O<<32-8)^j>>>7;R=(O>>>1|j<<32-1)^(O>>>8|j<<32-8)^(O>>>7|j<<32-7);E+=R&65535;A+=R>>>16;x+=T&65535;N+=T>>>16;j=a[(C+14)%16];O=r[(C+14)%16];T=(j>>>19|O<<32-19)^(O>>>61-32|j<<32-(61-32))^j>>>6;R=(O>>>19|j<<32-19)^(j>>>61-32|O<<32-(61-32))^(O>>>6|j<<32-6);E+=R&65535;A+=R>>>16;x+=T&65535;N+=T>>>16;A+=E>>>16;x+=A>>>16;N+=x>>>16;a[C]=x&65535|N<<16;r[C]=E&65535|A<<16}}}T=V;R=U;E=R&65535;A=R>>>16;x=T&65535;N=T>>>16;T=e[0];R=t[0];E+=R&65535;A+=R>>>16;x+=T&65535;N+=T>>>16;A+=E>>>16;x+=A>>>16;N+=x>>>16;e[0]=V=x&65535|N<<16;t[0]=U=E&65535|A<<16;T=P;R=L;E=R&65535;A=R>>>16;x=T&65535;N=T>>>16;T=e[1];R=t[1];E+=R&65535;A+=R>>>16;x+=T&65535;N+=T>>>16;A+=E>>>16;x+=A>>>16;N+=x>>>16;e[1]=P=x&65535|N<<16;t[1]=L=E&65535|A<<16;T=D;R=H;E=R&65535;A=R>>>16;x=T&65535;N=T>>>16;T=e[2];R=t[2];E+=R&65535;A+=R>>>16;x+=T&65535;N+=T>>>16;A+=E>>>16;x+=A>>>16;N+=x>>>16;e[2]=D=x&65535|N<<16;t[2]=H=E&65535|A<<16;T=I;R=Q;E=R&65535;A=R>>>16;x=T&65535;N=T>>>16;T=e[3];R=t[3];E+=R&65535;A+=R>>>16;x+=T&65535;N+=T>>>16;A+=E>>>16;x+=A>>>16;N+=x>>>16;e[3]=I=x&65535|N<<16;t[3]=Q=E&65535|A<<16;T=_;R=W;E=R&65535;A=R>>>16;x=T&65535;N=T>>>16;T=e[4];R=t[4];E+=R&65535;A+=R>>>16;x+=T&65535;N+=T>>>16;A+=E>>>16;x+=A>>>16;N+=x>>>16;e[4]=_=x&65535|N<<16;t[4]=W=E&65535|A<<16;T=q;R=G;E=R&65535;A=R>>>16;x=T&65535;N=T>>>16;T=e[5];R=t[5];E+=R&65535;A+=R>>>16;x+=T&65535;N+=T>>>16;A+=E>>>16;x+=A>>>16;N+=x>>>16;e[5]=q=x&65535|N<<16;t[5]=G=E&65535|A<<16;T=B;R=K;E=R&65535;A=R>>>16;x=T&65535;N=T>>>16;T=e[6];R=t[6];E+=R&65535;A+=R>>>16;x+=T&65535;N+=T>>>16;A+=E>>>16;x+=A>>>16;N+=x>>>16;e[6]=B=x&65535|N<<16;t[6]=K=E&65535|A<<16;T=M;R=J;E=R&65535;A=R>>>16;x=T&65535;N=T>>>16;T=e[7];R=t[7];E+=R&65535;A+=R>>>16;x+=T&65535;N+=T>>>16;A+=E>>>16;x+=A>>>16;N+=x>>>16;e[7]=M=x&65535|N<<16;t[7]=J=E&65535|A<<16;F+=128;n-=128}return n}function crypto_hash(e,t,i){var n=new Int32Array(8),a=new Int32Array(8),r=new Uint8Array(256),s,o=i;n[0]=1779033703;n[1]=3144134277;n[2]=1013904242;n[3]=2773480762;n[4]=1359893119;n[5]=2600822924;n[6]=528734635;n[7]=1541459225;a[0]=4089235720;a[1]=2227873595;a[2]=4271175723;a[3]=1595750129;a[4]=2917565137;a[5]=725511199;a[6]=4215389547;a[7]=327033209;crypto_hashblocks_hl(n,a,t,i);i%=128;for(s=0;s=0;--a){n=i[a/8|0]>>(a&7)&1;cswap(e,t,n);add(t,e);add(e,e);cswap(e,t,n)}}function scalarbase(e,i){var n=[t(),t(),t(),t()];set25519(n[0],d);set25519(n[1],p);set25519(n[2],o);M(n[3],d,p);scalarmult(e,n,i)}function crypto_sign_keypair(e,i,a){var r=new Uint8Array(64);var s=[t(),t(),t(),t()];var o;if(!a)n(i,32);crypto_hash(r,i,32);r[0]&=248;r[31]&=127;r[31]|=64;scalarbase(s,r);pack(e,s);for(o=0;o<32;o++)i[o+32]=e[o];return 0}var w=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function modL(e,t){var i,n,a,r;for(n=63;n>=32;--n){i=0;for(a=n-32,r=n-12;a>8;t[a]-=i*256}t[a]+=i;t[n]=0}i=0;for(a=0;a<32;a++){t[a]+=i-(t[31]>>4)*w[a];i=t[a]>>8;t[a]&=255}for(a=0;a<32;a++)t[a]-=i*w[a];for(n=0;n<32;n++){t[n+1]+=t[n]>>8;e[n]=t[n]&255}}function reduce(e){var t=new Float64Array(64),i;for(i=0;i<64;i++)t[i]=e[i];for(i=0;i<64;i++)e[i]=0;modL(e,t)}function crypto_sign(e,i,n,a){var r=new Uint8Array(64),s=new Uint8Array(64),o=new Uint8Array(64);var u,l,c=new Float64Array(64);var d=[t(),t(),t(),t()];crypto_hash(r,a,32);r[0]&=248;r[31]&=127;r[31]|=64;var p=n+64;for(u=0;u>7)Z(e[0],s,e[0]);M(e[3],e[0],e[1]);return 0}function crypto_sign_open(e,i,n,a){var r,s;var o=new Uint8Array(32),u=new Uint8Array(64);var l=[t(),t(),t(),t()],c=[t(),t(),t(),t()];s=-1;if(n<64)return-1;if(unpackneg(c,a))return-1;for(r=0;r=0};e.sign.keyPair=function(){var e=new Uint8Array(D);var t=new Uint8Array(I);crypto_sign_keypair(e,t);return{publicKey:e,secretKey:t}};e.sign.keyPair.fromSecretKey=function(e){checkArrayTypes(e);if(e.length!==I)throw new Error("bad secret key size");var t=new Uint8Array(D);for(var i=0;i{const t=r.get(e);if(!t){return new s({type:"secret"})}return new s(a(n(t/8)),{use:"enc",alg:e})})},,function(e,t,i){const n=i(745);e.exports={IdToken:{verify:(e,t,i)=>n(e,t,{...i,profile:"id_token"})},LogoutToken:{verify:(e,t,i)=>n(e,t,{...i,profile:"logout_token"})},AccessToken:{verify:(e,t,i)=>n(e,t,{...i,profile:"at+JWT"})}}},function(e,t,i){const n=i(475);const a=i(493);const{deep:r}=i(358);const s=i(854);const{HTTP_OPTIONS:o}=i(468);let u;let l;const c=e=>{u=r({},e,u);l=n.extend(u)};c({followRedirect:false,headers:{"User-Agent":`${a.name}/${a.version} (${a.homepage})`},retry:0,timeout:2500,throwHttpErrors:false});e.exports=function request(e,{mTLS:t=false}={}){const{url:i}=e;s(i);const n=this[o];let a;if(n){a=n.call(this,r({},e,u))}else{a=e}if(t&&(!a.key||!a.cert)){throw new TypeError("mutual-TLS certificate and key not set")}return l(a)};e.exports.setDefaults=c},function(e,t){t.stringify=function stringify(e){if("undefined"==typeof e)return e;if(e&&Buffer.isBuffer(e))return JSON.stringify(":base64:"+e.toString("base64"));if(e&&e.toJSON)e=e.toJSON();if(e&&"object"===typeof e){var t="";var i=Array.isArray(e);t=i?"[":"{";var n=true;for(var a in e){var r="function"==typeof e[a]||!i&&"undefined"===typeof e[a];if(Object.hasOwnProperty.call(e,a)&&!r){if(!n)t+=",";n=false;if(i){if(e[a]==undefined)t+="null";else t+=stringify(e[a])}else if(e[a]!==void 0){t+=stringify(a)+":"+stringify(e[a])}}}t+=i?"]":"}";return t}else if("string"===typeof e){return JSON.stringify(/^:/.test(e)?":"+e:e)}else if("undefined"===typeof e){return"null"}else return JSON.stringify(e)};t.parse=function(e){return JSON.parse(e,function(e,t){if("string"===typeof t){if(/^:base64:/.test(t))return new Buffer(t.substring(8),"base64");else return/^:/.test(t)?t.substring(1):t}return t})}},,,function(e){const t=e=>{return e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")};const i=(e,i="utf8")=>{return t(Buffer.from(e,i).toString("base64"))};const n=e=>{return t(e.toString("base64"))};const a=e=>{return Buffer.from(e,"base64")};const r=(e,t="utf8")=>{return a(e).toString(t)};const s={encode:e=>{return i(JSON.stringify(e))},decode:(e,t="utf8")=>{return JSON.parse(r(e,t))}};s.decode.try=((e,t="utf8")=>{try{return s.decode(e,t)}catch(i){return r(e,t)}});const o=e=>{let t=BigInt(e).toString(16);if(t.length%2){t=`0${t}`}const i=t.length/2;const n=new Uint8Array(i);let a=0;let r=0;while(an(Buffer.from(o(e)));e.exports.decode=r;e.exports.decodeToBuffer=a;e.exports.encode=i;e.exports.encodeBuffer=n;e.exports.JSON=s;e.exports.encodeBigInt=u},function(e,t,i){const{publicEncrypt:n,privateDecrypt:a,constants:r}=i(373);const{oaepHashSupported:s}=i(915);const{KEYOBJECT:o}=i(771);const{asInput:u}=i(40);const l=e=>{switch(e){case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":return r.RSA_PKCS1_OAEP_PADDING;case"RSA1_5":return r.RSA_PKCS1_PADDING}};const c=e=>{switch(e){case"RSA-OAEP":return"sha1";case"RSA-OAEP-256":return"sha256";case"RSA-OAEP-384":return"sha384";case"RSA-OAEP-512":return"sha512";default:return undefined}};const d=(e,t,{[o]:i},a)=>{const r=u(i,true);return{wrapped:n({key:r,oaepHash:t,padding:e},a)}};const p=(e,t,{[o]:i},n)=>{const r=u(i,false);return a({key:r,oaepHash:t,padding:e},n)};const f={RSA1_5:0,"RSA-OAEP":592,"RSA-OAEP-256":784,"RSA-OAEP-384":1040,"RSA-OAEP-512":1296};e.exports=((e,t)=>{const i=["RSA-OAEP","RSA1_5"];if(s){i.splice(1,0,"RSA-OAEP-256","RSA-OAEP-384","RSA-OAEP-512")}i.forEach(i=>{const n=l(i);const a=c(i);e.keyManagementEncrypt.set(i,d.bind(undefined,n,a));e.keyManagementDecrypt.set(i,p.bind(undefined,n,a));t.RSA.wrapKey[i]=(e=>(e.use==="enc"||e.use===undefined)&&e.length>=f[i]);t.RSA.unwrapKey[i]=(e=>e.private&&(e.use==="enc"||e.use===undefined)&&e.length>=f[i])})})},,function(e){e.exports=require("https")},,function(e){e.exports=require("punycode")},,function(e,t,i){"use strict";var n=i(293);var a=n.Buffer;var r={};var s;for(s in n){if(!n.hasOwnProperty(s))continue;if(s==="SlowBuffer"||s==="Buffer")continue;r[s]=n[s]}var o=r.Buffer={};for(s in a){if(!a.hasOwnProperty(s))continue;if(s==="allocUnsafe"||s==="allocUnsafeSlow")continue;o[s]=a[s]}r.Buffer.prototype=a.prototype;if(!o.from||o.from===Uint8Array.from){o.from=function(e,t,i){if(typeof e==="number"){throw new TypeError('The "value" argument must not be of type number. Received type '+typeof e)}if(e&&typeof e.length==="undefined"){throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}return a(e,t,i)}}if(!o.alloc){o.alloc=function(e,t,i){if(typeof e!=="number"){throw new TypeError('The "size" argument must be of type number. Received type '+typeof e)}if(e<0||e>=2*(1<<30)){throw new RangeError('The value "'+e+'" is invalid for option "size"')}var n=a(e);if(!t||t.length===0){n.fill(0)}else if(typeof i==="string"){n.fill(t,i)}else{n.fill(t)}return n}}if(!r.kStringMaxLength){try{r.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch(e){}}if(!r.constants){r.constants={MAX_LENGTH:r.kMaxLength};if(r.kStringMaxLength){r.constants.MAX_STRING_LENGTH=r.kStringMaxLength}}e.exports=r},function(e,t,i){var n=i(622);var a=i(602);var r=i(705);a.register("find",_find,{});function _find(e,t){if(!t){a.error("no path specified")}else if(typeof t==="string"){t=[].slice.call(arguments,1)}var i=[];function pushFile(e){if(process.platform==="win32"){e=e.replace(/\\/g,"/")}i.push(e)}t.forEach(function(e){var t;try{t=a.statFollowLinks(e)}catch(t){a.error("no such file or directory: "+e)}pushFile(e);if(t.isDirectory()){r({recursive:true,all:true},e).forEach(function(t){pushFile(n.join(e,t))})}});return i}e.exports=_find},,function(e,t,i){"use strict";const n=i(413).PassThrough;const a=i(89);const r=e=>{if(!(e&&e.pipe)){throw new TypeError("Parameter `response` must be a response stream.")}const t=new n;a(e,t);return e.pipe(t)};e.exports=r},function(e,t,i){const n=i(124);const a=(e,t)=>new n(e,t).set.map(e=>e.map(e=>e.value).join(" ").trim().split(" "));e.exports=a},function(e,t,i){"use strict";var n=i(254);var a=i(826);var r=i(810);var s=r.md5;var o=r.toBase64;function Auth(e){this.request=e;this.hasAuth=false;this.sentAuth=false;this.bearerToken=null;this.user=null;this.pass=null}Auth.prototype.basic=function(e,t,i){var n=this;if(typeof e!=="string"||t!==undefined&&typeof t!=="string"){n.request.emit("error",new Error("auth() received invalid user or password"))}n.user=e;n.pass=t;n.hasAuth=true;var a=e+":"+(t||"");if(i||typeof i==="undefined"){var r="Basic "+o(a);n.sentAuth=true;return r}};Auth.prototype.bearer=function(e,t){var i=this;i.bearerToken=e;i.hasAuth=true;if(t||typeof t==="undefined"){if(typeof e==="function"){e=e()}var n="Bearer "+(e||"");i.sentAuth=true;return n}};Auth.prototype.digest=function(e,t,i){var n=this;var r={};var o=/([a-z0-9_-]+)=(?:"([^"]+)"|([a-z0-9_-]+))/gi;while(true){var u=o.exec(i);if(!u){break}r[u[1]]=u[2]||u[3]}var l=function(e,t,i,n,a,r){var o=s(t+":"+i+":"+n);if(e&&e.toLowerCase()==="md5-sess"){return s(o+":"+a+":"+r)}else{return o}};var c=/(^|,)\s*auth\s*($|,)/.test(r.qop)&&"auth";var d=c&&"00000001";var p=c&&a().replace(/-/g,"");var f=l(r.algorithm,n.user,r.realm,n.pass,r.nonce,p);var h=s(e+":"+t);var m=c?s(f+":"+r.nonce+":"+d+":"+p+":"+c+":"+h):s(f+":"+r.nonce+":"+h);var b={username:n.user,realm:r.realm,nonce:r.nonce,uri:t,qop:c,response:m,nc:d,cnonce:p,algorithm:r.algorithm,opaque:r.opaque};i=[];for(var g in b){if(b[g]){if(g==="qop"||g==="nc"||g==="algorithm"){i.push(g+"="+b[g])}else{i.push(g+'="'+b[g]+'"')}}}i="Digest "+i.join(", ");n.sentAuth=true;return i};Auth.prototype.onRequest=function(e,t,i,n){var a=this;var r=a.request;var s;if(n===undefined&&e===undefined){a.request.emit("error",new Error("no auth mechanism defined"))}else if(n!==undefined){s=a.bearer(n,i)}else{s=a.basic(e,t,i)}if(s){r.setHeader("authorization",s)}};Auth.prototype.onResponse=function(e){var t=this;var i=t.request;if(!t.hasAuth||t.sentAuth){return null}var a=n(e.headers);var r=a.get("www-authenticate");var s=r&&r.split(" ")[0].toLowerCase();i.debug("reauth",s);switch(s){case"basic":return t.basic(t.user,t.pass,true);case"bearer":return t.bearer(t.bearerToken,true);case"digest":return t.digest(i.method,i.path,r)}};t.Auth=Auth},,function(e){e.exports={$id:"browser.json#",$schema:"http://json-schema.org/draft-06/schema#",type:"object",required:["name","version"],properties:{name:{type:"string"},version:{type:"string"},comment:{type:"string"}}}},,,,function(e){e.exports={$id:"response.json#",$schema:"http://json-schema.org/draft-06/schema#",type:"object",required:["status","statusText","httpVersion","cookies","headers","content","redirectURL","headersSize","bodySize"],properties:{status:{type:"integer"},statusText:{type:"string"},httpVersion:{type:"string"},cookies:{type:"array",items:{$ref:"cookie.json#"}},headers:{type:"array",items:{$ref:"header.json#"}},content:{$ref:"content.json#"},redirectURL:{type:"string"},headersSize:{type:"integer"},bodySize:{type:"integer"},comment:{type:"string"}}}},,function(e,t,i){"use strict";var n=i(945);function resolveYamlBoolean(e){if(e===null)return false;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function constructYamlBoolean(e){return e==="true"||e==="True"||e==="TRUE"}function isBoolean(e){return Object.prototype.toString.call(e)==="[object Boolean]"}e.exports=new n("tag:yaml.org,2002:bool",{kind:"scalar",resolve:resolveYamlBoolean,construct:constructYamlBoolean,predicate:isBoolean,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})},,function(e){e.exports={$id:"page.json#",$schema:"http://json-schema.org/draft-06/schema#",type:"object",optional:true,required:["startedDateTime","id","title","pageTimings"],properties:{startedDateTime:{type:"string",format:"date-time",pattern:"^(\\d{4})(-)?(\\d\\d)(-)?(\\d\\d)(T)?(\\d\\d)(:)?(\\d\\d)(:)?(\\d\\d)(\\.\\d+)?(Z|([+-])(\\d\\d)(:)?(\\d\\d))"},id:{type:"string",unique:true},title:{type:"string"},pageTimings:{$ref:"pageTimings.json#"},comment:{type:"string"}}}},,function(e){e.exports=(e=>!!e&&e.constructor===Object)},function(e){e.exports=["cat","cd","chmod","cp","dirs","echo","exec","find","grep","head","ln","ls","mkdir","mv","pwd","rm","sed","set","sort","tail","tempdir","test","to","toEnd","touch","uniq","which"]},,function(module){module.exports=eval("require")("utf-8-validate")},,function(e,t,i){"use strict";const n=i(21);n.Server=i(613);n.Receiver=i(738);n.Sender=i(10);e.exports=n},,,function(e,t,i){var n=i(602);var a=i(747);var r=i(622);n.register("toEnd",_toEnd,{pipeOnly:true,wrapOutput:false});function _toEnd(e,t){if(!t)n.error("wrong arguments");if(!a.existsSync(r.dirname(t))){n.error("no such file or directory: "+r.dirname(t))}try{a.appendFileSync(t,this.stdout||this.toString(),"utf8");return this}catch(e){n.error("could not append to file (code "+e.code+"): "+t,{continue:true})}}e.exports=_toEnd},function(e,t,i){e.exports={read:read,write:write};var n=i(872);var a=i(215).Buffer;var r=i(270);var s=i(852);var o=i(502);var u=i(268);var l=i(603);var c=i(538);var d=i(982);var p=i(624);var f="Private-key-format: v1";function read(e,t){if(typeof e==="string"){if(e.trim().match(/^[-]+[ ]*BEGIN/))return u.read(e,t);if(e.match(/^\s*ssh-[a-z]/))return l.read(e,t);if(e.match(/^\s*ecdsa-/))return l.read(e,t);if(e.match(/^putty-user-key-file-2:/i))return p.read(e,t);if(findDNSSECHeader(e))return d.read(e,t);e=a.from(e,"binary")}else{n.buffer(e);if(findPEMHeader(e))return u.read(e,t);if(findSSHHeader(e))return l.read(e,t);if(findPuTTYHeader(e))return p.read(e,t);if(findDNSSECHeader(e))return d.read(e,t)}if(e.readUInt32BE(0)e.length||e.slice(t,t+5).toString("ascii")!=="BEGIN")return false;return true}function findDNSSECHeader(e){if(e.length<=f.length)return false;var t=e.slice(0,f.length);if(t.toString("ascii")===f)return true;if(typeof e!=="string"){e=e.toString("ascii")}var i=e.split("\n");var n=0;while(i[n].match(/^\;/))n++;if(i[n].toString("ascii").match(/\. IN KEY /))return true;if(i[n].toString("ascii").match(/\. IN DNSKEY /))return true;return false}function write(e,t){throw new Error('"auto" format cannot be used for writing')}},function(e,t){(function(){var i;var n=0xdeadbeefcafe;var a=(n&16777215)==15715070;function BigInteger(e,t,i){if(e!=null)if("number"==typeof e)this.fromNumber(e,t,i);else if(t==null&&"string"!=typeof e)this.fromString(e,256);else this.fromString(e,t)}function nbi(){return new BigInteger(null)}function am1(e,t,i,n,a,r){while(--r>=0){var s=t*this[e++]+i[n]+a;a=Math.floor(s/67108864);i[n++]=s&67108863}return a}function am2(e,t,i,n,a,r){var s=t&32767,o=t>>15;while(--r>=0){var u=this[e]&32767;var l=this[e++]>>15;var c=o*u+l*s;u=s*u+((c&32767)<<15)+i[n]+(a&1073741823);a=(u>>>30)+(c>>>15)+o*l+(a>>>30);i[n++]=u&1073741823}return a}function am3(e,t,i,n,a,r){var s=t&16383,o=t>>14;while(--r>=0){var u=this[e]&16383;var l=this[e++]>>14;var c=o*u+l*s;u=s*u+((c&16383)<<14)+i[n]+a;a=(u>>28)+(c>>14)+o*l;i[n++]=u&268435455}return a}var r=typeof navigator!=="undefined";if(r&&a&&navigator.appName=="Microsoft Internet Explorer"){BigInteger.prototype.am=am2;i=30}else if(r&&a&&navigator.appName!="Netscape"){BigInteger.prototype.am=am1;i=26}else{BigInteger.prototype.am=am3;i=28}BigInteger.prototype.DB=i;BigInteger.prototype.DM=(1<=0;--t)e[t]=this[t];e.t=this.t;e.s=this.s}function bnpFromInt(e){this.t=1;this.s=e<0?-1:0;if(e>0)this[0]=e;else if(e<-1)this[0]=e+this.DV;else this.t=0}function nbv(e){var t=nbi();t.fromInt(e);return t}function bnpFromString(e,t){var i;if(t==16)i=4;else if(t==8)i=3;else if(t==256)i=8;else if(t==2)i=1;else if(t==32)i=5;else if(t==4)i=2;else{this.fromRadix(e,t);return}this.t=0;this.s=0;var n=e.length,a=false,r=0;while(--n>=0){var s=i==8?e[n]&255:intAt(e,n);if(s<0){if(e.charAt(n)=="-")a=true;continue}a=false;if(r==0)this[this.t++]=s;else if(r+i>this.DB){this[this.t-1]|=(s&(1<>this.DB-r}else this[this.t-1]|=s<=this.DB)r-=this.DB}if(i==8&&(e[0]&128)!=0){this.s=-1;if(r>0)this[this.t-1]|=(1<0&&this[this.t-1]==e)--this.t}function bnToString(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(e==16)t=4;else if(e==8)t=3;else if(e==2)t=1;else if(e==32)t=5;else if(e==4)t=2;else return this.toRadix(e);var i=(1<0){if(o>o)>0){a=true;r=int2char(n)}while(s>=0){if(o>(o+=this.DB-t)}else{n=this[s]>>(o-=t)&i;if(o<=0){o+=this.DB;--s}}if(n>0)a=true;if(a)r+=int2char(n)}}return a?r:"0"}function bnNegate(){var e=nbi();BigInteger.ZERO.subTo(this,e);return e}function bnAbs(){return this.s<0?this.negate():this}function bnCompareTo(e){var t=this.s-e.s;if(t!=0)return t;var i=this.t;t=i-e.t;if(t!=0)return this.s<0?-t:t;while(--i>=0)if((t=this[i]-e[i])!=0)return t;return 0}function nbits(e){var t=1,i;if((i=e>>>16)!=0){e=i;t+=16}if((i=e>>8)!=0){e=i;t+=8}if((i=e>>4)!=0){e=i;t+=4}if((i=e>>2)!=0){e=i;t+=2}if((i=e>>1)!=0){e=i;t+=1}return t}function bnBitLength(){if(this.t<=0)return 0;return this.DB*(this.t-1)+nbits(this[this.t-1]^this.s&this.DM)}function bnpDLShiftTo(e,t){var i;for(i=this.t-1;i>=0;--i)t[i+e]=this[i];for(i=e-1;i>=0;--i)t[i]=0;t.t=this.t+e;t.s=this.s}function bnpDRShiftTo(e,t){for(var i=e;i=0;--o){t[o+r+1]=this[o]>>n|s;s=(this[o]&a)<=0;--o)t[o]=0;t[r]=s;t.t=this.t+r+1;t.s=this.s;t.clamp()}function bnpRShiftTo(e,t){t.s=this.s;var i=Math.floor(e/this.DB);if(i>=this.t){t.t=0;return}var n=e%this.DB;var a=this.DB-n;var r=(1<>n;for(var s=i+1;s>n}if(n>0)t[this.t-i-1]|=(this.s&r)<>=this.DB}if(e.t>=this.DB}n+=this.s}else{n+=this.s;while(i>=this.DB}n-=e.s}t.s=n<0?-1:0;if(n<-1)t[i++]=this.DV+n;else if(n>0)t[i++]=n;t.t=i;t.clamp()}function bnpMultiplyTo(e,t){var i=this.abs(),n=e.abs();var a=i.t;t.t=a+n.t;while(--a>=0)t[a]=0;for(a=0;a=0)e[i]=0;for(i=0;i=t.DV){e[i+t.t]-=t.DV;e[i+t.t+1]=1}}if(e.t>0)e[e.t-1]+=t.am(i,t[i],e,2*i,0,1);e.s=0;e.clamp()}function bnpDivRemTo(e,t,i){var n=e.abs();if(n.t<=0)return;var a=this.abs();if(a.t0){n.lShiftTo(u,r);a.lShiftTo(u,i)}else{n.copyTo(r);a.copyTo(i)}var l=r.t;var c=r[l-1];if(c==0)return;var d=c*(1<1?r[l-2]>>this.F2:0);var p=this.FV/d,f=(1<=0){i[i.t++]=1;i.subTo(g,i)}BigInteger.ONE.dlShiftTo(l,g);g.subTo(r,r);while(r.t=0){var y=i[--m]==c?this.DM:Math.floor(i[m]*p+(i[m-1]+h)*f);if((i[m]+=r.am(0,y,i,b,0,l))0)i.rShiftTo(u,i);if(s<0)BigInteger.ZERO.subTo(i,i)}function bnMod(e){var t=nbi();this.abs().divRemTo(e,null,t);if(this.s<0&&t.compareTo(BigInteger.ZERO)>0)e.subTo(t,t);return t}function Classic(e){this.m=e}function cConvert(e){if(e.s<0||e.compareTo(this.m)>=0)return e.mod(this.m);else return e}function cRevert(e){return e}function cReduce(e){e.divRemTo(this.m,null,e)}function cMulTo(e,t,i){e.multiplyTo(t,i);this.reduce(i)}function cSqrTo(e,t){e.squareTo(t);this.reduce(t)}Classic.prototype.convert=cConvert;Classic.prototype.revert=cRevert;Classic.prototype.reduce=cReduce;Classic.prototype.mulTo=cMulTo;Classic.prototype.sqrTo=cSqrTo;function bnpInvDigit(){if(this.t<1)return 0;var e=this[0];if((e&1)==0)return 0;var t=e&3;t=t*(2-(e&15)*t)&15;t=t*(2-(e&255)*t)&255;t=t*(2-((e&65535)*t&65535))&65535;t=t*(2-e*t%this.DV)%this.DV;return t>0?this.DV-t:-t}function Montgomery(e){this.m=e;this.mp=e.invDigit();this.mpl=this.mp&32767;this.mph=this.mp>>15;this.um=(1<0)this.m.subTo(t,t);return t}function montRevert(e){var t=nbi();e.copyTo(t);this.reduce(t);return t}function montReduce(e){while(e.t<=this.mt2)e[e.t++]=0;for(var t=0;t>15)*this.mpl&this.um)<<15)&e.DM;i=t+this.m.t;e[i]+=this.m.am(0,n,e,t,0,this.m.t);while(e[i]>=e.DV){e[i]-=e.DV;e[++i]++}}e.clamp();e.drShiftTo(this.m.t,e);if(e.compareTo(this.m)>=0)e.subTo(this.m,e)}function montSqrTo(e,t){e.squareTo(t);this.reduce(t)}function montMulTo(e,t,i){e.multiplyTo(t,i);this.reduce(i)}Montgomery.prototype.convert=montConvert;Montgomery.prototype.revert=montRevert;Montgomery.prototype.reduce=montReduce;Montgomery.prototype.mulTo=montMulTo;Montgomery.prototype.sqrTo=montSqrTo;function bnpIsEven(){return(this.t>0?this[0]&1:this.s)==0}function bnpExp(e,t){if(e>4294967295||e<1)return BigInteger.ONE;var i=nbi(),n=nbi(),a=t.convert(this),r=nbits(e)-1;a.copyTo(i);while(--r>=0){t.sqrTo(i,n);if((e&1<0)t.mulTo(n,a,i);else{var s=i;i=n;n=s}}return t.revert(i)}function bnModPowInt(e,t){var i;if(e<256||t.isEven())i=new Classic(t);else i=new Montgomery(t);return this.exp(e,i)}BigInteger.prototype.copyTo=bnpCopyTo;BigInteger.prototype.fromInt=bnpFromInt;BigInteger.prototype.fromString=bnpFromString;BigInteger.prototype.clamp=bnpClamp;BigInteger.prototype.dlShiftTo=bnpDLShiftTo;BigInteger.prototype.drShiftTo=bnpDRShiftTo;BigInteger.prototype.lShiftTo=bnpLShiftTo;BigInteger.prototype.rShiftTo=bnpRShiftTo;BigInteger.prototype.subTo=bnpSubTo;BigInteger.prototype.multiplyTo=bnpMultiplyTo;BigInteger.prototype.squareTo=bnpSquareTo;BigInteger.prototype.divRemTo=bnpDivRemTo;BigInteger.prototype.invDigit=bnpInvDigit;BigInteger.prototype.isEven=bnpIsEven;BigInteger.prototype.exp=bnpExp;BigInteger.prototype.toString=bnToString;BigInteger.prototype.negate=bnNegate;BigInteger.prototype.abs=bnAbs;BigInteger.prototype.compareTo=bnCompareTo;BigInteger.prototype.bitLength=bnBitLength;BigInteger.prototype.mod=bnMod;BigInteger.prototype.modPowInt=bnModPowInt;BigInteger.ZERO=nbv(0);BigInteger.ONE=nbv(1);function bnClone(){var e=nbi();this.copyTo(e);return e}function bnIntValue(){if(this.s<0){if(this.t==1)return this[0]-this.DV;else if(this.t==0)return-1}else if(this.t==1)return this[0];else if(this.t==0)return 0;return(this[1]&(1<<32-this.DB)-1)<>24}function bnShortValue(){return this.t==0?this.s:this[0]<<16>>16}function bnpChunkSize(e){return Math.floor(Math.LN2*this.DB/Math.log(e))}function bnSigNum(){if(this.s<0)return-1;else if(this.t<=0||this.t==1&&this[0]<=0)return 0;else return 1}function bnpToRadix(e){if(e==null)e=10;if(this.signum()==0||e<2||e>36)return"0";var t=this.chunkSize(e);var i=Math.pow(e,t);var n=nbv(i),a=nbi(),r=nbi(),s="";this.divRemTo(n,a,r);while(a.signum()>0){s=(i+r.intValue()).toString(e).substr(1)+s;a.divRemTo(n,a,r)}return r.intValue().toString(e)+s}function bnpFromRadix(e,t){this.fromInt(0);if(t==null)t=10;var i=this.chunkSize(t);var n=Math.pow(t,i),a=false,r=0,s=0;for(var o=0;o=i){this.dMultiply(n);this.dAddOffset(s,0);r=0;s=0}}if(r>0){this.dMultiply(Math.pow(t,r));this.dAddOffset(s,0)}if(a)BigInteger.ZERO.subTo(this,this)}function bnpFromNumber(e,t,i){if("number"==typeof t){if(e<2)this.fromInt(1);else{this.fromNumber(e,i);if(!this.testBit(e-1))this.bitwiseTo(BigInteger.ONE.shiftLeft(e-1),op_or,this);if(this.isEven())this.dAddOffset(1,0);while(!this.isProbablePrime(t)){this.dAddOffset(2,0);if(this.bitLength()>e)this.subTo(BigInteger.ONE.shiftLeft(e-1),this)}}}else{var n=new Array,a=e&7;n.length=(e>>3)+1;t.nextBytes(n);if(a>0)n[0]&=(1<0){if(i>i)!=(this.s&this.DM)>>i)t[a++]=n|this.s<=0){if(i<8){n=(this[e]&(1<>(i+=this.DB-8)}else{n=this[e]>>(i-=8)&255;if(i<=0){i+=this.DB;--e}}if((n&128)!=0)n|=-256;if(a==0&&(this.s&128)!=(n&128))++a;if(a>0||n!=this.s)t[a++]=n}}return t}function bnEquals(e){return this.compareTo(e)==0}function bnMin(e){return this.compareTo(e)<0?this:e}function bnMax(e){return this.compareTo(e)>0?this:e}function bnpBitwiseTo(e,t,i){var n,a,r=Math.min(e.t,this.t);for(n=0;n>=16;t+=16}if((e&255)==0){e>>=8;t+=8}if((e&15)==0){e>>=4;t+=4}if((e&3)==0){e>>=2;t+=2}if((e&1)==0)++t;return t}function bnGetLowestSetBit(){for(var e=0;e=this.t)return this.s!=0;return(this[t]&1<>=this.DB}if(e.t>=this.DB}n+=this.s}else{n+=this.s;while(i>=this.DB}n+=e.s}t.s=n<0?-1:0;if(n>0)t[i++]=n;else if(n<-1)t[i++]=this.DV+n;t.t=i;t.clamp()}function bnAdd(e){var t=nbi();this.addTo(e,t);return t}function bnSubtract(e){var t=nbi();this.subTo(e,t);return t}function bnMultiply(e){var t=nbi();this.multiplyTo(e,t);return t}function bnSquare(){var e=nbi();this.squareTo(e);return e}function bnDivide(e){var t=nbi();this.divRemTo(e,t,null);return t}function bnRemainder(e){var t=nbi();this.divRemTo(e,null,t);return t}function bnDivideAndRemainder(e){var t=nbi(),i=nbi();this.divRemTo(e,t,i);return new Array(t,i)}function bnpDMultiply(e){this[this.t]=this.am(0,e-1,this,0,0,this.t);++this.t;this.clamp()}function bnpDAddOffset(e,t){if(e==0)return;while(this.t<=t)this[this.t++]=0;this[t]+=e;while(this[t]>=this.DV){this[t]-=this.DV;if(++t>=this.t)this[this.t++]=0;++this[t]}}function NullExp(){}function nNop(e){return e}function nMulTo(e,t,i){e.multiplyTo(t,i)}function nSqrTo(e,t){e.squareTo(t)}NullExp.prototype.convert=nNop;NullExp.prototype.revert=nNop;NullExp.prototype.mulTo=nMulTo;NullExp.prototype.sqrTo=nSqrTo;function bnPow(e){return this.exp(e,new NullExp)}function bnpMultiplyLowerTo(e,t,i){var n=Math.min(this.t+e.t,t);i.s=0;i.t=n;while(n>0)i[--n]=0;var a;for(a=i.t-this.t;n=0)i[n]=0;for(n=Math.max(t-this.t,0);n2*this.m.t)return e.mod(this.m);else if(e.compareTo(this.m)<0)return e;else{var t=nbi();e.copyTo(t);this.reduce(t);return t}}function barrettRevert(e){return e}function barrettReduce(e){e.drShiftTo(this.m.t-1,this.r2);if(e.t>this.m.t+1){e.t=this.m.t+1;e.clamp()}this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3);this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);while(e.compareTo(this.r2)<0)e.dAddOffset(1,this.m.t+1);e.subTo(this.r2,e);while(e.compareTo(this.m)>=0)e.subTo(this.m,e)}function barrettSqrTo(e,t){e.squareTo(t);this.reduce(t)}function barrettMulTo(e,t,i){e.multiplyTo(t,i);this.reduce(i)}Barrett.prototype.convert=barrettConvert;Barrett.prototype.revert=barrettRevert;Barrett.prototype.reduce=barrettReduce;Barrett.prototype.mulTo=barrettMulTo;Barrett.prototype.sqrTo=barrettSqrTo;function bnModPow(e,t){var i=e.bitLength(),n,a=nbv(1),r;if(i<=0)return a;else if(i<18)n=1;else if(i<48)n=3;else if(i<144)n=4;else if(i<768)n=5;else n=6;if(i<8)r=new Classic(t);else if(t.isEven())r=new Barrett(t);else r=new Montgomery(t);var s=new Array,o=3,u=n-1,l=(1<1){var c=nbi();r.sqrTo(s[1],c);while(o<=l){s[o]=nbi();r.mulTo(c,s[o-2],s[o]);o+=2}}var d=e.t-1,p,f=true,h=nbi(),m;i=nbits(e[d])-1;while(d>=0){if(i>=u)p=e[d]>>i-u&l;else{p=(e[d]&(1<0)p|=e[d-1]>>this.DB+i-u}o=n;while((p&1)==0){p>>=1;--o}if((i-=o)<0){i+=this.DB;--d}if(f){s[p].copyTo(a);f=false}else{while(o>1){r.sqrTo(a,h);r.sqrTo(h,a);o-=2}if(o>0)r.sqrTo(a,h);else{m=a;a=h;h=m}r.mulTo(h,s[p],a)}while(d>=0&&(e[d]&1<0){t.rShiftTo(r,t);i.rShiftTo(r,i)}while(t.signum()>0){if((a=t.getLowestSetBit())>0)t.rShiftTo(a,t);if((a=i.getLowestSetBit())>0)i.rShiftTo(a,i);if(t.compareTo(i)>=0){t.subTo(i,t);t.rShiftTo(1,t)}else{i.subTo(t,i);i.rShiftTo(1,i)}}if(r>0)i.lShiftTo(r,i);return i}function bnpModInt(e){if(e<=0)return 0;var t=this.DV%e,i=this.s<0?e-1:0;if(this.t>0)if(t==0)i=this[0]%e;else for(var n=this.t-1;n>=0;--n)i=(t*i+this[n])%e;return i}function bnModInverse(e){var t=e.isEven();if(this.isEven()&&t||e.signum()==0)return BigInteger.ZERO;var i=e.clone(),n=this.clone();var a=nbv(1),r=nbv(0),s=nbv(0),o=nbv(1);while(i.signum()!=0){while(i.isEven()){i.rShiftTo(1,i);if(t){if(!a.isEven()||!r.isEven()){a.addTo(this,a);r.subTo(e,r)}a.rShiftTo(1,a)}else if(!r.isEven())r.subTo(e,r);r.rShiftTo(1,r)}while(n.isEven()){n.rShiftTo(1,n);if(t){if(!s.isEven()||!o.isEven()){s.addTo(this,s);o.subTo(e,o)}s.rShiftTo(1,s)}else if(!o.isEven())o.subTo(e,o);o.rShiftTo(1,o)}if(i.compareTo(n)>=0){i.subTo(n,i);if(t)a.subTo(s,a);r.subTo(o,r)}else{n.subTo(i,n);if(t)s.subTo(a,s);o.subTo(r,o)}}if(n.compareTo(BigInteger.ONE)!=0)return BigInteger.ZERO;if(o.compareTo(e)>=0)return o.subtract(e);if(o.signum()<0)o.addTo(e,o);else return o;if(o.signum()<0)return o.add(e);else return o}var d=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997];var p=(1<<26)/d[d.length-1];function bnIsProbablePrime(e){var t,i=this.abs();if(i.t==1&&i[0]<=d[d.length-1]){for(t=0;t>1;if(e>d.length)e=d.length;var a=nbi();for(var r=0;r>8&255;h[m++]^=e>>16&255;h[m++]^=e>>24&255;if(m>=S)m-=S}function rng_seed_time(){rng_seed_int((new Date).getTime())}if(h==null){h=new Array;m=0;var b;if(typeof window!=="undefined"&&window.crypto){if(window.crypto.getRandomValues){var g=new Uint8Array(32);window.crypto.getRandomValues(g);for(b=0;b<32;++b)h[m++]=g[b]}else if(navigator.appName=="Netscape"&&navigator.appVersion<"5"){var y=window.crypto.random(32);for(b=0;b>>8;h[m++]=b&255}m=0;rng_seed_time()}function rng_get_byte(){if(f==null){rng_seed_time();f=prng_newstate();f.init(h);for(m=0;m=this.maxSockets){i.requests.push({host:t.host,port:t.port,request:e});return}i.createConnection({host:t.host,port:t.port,request:e})};TunnelingAgent.prototype.createConnection=function createConnection(e){var t=this;t.createSocket(e,function(i){i.on("free",onFree);i.on("close",onCloseOrRemove);i.on("agentRemove",onCloseOrRemove);e.request.onSocket(i);function onFree(){t.emit("free",i,e.host,e.port)}function onCloseOrRemove(e){t.removeSocket(i);i.removeListener("free",onFree);i.removeListener("close",onCloseOrRemove);i.removeListener("agentRemove",onCloseOrRemove)}})};TunnelingAgent.prototype.createSocket=function createSocket(e,t){var i=this;var n={};i.sockets.push(n);var a=mergeOptions({},i.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:false});if(a.proxyAuth){a.headers=a.headers||{};a.headers["Proxy-Authorization"]="Basic "+c.from(a.proxyAuth).toString("base64")}d("making CONNECT request");var r=i.request(a);r.useChunkedEncodingByDefault=false;r.once("response",onResponse);r.once("upgrade",onUpgrade);r.once("connect",onConnect);r.once("error",onError);r.end();function onResponse(e){e.upgrade=true}function onUpgrade(e,t,i){process.nextTick(function(){onConnect(e,t,i)})}function onConnect(a,s,o){r.removeAllListeners();s.removeAllListeners();if(a.statusCode===200){u.equal(o.length,0);d("tunneling connection has established");i.sockets[i.sockets.indexOf(n)]=s;t(s)}else{d("tunneling socket could not be established, statusCode=%d",a.statusCode);var l=new Error("tunneling socket could not be established, "+"statusCode="+a.statusCode);l.code="ECONNRESET";e.request.emit("error",l);i.removeSocket(n)}}function onError(t){r.removeAllListeners();d("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var a=new Error("tunneling socket could not be established, "+"cause="+t.message);a.code="ECONNRESET";e.request.emit("error",a);i.removeSocket(n)}};TunnelingAgent.prototype.removeSocket=function removeSocket(e){var t=this.sockets.indexOf(e);if(t===-1)return;this.sockets.splice(t,1);var i=this.requests.shift();if(i){this.createConnection(i)}};function createSecureSocket(e,t){var i=this;TunnelingAgent.prototype.createSocket.call(i,e,function(n){var r=a.connect(0,mergeOptions({},i.options,{servername:e.host,socket:n}));i.sockets[i.sockets.indexOf(n)]=r;t(r)})}function mergeOptions(e){for(var t=1,i=arguments.length;tthis.maxLength)return false;if(!this.stat&&b(this.cache,t)){var a=this.cache[t];if(Array.isArray(a))a="DIR";if(!i||a==="DIR")return a;if(i&&a==="FILE")return false}var r;var s=this.statCache[t];if(!s){var o;try{o=n.lstatSync(t)}catch(e){if(e&&(e.code==="ENOENT"||e.code==="ENOTDIR")){this.statCache[t]=false;return false}}if(o&&o.isSymbolicLink()){try{s=n.statSync(t)}catch(e){s=o}}else{s=o}}this.statCache[t]=s;var a=true;if(s)a=s.isDirectory()?"DIR":"FILE";this.cache[t]=this.cache[t]||a;if(i&&a==="FILE")return false;return a};GlobSync.prototype._mark=function(e){return p.mark(this,e)};GlobSync.prototype._makeAbs=function(e){return p.makeAbs(this,e)}},,,,function(e,t,i){var n=i(584);var a=i(362);var r=i(733);var s=i(998);e.exports={Reader:r,Writer:s};for(var o in a){if(a.hasOwnProperty(o))e.exports[o]=a[o]}for(var u in n){if(n.hasOwnProperty(u))e.exports[u]=n[u]}},,function(e,t,i){"use strict";const n=i(48).Issuer;e.exports={refresh:function(e){return new Promise((t,i)=>{n.discover(e["idp-issuer-url"]).then(function(t){const i=new t.Client({client_id:e["client-id"],client_secret:e["client-secret"]});return i.refresh(e["refresh-token"])}).then(e=>{return t(e.id_token)}).catch(i)})}}},function(e){e.exports=function(){this.seq().obj(this.key("n").int(),this.key("e").int())}},function(e){"use strict";e.exports=function generate_anyOf(e,t,i){var n=" ";var a=e.level;var r=e.dataLevel;var s=e.schema[t];var o=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var l=!e.opts.allErrors;var c="data"+(r||"");var d="valid"+a;var p="errs__"+a;var f=e.util.copy(e);var h="";f.level++;var m="valid"+f.level;var b=s.every(function(t){return e.opts.strictKeywords?typeof t=="object"&&Object.keys(t).length>0:e.util.schemaHasRules(t,e.RULES.all)});if(b){var g=f.baseId;n+=" var "+p+" = errors; var "+d+" = false; ";var y=e.compositeRule;e.compositeRule=f.compositeRule=true;var S=s;if(S){var w,v=-1,z=S.length-1;while(v{e=new n(e,i);t=new n(t,i);return e.intersects(t)};e.exports=a},,,function(e,t,i){var n=i(669),a=i(413).Transform;e.exports=function(e){return new r(e)};var r=e.exports.JSONStream=function(e){e=e||{};a.call(this,e);this._writableState.objectMode=false;this._readableState.objectMode=true;this._async=e.async||false};n.inherits(r,a);r.prototype._transform=function(e,t,i){if(!Buffer.isBuffer(e))e=new Buffer(e);if(this._buffer){e=Buffer.concat([this._buffer,e])}var n=0,a=0;while(++n<=e.length){if(e[n]===10||n===e.length){var r;try{r=JSON.parse(e.slice(a,n))}catch(e){}if(r){this.push(r);r=null}if(e[n]===10)a=++n}}this._buffer=e.slice(a);return this._async?void setImmediate(i):void i()}},,function(e,t,i){"use strict";const n=i(418)("kubernetes-client");const a=i(747);const r=i(622);const s=i(414);const o=i(867);const u=process.env.KUBERNETES_CLIENT_SERVICEACCOUNT_ROOT||"/var/run/secrets/kubernetes.io/serviceaccount/";const l=r.join(u,"ca.crt");const c=r.join(u,"token");const d=r.join(u,"namespace");function convertKubeconfig(e){const t=e.getCurrentContext();const i=e.getCurrentCluster();const n=e.getCurrentUser();const s=t.namespace;let o;let u=false;if(i){if(i.caFile){o=a.readFileSync(r.normalize(i.caFile))}else if(i.caData){o=Buffer.from(i.caData,"base64").toString()}u=i.skipTLSVerify}let l;let c;let d={};if(n){if(n.certFile){l=a.readFileSync(r.normalize(n.certFile))}else if(n.certData){l=Buffer.from(n.certData,"base64").toString()}if(n.keyFile){c=a.readFileSync(r.normalize(n.keyFile))}else if(n.keyData){c=Buffer.from(n.keyData,"base64").toString()}if(n.token){d.bearer=n.token}if(n.authProvider){const e=n.authProvider.config;let t=null;let i=null;if(e["cmd-path"]){t="cmd";i=e["access-token"]}else if(e["idp-issuer-url"]){t="openid";i=e["id-token"]}if(e["access-token"]&&!t){i=e["access-token"]}d={request:{bearer:i},provider:{config:e,type:t}}}if(n.exec){const e={};if(n.exec.env){n.exec.env.forEach(t=>{e[t.name]=t.value})}let t="";if(n.exec.args){t=n.exec.args.join(" ")}d={provider:{type:"cmd",config:{"cmd-args":t,"cmd-path":n.exec.command,"token-key":"status.token","cmd-env":e}}}}if(n.username)d.user=n.username;if(n.password)d.pass=n.password}return{url:i.server,auth:Object.keys(d).length?d:null,ca:o,insecureSkipTlsVerify:u,namespace:s,cert:l,key:c}}e.exports.convertKubeconfig=convertKubeconfig;function defaultConfigPaths(){if(process.env.KUBECONFIG){const e=process.platform==="win32"?";":":";return process.env.KUBECONFIG.split(e)}const e=process.env[process.platform==="win32"?"USERPROFILE":"HOME"];return[r.join(e,".kube","config")]}function getInCluster(){const e=process.env.KUBERNETES_SERVICE_HOST;const t=process.env.KUBERNETES_SERVICE_PORT;if(!e||!t){throw new TypeError("Unable to load in-cluster configuration, KUBERNETES_SERVICE_HOST"+" and KUBERNETES_SERVICE_PORT must be defined")}const i=a.readFileSync(l,"utf8");const n=a.readFileSync(c,"utf8");const r=a.readFileSync(d,"utf8");return{url:`https://${e}:${t}`,ca:i,auth:{bearer:n},namespace:r}}e.exports.getInCluster=n.function(getInCluster,"getInCluster see https://github.com/godaddy/kubernetes-client/blob/master/merging-with-kubernetes.md#request-kubeconfig-");function fromKubeconfig(e,t){if(!e)e=loadKubeconfig();if(typeof e==="string"||Array.isArray(e)){e=loadKubeconfig(e)}t=t||e["current-context"];const i=e.contexts.find(e=>e.name===t).context;const n=e.clusters.find(e=>e.name===i.cluster).cluster;const s=e.users.find(e=>e.name===i.user);const o=s?s.user:null;const u=i.namespace;let l;let c=false;if(n){if(n["certificate-authority"]){l=a.readFileSync(r.normalize(n["certificate-authority"]))}else if(n["certificate-authority-data"]){l=Buffer.from(n["certificate-authority-data"],"base64").toString()}if(n["insecure-skip-tls-verify"]){c=n["insecure-skip-tls-verify"]}}let d;let p;let f={};if(o){if(o["client-certificate"]){d=a.readFileSync(r.normalize(o["client-certificate"]))}else if(o["client-certificate-data"]){d=Buffer.from(o["client-certificate-data"],"base64").toString()}if(o["client-key"]){p=a.readFileSync(r.normalize(o["client-key"]))}else if(o["client-key-data"]){p=Buffer.from(o["client-key-data"],"base64").toString()}if(o.token){f.bearer=o.token}if(o["auth-provider"]){const e=o["auth-provider"].config;let t=null;let i=null;if(e["cmd-path"]){t="cmd";i=e["access-token"]}else if(e["idp-issuer-url"]){t="openid";i=e["id-token"]}if(e["access-token"]&&!t){i=e["access-token"]}f={request:{bearer:i},provider:{config:e,type:t}}}if(o.exec){const e={};if(o.exec.env){o.exec.env.forEach(t=>{e[t.name]=t.value})}let t="";if(o.exec.args){t=o.exec.args.join(" ")}f={provider:{type:"cmd",config:{"cmd-args":t,"cmd-path":o.exec.command,"token-key":"status.token","cmd-env":e}}}}if(o.username)f.user=o.username;if(o.password)f.pass=o.password}return{url:n.server,namespace:u,auth:Object.keys(f).length?f:null,ca:l,insecureSkipTlsVerify:c,key:p,cert:d}}e.exports.fromKubeconfig=n.function(fromKubeconfig,"fromKubeconfig see https://github.com/godaddy/kubernetes-client/blob/master/merging-with-kubernetes.md#request-kubeconfig-");function mapCertificates(e,t){const i=r.dirname(e);if(t.clusters){t.clusters.filter(e=>e.cluster["certificate-authority"]).forEach(e=>{e.cluster["certificate-authority"]=r.resolve(i,e.cluster["certificate-authority"])})}if(t.users){t.users.filter(e=>e.user["client-certificate"]).forEach(e=>{e.user["client-certificate"]=r.resolve(i,e.user["client-certificate"])});t.users.filter(e=>e.user["client-key"]).forEach(e=>{e.user["client-key"]=r.resolve(i,e.user["client-key"])})}return t}function loadKubeconfig(e){let t;if(!e){t=defaultConfigPaths()}else if(Array.isArray(e)){t=e}else{t=[e]}const i=t.map(e=>{const t=s.safeLoad(a.readFileSync(e));return mapCertificates(e,t)});return o.all(i)}e.exports.loadKubeconfig=n.function(loadKubeconfig,"loadKubeconfig see https://github.com/godaddy/kubernetes-client/blob/master/merging-with-kubernetes.md#request-kubeconfig-")},function(e,t,i){const{inherits:n}=i(669);const a=i(94);function PEMEncoder(e){a.call(this,e);this.enc="pem"}n(PEMEncoder,a);PEMEncoder.prototype.encode=function encode(e,t){const i=a.prototype.encode.call(this,e);const n=i.toString("base64");const r=[`-----BEGIN ${t.label}-----`];for(let e=0;e=0;--a){var r;var s=e[a];if(s==="[]"){r=[];r=r.concat(n)}else{r=i.plainObjects?Object.create(null):{};var o=s.charAt(0)==="["&&s.charAt(s.length-1)==="]"?s.slice(1,-1):s;var u=parseInt(o,10);if(!isNaN(u)&&s!==o&&String(u)===o&&u>=0&&(i.parseArrays&&u<=i.arrayLimit)){r=[];r[u]=n}else{r[o]=n}}n=r}return n};var u=function parseQueryStringKeys(e,t,i){if(!e){return}var n=i.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;var r=/(\[[^[\]]*])/;var s=/(\[[^[\]]*])/g;var u=r.exec(n);var l=u?n.slice(0,u.index):n;var c=[];if(l){if(!i.plainObjects&&a.call(Object.prototype,l)){if(!i.allowPrototypes){return}}c.push(l)}var d=0;while((u=s.exec(n))!==null&&d0){v=l[--z].match(/[-]+[ ]*END ([A-Z0-9][A-Za-z0-9]+ )?(PUBLIC|PRIVATE) KEY[ ]*[-]+/)}n.ok(v,"invalid PEM footer");n.equal(c[2],v[2]);var j=c[2].toLowerCase();var O;if(c[1]){n.equal(c[1],v[1],"PEM header and footer mismatch");O=c[1].trim()}l=l.slice(S,z+1);var k={};while(true){l=l.slice(1);c=l[0].match(/^([A-Za-z0-9-]+): (.+)$/);if(!c)break;k[c[1].toLowerCase()]=c[2]}l=l.slice(0,-1).join("");e=s.from(l,"base64");var C,T,R;if(k["proc-type"]){var E=k["proc-type"].split(",");if(E[0]==="4"&&E[1]==="ENCRYPTED"){if(typeof t.passphrase==="string"){t.passphrase=s.from(t.passphrase,"utf-8")}if(!s.isBuffer(t.passphrase)){throw new m.KeyEncryptedError(t.filename,"PEM")}else{E=k["dek-info"].split(",");n.ok(E.length===2);C=E[0].toLowerCase();R=s.from(E[1],"hex");T=u.opensslKeyDeriv(C,R,t.passphrase,1).key}}}if(O&&O.toLowerCase()==="encrypted"){var A=new a.BerReader(e);var x;A.readSequence();A.readSequence();x=A.offset+A.length;var N=A.readOID();if(N!==b){throw new Error("Unsupported PEM/PKCS8 encryption "+"scheme: "+N)}A.readSequence();A.readSequence();var V=A.offset+A.length;var P=A.readOID();if(P!==g)throw new Error("Unsupported PBES2 KDF: "+P);A.readSequence();var D=A.readString(a.Ber.OctetString,true);var I=A.readInt();var _="sha1";if(A.offsetf.length)y=f.length;b+=m.write(f.slice(g,y),b);m[b++]=10;g=y}b+=m.write("-----END "+o+"-----\n",b);return m.slice(0,b)}},,function(e,t,i){e.exports={bufferSplit:bufferSplit,addRSAMissing:addRSAMissing,calculateDSAPublic:calculateDSAPublic,calculateED25519Public:calculateED25519Public,calculateX25519Public:calculateX25519Public,mpNormalize:mpNormalize,mpDenormalize:mpDenormalize,ecNormalize:ecNormalize,countZeros:countZeros,assertCompatible:assertCompatible,isCompatible:isCompatible,opensslKeyDeriv:opensslKeyDeriv,opensshCipherInfo:opensshCipherInfo,publicFromPrivateECDSA:publicFromPrivateECDSA,zeroPadToLength:zeroPadToLength,writeBitString:writeBitString,readBitString:readBitString,pbkdf2:pbkdf2};var n=i(872);var a=i(215).Buffer;var r=i(502);var s=i(852);var o=i(373);var u=i(98);var l=i(325);var c=i(729);var d=i(242).BigInteger;var p=i(196);var f=3;function isCompatible(e,t,i){if(e===null||typeof e!=="object")return false;if(i===undefined)i=t.prototype._sshpkApiVersion;if(e instanceof t&&t.prototype._sshpkApiVersion[0]==i[0])return true;var n=Object.getPrototypeOf(e);var a=0;while(n.constructor.name!==t.name){n=Object.getPrototypeOf(n);if(!n||++a>f)return false}if(n.constructor.name!==t.name)return false;var r=n._sshpkApiVersion;if(r===undefined)r=t._oldVersionDetect(e);if(r[0]!=i[0]||r[1]=i[1],a+" must be compatible with "+t.name+" klass "+"version "+i[0]+"."+i[1])}var h={"des-ede3-cbc":{key:24,iv:8},"aes-128-cbc":{key:16,iv:16},"aes-256-cbc":{key:32,iv:16}};var m=8;function opensslKeyDeriv(e,t,i,r){n.buffer(t,"salt");n.buffer(i,"passphrase");n.number(r,"iteration count");var s=h[e];n.object(s,"supported cipher");t=t.slice(0,m);var u,l,c;var d=a.alloc(0);while(d.length=t.length){var o=s+1;i.push(e.slice(a,o-r));a=o;r=0}}if(a<=e.length)i.push(e.slice(a,e.length));return i}function ecNormalize(e,t){n.buffer(e);if(e[0]===0&&e[1]===4){if(t)return e;return e.slice(1)}else if(e[0]===4){if(!t)return e}else{while(e[0]===0)e=e.slice(1);if(e[0]===2||e[0]===3)throw new Error("Compressed elliptic curve points "+"are not supported");if(e[0]!==4)throw new Error("Not a valid elliptic curve point");if(!t)return e}var i=a.alloc(e.length+1);i[0]=0;e.copy(i,1);return i}function readBitString(e,t){if(t===undefined)t=l.Ber.BitString;var i=e.readString(t,true);n.strictEqual(i[0],0,"bit strings with unused bits are "+"not supported (0x"+i[0].toString(16)+")");return i.slice(1)}function writeBitString(e,t,i){if(i===undefined)i=l.Ber.BitString;var n=a.alloc(t.length+1);n[0]=0;t.copy(n,1);e.writeBuffer(n,i)}function mpNormalize(e){n.buffer(e);while(e.length>1&&e[0]===0&&(e[1]&128)===0)e=e.slice(1);if((e[0]&128)===128){var t=a.alloc(e.length+1);t[0]=0;e.copy(t,1);e=t}return e}function mpDenormalize(e){n.buffer(e);while(e.length>1&&e[0]===0)e=e.slice(1);return e}function zeroPadToLength(e,t){n.buffer(e);n.number(t);while(e.length>t){n.equal(e[0],0);e=e.slice(1)}while(e.length{let i=e[t];if(!Array.isArray(i))i=[i];return i.map(e=>{return[t].concat(Object.keys(e).map(t=>{let i=e[t];if(!Array.isArray(i))i=[i];return i.map(e=>e===true?t:`${t}=${e}`).join("; ")})).join("; ")}).join(", ")}).join(", ")}e.exports={format:format,parse:parse}},function(e,t,i){const n=i(110);const a=i(312);e.exports={Client:n,Component:a}},function(e,t,i){"use strict";const n=i(321);const a=i(15);const r=e=>e.replace(/\s+at .*aggregate-error\/index.js:\d+:\d+\)?/g,"");class AggregateError extends Error{constructor(e){if(!Array.isArray(e)){throw new TypeError(`Expected input to be an Array, got ${typeof e}`)}e=[...e].map(e=>{if(e instanceof Error){return e}if(e!==null&&typeof e==="object"){return Object.assign(new Error(e.message),e)}return new Error(e)});let t=e.map(e=>{return typeof e.stack==="string"?r(a(e.stack)):String(e)}).join("\n");t="\n"+n(t,4);super(t);this.name="AggregateError";Object.defineProperty(this,"_errors",{value:e})}*[Symbol.iterator](){for(const e of this._errors){yield e}}}e.exports=AggregateError},function(e){e.exports=(e=>!!e&&e.constructor===Object)},,,,,,,function(e){"use strict";e.exports=function generate_enum(e,t,i){var n=" ";var a=e.level;var r=e.dataLevel;var s=e.schema[t];var o=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var l=!e.opts.allErrors;var c="data"+(r||"");var d="valid"+a;var p=e.opts.$data&&s&&s.$data,f;if(p){n+=" var schema"+a+" = "+e.util.getData(s.$data,r,e.dataPathArr)+"; ";f="schema"+a}else{f=s}var h="i"+a,m="schema"+a;if(!p){n+=" var "+m+" = validate.schema"+o+";"}n+="var "+d+";";if(p){n+=" if (schema"+a+" === undefined) "+d+" = true; else if (!Array.isArray(schema"+a+")) "+d+" = false; else {"}n+=""+d+" = false;for (var "+h+"=0; "+h+"<"+m+".length; "+h+"++) if (equal("+c+", "+m+"["+h+"])) { "+d+" = true; break; }";if(p){n+=" } "}n+=" if (!"+d+") { ";var b=b||[];b.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+"enum"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { allowedValues: schema"+a+" } ";if(e.opts.messages!==false){n+=" , message: 'should be equal to one of the allowed values' "}if(e.opts.verbose){n+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}n+=" } "}else{n+=" {} "}var g=n;n=b.pop();if(!e.compositeRule&&l){if(e.async){n+=" throw new ValidationError(["+g+"]); "}else{n+=" validate.errors = ["+g+"]; return false; "}}else{n+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+=" }";if(l){n+=" else { "}return n}},,function(e,t,i){const n=i(874);const a=(e,t)=>n(e,t,true);e.exports=a},function(e,t,i){var n=i(602);var a=i(747);n.register("test",_test,{cmdOptions:{b:"block",c:"character",d:"directory",e:"exists",f:"file",L:"link",p:"pipe",S:"socket"},wrapOutput:false,allowGlobbing:false});function _test(e,t){if(!t)n.error("no path given");var i=false;Object.keys(e).forEach(function(t){if(e[t]===true){i=true}});if(!i)n.error("could not interpret expression");if(e.link){try{return n.statNoFollowLinks(t).isSymbolicLink()}catch(e){return false}}if(!a.existsSync(t))return false;if(e.exists)return true;var r=n.statFollowLinks(t);if(e.block)return r.isBlockDevice();if(e.character)return r.isCharacterDevice();if(e.directory)return r.isDirectory();if(e.file)return r.isFile();if(e.pipe)return r.isFIFO();if(e.socket)return r.isSocket();return false}e.exports=_test},function(e,t,i){const n=i(387);const{assertIssuerConfiguration:a}=i(770);const{random:r}=i(368);const s=i(295);const o=i(204);const u=i(880);const l=i(403);const c=e=>encodeURIComponent(e).replace(/%20/g,"+");async function clientAssertion(e,t){let i=this[`${e}_endpoint_auth_signing_alg`];if(!i){a(this.issuer,`${e}_endpoint_auth_signing_alg_values_supported`)}if(this[`${e}_endpoint_auth_method`]==="client_secret_jwt"){const a=await this.joseSecret();if(!i){const t=this.issuer[`${e}_endpoint_auth_signing_alg_values_supported`];i=Array.isArray(t)&&t.find(e=>a.algorithms("sign").has(e))}return n.JWS.sign(t,a,{alg:i,typ:"JWT"})}const r=u(this).get("keystore");if(!r){throw new TypeError("no client jwks provided for signing a client assertion with")}if(!i){const t=new Set;r.all().forEach(e=>{e.algorithms("sign").forEach(Set.prototype.add.bind(t))});const n=this.issuer[`${e}_endpoint_auth_signing_alg_values_supported`];i=Array.isArray(n)&&n.find(e=>t.has(e))}const s=r.get({alg:i,use:"sig"});if(!s){throw new TypeError(`no key found in client jwks to sign a client assertion with using alg ${i}`)}return n.JWS.sign(t,s,{alg:i,typ:"JWT",kid:s.kid})}async function authFor(e,{clientAssertionPayload:t}={}){const i=this[`${e}_endpoint_auth_method`];switch(i){case"self_signed_tls_client_auth":case"tls_client_auth":case"none":return{body:{client_id:this.client_id}};case"client_secret_post":if(!this.client_secret){throw new TypeError("client_secret_post client authentication method requires a client_secret")}return{body:{client_id:this.client_id,client_secret:this.client_secret}};case"private_key_jwt":case"client_secret_jwt":{const i=s();const n=await clientAssertion.call(this,e,{iat:i,exp:i+60,jti:r(),iss:this.client_id,sub:this.client_id,aud:this.issuer[`${e}_endpoint`],...t});return{body:{client_id:this.client_id,client_assertion:n,client_assertion_type:"urn:ietf:params:oauth:client-assertion-type:jwt-bearer"}}}default:{if(!this.client_secret){throw new TypeError("client_secret_basic client authentication method requires a client_secret")}const e=`${c(this.client_id)}:${c(this.client_secret)}`;const t=Buffer.from(e).toString("base64");return{headers:{Authorization:`Basic ${t}`}}}}}function resolveResponseType(){const{length:e,0:t}=this.response_types;if(e===1){return t}return undefined}function resolveRedirectUri(){const{length:e,0:t}=this.redirect_uris||[];if(e===1){return t}return undefined}async function authenticatedPost(e,t,{clientAssertionPayload:i,endpointAuthMethod:n=e}={}){const a=await authFor.call(this,n,{clientAssertionPayload:i});const r=l(t,a,{form:true});const s=this[`${n}_endpoint_auth_method`].includes("tls_client_auth")||e==="token"&&this.tls_client_certificate_bound_access_tokens;let u;if(s&&this.issuer.mtls_endpoint_aliases){u=this.issuer.mtls_endpoint_aliases[`${e}_endpoint`]}u=u||this.issuer[`${e}_endpoint`];if("body"in r){for(const[e,t]of Object.entries(r.body)){if(typeof t==="undefined"){delete r.body[e]}}}return o.call(this,{...r,method:"POST",url:u},{mTLS:s})}e.exports={resolveResponseType:resolveResponseType,resolveRedirectUri:resolveRedirectUri,authFor:authFor,authenticatedPost:authenticatedPost}},function(e,t){function isArray(e){if(Array.isArray){return Array.isArray(e)}return objectToString(e)==="[object Array]"}t.isArray=isArray;function isBoolean(e){return typeof e==="boolean"}t.isBoolean=isBoolean;function isNull(e){return e===null}t.isNull=isNull;function isNullOrUndefined(e){return e==null}t.isNullOrUndefined=isNullOrUndefined;function isNumber(e){return typeof e==="number"}t.isNumber=isNumber;function isString(e){return typeof e==="string"}t.isString=isString;function isSymbol(e){return typeof e==="symbol"}t.isSymbol=isSymbol;function isUndefined(e){return e===void 0}t.isUndefined=isUndefined;function isRegExp(e){return objectToString(e)==="[object RegExp]"}t.isRegExp=isRegExp;function isObject(e){return typeof e==="object"&&e!==null}t.isObject=isObject;function isDate(e){return objectToString(e)==="[object Date]"}t.isDate=isDate;function isError(e){return objectToString(e)==="[object Error]"||e instanceof Error}t.isError=isError;function isFunction(e){return typeof e==="function"}t.isFunction=isFunction;function isPrimitive(e){return e===null||typeof e==="boolean"||typeof e==="number"||typeof e==="string"||typeof e==="symbol"||typeof e==="undefined"}t.isPrimitive=isPrimitive;t.isBuffer=Buffer.isBuffer;function objectToString(e){return Object.prototype.toString.call(e)}},function(e,t,i){"use strict";var n=i(835);var a=i(623);var r=i(254);var s=i(826);var o=i(113);var u=i(373);var l=i(727).Buffer;function OAuth(e){this.request=e;this.params=null}OAuth.prototype.buildParams=function(e,t,i,n,a,r){var u={};for(var l in e){u["oauth_"+l]=e[l]}if(!u.oauth_version){u.oauth_version="1.0"}if(!u.oauth_timestamp){u.oauth_timestamp=Math.floor(Date.now()/1e3).toString()}if(!u.oauth_nonce){u.oauth_nonce=s().replace(/-/g,"")}if(!u.oauth_signature_method){u.oauth_signature_method="HMAC-SHA1"}var c=u.oauth_consumer_secret||u.oauth_private_key;delete u.oauth_consumer_secret;delete u.oauth_private_key;var d=u.oauth_token_secret;delete u.oauth_token_secret;var p=u.oauth_realm;delete u.oauth_realm;delete u.oauth_transport_method;var f=t.protocol+"//"+t.host+t.pathname;var h=r.parse([].concat(n,a,r.stringify(u)).join("&"));u.oauth_signature=o.sign(u.oauth_signature_method,i,f,h,c,d);if(p){u.realm=p}return u};OAuth.prototype.buildBodyHash=function(e,t){if(["HMAC-SHA1","RSA-SHA1"].indexOf(e.signature_method||"HMAC-SHA1")<0){this.request.emit("error",new Error("oauth: "+e.signature_method+" signature_method not supported with body_hash signing."))}var i=u.createHash("sha1");i.update(t||"");var n=i.digest("hex");return l.from(n,"hex").toString("base64")};OAuth.prototype.concatParams=function(e,t,i){i=i||"";var n=Object.keys(e).filter(function(e){return e!=="realm"&&e!=="oauth_signature"}).sort();if(e.realm){n.splice(0,0,"realm")}n.push("oauth_signature");return n.map(function(t){return t+"="+i+o.rfc3986(e[t])+i}).join(t)};OAuth.prototype.onRequest=function(e){var t=this;t.params=e;var i=t.request.uri||{};var s=t.request.method||"";var o=r(t.request.headers);var u=t.request.body||"";var l=t.request.qsLib||a;var c;var d;var p=o.get("content-type")||"";var f="application/x-www-form-urlencoded";var h=e.transport_method||"header";if(p.slice(0,f.length)===f){p=f;c=u}if(i.query){d=i.query}if(h==="body"&&(s!=="POST"||p!==f)){t.request.emit("error",new Error("oauth: transport_method of body requires POST "+"and content-type "+f))}if(!c&&typeof e.body_hash==="boolean"){e.body_hash=t.buildBodyHash(e,t.request.body.toString())}var m=t.buildParams(e,i,s,d,c,l);switch(h){case"header":t.request.setHeader("Authorization","OAuth "+t.concatParams(m,",",'"'));break;case"query":var b=t.request.uri.href+=(d?"&":"?")+t.concatParams(m,"&");t.request.uri=n.parse(b);t.request.path=t.request.uri.path;break;case"body":t.request.body=(c?c+"&":"")+t.concatParams(m,"&");break;default:t.request.emit("error",new Error("oauth: transport_method invalid"))}};t.OAuth=OAuth},,,function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=i(878);let a="https://localhost";let r=["string","boolean","double","integer","long","float","number","any"];class ObjectSerializer{static findCorrectType(e,t){if(e==undefined){return t}else if(r.indexOf(t.toLowerCase())!==-1){return t}else if(t==="Date"){return t}else{if(s[t]){return t}if(!o[t]){return t}let i=o[t].discriminator;if(i==null){return t}else{if(e[i]){return e[i]}else{return t}}}}static serialize(e,t){if(e==undefined){return e}else if(r.indexOf(t.toLowerCase())!==-1){return e}else if(t.lastIndexOf("Array<",0)===0){let i=t.replace("Array<","");i=i.substring(0,i.length-1);let n=[];for(let t in e){let a=e[t];n.push(ObjectSerializer.serialize(a,i))}return n}else if(t==="Date"){return e.toString()}else{if(s[t]){return e}if(!o[t]){return e}let i=o[t].getAttributeTypeMap();let n={};for(let t in i){let a=i[t];n[a.baseName]=ObjectSerializer.serialize(e[a.name],a.type)}return n}}static deserialize(e,t){t=ObjectSerializer.findCorrectType(e,t);if(e==undefined){return e}else if(r.indexOf(t.toLowerCase())!==-1){return e}else if(t.lastIndexOf("Array<",0)===0){let i=t.replace("Array<","");i=i.substring(0,i.length-1);let n=[];for(let t in e){let a=e[t];n.push(ObjectSerializer.deserialize(a,i))}return n}else if(t==="Date"){return new Date(e)}else{if(s[t]){return e}if(!o[t]){return e}let i=new o[t];let n=o[t].getAttributeTypeMap();for(let t in n){let a=n[t];i[a.name]=ObjectSerializer.deserialize(e[a.baseName],a.type)}return i}}}class AdmissionregistrationV1beta1ServiceReference{static getAttributeTypeMap(){return AdmissionregistrationV1beta1ServiceReference.attributeTypeMap}}AdmissionregistrationV1beta1ServiceReference.discriminator=undefined;AdmissionregistrationV1beta1ServiceReference.attributeTypeMap=[{name:"name",baseName:"name",type:"string"},{name:"namespace",baseName:"namespace",type:"string"},{name:"path",baseName:"path",type:"string"}];t.AdmissionregistrationV1beta1ServiceReference=AdmissionregistrationV1beta1ServiceReference;class AdmissionregistrationV1beta1WebhookClientConfig{static getAttributeTypeMap(){return AdmissionregistrationV1beta1WebhookClientConfig.attributeTypeMap}}AdmissionregistrationV1beta1WebhookClientConfig.discriminator=undefined;AdmissionregistrationV1beta1WebhookClientConfig.attributeTypeMap=[{name:"caBundle",baseName:"caBundle",type:"string"},{name:"service",baseName:"service",type:"AdmissionregistrationV1beta1ServiceReference"},{name:"url",baseName:"url",type:"string"}];t.AdmissionregistrationV1beta1WebhookClientConfig=AdmissionregistrationV1beta1WebhookClientConfig;class ApiextensionsV1beta1ServiceReference{static getAttributeTypeMap(){return ApiextensionsV1beta1ServiceReference.attributeTypeMap}}ApiextensionsV1beta1ServiceReference.discriminator=undefined;ApiextensionsV1beta1ServiceReference.attributeTypeMap=[{name:"name",baseName:"name",type:"string"},{name:"namespace",baseName:"namespace",type:"string"},{name:"path",baseName:"path",type:"string"}];t.ApiextensionsV1beta1ServiceReference=ApiextensionsV1beta1ServiceReference;class ApiextensionsV1beta1WebhookClientConfig{static getAttributeTypeMap(){return ApiextensionsV1beta1WebhookClientConfig.attributeTypeMap}}ApiextensionsV1beta1WebhookClientConfig.discriminator=undefined;ApiextensionsV1beta1WebhookClientConfig.attributeTypeMap=[{name:"caBundle",baseName:"caBundle",type:"string"},{name:"service",baseName:"service",type:"ApiextensionsV1beta1ServiceReference"},{name:"url",baseName:"url",type:"string"}];t.ApiextensionsV1beta1WebhookClientConfig=ApiextensionsV1beta1WebhookClientConfig;class ApiregistrationV1beta1ServiceReference{static getAttributeTypeMap(){return ApiregistrationV1beta1ServiceReference.attributeTypeMap}}ApiregistrationV1beta1ServiceReference.discriminator=undefined;ApiregistrationV1beta1ServiceReference.attributeTypeMap=[{name:"name",baseName:"name",type:"string"},{name:"namespace",baseName:"namespace",type:"string"}];t.ApiregistrationV1beta1ServiceReference=ApiregistrationV1beta1ServiceReference;class AppsV1beta1Deployment{static getAttributeTypeMap(){return AppsV1beta1Deployment.attributeTypeMap}}AppsV1beta1Deployment.discriminator=undefined;AppsV1beta1Deployment.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"AppsV1beta1DeploymentSpec"},{name:"status",baseName:"status",type:"AppsV1beta1DeploymentStatus"}];t.AppsV1beta1Deployment=AppsV1beta1Deployment;class AppsV1beta1DeploymentCondition{static getAttributeTypeMap(){return AppsV1beta1DeploymentCondition.attributeTypeMap}}AppsV1beta1DeploymentCondition.discriminator=undefined;AppsV1beta1DeploymentCondition.attributeTypeMap=[{name:"lastTransitionTime",baseName:"lastTransitionTime",type:"Date"},{name:"lastUpdateTime",baseName:"lastUpdateTime",type:"Date"},{name:"message",baseName:"message",type:"string"},{name:"reason",baseName:"reason",type:"string"},{name:"status",baseName:"status",type:"string"},{name:"type",baseName:"type",type:"string"}];t.AppsV1beta1DeploymentCondition=AppsV1beta1DeploymentCondition;class AppsV1beta1DeploymentList{static getAttributeTypeMap(){return AppsV1beta1DeploymentList.attributeTypeMap}}AppsV1beta1DeploymentList.discriminator=undefined;AppsV1beta1DeploymentList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.AppsV1beta1DeploymentList=AppsV1beta1DeploymentList;class AppsV1beta1DeploymentRollback{static getAttributeTypeMap(){return AppsV1beta1DeploymentRollback.attributeTypeMap}}AppsV1beta1DeploymentRollback.discriminator=undefined;AppsV1beta1DeploymentRollback.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"name",baseName:"name",type:"string"},{name:"rollbackTo",baseName:"rollbackTo",type:"AppsV1beta1RollbackConfig"},{name:"updatedAnnotations",baseName:"updatedAnnotations",type:"{ [key: string]: string; }"}];t.AppsV1beta1DeploymentRollback=AppsV1beta1DeploymentRollback;class AppsV1beta1DeploymentSpec{static getAttributeTypeMap(){return AppsV1beta1DeploymentSpec.attributeTypeMap}}AppsV1beta1DeploymentSpec.discriminator=undefined;AppsV1beta1DeploymentSpec.attributeTypeMap=[{name:"minReadySeconds",baseName:"minReadySeconds",type:"number"},{name:"paused",baseName:"paused",type:"boolean"},{name:"progressDeadlineSeconds",baseName:"progressDeadlineSeconds",type:"number"},{name:"replicas",baseName:"replicas",type:"number"},{name:"revisionHistoryLimit",baseName:"revisionHistoryLimit",type:"number"},{name:"rollbackTo",baseName:"rollbackTo",type:"AppsV1beta1RollbackConfig"},{name:"selector",baseName:"selector",type:"V1LabelSelector"},{name:"strategy",baseName:"strategy",type:"AppsV1beta1DeploymentStrategy"},{name:"template",baseName:"template",type:"V1PodTemplateSpec"}];t.AppsV1beta1DeploymentSpec=AppsV1beta1DeploymentSpec;class AppsV1beta1DeploymentStatus{static getAttributeTypeMap(){return AppsV1beta1DeploymentStatus.attributeTypeMap}}AppsV1beta1DeploymentStatus.discriminator=undefined;AppsV1beta1DeploymentStatus.attributeTypeMap=[{name:"availableReplicas",baseName:"availableReplicas",type:"number"},{name:"collisionCount",baseName:"collisionCount",type:"number"},{name:"conditions",baseName:"conditions",type:"Array"},{name:"observedGeneration",baseName:"observedGeneration",type:"number"},{name:"readyReplicas",baseName:"readyReplicas",type:"number"},{name:"replicas",baseName:"replicas",type:"number"},{name:"unavailableReplicas",baseName:"unavailableReplicas",type:"number"},{name:"updatedReplicas",baseName:"updatedReplicas",type:"number"}];t.AppsV1beta1DeploymentStatus=AppsV1beta1DeploymentStatus;class AppsV1beta1DeploymentStrategy{static getAttributeTypeMap(){return AppsV1beta1DeploymentStrategy.attributeTypeMap}}AppsV1beta1DeploymentStrategy.discriminator=undefined;AppsV1beta1DeploymentStrategy.attributeTypeMap=[{name:"rollingUpdate",baseName:"rollingUpdate",type:"AppsV1beta1RollingUpdateDeployment"},{name:"type",baseName:"type",type:"string"}];t.AppsV1beta1DeploymentStrategy=AppsV1beta1DeploymentStrategy;class AppsV1beta1RollbackConfig{static getAttributeTypeMap(){return AppsV1beta1RollbackConfig.attributeTypeMap}}AppsV1beta1RollbackConfig.discriminator=undefined;AppsV1beta1RollbackConfig.attributeTypeMap=[{name:"revision",baseName:"revision",type:"number"}];t.AppsV1beta1RollbackConfig=AppsV1beta1RollbackConfig;class AppsV1beta1RollingUpdateDeployment{static getAttributeTypeMap(){return AppsV1beta1RollingUpdateDeployment.attributeTypeMap}}AppsV1beta1RollingUpdateDeployment.discriminator=undefined;AppsV1beta1RollingUpdateDeployment.attributeTypeMap=[{name:"maxSurge",baseName:"maxSurge",type:"any"},{name:"maxUnavailable",baseName:"maxUnavailable",type:"any"}];t.AppsV1beta1RollingUpdateDeployment=AppsV1beta1RollingUpdateDeployment;class AppsV1beta1Scale{static getAttributeTypeMap(){return AppsV1beta1Scale.attributeTypeMap}}AppsV1beta1Scale.discriminator=undefined;AppsV1beta1Scale.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"AppsV1beta1ScaleSpec"},{name:"status",baseName:"status",type:"AppsV1beta1ScaleStatus"}];t.AppsV1beta1Scale=AppsV1beta1Scale;class AppsV1beta1ScaleSpec{static getAttributeTypeMap(){return AppsV1beta1ScaleSpec.attributeTypeMap}}AppsV1beta1ScaleSpec.discriminator=undefined;AppsV1beta1ScaleSpec.attributeTypeMap=[{name:"replicas",baseName:"replicas",type:"number"}];t.AppsV1beta1ScaleSpec=AppsV1beta1ScaleSpec;class AppsV1beta1ScaleStatus{static getAttributeTypeMap(){return AppsV1beta1ScaleStatus.attributeTypeMap}}AppsV1beta1ScaleStatus.discriminator=undefined;AppsV1beta1ScaleStatus.attributeTypeMap=[{name:"replicas",baseName:"replicas",type:"number"},{name:"selector",baseName:"selector",type:"{ [key: string]: string; }"},{name:"targetSelector",baseName:"targetSelector",type:"string"}];t.AppsV1beta1ScaleStatus=AppsV1beta1ScaleStatus;class ExtensionsV1beta1AllowedFlexVolume{static getAttributeTypeMap(){return ExtensionsV1beta1AllowedFlexVolume.attributeTypeMap}}ExtensionsV1beta1AllowedFlexVolume.discriminator=undefined;ExtensionsV1beta1AllowedFlexVolume.attributeTypeMap=[{name:"driver",baseName:"driver",type:"string"}];t.ExtensionsV1beta1AllowedFlexVolume=ExtensionsV1beta1AllowedFlexVolume;class ExtensionsV1beta1AllowedHostPath{static getAttributeTypeMap(){return ExtensionsV1beta1AllowedHostPath.attributeTypeMap}}ExtensionsV1beta1AllowedHostPath.discriminator=undefined;ExtensionsV1beta1AllowedHostPath.attributeTypeMap=[{name:"pathPrefix",baseName:"pathPrefix",type:"string"},{name:"readOnly",baseName:"readOnly",type:"boolean"}];t.ExtensionsV1beta1AllowedHostPath=ExtensionsV1beta1AllowedHostPath;class ExtensionsV1beta1Deployment{static getAttributeTypeMap(){return ExtensionsV1beta1Deployment.attributeTypeMap}}ExtensionsV1beta1Deployment.discriminator=undefined;ExtensionsV1beta1Deployment.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"ExtensionsV1beta1DeploymentSpec"},{name:"status",baseName:"status",type:"ExtensionsV1beta1DeploymentStatus"}];t.ExtensionsV1beta1Deployment=ExtensionsV1beta1Deployment;class ExtensionsV1beta1DeploymentCondition{static getAttributeTypeMap(){return ExtensionsV1beta1DeploymentCondition.attributeTypeMap}}ExtensionsV1beta1DeploymentCondition.discriminator=undefined;ExtensionsV1beta1DeploymentCondition.attributeTypeMap=[{name:"lastTransitionTime",baseName:"lastTransitionTime",type:"Date"},{name:"lastUpdateTime",baseName:"lastUpdateTime",type:"Date"},{name:"message",baseName:"message",type:"string"},{name:"reason",baseName:"reason",type:"string"},{name:"status",baseName:"status",type:"string"},{name:"type",baseName:"type",type:"string"}];t.ExtensionsV1beta1DeploymentCondition=ExtensionsV1beta1DeploymentCondition;class ExtensionsV1beta1DeploymentList{static getAttributeTypeMap(){return ExtensionsV1beta1DeploymentList.attributeTypeMap}}ExtensionsV1beta1DeploymentList.discriminator=undefined;ExtensionsV1beta1DeploymentList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.ExtensionsV1beta1DeploymentList=ExtensionsV1beta1DeploymentList;class ExtensionsV1beta1DeploymentRollback{static getAttributeTypeMap(){return ExtensionsV1beta1DeploymentRollback.attributeTypeMap}}ExtensionsV1beta1DeploymentRollback.discriminator=undefined;ExtensionsV1beta1DeploymentRollback.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"name",baseName:"name",type:"string"},{name:"rollbackTo",baseName:"rollbackTo",type:"ExtensionsV1beta1RollbackConfig"},{name:"updatedAnnotations",baseName:"updatedAnnotations",type:"{ [key: string]: string; }"}];t.ExtensionsV1beta1DeploymentRollback=ExtensionsV1beta1DeploymentRollback;class ExtensionsV1beta1DeploymentSpec{static getAttributeTypeMap(){return ExtensionsV1beta1DeploymentSpec.attributeTypeMap}}ExtensionsV1beta1DeploymentSpec.discriminator=undefined;ExtensionsV1beta1DeploymentSpec.attributeTypeMap=[{name:"minReadySeconds",baseName:"minReadySeconds",type:"number"},{name:"paused",baseName:"paused",type:"boolean"},{name:"progressDeadlineSeconds",baseName:"progressDeadlineSeconds",type:"number"},{name:"replicas",baseName:"replicas",type:"number"},{name:"revisionHistoryLimit",baseName:"revisionHistoryLimit",type:"number"},{name:"rollbackTo",baseName:"rollbackTo",type:"ExtensionsV1beta1RollbackConfig"},{name:"selector",baseName:"selector",type:"V1LabelSelector"},{name:"strategy",baseName:"strategy",type:"ExtensionsV1beta1DeploymentStrategy"},{name:"template",baseName:"template",type:"V1PodTemplateSpec"}];t.ExtensionsV1beta1DeploymentSpec=ExtensionsV1beta1DeploymentSpec;class ExtensionsV1beta1DeploymentStatus{static getAttributeTypeMap(){return ExtensionsV1beta1DeploymentStatus.attributeTypeMap}}ExtensionsV1beta1DeploymentStatus.discriminator=undefined;ExtensionsV1beta1DeploymentStatus.attributeTypeMap=[{name:"availableReplicas",baseName:"availableReplicas",type:"number"},{name:"collisionCount",baseName:"collisionCount",type:"number"},{name:"conditions",baseName:"conditions",type:"Array"},{name:"observedGeneration",baseName:"observedGeneration",type:"number"},{name:"readyReplicas",baseName:"readyReplicas",type:"number"},{name:"replicas",baseName:"replicas",type:"number"},{name:"unavailableReplicas",baseName:"unavailableReplicas",type:"number"},{name:"updatedReplicas",baseName:"updatedReplicas",type:"number"}];t.ExtensionsV1beta1DeploymentStatus=ExtensionsV1beta1DeploymentStatus;class ExtensionsV1beta1DeploymentStrategy{static getAttributeTypeMap(){return ExtensionsV1beta1DeploymentStrategy.attributeTypeMap}}ExtensionsV1beta1DeploymentStrategy.discriminator=undefined;ExtensionsV1beta1DeploymentStrategy.attributeTypeMap=[{name:"rollingUpdate",baseName:"rollingUpdate",type:"ExtensionsV1beta1RollingUpdateDeployment"},{name:"type",baseName:"type",type:"string"}];t.ExtensionsV1beta1DeploymentStrategy=ExtensionsV1beta1DeploymentStrategy;class ExtensionsV1beta1FSGroupStrategyOptions{static getAttributeTypeMap(){return ExtensionsV1beta1FSGroupStrategyOptions.attributeTypeMap}}ExtensionsV1beta1FSGroupStrategyOptions.discriminator=undefined;ExtensionsV1beta1FSGroupStrategyOptions.attributeTypeMap=[{name:"ranges",baseName:"ranges",type:"Array"},{name:"rule",baseName:"rule",type:"string"}];t.ExtensionsV1beta1FSGroupStrategyOptions=ExtensionsV1beta1FSGroupStrategyOptions;class ExtensionsV1beta1HostPortRange{static getAttributeTypeMap(){return ExtensionsV1beta1HostPortRange.attributeTypeMap}}ExtensionsV1beta1HostPortRange.discriminator=undefined;ExtensionsV1beta1HostPortRange.attributeTypeMap=[{name:"max",baseName:"max",type:"number"},{name:"min",baseName:"min",type:"number"}];t.ExtensionsV1beta1HostPortRange=ExtensionsV1beta1HostPortRange;class ExtensionsV1beta1IDRange{static getAttributeTypeMap(){return ExtensionsV1beta1IDRange.attributeTypeMap}}ExtensionsV1beta1IDRange.discriminator=undefined;ExtensionsV1beta1IDRange.attributeTypeMap=[{name:"max",baseName:"max",type:"number"},{name:"min",baseName:"min",type:"number"}];t.ExtensionsV1beta1IDRange=ExtensionsV1beta1IDRange;class ExtensionsV1beta1PodSecurityPolicy{static getAttributeTypeMap(){return ExtensionsV1beta1PodSecurityPolicy.attributeTypeMap}}ExtensionsV1beta1PodSecurityPolicy.discriminator=undefined;ExtensionsV1beta1PodSecurityPolicy.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"ExtensionsV1beta1PodSecurityPolicySpec"}];t.ExtensionsV1beta1PodSecurityPolicy=ExtensionsV1beta1PodSecurityPolicy;class ExtensionsV1beta1PodSecurityPolicyList{static getAttributeTypeMap(){return ExtensionsV1beta1PodSecurityPolicyList.attributeTypeMap}}ExtensionsV1beta1PodSecurityPolicyList.discriminator=undefined;ExtensionsV1beta1PodSecurityPolicyList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.ExtensionsV1beta1PodSecurityPolicyList=ExtensionsV1beta1PodSecurityPolicyList;class ExtensionsV1beta1PodSecurityPolicySpec{static getAttributeTypeMap(){return ExtensionsV1beta1PodSecurityPolicySpec.attributeTypeMap}}ExtensionsV1beta1PodSecurityPolicySpec.discriminator=undefined;ExtensionsV1beta1PodSecurityPolicySpec.attributeTypeMap=[{name:"allowPrivilegeEscalation",baseName:"allowPrivilegeEscalation",type:"boolean"},{name:"allowedCapabilities",baseName:"allowedCapabilities",type:"Array"},{name:"allowedFlexVolumes",baseName:"allowedFlexVolumes",type:"Array"},{name:"allowedHostPaths",baseName:"allowedHostPaths",type:"Array"},{name:"allowedProcMountTypes",baseName:"allowedProcMountTypes",type:"Array"},{name:"allowedUnsafeSysctls",baseName:"allowedUnsafeSysctls",type:"Array"},{name:"defaultAddCapabilities",baseName:"defaultAddCapabilities",type:"Array"},{name:"defaultAllowPrivilegeEscalation",baseName:"defaultAllowPrivilegeEscalation",type:"boolean"},{name:"forbiddenSysctls",baseName:"forbiddenSysctls",type:"Array"},{name:"fsGroup",baseName:"fsGroup",type:"ExtensionsV1beta1FSGroupStrategyOptions"},{name:"hostIPC",baseName:"hostIPC",type:"boolean"},{name:"hostNetwork",baseName:"hostNetwork",type:"boolean"},{name:"hostPID",baseName:"hostPID",type:"boolean"},{name:"hostPorts",baseName:"hostPorts",type:"Array"},{name:"privileged",baseName:"privileged",type:"boolean"},{name:"readOnlyRootFilesystem",baseName:"readOnlyRootFilesystem",type:"boolean"},{name:"requiredDropCapabilities",baseName:"requiredDropCapabilities",type:"Array"},{name:"runAsGroup",baseName:"runAsGroup",type:"ExtensionsV1beta1RunAsGroupStrategyOptions"},{name:"runAsUser",baseName:"runAsUser",type:"ExtensionsV1beta1RunAsUserStrategyOptions"},{name:"seLinux",baseName:"seLinux",type:"ExtensionsV1beta1SELinuxStrategyOptions"},{name:"supplementalGroups",baseName:"supplementalGroups",type:"ExtensionsV1beta1SupplementalGroupsStrategyOptions"},{name:"volumes",baseName:"volumes",type:"Array"}];t.ExtensionsV1beta1PodSecurityPolicySpec=ExtensionsV1beta1PodSecurityPolicySpec;class ExtensionsV1beta1RollbackConfig{static getAttributeTypeMap(){return ExtensionsV1beta1RollbackConfig.attributeTypeMap}}ExtensionsV1beta1RollbackConfig.discriminator=undefined;ExtensionsV1beta1RollbackConfig.attributeTypeMap=[{name:"revision",baseName:"revision",type:"number"}];t.ExtensionsV1beta1RollbackConfig=ExtensionsV1beta1RollbackConfig;class ExtensionsV1beta1RollingUpdateDeployment{static getAttributeTypeMap(){return ExtensionsV1beta1RollingUpdateDeployment.attributeTypeMap}}ExtensionsV1beta1RollingUpdateDeployment.discriminator=undefined;ExtensionsV1beta1RollingUpdateDeployment.attributeTypeMap=[{name:"maxSurge",baseName:"maxSurge",type:"any"},{name:"maxUnavailable",baseName:"maxUnavailable",type:"any"}];t.ExtensionsV1beta1RollingUpdateDeployment=ExtensionsV1beta1RollingUpdateDeployment;class ExtensionsV1beta1RunAsGroupStrategyOptions{static getAttributeTypeMap(){return ExtensionsV1beta1RunAsGroupStrategyOptions.attributeTypeMap}}ExtensionsV1beta1RunAsGroupStrategyOptions.discriminator=undefined;ExtensionsV1beta1RunAsGroupStrategyOptions.attributeTypeMap=[{name:"ranges",baseName:"ranges",type:"Array"},{name:"rule",baseName:"rule",type:"string"}];t.ExtensionsV1beta1RunAsGroupStrategyOptions=ExtensionsV1beta1RunAsGroupStrategyOptions;class ExtensionsV1beta1RunAsUserStrategyOptions{static getAttributeTypeMap(){return ExtensionsV1beta1RunAsUserStrategyOptions.attributeTypeMap}}ExtensionsV1beta1RunAsUserStrategyOptions.discriminator=undefined;ExtensionsV1beta1RunAsUserStrategyOptions.attributeTypeMap=[{name:"ranges",baseName:"ranges",type:"Array"},{name:"rule",baseName:"rule",type:"string"}];t.ExtensionsV1beta1RunAsUserStrategyOptions=ExtensionsV1beta1RunAsUserStrategyOptions;class ExtensionsV1beta1SELinuxStrategyOptions{static getAttributeTypeMap(){return ExtensionsV1beta1SELinuxStrategyOptions.attributeTypeMap}}ExtensionsV1beta1SELinuxStrategyOptions.discriminator=undefined;ExtensionsV1beta1SELinuxStrategyOptions.attributeTypeMap=[{name:"rule",baseName:"rule",type:"string"},{name:"seLinuxOptions",baseName:"seLinuxOptions",type:"V1SELinuxOptions"}];t.ExtensionsV1beta1SELinuxStrategyOptions=ExtensionsV1beta1SELinuxStrategyOptions;class ExtensionsV1beta1Scale{static getAttributeTypeMap(){return ExtensionsV1beta1Scale.attributeTypeMap}}ExtensionsV1beta1Scale.discriminator=undefined;ExtensionsV1beta1Scale.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"ExtensionsV1beta1ScaleSpec"},{name:"status",baseName:"status",type:"ExtensionsV1beta1ScaleStatus"}];t.ExtensionsV1beta1Scale=ExtensionsV1beta1Scale;class ExtensionsV1beta1ScaleSpec{static getAttributeTypeMap(){return ExtensionsV1beta1ScaleSpec.attributeTypeMap}}ExtensionsV1beta1ScaleSpec.discriminator=undefined;ExtensionsV1beta1ScaleSpec.attributeTypeMap=[{name:"replicas",baseName:"replicas",type:"number"}];t.ExtensionsV1beta1ScaleSpec=ExtensionsV1beta1ScaleSpec;class ExtensionsV1beta1ScaleStatus{static getAttributeTypeMap(){return ExtensionsV1beta1ScaleStatus.attributeTypeMap}}ExtensionsV1beta1ScaleStatus.discriminator=undefined;ExtensionsV1beta1ScaleStatus.attributeTypeMap=[{name:"replicas",baseName:"replicas",type:"number"},{name:"selector",baseName:"selector",type:"{ [key: string]: string; }"},{name:"targetSelector",baseName:"targetSelector",type:"string"}];t.ExtensionsV1beta1ScaleStatus=ExtensionsV1beta1ScaleStatus;class ExtensionsV1beta1SupplementalGroupsStrategyOptions{static getAttributeTypeMap(){return ExtensionsV1beta1SupplementalGroupsStrategyOptions.attributeTypeMap}}ExtensionsV1beta1SupplementalGroupsStrategyOptions.discriminator=undefined;ExtensionsV1beta1SupplementalGroupsStrategyOptions.attributeTypeMap=[{name:"ranges",baseName:"ranges",type:"Array"},{name:"rule",baseName:"rule",type:"string"}];t.ExtensionsV1beta1SupplementalGroupsStrategyOptions=ExtensionsV1beta1SupplementalGroupsStrategyOptions;class PolicyV1beta1AllowedFlexVolume{static getAttributeTypeMap(){return PolicyV1beta1AllowedFlexVolume.attributeTypeMap}}PolicyV1beta1AllowedFlexVolume.discriminator=undefined;PolicyV1beta1AllowedFlexVolume.attributeTypeMap=[{name:"driver",baseName:"driver",type:"string"}];t.PolicyV1beta1AllowedFlexVolume=PolicyV1beta1AllowedFlexVolume;class PolicyV1beta1AllowedHostPath{static getAttributeTypeMap(){return PolicyV1beta1AllowedHostPath.attributeTypeMap}}PolicyV1beta1AllowedHostPath.discriminator=undefined;PolicyV1beta1AllowedHostPath.attributeTypeMap=[{name:"pathPrefix",baseName:"pathPrefix",type:"string"},{name:"readOnly",baseName:"readOnly",type:"boolean"}];t.PolicyV1beta1AllowedHostPath=PolicyV1beta1AllowedHostPath;class PolicyV1beta1FSGroupStrategyOptions{static getAttributeTypeMap(){return PolicyV1beta1FSGroupStrategyOptions.attributeTypeMap}}PolicyV1beta1FSGroupStrategyOptions.discriminator=undefined;PolicyV1beta1FSGroupStrategyOptions.attributeTypeMap=[{name:"ranges",baseName:"ranges",type:"Array"},{name:"rule",baseName:"rule",type:"string"}];t.PolicyV1beta1FSGroupStrategyOptions=PolicyV1beta1FSGroupStrategyOptions;class PolicyV1beta1HostPortRange{static getAttributeTypeMap(){return PolicyV1beta1HostPortRange.attributeTypeMap}}PolicyV1beta1HostPortRange.discriminator=undefined;PolicyV1beta1HostPortRange.attributeTypeMap=[{name:"max",baseName:"max",type:"number"},{name:"min",baseName:"min",type:"number"}];t.PolicyV1beta1HostPortRange=PolicyV1beta1HostPortRange;class PolicyV1beta1IDRange{static getAttributeTypeMap(){return PolicyV1beta1IDRange.attributeTypeMap}}PolicyV1beta1IDRange.discriminator=undefined;PolicyV1beta1IDRange.attributeTypeMap=[{name:"max",baseName:"max",type:"number"},{name:"min",baseName:"min",type:"number"}];t.PolicyV1beta1IDRange=PolicyV1beta1IDRange;class PolicyV1beta1PodSecurityPolicy{static getAttributeTypeMap(){return PolicyV1beta1PodSecurityPolicy.attributeTypeMap}}PolicyV1beta1PodSecurityPolicy.discriminator=undefined;PolicyV1beta1PodSecurityPolicy.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"PolicyV1beta1PodSecurityPolicySpec"}];t.PolicyV1beta1PodSecurityPolicy=PolicyV1beta1PodSecurityPolicy;class PolicyV1beta1PodSecurityPolicyList{static getAttributeTypeMap(){return PolicyV1beta1PodSecurityPolicyList.attributeTypeMap}}PolicyV1beta1PodSecurityPolicyList.discriminator=undefined;PolicyV1beta1PodSecurityPolicyList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.PolicyV1beta1PodSecurityPolicyList=PolicyV1beta1PodSecurityPolicyList;class PolicyV1beta1PodSecurityPolicySpec{static getAttributeTypeMap(){return PolicyV1beta1PodSecurityPolicySpec.attributeTypeMap}}PolicyV1beta1PodSecurityPolicySpec.discriminator=undefined;PolicyV1beta1PodSecurityPolicySpec.attributeTypeMap=[{name:"allowPrivilegeEscalation",baseName:"allowPrivilegeEscalation",type:"boolean"},{name:"allowedCapabilities",baseName:"allowedCapabilities",type:"Array"},{name:"allowedFlexVolumes",baseName:"allowedFlexVolumes",type:"Array"},{name:"allowedHostPaths",baseName:"allowedHostPaths",type:"Array"},{name:"allowedProcMountTypes",baseName:"allowedProcMountTypes",type:"Array"},{name:"allowedUnsafeSysctls",baseName:"allowedUnsafeSysctls",type:"Array"},{name:"defaultAddCapabilities",baseName:"defaultAddCapabilities",type:"Array"},{name:"defaultAllowPrivilegeEscalation",baseName:"defaultAllowPrivilegeEscalation",type:"boolean"},{name:"forbiddenSysctls",baseName:"forbiddenSysctls",type:"Array"},{name:"fsGroup",baseName:"fsGroup",type:"PolicyV1beta1FSGroupStrategyOptions"},{name:"hostIPC",baseName:"hostIPC",type:"boolean"},{name:"hostNetwork",baseName:"hostNetwork",type:"boolean"},{name:"hostPID",baseName:"hostPID",type:"boolean"},{name:"hostPorts",baseName:"hostPorts",type:"Array"},{name:"privileged",baseName:"privileged",type:"boolean"},{name:"readOnlyRootFilesystem",baseName:"readOnlyRootFilesystem",type:"boolean"},{name:"requiredDropCapabilities",baseName:"requiredDropCapabilities",type:"Array"},{name:"runAsGroup",baseName:"runAsGroup",type:"PolicyV1beta1RunAsGroupStrategyOptions"},{name:"runAsUser",baseName:"runAsUser",type:"PolicyV1beta1RunAsUserStrategyOptions"},{name:"seLinux",baseName:"seLinux",type:"PolicyV1beta1SELinuxStrategyOptions"},{name:"supplementalGroups",baseName:"supplementalGroups",type:"PolicyV1beta1SupplementalGroupsStrategyOptions"},{name:"volumes",baseName:"volumes",type:"Array"}];t.PolicyV1beta1PodSecurityPolicySpec=PolicyV1beta1PodSecurityPolicySpec;class PolicyV1beta1RunAsGroupStrategyOptions{static getAttributeTypeMap(){return PolicyV1beta1RunAsGroupStrategyOptions.attributeTypeMap}}PolicyV1beta1RunAsGroupStrategyOptions.discriminator=undefined;PolicyV1beta1RunAsGroupStrategyOptions.attributeTypeMap=[{name:"ranges",baseName:"ranges",type:"Array"},{name:"rule",baseName:"rule",type:"string"}];t.PolicyV1beta1RunAsGroupStrategyOptions=PolicyV1beta1RunAsGroupStrategyOptions;class PolicyV1beta1RunAsUserStrategyOptions{static getAttributeTypeMap(){return PolicyV1beta1RunAsUserStrategyOptions.attributeTypeMap}}PolicyV1beta1RunAsUserStrategyOptions.discriminator=undefined;PolicyV1beta1RunAsUserStrategyOptions.attributeTypeMap=[{name:"ranges",baseName:"ranges",type:"Array"},{name:"rule",baseName:"rule",type:"string"}];t.PolicyV1beta1RunAsUserStrategyOptions=PolicyV1beta1RunAsUserStrategyOptions;class PolicyV1beta1SELinuxStrategyOptions{static getAttributeTypeMap(){return PolicyV1beta1SELinuxStrategyOptions.attributeTypeMap}}PolicyV1beta1SELinuxStrategyOptions.discriminator=undefined;PolicyV1beta1SELinuxStrategyOptions.attributeTypeMap=[{name:"rule",baseName:"rule",type:"string"},{name:"seLinuxOptions",baseName:"seLinuxOptions",type:"V1SELinuxOptions"}];t.PolicyV1beta1SELinuxStrategyOptions=PolicyV1beta1SELinuxStrategyOptions;class PolicyV1beta1SupplementalGroupsStrategyOptions{static getAttributeTypeMap(){return PolicyV1beta1SupplementalGroupsStrategyOptions.attributeTypeMap}}PolicyV1beta1SupplementalGroupsStrategyOptions.discriminator=undefined;PolicyV1beta1SupplementalGroupsStrategyOptions.attributeTypeMap=[{name:"ranges",baseName:"ranges",type:"Array"},{name:"rule",baseName:"rule",type:"string"}];t.PolicyV1beta1SupplementalGroupsStrategyOptions=PolicyV1beta1SupplementalGroupsStrategyOptions;class RuntimeRawExtension{static getAttributeTypeMap(){return RuntimeRawExtension.attributeTypeMap}}RuntimeRawExtension.discriminator=undefined;RuntimeRawExtension.attributeTypeMap=[{name:"raw",baseName:"Raw",type:"string"}];t.RuntimeRawExtension=RuntimeRawExtension;class V1APIGroup{static getAttributeTypeMap(){return V1APIGroup.attributeTypeMap}}V1APIGroup.discriminator=undefined;V1APIGroup.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"name",baseName:"name",type:"string"},{name:"preferredVersion",baseName:"preferredVersion",type:"V1GroupVersionForDiscovery"},{name:"serverAddressByClientCIDRs",baseName:"serverAddressByClientCIDRs",type:"Array"},{name:"versions",baseName:"versions",type:"Array"}];t.V1APIGroup=V1APIGroup;class V1APIGroupList{static getAttributeTypeMap(){return V1APIGroupList.attributeTypeMap}}V1APIGroupList.discriminator=undefined;V1APIGroupList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"groups",baseName:"groups",type:"Array"},{name:"kind",baseName:"kind",type:"string"}];t.V1APIGroupList=V1APIGroupList;class V1APIResource{static getAttributeTypeMap(){return V1APIResource.attributeTypeMap}}V1APIResource.discriminator=undefined;V1APIResource.attributeTypeMap=[{name:"categories",baseName:"categories",type:"Array"},{name:"group",baseName:"group",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"name",baseName:"name",type:"string"},{name:"namespaced",baseName:"namespaced",type:"boolean"},{name:"shortNames",baseName:"shortNames",type:"Array"},{name:"singularName",baseName:"singularName",type:"string"},{name:"verbs",baseName:"verbs",type:"Array"},{name:"version",baseName:"version",type:"string"}];t.V1APIResource=V1APIResource;class V1APIResourceList{static getAttributeTypeMap(){return V1APIResourceList.attributeTypeMap}}V1APIResourceList.discriminator=undefined;V1APIResourceList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"groupVersion",baseName:"groupVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"resources",baseName:"resources",type:"Array"}];t.V1APIResourceList=V1APIResourceList;class V1APIService{static getAttributeTypeMap(){return V1APIService.attributeTypeMap}}V1APIService.discriminator=undefined;V1APIService.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1APIServiceSpec"},{name:"status",baseName:"status",type:"V1APIServiceStatus"}];t.V1APIService=V1APIService;class V1APIServiceCondition{static getAttributeTypeMap(){return V1APIServiceCondition.attributeTypeMap}}V1APIServiceCondition.discriminator=undefined;V1APIServiceCondition.attributeTypeMap=[{name:"lastTransitionTime",baseName:"lastTransitionTime",type:"Date"},{name:"message",baseName:"message",type:"string"},{name:"reason",baseName:"reason",type:"string"},{name:"status",baseName:"status",type:"string"},{name:"type",baseName:"type",type:"string"}];t.V1APIServiceCondition=V1APIServiceCondition;class V1APIServiceList{static getAttributeTypeMap(){return V1APIServiceList.attributeTypeMap}}V1APIServiceList.discriminator=undefined;V1APIServiceList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1APIServiceList=V1APIServiceList;class V1APIServiceSpec{static getAttributeTypeMap(){return V1APIServiceSpec.attributeTypeMap}}V1APIServiceSpec.discriminator=undefined;V1APIServiceSpec.attributeTypeMap=[{name:"caBundle",baseName:"caBundle",type:"string"},{name:"group",baseName:"group",type:"string"},{name:"groupPriorityMinimum",baseName:"groupPriorityMinimum",type:"number"},{name:"insecureSkipTLSVerify",baseName:"insecureSkipTLSVerify",type:"boolean"},{name:"service",baseName:"service",type:"V1ServiceReference"},{name:"version",baseName:"version",type:"string"},{name:"versionPriority",baseName:"versionPriority",type:"number"}];t.V1APIServiceSpec=V1APIServiceSpec;class V1APIServiceStatus{static getAttributeTypeMap(){return V1APIServiceStatus.attributeTypeMap}}V1APIServiceStatus.discriminator=undefined;V1APIServiceStatus.attributeTypeMap=[{name:"conditions",baseName:"conditions",type:"Array"}];t.V1APIServiceStatus=V1APIServiceStatus;class V1APIVersions{static getAttributeTypeMap(){return V1APIVersions.attributeTypeMap}}V1APIVersions.discriminator=undefined;V1APIVersions.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"serverAddressByClientCIDRs",baseName:"serverAddressByClientCIDRs",type:"Array"},{name:"versions",baseName:"versions",type:"Array"}];t.V1APIVersions=V1APIVersions;class V1AWSElasticBlockStoreVolumeSource{static getAttributeTypeMap(){return V1AWSElasticBlockStoreVolumeSource.attributeTypeMap}}V1AWSElasticBlockStoreVolumeSource.discriminator=undefined;V1AWSElasticBlockStoreVolumeSource.attributeTypeMap=[{name:"fsType",baseName:"fsType",type:"string"},{name:"partition",baseName:"partition",type:"number"},{name:"readOnly",baseName:"readOnly",type:"boolean"},{name:"volumeID",baseName:"volumeID",type:"string"}];t.V1AWSElasticBlockStoreVolumeSource=V1AWSElasticBlockStoreVolumeSource;class V1Affinity{static getAttributeTypeMap(){return V1Affinity.attributeTypeMap}}V1Affinity.discriminator=undefined;V1Affinity.attributeTypeMap=[{name:"nodeAffinity",baseName:"nodeAffinity",type:"V1NodeAffinity"},{name:"podAffinity",baseName:"podAffinity",type:"V1PodAffinity"},{name:"podAntiAffinity",baseName:"podAntiAffinity",type:"V1PodAntiAffinity"}];t.V1Affinity=V1Affinity;class V1AggregationRule{static getAttributeTypeMap(){return V1AggregationRule.attributeTypeMap}}V1AggregationRule.discriminator=undefined;V1AggregationRule.attributeTypeMap=[{name:"clusterRoleSelectors",baseName:"clusterRoleSelectors",type:"Array"}];t.V1AggregationRule=V1AggregationRule;class V1AttachedVolume{static getAttributeTypeMap(){return V1AttachedVolume.attributeTypeMap}}V1AttachedVolume.discriminator=undefined;V1AttachedVolume.attributeTypeMap=[{name:"devicePath",baseName:"devicePath",type:"string"},{name:"name",baseName:"name",type:"string"}];t.V1AttachedVolume=V1AttachedVolume;class V1AzureDiskVolumeSource{static getAttributeTypeMap(){return V1AzureDiskVolumeSource.attributeTypeMap}}V1AzureDiskVolumeSource.discriminator=undefined;V1AzureDiskVolumeSource.attributeTypeMap=[{name:"cachingMode",baseName:"cachingMode",type:"string"},{name:"diskName",baseName:"diskName",type:"string"},{name:"diskURI",baseName:"diskURI",type:"string"},{name:"fsType",baseName:"fsType",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"readOnly",baseName:"readOnly",type:"boolean"}];t.V1AzureDiskVolumeSource=V1AzureDiskVolumeSource;class V1AzureFilePersistentVolumeSource{static getAttributeTypeMap(){return V1AzureFilePersistentVolumeSource.attributeTypeMap}}V1AzureFilePersistentVolumeSource.discriminator=undefined;V1AzureFilePersistentVolumeSource.attributeTypeMap=[{name:"readOnly",baseName:"readOnly",type:"boolean"},{name:"secretName",baseName:"secretName",type:"string"},{name:"secretNamespace",baseName:"secretNamespace",type:"string"},{name:"shareName",baseName:"shareName",type:"string"}];t.V1AzureFilePersistentVolumeSource=V1AzureFilePersistentVolumeSource;class V1AzureFileVolumeSource{static getAttributeTypeMap(){return V1AzureFileVolumeSource.attributeTypeMap}}V1AzureFileVolumeSource.discriminator=undefined;V1AzureFileVolumeSource.attributeTypeMap=[{name:"readOnly",baseName:"readOnly",type:"boolean"},{name:"secretName",baseName:"secretName",type:"string"},{name:"shareName",baseName:"shareName",type:"string"}];t.V1AzureFileVolumeSource=V1AzureFileVolumeSource;class V1Binding{static getAttributeTypeMap(){return V1Binding.attributeTypeMap}}V1Binding.discriminator=undefined;V1Binding.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"target",baseName:"target",type:"V1ObjectReference"}];t.V1Binding=V1Binding;class V1CSIPersistentVolumeSource{static getAttributeTypeMap(){return V1CSIPersistentVolumeSource.attributeTypeMap}}V1CSIPersistentVolumeSource.discriminator=undefined;V1CSIPersistentVolumeSource.attributeTypeMap=[{name:"controllerPublishSecretRef",baseName:"controllerPublishSecretRef",type:"V1SecretReference"},{name:"driver",baseName:"driver",type:"string"},{name:"fsType",baseName:"fsType",type:"string"},{name:"nodePublishSecretRef",baseName:"nodePublishSecretRef",type:"V1SecretReference"},{name:"nodeStageSecretRef",baseName:"nodeStageSecretRef",type:"V1SecretReference"},{name:"readOnly",baseName:"readOnly",type:"boolean"},{name:"volumeAttributes",baseName:"volumeAttributes",type:"{ [key: string]: string; }"},{name:"volumeHandle",baseName:"volumeHandle",type:"string"}];t.V1CSIPersistentVolumeSource=V1CSIPersistentVolumeSource;class V1Capabilities{static getAttributeTypeMap(){return V1Capabilities.attributeTypeMap}}V1Capabilities.discriminator=undefined;V1Capabilities.attributeTypeMap=[{name:"add",baseName:"add",type:"Array"},{name:"drop",baseName:"drop",type:"Array"}];t.V1Capabilities=V1Capabilities;class V1CephFSPersistentVolumeSource{static getAttributeTypeMap(){return V1CephFSPersistentVolumeSource.attributeTypeMap}}V1CephFSPersistentVolumeSource.discriminator=undefined;V1CephFSPersistentVolumeSource.attributeTypeMap=[{name:"monitors",baseName:"monitors",type:"Array"},{name:"path",baseName:"path",type:"string"},{name:"readOnly",baseName:"readOnly",type:"boolean"},{name:"secretFile",baseName:"secretFile",type:"string"},{name:"secretRef",baseName:"secretRef",type:"V1SecretReference"},{name:"user",baseName:"user",type:"string"}];t.V1CephFSPersistentVolumeSource=V1CephFSPersistentVolumeSource;class V1CephFSVolumeSource{static getAttributeTypeMap(){return V1CephFSVolumeSource.attributeTypeMap}}V1CephFSVolumeSource.discriminator=undefined;V1CephFSVolumeSource.attributeTypeMap=[{name:"monitors",baseName:"monitors",type:"Array"},{name:"path",baseName:"path",type:"string"},{name:"readOnly",baseName:"readOnly",type:"boolean"},{name:"secretFile",baseName:"secretFile",type:"string"},{name:"secretRef",baseName:"secretRef",type:"V1LocalObjectReference"},{name:"user",baseName:"user",type:"string"}];t.V1CephFSVolumeSource=V1CephFSVolumeSource;class V1CinderPersistentVolumeSource{static getAttributeTypeMap(){return V1CinderPersistentVolumeSource.attributeTypeMap}}V1CinderPersistentVolumeSource.discriminator=undefined;V1CinderPersistentVolumeSource.attributeTypeMap=[{name:"fsType",baseName:"fsType",type:"string"},{name:"readOnly",baseName:"readOnly",type:"boolean"},{name:"secretRef",baseName:"secretRef",type:"V1SecretReference"},{name:"volumeID",baseName:"volumeID",type:"string"}];t.V1CinderPersistentVolumeSource=V1CinderPersistentVolumeSource;class V1CinderVolumeSource{static getAttributeTypeMap(){return V1CinderVolumeSource.attributeTypeMap}}V1CinderVolumeSource.discriminator=undefined;V1CinderVolumeSource.attributeTypeMap=[{name:"fsType",baseName:"fsType",type:"string"},{name:"readOnly",baseName:"readOnly",type:"boolean"},{name:"secretRef",baseName:"secretRef",type:"V1LocalObjectReference"},{name:"volumeID",baseName:"volumeID",type:"string"}];t.V1CinderVolumeSource=V1CinderVolumeSource;class V1ClientIPConfig{static getAttributeTypeMap(){return V1ClientIPConfig.attributeTypeMap}}V1ClientIPConfig.discriminator=undefined;V1ClientIPConfig.attributeTypeMap=[{name:"timeoutSeconds",baseName:"timeoutSeconds",type:"number"}];t.V1ClientIPConfig=V1ClientIPConfig;class V1ClusterRole{static getAttributeTypeMap(){return V1ClusterRole.attributeTypeMap}}V1ClusterRole.discriminator=undefined;V1ClusterRole.attributeTypeMap=[{name:"aggregationRule",baseName:"aggregationRule",type:"V1AggregationRule"},{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"rules",baseName:"rules",type:"Array"}];t.V1ClusterRole=V1ClusterRole;class V1ClusterRoleBinding{static getAttributeTypeMap(){return V1ClusterRoleBinding.attributeTypeMap}}V1ClusterRoleBinding.discriminator=undefined;V1ClusterRoleBinding.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"roleRef",baseName:"roleRef",type:"V1RoleRef"},{name:"subjects",baseName:"subjects",type:"Array"}];t.V1ClusterRoleBinding=V1ClusterRoleBinding;class V1ClusterRoleBindingList{static getAttributeTypeMap(){return V1ClusterRoleBindingList.attributeTypeMap}}V1ClusterRoleBindingList.discriminator=undefined;V1ClusterRoleBindingList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1ClusterRoleBindingList=V1ClusterRoleBindingList;class V1ClusterRoleList{static getAttributeTypeMap(){return V1ClusterRoleList.attributeTypeMap}}V1ClusterRoleList.discriminator=undefined;V1ClusterRoleList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1ClusterRoleList=V1ClusterRoleList;class V1ComponentCondition{static getAttributeTypeMap(){return V1ComponentCondition.attributeTypeMap}}V1ComponentCondition.discriminator=undefined;V1ComponentCondition.attributeTypeMap=[{name:"error",baseName:"error",type:"string"},{name:"message",baseName:"message",type:"string"},{name:"status",baseName:"status",type:"string"},{name:"type",baseName:"type",type:"string"}];t.V1ComponentCondition=V1ComponentCondition;class V1ComponentStatus{static getAttributeTypeMap(){return V1ComponentStatus.attributeTypeMap}}V1ComponentStatus.discriminator=undefined;V1ComponentStatus.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"conditions",baseName:"conditions",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"}];t.V1ComponentStatus=V1ComponentStatus;class V1ComponentStatusList{static getAttributeTypeMap(){return V1ComponentStatusList.attributeTypeMap}}V1ComponentStatusList.discriminator=undefined;V1ComponentStatusList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1ComponentStatusList=V1ComponentStatusList;class V1ConfigMap{static getAttributeTypeMap(){return V1ConfigMap.attributeTypeMap}}V1ConfigMap.discriminator=undefined;V1ConfigMap.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"binaryData",baseName:"binaryData",type:"{ [key: string]: string; }"},{name:"data",baseName:"data",type:"{ [key: string]: string; }"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"}];t.V1ConfigMap=V1ConfigMap;class V1ConfigMapEnvSource{static getAttributeTypeMap(){return V1ConfigMapEnvSource.attributeTypeMap}}V1ConfigMapEnvSource.discriminator=undefined;V1ConfigMapEnvSource.attributeTypeMap=[{name:"name",baseName:"name",type:"string"},{name:"optional",baseName:"optional",type:"boolean"}];t.V1ConfigMapEnvSource=V1ConfigMapEnvSource;class V1ConfigMapKeySelector{static getAttributeTypeMap(){return V1ConfigMapKeySelector.attributeTypeMap}}V1ConfigMapKeySelector.discriminator=undefined;V1ConfigMapKeySelector.attributeTypeMap=[{name:"key",baseName:"key",type:"string"},{name:"name",baseName:"name",type:"string"},{name:"optional",baseName:"optional",type:"boolean"}];t.V1ConfigMapKeySelector=V1ConfigMapKeySelector;class V1ConfigMapList{static getAttributeTypeMap(){return V1ConfigMapList.attributeTypeMap}}V1ConfigMapList.discriminator=undefined;V1ConfigMapList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1ConfigMapList=V1ConfigMapList;class V1ConfigMapNodeConfigSource{static getAttributeTypeMap(){return V1ConfigMapNodeConfigSource.attributeTypeMap}}V1ConfigMapNodeConfigSource.discriminator=undefined;V1ConfigMapNodeConfigSource.attributeTypeMap=[{name:"kubeletConfigKey",baseName:"kubeletConfigKey",type:"string"},{name:"name",baseName:"name",type:"string"},{name:"namespace",baseName:"namespace",type:"string"},{name:"resourceVersion",baseName:"resourceVersion",type:"string"},{name:"uid",baseName:"uid",type:"string"}];t.V1ConfigMapNodeConfigSource=V1ConfigMapNodeConfigSource;class V1ConfigMapProjection{static getAttributeTypeMap(){return V1ConfigMapProjection.attributeTypeMap}}V1ConfigMapProjection.discriminator=undefined;V1ConfigMapProjection.attributeTypeMap=[{name:"items",baseName:"items",type:"Array"},{name:"name",baseName:"name",type:"string"},{name:"optional",baseName:"optional",type:"boolean"}];t.V1ConfigMapProjection=V1ConfigMapProjection;class V1ConfigMapVolumeSource{static getAttributeTypeMap(){return V1ConfigMapVolumeSource.attributeTypeMap}}V1ConfigMapVolumeSource.discriminator=undefined;V1ConfigMapVolumeSource.attributeTypeMap=[{name:"defaultMode",baseName:"defaultMode",type:"number"},{name:"items",baseName:"items",type:"Array"},{name:"name",baseName:"name",type:"string"},{name:"optional",baseName:"optional",type:"boolean"}];t.V1ConfigMapVolumeSource=V1ConfigMapVolumeSource;class V1Container{static getAttributeTypeMap(){return V1Container.attributeTypeMap}}V1Container.discriminator=undefined;V1Container.attributeTypeMap=[{name:"args",baseName:"args",type:"Array"},{name:"command",baseName:"command",type:"Array"},{name:"env",baseName:"env",type:"Array"},{name:"envFrom",baseName:"envFrom",type:"Array"},{name:"image",baseName:"image",type:"string"},{name:"imagePullPolicy",baseName:"imagePullPolicy",type:"string"},{name:"lifecycle",baseName:"lifecycle",type:"V1Lifecycle"},{name:"livenessProbe",baseName:"livenessProbe",type:"V1Probe"},{name:"name",baseName:"name",type:"string"},{name:"ports",baseName:"ports",type:"Array"},{name:"readinessProbe",baseName:"readinessProbe",type:"V1Probe"},{name:"resources",baseName:"resources",type:"V1ResourceRequirements"},{name:"securityContext",baseName:"securityContext",type:"V1SecurityContext"},{name:"stdin",baseName:"stdin",type:"boolean"},{name:"stdinOnce",baseName:"stdinOnce",type:"boolean"},{name:"terminationMessagePath",baseName:"terminationMessagePath",type:"string"},{name:"terminationMessagePolicy",baseName:"terminationMessagePolicy",type:"string"},{name:"tty",baseName:"tty",type:"boolean"},{name:"volumeDevices",baseName:"volumeDevices",type:"Array"},{name:"volumeMounts",baseName:"volumeMounts",type:"Array"},{name:"workingDir",baseName:"workingDir",type:"string"}];t.V1Container=V1Container;class V1ContainerImage{static getAttributeTypeMap(){return V1ContainerImage.attributeTypeMap}}V1ContainerImage.discriminator=undefined;V1ContainerImage.attributeTypeMap=[{name:"names",baseName:"names",type:"Array"},{name:"sizeBytes",baseName:"sizeBytes",type:"number"}];t.V1ContainerImage=V1ContainerImage;class V1ContainerPort{static getAttributeTypeMap(){return V1ContainerPort.attributeTypeMap}}V1ContainerPort.discriminator=undefined;V1ContainerPort.attributeTypeMap=[{name:"containerPort",baseName:"containerPort",type:"number"},{name:"hostIP",baseName:"hostIP",type:"string"},{name:"hostPort",baseName:"hostPort",type:"number"},{name:"name",baseName:"name",type:"string"},{name:"protocol",baseName:"protocol",type:"string"}];t.V1ContainerPort=V1ContainerPort;class V1ContainerState{static getAttributeTypeMap(){return V1ContainerState.attributeTypeMap}}V1ContainerState.discriminator=undefined;V1ContainerState.attributeTypeMap=[{name:"running",baseName:"running",type:"V1ContainerStateRunning"},{name:"terminated",baseName:"terminated",type:"V1ContainerStateTerminated"},{name:"waiting",baseName:"waiting",type:"V1ContainerStateWaiting"}];t.V1ContainerState=V1ContainerState;class V1ContainerStateRunning{static getAttributeTypeMap(){return V1ContainerStateRunning.attributeTypeMap}}V1ContainerStateRunning.discriminator=undefined;V1ContainerStateRunning.attributeTypeMap=[{name:"startedAt",baseName:"startedAt",type:"Date"}];t.V1ContainerStateRunning=V1ContainerStateRunning;class V1ContainerStateTerminated{static getAttributeTypeMap(){return V1ContainerStateTerminated.attributeTypeMap}}V1ContainerStateTerminated.discriminator=undefined;V1ContainerStateTerminated.attributeTypeMap=[{name:"containerID",baseName:"containerID",type:"string"},{name:"exitCode",baseName:"exitCode",type:"number"},{name:"finishedAt",baseName:"finishedAt",type:"Date"},{name:"message",baseName:"message",type:"string"},{name:"reason",baseName:"reason",type:"string"},{name:"signal",baseName:"signal",type:"number"},{name:"startedAt",baseName:"startedAt",type:"Date"}];t.V1ContainerStateTerminated=V1ContainerStateTerminated;class V1ContainerStateWaiting{static getAttributeTypeMap(){return V1ContainerStateWaiting.attributeTypeMap}}V1ContainerStateWaiting.discriminator=undefined;V1ContainerStateWaiting.attributeTypeMap=[{name:"message",baseName:"message",type:"string"},{name:"reason",baseName:"reason",type:"string"}];t.V1ContainerStateWaiting=V1ContainerStateWaiting;class V1ContainerStatus{static getAttributeTypeMap(){return V1ContainerStatus.attributeTypeMap}}V1ContainerStatus.discriminator=undefined;V1ContainerStatus.attributeTypeMap=[{name:"containerID",baseName:"containerID",type:"string"},{name:"image",baseName:"image",type:"string"},{name:"imageID",baseName:"imageID",type:"string"},{name:"lastState",baseName:"lastState",type:"V1ContainerState"},{name:"name",baseName:"name",type:"string"},{name:"ready",baseName:"ready",type:"boolean"},{name:"restartCount",baseName:"restartCount",type:"number"},{name:"state",baseName:"state",type:"V1ContainerState"}];t.V1ContainerStatus=V1ContainerStatus;class V1ControllerRevision{static getAttributeTypeMap(){return V1ControllerRevision.attributeTypeMap}}V1ControllerRevision.discriminator=undefined;V1ControllerRevision.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"data",baseName:"data",type:"RuntimeRawExtension"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"revision",baseName:"revision",type:"number"}];t.V1ControllerRevision=V1ControllerRevision;class V1ControllerRevisionList{static getAttributeTypeMap(){return V1ControllerRevisionList.attributeTypeMap}}V1ControllerRevisionList.discriminator=undefined;V1ControllerRevisionList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1ControllerRevisionList=V1ControllerRevisionList;class V1CrossVersionObjectReference{static getAttributeTypeMap(){return V1CrossVersionObjectReference.attributeTypeMap}}V1CrossVersionObjectReference.discriminator=undefined;V1CrossVersionObjectReference.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"name",baseName:"name",type:"string"}];t.V1CrossVersionObjectReference=V1CrossVersionObjectReference;class V1DaemonEndpoint{static getAttributeTypeMap(){return V1DaemonEndpoint.attributeTypeMap}}V1DaemonEndpoint.discriminator=undefined;V1DaemonEndpoint.attributeTypeMap=[{name:"port",baseName:"Port",type:"number"}];t.V1DaemonEndpoint=V1DaemonEndpoint;class V1DaemonSet{static getAttributeTypeMap(){return V1DaemonSet.attributeTypeMap}}V1DaemonSet.discriminator=undefined;V1DaemonSet.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1DaemonSetSpec"},{name:"status",baseName:"status",type:"V1DaemonSetStatus"}];t.V1DaemonSet=V1DaemonSet;class V1DaemonSetCondition{static getAttributeTypeMap(){return V1DaemonSetCondition.attributeTypeMap}}V1DaemonSetCondition.discriminator=undefined;V1DaemonSetCondition.attributeTypeMap=[{name:"lastTransitionTime",baseName:"lastTransitionTime",type:"Date"},{name:"message",baseName:"message",type:"string"},{name:"reason",baseName:"reason",type:"string"},{name:"status",baseName:"status",type:"string"},{name:"type",baseName:"type",type:"string"}];t.V1DaemonSetCondition=V1DaemonSetCondition;class V1DaemonSetList{static getAttributeTypeMap(){return V1DaemonSetList.attributeTypeMap}}V1DaemonSetList.discriminator=undefined;V1DaemonSetList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1DaemonSetList=V1DaemonSetList;class V1DaemonSetSpec{static getAttributeTypeMap(){return V1DaemonSetSpec.attributeTypeMap}}V1DaemonSetSpec.discriminator=undefined;V1DaemonSetSpec.attributeTypeMap=[{name:"minReadySeconds",baseName:"minReadySeconds",type:"number"},{name:"revisionHistoryLimit",baseName:"revisionHistoryLimit",type:"number"},{name:"selector",baseName:"selector",type:"V1LabelSelector"},{name:"template",baseName:"template",type:"V1PodTemplateSpec"},{name:"updateStrategy",baseName:"updateStrategy",type:"V1DaemonSetUpdateStrategy"}];t.V1DaemonSetSpec=V1DaemonSetSpec;class V1DaemonSetStatus{static getAttributeTypeMap(){return V1DaemonSetStatus.attributeTypeMap}}V1DaemonSetStatus.discriminator=undefined;V1DaemonSetStatus.attributeTypeMap=[{name:"collisionCount",baseName:"collisionCount",type:"number"},{name:"conditions",baseName:"conditions",type:"Array"},{name:"currentNumberScheduled",baseName:"currentNumberScheduled",type:"number"},{name:"desiredNumberScheduled",baseName:"desiredNumberScheduled",type:"number"},{name:"numberAvailable",baseName:"numberAvailable",type:"number"},{name:"numberMisscheduled",baseName:"numberMisscheduled",type:"number"},{name:"numberReady",baseName:"numberReady",type:"number"},{name:"numberUnavailable",baseName:"numberUnavailable",type:"number"},{name:"observedGeneration",baseName:"observedGeneration",type:"number"},{name:"updatedNumberScheduled",baseName:"updatedNumberScheduled",type:"number"}];t.V1DaemonSetStatus=V1DaemonSetStatus;class V1DaemonSetUpdateStrategy{static getAttributeTypeMap(){return V1DaemonSetUpdateStrategy.attributeTypeMap}}V1DaemonSetUpdateStrategy.discriminator=undefined;V1DaemonSetUpdateStrategy.attributeTypeMap=[{name:"rollingUpdate",baseName:"rollingUpdate",type:"V1RollingUpdateDaemonSet"},{name:"type",baseName:"type",type:"string"}];t.V1DaemonSetUpdateStrategy=V1DaemonSetUpdateStrategy;class V1DeleteOptions{static getAttributeTypeMap(){return V1DeleteOptions.attributeTypeMap}}V1DeleteOptions.discriminator=undefined;V1DeleteOptions.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"dryRun",baseName:"dryRun",type:"Array"},{name:"gracePeriodSeconds",baseName:"gracePeriodSeconds",type:"number"},{name:"kind",baseName:"kind",type:"string"},{name:"orphanDependents",baseName:"orphanDependents",type:"boolean"},{name:"preconditions",baseName:"preconditions",type:"V1Preconditions"},{name:"propagationPolicy",baseName:"propagationPolicy",type:"string"}];t.V1DeleteOptions=V1DeleteOptions;class V1Deployment{static getAttributeTypeMap(){return V1Deployment.attributeTypeMap}}V1Deployment.discriminator=undefined;V1Deployment.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1DeploymentSpec"},{name:"status",baseName:"status",type:"V1DeploymentStatus"}];t.V1Deployment=V1Deployment;class V1DeploymentCondition{static getAttributeTypeMap(){return V1DeploymentCondition.attributeTypeMap}}V1DeploymentCondition.discriminator=undefined;V1DeploymentCondition.attributeTypeMap=[{name:"lastTransitionTime",baseName:"lastTransitionTime",type:"Date"},{name:"lastUpdateTime",baseName:"lastUpdateTime",type:"Date"},{name:"message",baseName:"message",type:"string"},{name:"reason",baseName:"reason",type:"string"},{name:"status",baseName:"status",type:"string"},{name:"type",baseName:"type",type:"string"}];t.V1DeploymentCondition=V1DeploymentCondition;class V1DeploymentList{static getAttributeTypeMap(){return V1DeploymentList.attributeTypeMap}}V1DeploymentList.discriminator=undefined;V1DeploymentList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1DeploymentList=V1DeploymentList;class V1DeploymentSpec{static getAttributeTypeMap(){return V1DeploymentSpec.attributeTypeMap}}V1DeploymentSpec.discriminator=undefined;V1DeploymentSpec.attributeTypeMap=[{name:"minReadySeconds",baseName:"minReadySeconds",type:"number"},{name:"paused",baseName:"paused",type:"boolean"},{name:"progressDeadlineSeconds",baseName:"progressDeadlineSeconds",type:"number"},{name:"replicas",baseName:"replicas",type:"number"},{name:"revisionHistoryLimit",baseName:"revisionHistoryLimit",type:"number"},{name:"selector",baseName:"selector",type:"V1LabelSelector"},{name:"strategy",baseName:"strategy",type:"V1DeploymentStrategy"},{name:"template",baseName:"template",type:"V1PodTemplateSpec"}];t.V1DeploymentSpec=V1DeploymentSpec;class V1DeploymentStatus{static getAttributeTypeMap(){return V1DeploymentStatus.attributeTypeMap}}V1DeploymentStatus.discriminator=undefined;V1DeploymentStatus.attributeTypeMap=[{name:"availableReplicas",baseName:"availableReplicas",type:"number"},{name:"collisionCount",baseName:"collisionCount",type:"number"},{name:"conditions",baseName:"conditions",type:"Array"},{name:"observedGeneration",baseName:"observedGeneration",type:"number"},{name:"readyReplicas",baseName:"readyReplicas",type:"number"},{name:"replicas",baseName:"replicas",type:"number"},{name:"unavailableReplicas",baseName:"unavailableReplicas",type:"number"},{name:"updatedReplicas",baseName:"updatedReplicas",type:"number"}];t.V1DeploymentStatus=V1DeploymentStatus;class V1DeploymentStrategy{static getAttributeTypeMap(){return V1DeploymentStrategy.attributeTypeMap}}V1DeploymentStrategy.discriminator=undefined;V1DeploymentStrategy.attributeTypeMap=[{name:"rollingUpdate",baseName:"rollingUpdate",type:"V1RollingUpdateDeployment"},{name:"type",baseName:"type",type:"string"}];t.V1DeploymentStrategy=V1DeploymentStrategy;class V1DownwardAPIProjection{static getAttributeTypeMap(){return V1DownwardAPIProjection.attributeTypeMap}}V1DownwardAPIProjection.discriminator=undefined;V1DownwardAPIProjection.attributeTypeMap=[{name:"items",baseName:"items",type:"Array"}];t.V1DownwardAPIProjection=V1DownwardAPIProjection;class V1DownwardAPIVolumeFile{static getAttributeTypeMap(){return V1DownwardAPIVolumeFile.attributeTypeMap}}V1DownwardAPIVolumeFile.discriminator=undefined;V1DownwardAPIVolumeFile.attributeTypeMap=[{name:"fieldRef",baseName:"fieldRef",type:"V1ObjectFieldSelector"},{name:"mode",baseName:"mode",type:"number"},{name:"path",baseName:"path",type:"string"},{name:"resourceFieldRef",baseName:"resourceFieldRef",type:"V1ResourceFieldSelector"}];t.V1DownwardAPIVolumeFile=V1DownwardAPIVolumeFile;class V1DownwardAPIVolumeSource{static getAttributeTypeMap(){return V1DownwardAPIVolumeSource.attributeTypeMap}}V1DownwardAPIVolumeSource.discriminator=undefined;V1DownwardAPIVolumeSource.attributeTypeMap=[{name:"defaultMode",baseName:"defaultMode",type:"number"},{name:"items",baseName:"items",type:"Array"}];t.V1DownwardAPIVolumeSource=V1DownwardAPIVolumeSource;class V1EmptyDirVolumeSource{static getAttributeTypeMap(){return V1EmptyDirVolumeSource.attributeTypeMap}}V1EmptyDirVolumeSource.discriminator=undefined;V1EmptyDirVolumeSource.attributeTypeMap=[{name:"medium",baseName:"medium",type:"string"},{name:"sizeLimit",baseName:"sizeLimit",type:"string"}];t.V1EmptyDirVolumeSource=V1EmptyDirVolumeSource;class V1EndpointAddress{static getAttributeTypeMap(){return V1EndpointAddress.attributeTypeMap}}V1EndpointAddress.discriminator=undefined;V1EndpointAddress.attributeTypeMap=[{name:"hostname",baseName:"hostname",type:"string"},{name:"ip",baseName:"ip",type:"string"},{name:"nodeName",baseName:"nodeName",type:"string"},{name:"targetRef",baseName:"targetRef",type:"V1ObjectReference"}];t.V1EndpointAddress=V1EndpointAddress;class V1EndpointPort{static getAttributeTypeMap(){return V1EndpointPort.attributeTypeMap}}V1EndpointPort.discriminator=undefined;V1EndpointPort.attributeTypeMap=[{name:"name",baseName:"name",type:"string"},{name:"port",baseName:"port",type:"number"},{name:"protocol",baseName:"protocol",type:"string"}];t.V1EndpointPort=V1EndpointPort;class V1EndpointSubset{static getAttributeTypeMap(){return V1EndpointSubset.attributeTypeMap}}V1EndpointSubset.discriminator=undefined;V1EndpointSubset.attributeTypeMap=[{name:"addresses",baseName:"addresses",type:"Array"},{name:"notReadyAddresses",baseName:"notReadyAddresses",type:"Array"},{name:"ports",baseName:"ports",type:"Array"}];t.V1EndpointSubset=V1EndpointSubset;class V1Endpoints{static getAttributeTypeMap(){return V1Endpoints.attributeTypeMap}}V1Endpoints.discriminator=undefined;V1Endpoints.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"subsets",baseName:"subsets",type:"Array"}];t.V1Endpoints=V1Endpoints;class V1EndpointsList{static getAttributeTypeMap(){return V1EndpointsList.attributeTypeMap}}V1EndpointsList.discriminator=undefined;V1EndpointsList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1EndpointsList=V1EndpointsList;class V1EnvFromSource{static getAttributeTypeMap(){return V1EnvFromSource.attributeTypeMap}}V1EnvFromSource.discriminator=undefined;V1EnvFromSource.attributeTypeMap=[{name:"configMapRef",baseName:"configMapRef",type:"V1ConfigMapEnvSource"},{name:"prefix",baseName:"prefix",type:"string"},{name:"secretRef",baseName:"secretRef",type:"V1SecretEnvSource"}];t.V1EnvFromSource=V1EnvFromSource;class V1EnvVar{static getAttributeTypeMap(){return V1EnvVar.attributeTypeMap}}V1EnvVar.discriminator=undefined;V1EnvVar.attributeTypeMap=[{name:"name",baseName:"name",type:"string"},{name:"value",baseName:"value",type:"string"},{name:"valueFrom",baseName:"valueFrom",type:"V1EnvVarSource"}];t.V1EnvVar=V1EnvVar;class V1EnvVarSource{static getAttributeTypeMap(){return V1EnvVarSource.attributeTypeMap}}V1EnvVarSource.discriminator=undefined;V1EnvVarSource.attributeTypeMap=[{name:"configMapKeyRef",baseName:"configMapKeyRef",type:"V1ConfigMapKeySelector"},{name:"fieldRef",baseName:"fieldRef",type:"V1ObjectFieldSelector"},{name:"resourceFieldRef",baseName:"resourceFieldRef",type:"V1ResourceFieldSelector"},{name:"secretKeyRef",baseName:"secretKeyRef",type:"V1SecretKeySelector"}];t.V1EnvVarSource=V1EnvVarSource;class V1Event{static getAttributeTypeMap(){return V1Event.attributeTypeMap}}V1Event.discriminator=undefined;V1Event.attributeTypeMap=[{name:"action",baseName:"action",type:"string"},{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"count",baseName:"count",type:"number"},{name:"eventTime",baseName:"eventTime",type:"Date"},{name:"firstTimestamp",baseName:"firstTimestamp",type:"Date"},{name:"involvedObject",baseName:"involvedObject",type:"V1ObjectReference"},{name:"kind",baseName:"kind",type:"string"},{name:"lastTimestamp",baseName:"lastTimestamp",type:"Date"},{name:"message",baseName:"message",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"reason",baseName:"reason",type:"string"},{name:"related",baseName:"related",type:"V1ObjectReference"},{name:"reportingComponent",baseName:"reportingComponent",type:"string"},{name:"reportingInstance",baseName:"reportingInstance",type:"string"},{name:"series",baseName:"series",type:"V1EventSeries"},{name:"source",baseName:"source",type:"V1EventSource"},{name:"type",baseName:"type",type:"string"}];t.V1Event=V1Event;class V1EventList{static getAttributeTypeMap(){return V1EventList.attributeTypeMap}}V1EventList.discriminator=undefined;V1EventList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1EventList=V1EventList;class V1EventSeries{static getAttributeTypeMap(){return V1EventSeries.attributeTypeMap}}V1EventSeries.discriminator=undefined;V1EventSeries.attributeTypeMap=[{name:"count",baseName:"count",type:"number"},{name:"lastObservedTime",baseName:"lastObservedTime",type:"Date"},{name:"state",baseName:"state",type:"string"}];t.V1EventSeries=V1EventSeries;class V1EventSource{static getAttributeTypeMap(){return V1EventSource.attributeTypeMap}}V1EventSource.discriminator=undefined;V1EventSource.attributeTypeMap=[{name:"component",baseName:"component",type:"string"},{name:"host",baseName:"host",type:"string"}];t.V1EventSource=V1EventSource;class V1ExecAction{static getAttributeTypeMap(){return V1ExecAction.attributeTypeMap}}V1ExecAction.discriminator=undefined;V1ExecAction.attributeTypeMap=[{name:"command",baseName:"command",type:"Array"}];t.V1ExecAction=V1ExecAction;class V1FCVolumeSource{static getAttributeTypeMap(){return V1FCVolumeSource.attributeTypeMap}}V1FCVolumeSource.discriminator=undefined;V1FCVolumeSource.attributeTypeMap=[{name:"fsType",baseName:"fsType",type:"string"},{name:"lun",baseName:"lun",type:"number"},{name:"readOnly",baseName:"readOnly",type:"boolean"},{name:"targetWWNs",baseName:"targetWWNs",type:"Array"},{name:"wwids",baseName:"wwids",type:"Array"}];t.V1FCVolumeSource=V1FCVolumeSource;class V1FlexPersistentVolumeSource{static getAttributeTypeMap(){return V1FlexPersistentVolumeSource.attributeTypeMap}}V1FlexPersistentVolumeSource.discriminator=undefined;V1FlexPersistentVolumeSource.attributeTypeMap=[{name:"driver",baseName:"driver",type:"string"},{name:"fsType",baseName:"fsType",type:"string"},{name:"options",baseName:"options",type:"{ [key: string]: string; }"},{name:"readOnly",baseName:"readOnly",type:"boolean"},{name:"secretRef",baseName:"secretRef",type:"V1SecretReference"}];t.V1FlexPersistentVolumeSource=V1FlexPersistentVolumeSource;class V1FlexVolumeSource{static getAttributeTypeMap(){return V1FlexVolumeSource.attributeTypeMap}}V1FlexVolumeSource.discriminator=undefined;V1FlexVolumeSource.attributeTypeMap=[{name:"driver",baseName:"driver",type:"string"},{name:"fsType",baseName:"fsType",type:"string"},{name:"options",baseName:"options",type:"{ [key: string]: string; }"},{name:"readOnly",baseName:"readOnly",type:"boolean"},{name:"secretRef",baseName:"secretRef",type:"V1LocalObjectReference"}];t.V1FlexVolumeSource=V1FlexVolumeSource;class V1FlockerVolumeSource{static getAttributeTypeMap(){return V1FlockerVolumeSource.attributeTypeMap}}V1FlockerVolumeSource.discriminator=undefined;V1FlockerVolumeSource.attributeTypeMap=[{name:"datasetName",baseName:"datasetName",type:"string"},{name:"datasetUUID",baseName:"datasetUUID",type:"string"}];t.V1FlockerVolumeSource=V1FlockerVolumeSource;class V1GCEPersistentDiskVolumeSource{static getAttributeTypeMap(){return V1GCEPersistentDiskVolumeSource.attributeTypeMap}}V1GCEPersistentDiskVolumeSource.discriminator=undefined;V1GCEPersistentDiskVolumeSource.attributeTypeMap=[{name:"fsType",baseName:"fsType",type:"string"},{name:"partition",baseName:"partition",type:"number"},{name:"pdName",baseName:"pdName",type:"string"},{name:"readOnly",baseName:"readOnly",type:"boolean"}];t.V1GCEPersistentDiskVolumeSource=V1GCEPersistentDiskVolumeSource;class V1GitRepoVolumeSource{static getAttributeTypeMap(){return V1GitRepoVolumeSource.attributeTypeMap}}V1GitRepoVolumeSource.discriminator=undefined;V1GitRepoVolumeSource.attributeTypeMap=[{name:"directory",baseName:"directory",type:"string"},{name:"repository",baseName:"repository",type:"string"},{name:"revision",baseName:"revision",type:"string"}];t.V1GitRepoVolumeSource=V1GitRepoVolumeSource;class V1GlusterfsPersistentVolumeSource{static getAttributeTypeMap(){return V1GlusterfsPersistentVolumeSource.attributeTypeMap}}V1GlusterfsPersistentVolumeSource.discriminator=undefined;V1GlusterfsPersistentVolumeSource.attributeTypeMap=[{name:"endpoints",baseName:"endpoints",type:"string"},{name:"endpointsNamespace",baseName:"endpointsNamespace",type:"string"},{name:"path",baseName:"path",type:"string"},{name:"readOnly",baseName:"readOnly",type:"boolean"}];t.V1GlusterfsPersistentVolumeSource=V1GlusterfsPersistentVolumeSource;class V1GlusterfsVolumeSource{static getAttributeTypeMap(){return V1GlusterfsVolumeSource.attributeTypeMap}}V1GlusterfsVolumeSource.discriminator=undefined;V1GlusterfsVolumeSource.attributeTypeMap=[{name:"endpoints",baseName:"endpoints",type:"string"},{name:"path",baseName:"path",type:"string"},{name:"readOnly",baseName:"readOnly",type:"boolean"}];t.V1GlusterfsVolumeSource=V1GlusterfsVolumeSource;class V1GroupVersionForDiscovery{static getAttributeTypeMap(){return V1GroupVersionForDiscovery.attributeTypeMap}}V1GroupVersionForDiscovery.discriminator=undefined;V1GroupVersionForDiscovery.attributeTypeMap=[{name:"groupVersion",baseName:"groupVersion",type:"string"},{name:"version",baseName:"version",type:"string"}];t.V1GroupVersionForDiscovery=V1GroupVersionForDiscovery;class V1HTTPGetAction{static getAttributeTypeMap(){return V1HTTPGetAction.attributeTypeMap}}V1HTTPGetAction.discriminator=undefined;V1HTTPGetAction.attributeTypeMap=[{name:"host",baseName:"host",type:"string"},{name:"httpHeaders",baseName:"httpHeaders",type:"Array"},{name:"path",baseName:"path",type:"string"},{name:"port",baseName:"port",type:"any"},{name:"scheme",baseName:"scheme",type:"string"}];t.V1HTTPGetAction=V1HTTPGetAction;class V1HTTPHeader{static getAttributeTypeMap(){return V1HTTPHeader.attributeTypeMap}}V1HTTPHeader.discriminator=undefined;V1HTTPHeader.attributeTypeMap=[{name:"name",baseName:"name",type:"string"},{name:"value",baseName:"value",type:"string"}];t.V1HTTPHeader=V1HTTPHeader;class V1Handler{static getAttributeTypeMap(){return V1Handler.attributeTypeMap}}V1Handler.discriminator=undefined;V1Handler.attributeTypeMap=[{name:"exec",baseName:"exec",type:"V1ExecAction"},{name:"httpGet",baseName:"httpGet",type:"V1HTTPGetAction"},{name:"tcpSocket",baseName:"tcpSocket",type:"V1TCPSocketAction"}];t.V1Handler=V1Handler;class V1HorizontalPodAutoscaler{static getAttributeTypeMap(){return V1HorizontalPodAutoscaler.attributeTypeMap}}V1HorizontalPodAutoscaler.discriminator=undefined;V1HorizontalPodAutoscaler.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1HorizontalPodAutoscalerSpec"},{name:"status",baseName:"status",type:"V1HorizontalPodAutoscalerStatus"}];t.V1HorizontalPodAutoscaler=V1HorizontalPodAutoscaler;class V1HorizontalPodAutoscalerList{static getAttributeTypeMap(){return V1HorizontalPodAutoscalerList.attributeTypeMap}}V1HorizontalPodAutoscalerList.discriminator=undefined;V1HorizontalPodAutoscalerList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1HorizontalPodAutoscalerList=V1HorizontalPodAutoscalerList;class V1HorizontalPodAutoscalerSpec{static getAttributeTypeMap(){return V1HorizontalPodAutoscalerSpec.attributeTypeMap}}V1HorizontalPodAutoscalerSpec.discriminator=undefined;V1HorizontalPodAutoscalerSpec.attributeTypeMap=[{name:"maxReplicas",baseName:"maxReplicas",type:"number"},{name:"minReplicas",baseName:"minReplicas",type:"number"},{name:"scaleTargetRef",baseName:"scaleTargetRef",type:"V1CrossVersionObjectReference"},{name:"targetCPUUtilizationPercentage",baseName:"targetCPUUtilizationPercentage",type:"number"}];t.V1HorizontalPodAutoscalerSpec=V1HorizontalPodAutoscalerSpec;class V1HorizontalPodAutoscalerStatus{static getAttributeTypeMap(){return V1HorizontalPodAutoscalerStatus.attributeTypeMap}}V1HorizontalPodAutoscalerStatus.discriminator=undefined;V1HorizontalPodAutoscalerStatus.attributeTypeMap=[{name:"currentCPUUtilizationPercentage",baseName:"currentCPUUtilizationPercentage",type:"number"},{name:"currentReplicas",baseName:"currentReplicas",type:"number"},{name:"desiredReplicas",baseName:"desiredReplicas",type:"number"},{name:"lastScaleTime",baseName:"lastScaleTime",type:"Date"},{name:"observedGeneration",baseName:"observedGeneration",type:"number"}];t.V1HorizontalPodAutoscalerStatus=V1HorizontalPodAutoscalerStatus;class V1HostAlias{static getAttributeTypeMap(){return V1HostAlias.attributeTypeMap}}V1HostAlias.discriminator=undefined;V1HostAlias.attributeTypeMap=[{name:"hostnames",baseName:"hostnames",type:"Array"},{name:"ip",baseName:"ip",type:"string"}];t.V1HostAlias=V1HostAlias;class V1HostPathVolumeSource{static getAttributeTypeMap(){return V1HostPathVolumeSource.attributeTypeMap}}V1HostPathVolumeSource.discriminator=undefined;V1HostPathVolumeSource.attributeTypeMap=[{name:"path",baseName:"path",type:"string"},{name:"type",baseName:"type",type:"string"}];t.V1HostPathVolumeSource=V1HostPathVolumeSource;class V1IPBlock{static getAttributeTypeMap(){return V1IPBlock.attributeTypeMap}}V1IPBlock.discriminator=undefined;V1IPBlock.attributeTypeMap=[{name:"cidr",baseName:"cidr",type:"string"},{name:"except",baseName:"except",type:"Array"}];t.V1IPBlock=V1IPBlock;class V1ISCSIPersistentVolumeSource{static getAttributeTypeMap(){return V1ISCSIPersistentVolumeSource.attributeTypeMap}}V1ISCSIPersistentVolumeSource.discriminator=undefined;V1ISCSIPersistentVolumeSource.attributeTypeMap=[{name:"chapAuthDiscovery",baseName:"chapAuthDiscovery",type:"boolean"},{name:"chapAuthSession",baseName:"chapAuthSession",type:"boolean"},{name:"fsType",baseName:"fsType",type:"string"},{name:"initiatorName",baseName:"initiatorName",type:"string"},{name:"iqn",baseName:"iqn",type:"string"},{name:"iscsiInterface",baseName:"iscsiInterface",type:"string"},{name:"lun",baseName:"lun",type:"number"},{name:"portals",baseName:"portals",type:"Array"},{name:"readOnly",baseName:"readOnly",type:"boolean"},{name:"secretRef",baseName:"secretRef",type:"V1SecretReference"},{name:"targetPortal",baseName:"targetPortal",type:"string"}];t.V1ISCSIPersistentVolumeSource=V1ISCSIPersistentVolumeSource;class V1ISCSIVolumeSource{static getAttributeTypeMap(){return V1ISCSIVolumeSource.attributeTypeMap}}V1ISCSIVolumeSource.discriminator=undefined;V1ISCSIVolumeSource.attributeTypeMap=[{name:"chapAuthDiscovery",baseName:"chapAuthDiscovery",type:"boolean"},{name:"chapAuthSession",baseName:"chapAuthSession",type:"boolean"},{name:"fsType",baseName:"fsType",type:"string"},{name:"initiatorName",baseName:"initiatorName",type:"string"},{name:"iqn",baseName:"iqn",type:"string"},{name:"iscsiInterface",baseName:"iscsiInterface",type:"string"},{name:"lun",baseName:"lun",type:"number"},{name:"portals",baseName:"portals",type:"Array"},{name:"readOnly",baseName:"readOnly",type:"boolean"},{name:"secretRef",baseName:"secretRef",type:"V1LocalObjectReference"},{name:"targetPortal",baseName:"targetPortal",type:"string"}];t.V1ISCSIVolumeSource=V1ISCSIVolumeSource;class V1Initializer{static getAttributeTypeMap(){return V1Initializer.attributeTypeMap}}V1Initializer.discriminator=undefined;V1Initializer.attributeTypeMap=[{name:"name",baseName:"name",type:"string"}];t.V1Initializer=V1Initializer;class V1Initializers{static getAttributeTypeMap(){return V1Initializers.attributeTypeMap}}V1Initializers.discriminator=undefined;V1Initializers.attributeTypeMap=[{name:"pending",baseName:"pending",type:"Array"},{name:"result",baseName:"result",type:"V1Status"}];t.V1Initializers=V1Initializers;class V1Job{static getAttributeTypeMap(){return V1Job.attributeTypeMap}}V1Job.discriminator=undefined;V1Job.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1JobSpec"},{name:"status",baseName:"status",type:"V1JobStatus"}];t.V1Job=V1Job;class V1JobCondition{static getAttributeTypeMap(){return V1JobCondition.attributeTypeMap}}V1JobCondition.discriminator=undefined;V1JobCondition.attributeTypeMap=[{name:"lastProbeTime",baseName:"lastProbeTime",type:"Date"},{name:"lastTransitionTime",baseName:"lastTransitionTime",type:"Date"},{name:"message",baseName:"message",type:"string"},{name:"reason",baseName:"reason",type:"string"},{name:"status",baseName:"status",type:"string"},{name:"type",baseName:"type",type:"string"}];t.V1JobCondition=V1JobCondition;class V1JobList{static getAttributeTypeMap(){return V1JobList.attributeTypeMap}}V1JobList.discriminator=undefined;V1JobList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1JobList=V1JobList;class V1JobSpec{static getAttributeTypeMap(){return V1JobSpec.attributeTypeMap}}V1JobSpec.discriminator=undefined;V1JobSpec.attributeTypeMap=[{name:"activeDeadlineSeconds",baseName:"activeDeadlineSeconds",type:"number"},{name:"backoffLimit",baseName:"backoffLimit",type:"number"},{name:"completions",baseName:"completions",type:"number"},{name:"manualSelector",baseName:"manualSelector",type:"boolean"},{name:"parallelism",baseName:"parallelism",type:"number"},{name:"selector",baseName:"selector",type:"V1LabelSelector"},{name:"template",baseName:"template",type:"V1PodTemplateSpec"},{name:"ttlSecondsAfterFinished",baseName:"ttlSecondsAfterFinished",type:"number"}];t.V1JobSpec=V1JobSpec;class V1JobStatus{static getAttributeTypeMap(){return V1JobStatus.attributeTypeMap}}V1JobStatus.discriminator=undefined;V1JobStatus.attributeTypeMap=[{name:"active",baseName:"active",type:"number"},{name:"completionTime",baseName:"completionTime",type:"Date"},{name:"conditions",baseName:"conditions",type:"Array"},{name:"failed",baseName:"failed",type:"number"},{name:"startTime",baseName:"startTime",type:"Date"},{name:"succeeded",baseName:"succeeded",type:"number"}];t.V1JobStatus=V1JobStatus;class V1KeyToPath{static getAttributeTypeMap(){return V1KeyToPath.attributeTypeMap}}V1KeyToPath.discriminator=undefined;V1KeyToPath.attributeTypeMap=[{name:"key",baseName:"key",type:"string"},{name:"mode",baseName:"mode",type:"number"},{name:"path",baseName:"path",type:"string"}];t.V1KeyToPath=V1KeyToPath;class V1LabelSelector{static getAttributeTypeMap(){return V1LabelSelector.attributeTypeMap}}V1LabelSelector.discriminator=undefined;V1LabelSelector.attributeTypeMap=[{name:"matchExpressions",baseName:"matchExpressions",type:"Array"},{name:"matchLabels",baseName:"matchLabels",type:"{ [key: string]: string; }"}];t.V1LabelSelector=V1LabelSelector;class V1LabelSelectorRequirement{static getAttributeTypeMap(){return V1LabelSelectorRequirement.attributeTypeMap}}V1LabelSelectorRequirement.discriminator=undefined;V1LabelSelectorRequirement.attributeTypeMap=[{name:"key",baseName:"key",type:"string"},{name:"operator",baseName:"operator",type:"string"},{name:"values",baseName:"values",type:"Array"}];t.V1LabelSelectorRequirement=V1LabelSelectorRequirement;class V1Lifecycle{static getAttributeTypeMap(){return V1Lifecycle.attributeTypeMap}}V1Lifecycle.discriminator=undefined;V1Lifecycle.attributeTypeMap=[{name:"postStart",baseName:"postStart",type:"V1Handler"},{name:"preStop",baseName:"preStop",type:"V1Handler"}];t.V1Lifecycle=V1Lifecycle;class V1LimitRange{static getAttributeTypeMap(){return V1LimitRange.attributeTypeMap}}V1LimitRange.discriminator=undefined;V1LimitRange.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1LimitRangeSpec"}];t.V1LimitRange=V1LimitRange;class V1LimitRangeItem{static getAttributeTypeMap(){return V1LimitRangeItem.attributeTypeMap}}V1LimitRangeItem.discriminator=undefined;V1LimitRangeItem.attributeTypeMap=[{name:"_default",baseName:"default",type:"{ [key: string]: string; }"},{name:"defaultRequest",baseName:"defaultRequest",type:"{ [key: string]: string; }"},{name:"max",baseName:"max",type:"{ [key: string]: string; }"},{name:"maxLimitRequestRatio",baseName:"maxLimitRequestRatio",type:"{ [key: string]: string; }"},{name:"min",baseName:"min",type:"{ [key: string]: string; }"},{name:"type",baseName:"type",type:"string"}];t.V1LimitRangeItem=V1LimitRangeItem;class V1LimitRangeList{static getAttributeTypeMap(){return V1LimitRangeList.attributeTypeMap}}V1LimitRangeList.discriminator=undefined;V1LimitRangeList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1LimitRangeList=V1LimitRangeList;class V1LimitRangeSpec{static getAttributeTypeMap(){return V1LimitRangeSpec.attributeTypeMap}}V1LimitRangeSpec.discriminator=undefined;V1LimitRangeSpec.attributeTypeMap=[{name:"limits",baseName:"limits",type:"Array"}];t.V1LimitRangeSpec=V1LimitRangeSpec;class V1ListMeta{static getAttributeTypeMap(){return V1ListMeta.attributeTypeMap}}V1ListMeta.discriminator=undefined;V1ListMeta.attributeTypeMap=[{name:"_continue",baseName:"continue",type:"string"},{name:"resourceVersion",baseName:"resourceVersion",type:"string"},{name:"selfLink",baseName:"selfLink",type:"string"}];t.V1ListMeta=V1ListMeta;class V1LoadBalancerIngress{static getAttributeTypeMap(){return V1LoadBalancerIngress.attributeTypeMap}}V1LoadBalancerIngress.discriminator=undefined;V1LoadBalancerIngress.attributeTypeMap=[{name:"hostname",baseName:"hostname",type:"string"},{name:"ip",baseName:"ip",type:"string"}];t.V1LoadBalancerIngress=V1LoadBalancerIngress;class V1LoadBalancerStatus{static getAttributeTypeMap(){return V1LoadBalancerStatus.attributeTypeMap}}V1LoadBalancerStatus.discriminator=undefined;V1LoadBalancerStatus.attributeTypeMap=[{name:"ingress",baseName:"ingress",type:"Array"}];t.V1LoadBalancerStatus=V1LoadBalancerStatus;class V1LocalObjectReference{static getAttributeTypeMap(){return V1LocalObjectReference.attributeTypeMap}}V1LocalObjectReference.discriminator=undefined;V1LocalObjectReference.attributeTypeMap=[{name:"name",baseName:"name",type:"string"}];t.V1LocalObjectReference=V1LocalObjectReference;class V1LocalSubjectAccessReview{static getAttributeTypeMap(){return V1LocalSubjectAccessReview.attributeTypeMap}}V1LocalSubjectAccessReview.discriminator=undefined;V1LocalSubjectAccessReview.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1SubjectAccessReviewSpec"},{name:"status",baseName:"status",type:"V1SubjectAccessReviewStatus"}];t.V1LocalSubjectAccessReview=V1LocalSubjectAccessReview;class V1LocalVolumeSource{static getAttributeTypeMap(){return V1LocalVolumeSource.attributeTypeMap}}V1LocalVolumeSource.discriminator=undefined;V1LocalVolumeSource.attributeTypeMap=[{name:"fsType",baseName:"fsType",type:"string"},{name:"path",baseName:"path",type:"string"}];t.V1LocalVolumeSource=V1LocalVolumeSource;class V1NFSVolumeSource{static getAttributeTypeMap(){return V1NFSVolumeSource.attributeTypeMap}}V1NFSVolumeSource.discriminator=undefined;V1NFSVolumeSource.attributeTypeMap=[{name:"path",baseName:"path",type:"string"},{name:"readOnly",baseName:"readOnly",type:"boolean"},{name:"server",baseName:"server",type:"string"}];t.V1NFSVolumeSource=V1NFSVolumeSource;class V1Namespace{static getAttributeTypeMap(){return V1Namespace.attributeTypeMap}}V1Namespace.discriminator=undefined;V1Namespace.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1NamespaceSpec"},{name:"status",baseName:"status",type:"V1NamespaceStatus"}];t.V1Namespace=V1Namespace;class V1NamespaceList{static getAttributeTypeMap(){return V1NamespaceList.attributeTypeMap}}V1NamespaceList.discriminator=undefined;V1NamespaceList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1NamespaceList=V1NamespaceList;class V1NamespaceSpec{static getAttributeTypeMap(){return V1NamespaceSpec.attributeTypeMap}}V1NamespaceSpec.discriminator=undefined;V1NamespaceSpec.attributeTypeMap=[{name:"finalizers",baseName:"finalizers",type:"Array"}];t.V1NamespaceSpec=V1NamespaceSpec;class V1NamespaceStatus{static getAttributeTypeMap(){return V1NamespaceStatus.attributeTypeMap}}V1NamespaceStatus.discriminator=undefined;V1NamespaceStatus.attributeTypeMap=[{name:"phase",baseName:"phase",type:"string"}];t.V1NamespaceStatus=V1NamespaceStatus;class V1NetworkPolicy{static getAttributeTypeMap(){return V1NetworkPolicy.attributeTypeMap}}V1NetworkPolicy.discriminator=undefined;V1NetworkPolicy.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1NetworkPolicySpec"}];t.V1NetworkPolicy=V1NetworkPolicy;class V1NetworkPolicyEgressRule{static getAttributeTypeMap(){return V1NetworkPolicyEgressRule.attributeTypeMap}}V1NetworkPolicyEgressRule.discriminator=undefined;V1NetworkPolicyEgressRule.attributeTypeMap=[{name:"ports",baseName:"ports",type:"Array"},{name:"to",baseName:"to",type:"Array"}];t.V1NetworkPolicyEgressRule=V1NetworkPolicyEgressRule;class V1NetworkPolicyIngressRule{static getAttributeTypeMap(){return V1NetworkPolicyIngressRule.attributeTypeMap}}V1NetworkPolicyIngressRule.discriminator=undefined;V1NetworkPolicyIngressRule.attributeTypeMap=[{name:"from",baseName:"from",type:"Array"},{name:"ports",baseName:"ports",type:"Array"}];t.V1NetworkPolicyIngressRule=V1NetworkPolicyIngressRule;class V1NetworkPolicyList{static getAttributeTypeMap(){return V1NetworkPolicyList.attributeTypeMap}}V1NetworkPolicyList.discriminator=undefined;V1NetworkPolicyList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1NetworkPolicyList=V1NetworkPolicyList;class V1NetworkPolicyPeer{static getAttributeTypeMap(){return V1NetworkPolicyPeer.attributeTypeMap}}V1NetworkPolicyPeer.discriminator=undefined;V1NetworkPolicyPeer.attributeTypeMap=[{name:"ipBlock",baseName:"ipBlock",type:"V1IPBlock"},{name:"namespaceSelector",baseName:"namespaceSelector",type:"V1LabelSelector"},{name:"podSelector",baseName:"podSelector",type:"V1LabelSelector"}];t.V1NetworkPolicyPeer=V1NetworkPolicyPeer;class V1NetworkPolicyPort{static getAttributeTypeMap(){return V1NetworkPolicyPort.attributeTypeMap}}V1NetworkPolicyPort.discriminator=undefined;V1NetworkPolicyPort.attributeTypeMap=[{name:"port",baseName:"port",type:"any"},{name:"protocol",baseName:"protocol",type:"string"}];t.V1NetworkPolicyPort=V1NetworkPolicyPort;class V1NetworkPolicySpec{static getAttributeTypeMap(){return V1NetworkPolicySpec.attributeTypeMap}}V1NetworkPolicySpec.discriminator=undefined;V1NetworkPolicySpec.attributeTypeMap=[{name:"egress",baseName:"egress",type:"Array"},{name:"ingress",baseName:"ingress",type:"Array"},{name:"podSelector",baseName:"podSelector",type:"V1LabelSelector"},{name:"policyTypes",baseName:"policyTypes",type:"Array"}];t.V1NetworkPolicySpec=V1NetworkPolicySpec;class V1Node{static getAttributeTypeMap(){return V1Node.attributeTypeMap}}V1Node.discriminator=undefined;V1Node.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1NodeSpec"},{name:"status",baseName:"status",type:"V1NodeStatus"}];t.V1Node=V1Node;class V1NodeAddress{static getAttributeTypeMap(){return V1NodeAddress.attributeTypeMap}}V1NodeAddress.discriminator=undefined;V1NodeAddress.attributeTypeMap=[{name:"address",baseName:"address",type:"string"},{name:"type",baseName:"type",type:"string"}];t.V1NodeAddress=V1NodeAddress;class V1NodeAffinity{static getAttributeTypeMap(){return V1NodeAffinity.attributeTypeMap}}V1NodeAffinity.discriminator=undefined;V1NodeAffinity.attributeTypeMap=[{name:"preferredDuringSchedulingIgnoredDuringExecution",baseName:"preferredDuringSchedulingIgnoredDuringExecution",type:"Array"},{name:"requiredDuringSchedulingIgnoredDuringExecution",baseName:"requiredDuringSchedulingIgnoredDuringExecution",type:"V1NodeSelector"}];t.V1NodeAffinity=V1NodeAffinity;class V1NodeCondition{static getAttributeTypeMap(){return V1NodeCondition.attributeTypeMap}}V1NodeCondition.discriminator=undefined;V1NodeCondition.attributeTypeMap=[{name:"lastHeartbeatTime",baseName:"lastHeartbeatTime",type:"Date"},{name:"lastTransitionTime",baseName:"lastTransitionTime",type:"Date"},{name:"message",baseName:"message",type:"string"},{name:"reason",baseName:"reason",type:"string"},{name:"status",baseName:"status",type:"string"},{name:"type",baseName:"type",type:"string"}];t.V1NodeCondition=V1NodeCondition;class V1NodeConfigSource{static getAttributeTypeMap(){return V1NodeConfigSource.attributeTypeMap}}V1NodeConfigSource.discriminator=undefined;V1NodeConfigSource.attributeTypeMap=[{name:"configMap",baseName:"configMap",type:"V1ConfigMapNodeConfigSource"}];t.V1NodeConfigSource=V1NodeConfigSource;class V1NodeConfigStatus{static getAttributeTypeMap(){return V1NodeConfigStatus.attributeTypeMap}}V1NodeConfigStatus.discriminator=undefined;V1NodeConfigStatus.attributeTypeMap=[{name:"active",baseName:"active",type:"V1NodeConfigSource"},{name:"assigned",baseName:"assigned",type:"V1NodeConfigSource"},{name:"error",baseName:"error",type:"string"},{name:"lastKnownGood",baseName:"lastKnownGood",type:"V1NodeConfigSource"}];t.V1NodeConfigStatus=V1NodeConfigStatus;class V1NodeDaemonEndpoints{static getAttributeTypeMap(){return V1NodeDaemonEndpoints.attributeTypeMap}}V1NodeDaemonEndpoints.discriminator=undefined;V1NodeDaemonEndpoints.attributeTypeMap=[{name:"kubeletEndpoint",baseName:"kubeletEndpoint",type:"V1DaemonEndpoint"}];t.V1NodeDaemonEndpoints=V1NodeDaemonEndpoints;class V1NodeList{static getAttributeTypeMap(){return V1NodeList.attributeTypeMap}}V1NodeList.discriminator=undefined;V1NodeList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1NodeList=V1NodeList;class V1NodeSelector{static getAttributeTypeMap(){return V1NodeSelector.attributeTypeMap}}V1NodeSelector.discriminator=undefined;V1NodeSelector.attributeTypeMap=[{name:"nodeSelectorTerms",baseName:"nodeSelectorTerms",type:"Array"}];t.V1NodeSelector=V1NodeSelector;class V1NodeSelectorRequirement{static getAttributeTypeMap(){return V1NodeSelectorRequirement.attributeTypeMap}}V1NodeSelectorRequirement.discriminator=undefined;V1NodeSelectorRequirement.attributeTypeMap=[{name:"key",baseName:"key",type:"string"},{name:"operator",baseName:"operator",type:"string"},{name:"values",baseName:"values",type:"Array"}];t.V1NodeSelectorRequirement=V1NodeSelectorRequirement;class V1NodeSelectorTerm{static getAttributeTypeMap(){return V1NodeSelectorTerm.attributeTypeMap}}V1NodeSelectorTerm.discriminator=undefined;V1NodeSelectorTerm.attributeTypeMap=[{name:"matchExpressions",baseName:"matchExpressions",type:"Array"},{name:"matchFields",baseName:"matchFields",type:"Array"}];t.V1NodeSelectorTerm=V1NodeSelectorTerm;class V1NodeSpec{static getAttributeTypeMap(){return V1NodeSpec.attributeTypeMap}}V1NodeSpec.discriminator=undefined;V1NodeSpec.attributeTypeMap=[{name:"configSource",baseName:"configSource",type:"V1NodeConfigSource"},{name:"externalID",baseName:"externalID",type:"string"},{name:"podCIDR",baseName:"podCIDR",type:"string"},{name:"providerID",baseName:"providerID",type:"string"},{name:"taints",baseName:"taints",type:"Array"},{name:"unschedulable",baseName:"unschedulable",type:"boolean"}];t.V1NodeSpec=V1NodeSpec;class V1NodeStatus{static getAttributeTypeMap(){return V1NodeStatus.attributeTypeMap}}V1NodeStatus.discriminator=undefined;V1NodeStatus.attributeTypeMap=[{name:"addresses",baseName:"addresses",type:"Array"},{name:"allocatable",baseName:"allocatable",type:"{ [key: string]: string; }"},{name:"capacity",baseName:"capacity",type:"{ [key: string]: string; }"},{name:"conditions",baseName:"conditions",type:"Array"},{name:"config",baseName:"config",type:"V1NodeConfigStatus"},{name:"daemonEndpoints",baseName:"daemonEndpoints",type:"V1NodeDaemonEndpoints"},{name:"images",baseName:"images",type:"Array"},{name:"nodeInfo",baseName:"nodeInfo",type:"V1NodeSystemInfo"},{name:"phase",baseName:"phase",type:"string"},{name:"volumesAttached",baseName:"volumesAttached",type:"Array"},{name:"volumesInUse",baseName:"volumesInUse",type:"Array"}];t.V1NodeStatus=V1NodeStatus;class V1NodeSystemInfo{static getAttributeTypeMap(){return V1NodeSystemInfo.attributeTypeMap}}V1NodeSystemInfo.discriminator=undefined;V1NodeSystemInfo.attributeTypeMap=[{name:"architecture",baseName:"architecture",type:"string"},{name:"bootID",baseName:"bootID",type:"string"},{name:"containerRuntimeVersion",baseName:"containerRuntimeVersion",type:"string"},{name:"kernelVersion",baseName:"kernelVersion",type:"string"},{name:"kubeProxyVersion",baseName:"kubeProxyVersion",type:"string"},{name:"kubeletVersion",baseName:"kubeletVersion",type:"string"},{name:"machineID",baseName:"machineID",type:"string"},{name:"operatingSystem",baseName:"operatingSystem",type:"string"},{name:"osImage",baseName:"osImage",type:"string"},{name:"systemUUID",baseName:"systemUUID",type:"string"}];t.V1NodeSystemInfo=V1NodeSystemInfo;class V1NonResourceAttributes{static getAttributeTypeMap(){return V1NonResourceAttributes.attributeTypeMap}}V1NonResourceAttributes.discriminator=undefined;V1NonResourceAttributes.attributeTypeMap=[{name:"path",baseName:"path",type:"string"},{name:"verb",baseName:"verb",type:"string"}];t.V1NonResourceAttributes=V1NonResourceAttributes;class V1NonResourceRule{static getAttributeTypeMap(){return V1NonResourceRule.attributeTypeMap}}V1NonResourceRule.discriminator=undefined;V1NonResourceRule.attributeTypeMap=[{name:"nonResourceURLs",baseName:"nonResourceURLs",type:"Array"},{name:"verbs",baseName:"verbs",type:"Array"}];t.V1NonResourceRule=V1NonResourceRule;class V1ObjectFieldSelector{static getAttributeTypeMap(){return V1ObjectFieldSelector.attributeTypeMap}}V1ObjectFieldSelector.discriminator=undefined;V1ObjectFieldSelector.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"fieldPath",baseName:"fieldPath",type:"string"}];t.V1ObjectFieldSelector=V1ObjectFieldSelector;class V1ObjectMeta{static getAttributeTypeMap(){return V1ObjectMeta.attributeTypeMap}}V1ObjectMeta.discriminator=undefined;V1ObjectMeta.attributeTypeMap=[{name:"annotations",baseName:"annotations",type:"{ [key: string]: string; }"},{name:"clusterName",baseName:"clusterName",type:"string"},{name:"creationTimestamp",baseName:"creationTimestamp",type:"Date"},{name:"deletionGracePeriodSeconds",baseName:"deletionGracePeriodSeconds",type:"number"},{name:"deletionTimestamp",baseName:"deletionTimestamp",type:"Date"},{name:"finalizers",baseName:"finalizers",type:"Array"},{name:"generateName",baseName:"generateName",type:"string"},{name:"generation",baseName:"generation",type:"number"},{name:"initializers",baseName:"initializers",type:"V1Initializers"},{name:"labels",baseName:"labels",type:"{ [key: string]: string; }"},{name:"name",baseName:"name",type:"string"},{name:"namespace",baseName:"namespace",type:"string"},{name:"ownerReferences",baseName:"ownerReferences",type:"Array"},{name:"resourceVersion",baseName:"resourceVersion",type:"string"},{name:"selfLink",baseName:"selfLink",type:"string"},{name:"uid",baseName:"uid",type:"string"}];t.V1ObjectMeta=V1ObjectMeta;class V1ObjectReference{static getAttributeTypeMap(){return V1ObjectReference.attributeTypeMap}}V1ObjectReference.discriminator=undefined;V1ObjectReference.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"fieldPath",baseName:"fieldPath",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"name",baseName:"name",type:"string"},{name:"namespace",baseName:"namespace",type:"string"},{name:"resourceVersion",baseName:"resourceVersion",type:"string"},{name:"uid",baseName:"uid",type:"string"}];t.V1ObjectReference=V1ObjectReference;class V1OwnerReference{static getAttributeTypeMap(){return V1OwnerReference.attributeTypeMap}}V1OwnerReference.discriminator=undefined;V1OwnerReference.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"blockOwnerDeletion",baseName:"blockOwnerDeletion",type:"boolean"},{name:"controller",baseName:"controller",type:"boolean"},{name:"kind",baseName:"kind",type:"string"},{name:"name",baseName:"name",type:"string"},{name:"uid",baseName:"uid",type:"string"}];t.V1OwnerReference=V1OwnerReference;class V1PersistentVolume{static getAttributeTypeMap(){return V1PersistentVolume.attributeTypeMap}}V1PersistentVolume.discriminator=undefined;V1PersistentVolume.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1PersistentVolumeSpec"},{name:"status",baseName:"status",type:"V1PersistentVolumeStatus"}];t.V1PersistentVolume=V1PersistentVolume;class V1PersistentVolumeClaim{static getAttributeTypeMap(){return V1PersistentVolumeClaim.attributeTypeMap}}V1PersistentVolumeClaim.discriminator=undefined;V1PersistentVolumeClaim.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1PersistentVolumeClaimSpec"},{name:"status",baseName:"status",type:"V1PersistentVolumeClaimStatus"}];t.V1PersistentVolumeClaim=V1PersistentVolumeClaim;class V1PersistentVolumeClaimCondition{static getAttributeTypeMap(){return V1PersistentVolumeClaimCondition.attributeTypeMap}}V1PersistentVolumeClaimCondition.discriminator=undefined;V1PersistentVolumeClaimCondition.attributeTypeMap=[{name:"lastProbeTime",baseName:"lastProbeTime",type:"Date"},{name:"lastTransitionTime",baseName:"lastTransitionTime",type:"Date"},{name:"message",baseName:"message",type:"string"},{name:"reason",baseName:"reason",type:"string"},{name:"status",baseName:"status",type:"string"},{name:"type",baseName:"type",type:"string"}];t.V1PersistentVolumeClaimCondition=V1PersistentVolumeClaimCondition;class V1PersistentVolumeClaimList{static getAttributeTypeMap(){return V1PersistentVolumeClaimList.attributeTypeMap}}V1PersistentVolumeClaimList.discriminator=undefined;V1PersistentVolumeClaimList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1PersistentVolumeClaimList=V1PersistentVolumeClaimList;class V1PersistentVolumeClaimSpec{static getAttributeTypeMap(){return V1PersistentVolumeClaimSpec.attributeTypeMap}}V1PersistentVolumeClaimSpec.discriminator=undefined;V1PersistentVolumeClaimSpec.attributeTypeMap=[{name:"accessModes",baseName:"accessModes",type:"Array"},{name:"dataSource",baseName:"dataSource",type:"V1TypedLocalObjectReference"},{name:"resources",baseName:"resources",type:"V1ResourceRequirements"},{name:"selector",baseName:"selector",type:"V1LabelSelector"},{name:"storageClassName",baseName:"storageClassName",type:"string"},{name:"volumeMode",baseName:"volumeMode",type:"string"},{name:"volumeName",baseName:"volumeName",type:"string"}];t.V1PersistentVolumeClaimSpec=V1PersistentVolumeClaimSpec;class V1PersistentVolumeClaimStatus{static getAttributeTypeMap(){return V1PersistentVolumeClaimStatus.attributeTypeMap}}V1PersistentVolumeClaimStatus.discriminator=undefined;V1PersistentVolumeClaimStatus.attributeTypeMap=[{name:"accessModes",baseName:"accessModes",type:"Array"},{name:"capacity",baseName:"capacity",type:"{ [key: string]: string; }"},{name:"conditions",baseName:"conditions",type:"Array"},{name:"phase",baseName:"phase",type:"string"}];t.V1PersistentVolumeClaimStatus=V1PersistentVolumeClaimStatus;class V1PersistentVolumeClaimVolumeSource{static getAttributeTypeMap(){return V1PersistentVolumeClaimVolumeSource.attributeTypeMap}}V1PersistentVolumeClaimVolumeSource.discriminator=undefined;V1PersistentVolumeClaimVolumeSource.attributeTypeMap=[{name:"claimName",baseName:"claimName",type:"string"},{name:"readOnly",baseName:"readOnly",type:"boolean"}];t.V1PersistentVolumeClaimVolumeSource=V1PersistentVolumeClaimVolumeSource;class V1PersistentVolumeList{static getAttributeTypeMap(){return V1PersistentVolumeList.attributeTypeMap}}V1PersistentVolumeList.discriminator=undefined;V1PersistentVolumeList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1PersistentVolumeList=V1PersistentVolumeList;class V1PersistentVolumeSpec{static getAttributeTypeMap(){return V1PersistentVolumeSpec.attributeTypeMap}}V1PersistentVolumeSpec.discriminator=undefined;V1PersistentVolumeSpec.attributeTypeMap=[{name:"accessModes",baseName:"accessModes",type:"Array"},{name:"awsElasticBlockStore",baseName:"awsElasticBlockStore",type:"V1AWSElasticBlockStoreVolumeSource"},{name:"azureDisk",baseName:"azureDisk",type:"V1AzureDiskVolumeSource"},{name:"azureFile",baseName:"azureFile",type:"V1AzureFilePersistentVolumeSource"},{name:"capacity",baseName:"capacity",type:"{ [key: string]: string; }"},{name:"cephfs",baseName:"cephfs",type:"V1CephFSPersistentVolumeSource"},{name:"cinder",baseName:"cinder",type:"V1CinderPersistentVolumeSource"},{name:"claimRef",baseName:"claimRef",type:"V1ObjectReference"},{name:"csi",baseName:"csi",type:"V1CSIPersistentVolumeSource"},{name:"fc",baseName:"fc",type:"V1FCVolumeSource"},{name:"flexVolume",baseName:"flexVolume",type:"V1FlexPersistentVolumeSource"},{name:"flocker",baseName:"flocker",type:"V1FlockerVolumeSource"},{name:"gcePersistentDisk",baseName:"gcePersistentDisk",type:"V1GCEPersistentDiskVolumeSource"},{name:"glusterfs",baseName:"glusterfs",type:"V1GlusterfsPersistentVolumeSource"},{name:"hostPath",baseName:"hostPath",type:"V1HostPathVolumeSource"},{name:"iscsi",baseName:"iscsi",type:"V1ISCSIPersistentVolumeSource"},{name:"local",baseName:"local",type:"V1LocalVolumeSource"},{name:"mountOptions",baseName:"mountOptions",type:"Array"},{name:"nfs",baseName:"nfs",type:"V1NFSVolumeSource"},{name:"nodeAffinity",baseName:"nodeAffinity",type:"V1VolumeNodeAffinity"},{name:"persistentVolumeReclaimPolicy",baseName:"persistentVolumeReclaimPolicy",type:"string"},{name:"photonPersistentDisk",baseName:"photonPersistentDisk",type:"V1PhotonPersistentDiskVolumeSource"},{name:"portworxVolume",baseName:"portworxVolume",type:"V1PortworxVolumeSource"},{name:"quobyte",baseName:"quobyte",type:"V1QuobyteVolumeSource"},{name:"rbd",baseName:"rbd",type:"V1RBDPersistentVolumeSource"},{name:"scaleIO",baseName:"scaleIO",type:"V1ScaleIOPersistentVolumeSource"},{name:"storageClassName",baseName:"storageClassName",type:"string"},{name:"storageos",baseName:"storageos",type:"V1StorageOSPersistentVolumeSource"},{name:"volumeMode",baseName:"volumeMode",type:"string"},{name:"vsphereVolume",baseName:"vsphereVolume",type:"V1VsphereVirtualDiskVolumeSource"}];t.V1PersistentVolumeSpec=V1PersistentVolumeSpec;class V1PersistentVolumeStatus{static getAttributeTypeMap(){return V1PersistentVolumeStatus.attributeTypeMap}}V1PersistentVolumeStatus.discriminator=undefined;V1PersistentVolumeStatus.attributeTypeMap=[{name:"message",baseName:"message",type:"string"},{name:"phase",baseName:"phase",type:"string"},{name:"reason",baseName:"reason",type:"string"}];t.V1PersistentVolumeStatus=V1PersistentVolumeStatus;class V1PhotonPersistentDiskVolumeSource{static getAttributeTypeMap(){return V1PhotonPersistentDiskVolumeSource.attributeTypeMap}}V1PhotonPersistentDiskVolumeSource.discriminator=undefined;V1PhotonPersistentDiskVolumeSource.attributeTypeMap=[{name:"fsType",baseName:"fsType",type:"string"},{name:"pdID",baseName:"pdID",type:"string"}];t.V1PhotonPersistentDiskVolumeSource=V1PhotonPersistentDiskVolumeSource;class V1Pod{static getAttributeTypeMap(){return V1Pod.attributeTypeMap}}V1Pod.discriminator=undefined;V1Pod.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1PodSpec"},{name:"status",baseName:"status",type:"V1PodStatus"}];t.V1Pod=V1Pod;class V1PodAffinity{static getAttributeTypeMap(){return V1PodAffinity.attributeTypeMap}}V1PodAffinity.discriminator=undefined;V1PodAffinity.attributeTypeMap=[{name:"preferredDuringSchedulingIgnoredDuringExecution",baseName:"preferredDuringSchedulingIgnoredDuringExecution",type:"Array"},{name:"requiredDuringSchedulingIgnoredDuringExecution",baseName:"requiredDuringSchedulingIgnoredDuringExecution",type:"Array"}];t.V1PodAffinity=V1PodAffinity;class V1PodAffinityTerm{static getAttributeTypeMap(){return V1PodAffinityTerm.attributeTypeMap}}V1PodAffinityTerm.discriminator=undefined;V1PodAffinityTerm.attributeTypeMap=[{name:"labelSelector",baseName:"labelSelector",type:"V1LabelSelector"},{name:"namespaces",baseName:"namespaces",type:"Array"},{name:"topologyKey",baseName:"topologyKey",type:"string"}];t.V1PodAffinityTerm=V1PodAffinityTerm;class V1PodAntiAffinity{static getAttributeTypeMap(){return V1PodAntiAffinity.attributeTypeMap}}V1PodAntiAffinity.discriminator=undefined;V1PodAntiAffinity.attributeTypeMap=[{name:"preferredDuringSchedulingIgnoredDuringExecution",baseName:"preferredDuringSchedulingIgnoredDuringExecution",type:"Array"},{name:"requiredDuringSchedulingIgnoredDuringExecution",baseName:"requiredDuringSchedulingIgnoredDuringExecution",type:"Array"}];t.V1PodAntiAffinity=V1PodAntiAffinity;class V1PodCondition{static getAttributeTypeMap(){return V1PodCondition.attributeTypeMap}}V1PodCondition.discriminator=undefined;V1PodCondition.attributeTypeMap=[{name:"lastProbeTime",baseName:"lastProbeTime",type:"Date"},{name:"lastTransitionTime",baseName:"lastTransitionTime",type:"Date"},{name:"message",baseName:"message",type:"string"},{name:"reason",baseName:"reason",type:"string"},{name:"status",baseName:"status",type:"string"},{name:"type",baseName:"type",type:"string"}];t.V1PodCondition=V1PodCondition;class V1PodDNSConfig{static getAttributeTypeMap(){return V1PodDNSConfig.attributeTypeMap}}V1PodDNSConfig.discriminator=undefined;V1PodDNSConfig.attributeTypeMap=[{name:"nameservers",baseName:"nameservers",type:"Array"},{name:"options",baseName:"options",type:"Array"},{name:"searches",baseName:"searches",type:"Array"}];t.V1PodDNSConfig=V1PodDNSConfig;class V1PodDNSConfigOption{static getAttributeTypeMap(){return V1PodDNSConfigOption.attributeTypeMap}}V1PodDNSConfigOption.discriminator=undefined;V1PodDNSConfigOption.attributeTypeMap=[{name:"name",baseName:"name",type:"string"},{name:"value",baseName:"value",type:"string"}];t.V1PodDNSConfigOption=V1PodDNSConfigOption;class V1PodList{static getAttributeTypeMap(){return V1PodList.attributeTypeMap}}V1PodList.discriminator=undefined;V1PodList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1PodList=V1PodList;class V1PodReadinessGate{static getAttributeTypeMap(){return V1PodReadinessGate.attributeTypeMap}}V1PodReadinessGate.discriminator=undefined;V1PodReadinessGate.attributeTypeMap=[{name:"conditionType",baseName:"conditionType",type:"string"}];t.V1PodReadinessGate=V1PodReadinessGate;class V1PodSecurityContext{static getAttributeTypeMap(){return V1PodSecurityContext.attributeTypeMap}}V1PodSecurityContext.discriminator=undefined;V1PodSecurityContext.attributeTypeMap=[{name:"fsGroup",baseName:"fsGroup",type:"number"},{name:"runAsGroup",baseName:"runAsGroup",type:"number"},{name:"runAsNonRoot",baseName:"runAsNonRoot",type:"boolean"},{name:"runAsUser",baseName:"runAsUser",type:"number"},{name:"seLinuxOptions",baseName:"seLinuxOptions",type:"V1SELinuxOptions"},{name:"supplementalGroups",baseName:"supplementalGroups",type:"Array"},{name:"sysctls",baseName:"sysctls",type:"Array"}];t.V1PodSecurityContext=V1PodSecurityContext;class V1PodSpec{static getAttributeTypeMap(){return V1PodSpec.attributeTypeMap}}V1PodSpec.discriminator=undefined;V1PodSpec.attributeTypeMap=[{name:"activeDeadlineSeconds",baseName:"activeDeadlineSeconds",type:"number"},{name:"affinity",baseName:"affinity",type:"V1Affinity"},{name:"automountServiceAccountToken",baseName:"automountServiceAccountToken",type:"boolean"},{name:"containers",baseName:"containers",type:"Array"},{name:"dnsConfig",baseName:"dnsConfig",type:"V1PodDNSConfig"},{name:"dnsPolicy",baseName:"dnsPolicy",type:"string"},{name:"enableServiceLinks",baseName:"enableServiceLinks",type:"boolean"},{name:"hostAliases",baseName:"hostAliases",type:"Array"},{name:"hostIPC",baseName:"hostIPC",type:"boolean"},{name:"hostNetwork",baseName:"hostNetwork",type:"boolean"},{name:"hostPID",baseName:"hostPID",type:"boolean"},{name:"hostname",baseName:"hostname",type:"string"},{name:"imagePullSecrets",baseName:"imagePullSecrets",type:"Array"},{name:"initContainers",baseName:"initContainers",type:"Array"},{name:"nodeName",baseName:"nodeName",type:"string"},{name:"nodeSelector",baseName:"nodeSelector",type:"{ [key: string]: string; }"},{name:"priority",baseName:"priority",type:"number"},{name:"priorityClassName",baseName:"priorityClassName",type:"string"},{name:"readinessGates",baseName:"readinessGates",type:"Array"},{name:"restartPolicy",baseName:"restartPolicy",type:"string"},{name:"runtimeClassName",baseName:"runtimeClassName",type:"string"},{name:"schedulerName",baseName:"schedulerName",type:"string"},{name:"securityContext",baseName:"securityContext",type:"V1PodSecurityContext"},{name:"serviceAccount",baseName:"serviceAccount",type:"string"},{name:"serviceAccountName",baseName:"serviceAccountName",type:"string"},{name:"shareProcessNamespace",baseName:"shareProcessNamespace",type:"boolean"},{name:"subdomain",baseName:"subdomain",type:"string"},{name:"terminationGracePeriodSeconds",baseName:"terminationGracePeriodSeconds",type:"number"},{name:"tolerations",baseName:"tolerations",type:"Array"},{name:"volumes",baseName:"volumes",type:"Array"}];t.V1PodSpec=V1PodSpec;class V1PodStatus{static getAttributeTypeMap(){return V1PodStatus.attributeTypeMap}}V1PodStatus.discriminator=undefined;V1PodStatus.attributeTypeMap=[{name:"conditions",baseName:"conditions",type:"Array"},{name:"containerStatuses",baseName:"containerStatuses",type:"Array"},{name:"hostIP",baseName:"hostIP",type:"string"},{name:"initContainerStatuses",baseName:"initContainerStatuses",type:"Array"},{name:"message",baseName:"message",type:"string"},{name:"nominatedNodeName",baseName:"nominatedNodeName",type:"string"},{name:"phase",baseName:"phase",type:"string"},{name:"podIP",baseName:"podIP",type:"string"},{name:"qosClass",baseName:"qosClass",type:"string"},{name:"reason",baseName:"reason",type:"string"},{name:"startTime",baseName:"startTime",type:"Date"}];t.V1PodStatus=V1PodStatus;class V1PodTemplate{static getAttributeTypeMap(){return V1PodTemplate.attributeTypeMap}}V1PodTemplate.discriminator=undefined;V1PodTemplate.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"template",baseName:"template",type:"V1PodTemplateSpec"}];t.V1PodTemplate=V1PodTemplate;class V1PodTemplateList{static getAttributeTypeMap(){return V1PodTemplateList.attributeTypeMap}}V1PodTemplateList.discriminator=undefined;V1PodTemplateList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1PodTemplateList=V1PodTemplateList;class V1PodTemplateSpec{static getAttributeTypeMap(){return V1PodTemplateSpec.attributeTypeMap}}V1PodTemplateSpec.discriminator=undefined;V1PodTemplateSpec.attributeTypeMap=[{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1PodSpec"}];t.V1PodTemplateSpec=V1PodTemplateSpec;class V1PolicyRule{static getAttributeTypeMap(){return V1PolicyRule.attributeTypeMap}}V1PolicyRule.discriminator=undefined;V1PolicyRule.attributeTypeMap=[{name:"apiGroups",baseName:"apiGroups",type:"Array"},{name:"nonResourceURLs",baseName:"nonResourceURLs",type:"Array"},{name:"resourceNames",baseName:"resourceNames",type:"Array"},{name:"resources",baseName:"resources",type:"Array"},{name:"verbs",baseName:"verbs",type:"Array"}];t.V1PolicyRule=V1PolicyRule;class V1PortworxVolumeSource{static getAttributeTypeMap(){return V1PortworxVolumeSource.attributeTypeMap}}V1PortworxVolumeSource.discriminator=undefined;V1PortworxVolumeSource.attributeTypeMap=[{name:"fsType",baseName:"fsType",type:"string"},{name:"readOnly",baseName:"readOnly",type:"boolean"},{name:"volumeID",baseName:"volumeID",type:"string"}];t.V1PortworxVolumeSource=V1PortworxVolumeSource;class V1Preconditions{static getAttributeTypeMap(){return V1Preconditions.attributeTypeMap}}V1Preconditions.discriminator=undefined;V1Preconditions.attributeTypeMap=[{name:"uid",baseName:"uid",type:"string"}];t.V1Preconditions=V1Preconditions;class V1PreferredSchedulingTerm{static getAttributeTypeMap(){return V1PreferredSchedulingTerm.attributeTypeMap}}V1PreferredSchedulingTerm.discriminator=undefined;V1PreferredSchedulingTerm.attributeTypeMap=[{name:"preference",baseName:"preference",type:"V1NodeSelectorTerm"},{name:"weight",baseName:"weight",type:"number"}];t.V1PreferredSchedulingTerm=V1PreferredSchedulingTerm;class V1Probe{static getAttributeTypeMap(){return V1Probe.attributeTypeMap}}V1Probe.discriminator=undefined;V1Probe.attributeTypeMap=[{name:"exec",baseName:"exec",type:"V1ExecAction"},{name:"failureThreshold",baseName:"failureThreshold",type:"number"},{name:"httpGet",baseName:"httpGet",type:"V1HTTPGetAction"},{name:"initialDelaySeconds",baseName:"initialDelaySeconds",type:"number"},{name:"periodSeconds",baseName:"periodSeconds",type:"number"},{name:"successThreshold",baseName:"successThreshold",type:"number"},{name:"tcpSocket",baseName:"tcpSocket",type:"V1TCPSocketAction"},{name:"timeoutSeconds",baseName:"timeoutSeconds",type:"number"}];t.V1Probe=V1Probe;class V1ProjectedVolumeSource{static getAttributeTypeMap(){return V1ProjectedVolumeSource.attributeTypeMap}}V1ProjectedVolumeSource.discriminator=undefined;V1ProjectedVolumeSource.attributeTypeMap=[{name:"defaultMode",baseName:"defaultMode",type:"number"},{name:"sources",baseName:"sources",type:"Array"}];t.V1ProjectedVolumeSource=V1ProjectedVolumeSource;class V1QuobyteVolumeSource{static getAttributeTypeMap(){return V1QuobyteVolumeSource.attributeTypeMap}}V1QuobyteVolumeSource.discriminator=undefined;V1QuobyteVolumeSource.attributeTypeMap=[{name:"group",baseName:"group",type:"string"},{name:"readOnly",baseName:"readOnly",type:"boolean"},{name:"registry",baseName:"registry",type:"string"},{name:"user",baseName:"user",type:"string"},{name:"volume",baseName:"volume",type:"string"}];t.V1QuobyteVolumeSource=V1QuobyteVolumeSource;class V1RBDPersistentVolumeSource{static getAttributeTypeMap(){return V1RBDPersistentVolumeSource.attributeTypeMap}}V1RBDPersistentVolumeSource.discriminator=undefined;V1RBDPersistentVolumeSource.attributeTypeMap=[{name:"fsType",baseName:"fsType",type:"string"},{name:"image",baseName:"image",type:"string"},{name:"keyring",baseName:"keyring",type:"string"},{name:"monitors",baseName:"monitors",type:"Array"},{name:"pool",baseName:"pool",type:"string"},{name:"readOnly",baseName:"readOnly",type:"boolean"},{name:"secretRef",baseName:"secretRef",type:"V1SecretReference"},{name:"user",baseName:"user",type:"string"}];t.V1RBDPersistentVolumeSource=V1RBDPersistentVolumeSource;class V1RBDVolumeSource{static getAttributeTypeMap(){return V1RBDVolumeSource.attributeTypeMap}}V1RBDVolumeSource.discriminator=undefined;V1RBDVolumeSource.attributeTypeMap=[{name:"fsType",baseName:"fsType",type:"string"},{name:"image",baseName:"image",type:"string"},{name:"keyring",baseName:"keyring",type:"string"},{name:"monitors",baseName:"monitors",type:"Array"},{name:"pool",baseName:"pool",type:"string"},{name:"readOnly",baseName:"readOnly",type:"boolean"},{name:"secretRef",baseName:"secretRef",type:"V1LocalObjectReference"},{name:"user",baseName:"user",type:"string"}];t.V1RBDVolumeSource=V1RBDVolumeSource;class V1ReplicaSet{static getAttributeTypeMap(){return V1ReplicaSet.attributeTypeMap}}V1ReplicaSet.discriminator=undefined;V1ReplicaSet.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1ReplicaSetSpec"},{name:"status",baseName:"status",type:"V1ReplicaSetStatus"}];t.V1ReplicaSet=V1ReplicaSet;class V1ReplicaSetCondition{static getAttributeTypeMap(){return V1ReplicaSetCondition.attributeTypeMap}}V1ReplicaSetCondition.discriminator=undefined;V1ReplicaSetCondition.attributeTypeMap=[{name:"lastTransitionTime",baseName:"lastTransitionTime",type:"Date"},{name:"message",baseName:"message",type:"string"},{name:"reason",baseName:"reason",type:"string"},{name:"status",baseName:"status",type:"string"},{name:"type",baseName:"type",type:"string"}];t.V1ReplicaSetCondition=V1ReplicaSetCondition;class V1ReplicaSetList{static getAttributeTypeMap(){return V1ReplicaSetList.attributeTypeMap}}V1ReplicaSetList.discriminator=undefined;V1ReplicaSetList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1ReplicaSetList=V1ReplicaSetList;class V1ReplicaSetSpec{static getAttributeTypeMap(){return V1ReplicaSetSpec.attributeTypeMap}}V1ReplicaSetSpec.discriminator=undefined;V1ReplicaSetSpec.attributeTypeMap=[{name:"minReadySeconds",baseName:"minReadySeconds",type:"number"},{name:"replicas",baseName:"replicas",type:"number"},{name:"selector",baseName:"selector",type:"V1LabelSelector"},{name:"template",baseName:"template",type:"V1PodTemplateSpec"}];t.V1ReplicaSetSpec=V1ReplicaSetSpec;class V1ReplicaSetStatus{static getAttributeTypeMap(){return V1ReplicaSetStatus.attributeTypeMap}}V1ReplicaSetStatus.discriminator=undefined;V1ReplicaSetStatus.attributeTypeMap=[{name:"availableReplicas",baseName:"availableReplicas",type:"number"},{name:"conditions",baseName:"conditions",type:"Array"},{name:"fullyLabeledReplicas",baseName:"fullyLabeledReplicas",type:"number"},{name:"observedGeneration",baseName:"observedGeneration",type:"number"},{name:"readyReplicas",baseName:"readyReplicas",type:"number"},{name:"replicas",baseName:"replicas",type:"number"}];t.V1ReplicaSetStatus=V1ReplicaSetStatus;class V1ReplicationController{static getAttributeTypeMap(){return V1ReplicationController.attributeTypeMap}}V1ReplicationController.discriminator=undefined;V1ReplicationController.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1ReplicationControllerSpec"},{name:"status",baseName:"status",type:"V1ReplicationControllerStatus"}];t.V1ReplicationController=V1ReplicationController;class V1ReplicationControllerCondition{static getAttributeTypeMap(){return V1ReplicationControllerCondition.attributeTypeMap}}V1ReplicationControllerCondition.discriminator=undefined;V1ReplicationControllerCondition.attributeTypeMap=[{name:"lastTransitionTime",baseName:"lastTransitionTime",type:"Date"},{name:"message",baseName:"message",type:"string"},{name:"reason",baseName:"reason",type:"string"},{name:"status",baseName:"status",type:"string"},{name:"type",baseName:"type",type:"string"}];t.V1ReplicationControllerCondition=V1ReplicationControllerCondition;class V1ReplicationControllerList{static getAttributeTypeMap(){return V1ReplicationControllerList.attributeTypeMap}}V1ReplicationControllerList.discriminator=undefined;V1ReplicationControllerList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1ReplicationControllerList=V1ReplicationControllerList;class V1ReplicationControllerSpec{static getAttributeTypeMap(){return V1ReplicationControllerSpec.attributeTypeMap}}V1ReplicationControllerSpec.discriminator=undefined;V1ReplicationControllerSpec.attributeTypeMap=[{name:"minReadySeconds",baseName:"minReadySeconds",type:"number"},{name:"replicas",baseName:"replicas",type:"number"},{name:"selector",baseName:"selector",type:"{ [key: string]: string; }"},{name:"template",baseName:"template",type:"V1PodTemplateSpec"}];t.V1ReplicationControllerSpec=V1ReplicationControllerSpec;class V1ReplicationControllerStatus{static getAttributeTypeMap(){return V1ReplicationControllerStatus.attributeTypeMap}}V1ReplicationControllerStatus.discriminator=undefined;V1ReplicationControllerStatus.attributeTypeMap=[{name:"availableReplicas",baseName:"availableReplicas",type:"number"},{name:"conditions",baseName:"conditions",type:"Array"},{name:"fullyLabeledReplicas",baseName:"fullyLabeledReplicas",type:"number"},{name:"observedGeneration",baseName:"observedGeneration",type:"number"},{name:"readyReplicas",baseName:"readyReplicas",type:"number"},{name:"replicas",baseName:"replicas",type:"number"}];t.V1ReplicationControllerStatus=V1ReplicationControllerStatus;class V1ResourceAttributes{static getAttributeTypeMap(){return V1ResourceAttributes.attributeTypeMap}}V1ResourceAttributes.discriminator=undefined;V1ResourceAttributes.attributeTypeMap=[{name:"group",baseName:"group",type:"string"},{name:"name",baseName:"name",type:"string"},{name:"namespace",baseName:"namespace",type:"string"},{name:"resource",baseName:"resource",type:"string"},{name:"subresource",baseName:"subresource",type:"string"},{name:"verb",baseName:"verb",type:"string"},{name:"version",baseName:"version",type:"string"}];t.V1ResourceAttributes=V1ResourceAttributes;class V1ResourceFieldSelector{static getAttributeTypeMap(){return V1ResourceFieldSelector.attributeTypeMap}}V1ResourceFieldSelector.discriminator=undefined;V1ResourceFieldSelector.attributeTypeMap=[{name:"containerName",baseName:"containerName",type:"string"},{name:"divisor",baseName:"divisor",type:"string"},{name:"resource",baseName:"resource",type:"string"}];t.V1ResourceFieldSelector=V1ResourceFieldSelector;class V1ResourceQuota{static getAttributeTypeMap(){return V1ResourceQuota.attributeTypeMap}}V1ResourceQuota.discriminator=undefined;V1ResourceQuota.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1ResourceQuotaSpec"},{name:"status",baseName:"status",type:"V1ResourceQuotaStatus"}];t.V1ResourceQuota=V1ResourceQuota;class V1ResourceQuotaList{static getAttributeTypeMap(){return V1ResourceQuotaList.attributeTypeMap}}V1ResourceQuotaList.discriminator=undefined;V1ResourceQuotaList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1ResourceQuotaList=V1ResourceQuotaList;class V1ResourceQuotaSpec{static getAttributeTypeMap(){return V1ResourceQuotaSpec.attributeTypeMap}}V1ResourceQuotaSpec.discriminator=undefined;V1ResourceQuotaSpec.attributeTypeMap=[{name:"hard",baseName:"hard",type:"{ [key: string]: string; }"},{name:"scopeSelector",baseName:"scopeSelector",type:"V1ScopeSelector"},{name:"scopes",baseName:"scopes",type:"Array"}];t.V1ResourceQuotaSpec=V1ResourceQuotaSpec;class V1ResourceQuotaStatus{static getAttributeTypeMap(){return V1ResourceQuotaStatus.attributeTypeMap}}V1ResourceQuotaStatus.discriminator=undefined;V1ResourceQuotaStatus.attributeTypeMap=[{name:"hard",baseName:"hard",type:"{ [key: string]: string; }"},{name:"used",baseName:"used",type:"{ [key: string]: string; }"}];t.V1ResourceQuotaStatus=V1ResourceQuotaStatus;class V1ResourceRequirements{static getAttributeTypeMap(){return V1ResourceRequirements.attributeTypeMap}}V1ResourceRequirements.discriminator=undefined;V1ResourceRequirements.attributeTypeMap=[{name:"limits",baseName:"limits",type:"{ [key: string]: string; }"},{name:"requests",baseName:"requests",type:"{ [key: string]: string; }"}];t.V1ResourceRequirements=V1ResourceRequirements;class V1ResourceRule{static getAttributeTypeMap(){return V1ResourceRule.attributeTypeMap}}V1ResourceRule.discriminator=undefined;V1ResourceRule.attributeTypeMap=[{name:"apiGroups",baseName:"apiGroups",type:"Array"},{name:"resourceNames",baseName:"resourceNames",type:"Array"},{name:"resources",baseName:"resources",type:"Array"},{name:"verbs",baseName:"verbs",type:"Array"}];t.V1ResourceRule=V1ResourceRule;class V1Role{static getAttributeTypeMap(){return V1Role.attributeTypeMap}}V1Role.discriminator=undefined;V1Role.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"rules",baseName:"rules",type:"Array"}];t.V1Role=V1Role;class V1RoleBinding{static getAttributeTypeMap(){return V1RoleBinding.attributeTypeMap}}V1RoleBinding.discriminator=undefined;V1RoleBinding.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"roleRef",baseName:"roleRef",type:"V1RoleRef"},{name:"subjects",baseName:"subjects",type:"Array"}];t.V1RoleBinding=V1RoleBinding;class V1RoleBindingList{static getAttributeTypeMap(){return V1RoleBindingList.attributeTypeMap}}V1RoleBindingList.discriminator=undefined;V1RoleBindingList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1RoleBindingList=V1RoleBindingList;class V1RoleList{static getAttributeTypeMap(){return V1RoleList.attributeTypeMap}}V1RoleList.discriminator=undefined;V1RoleList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1RoleList=V1RoleList;class V1RoleRef{static getAttributeTypeMap(){return V1RoleRef.attributeTypeMap}}V1RoleRef.discriminator=undefined;V1RoleRef.attributeTypeMap=[{name:"apiGroup",baseName:"apiGroup",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"name",baseName:"name",type:"string"}];t.V1RoleRef=V1RoleRef;class V1RollingUpdateDaemonSet{static getAttributeTypeMap(){return V1RollingUpdateDaemonSet.attributeTypeMap}}V1RollingUpdateDaemonSet.discriminator=undefined;V1RollingUpdateDaemonSet.attributeTypeMap=[{name:"maxUnavailable",baseName:"maxUnavailable",type:"any"}];t.V1RollingUpdateDaemonSet=V1RollingUpdateDaemonSet;class V1RollingUpdateDeployment{static getAttributeTypeMap(){return V1RollingUpdateDeployment.attributeTypeMap}}V1RollingUpdateDeployment.discriminator=undefined;V1RollingUpdateDeployment.attributeTypeMap=[{name:"maxSurge",baseName:"maxSurge",type:"any"},{name:"maxUnavailable",baseName:"maxUnavailable",type:"any"}];t.V1RollingUpdateDeployment=V1RollingUpdateDeployment;class V1RollingUpdateStatefulSetStrategy{static getAttributeTypeMap(){return V1RollingUpdateStatefulSetStrategy.attributeTypeMap}}V1RollingUpdateStatefulSetStrategy.discriminator=undefined;V1RollingUpdateStatefulSetStrategy.attributeTypeMap=[{name:"partition",baseName:"partition",type:"number"}];t.V1RollingUpdateStatefulSetStrategy=V1RollingUpdateStatefulSetStrategy;class V1SELinuxOptions{static getAttributeTypeMap(){return V1SELinuxOptions.attributeTypeMap}}V1SELinuxOptions.discriminator=undefined;V1SELinuxOptions.attributeTypeMap=[{name:"level",baseName:"level",type:"string"},{name:"role",baseName:"role",type:"string"},{name:"type",baseName:"type",type:"string"},{name:"user",baseName:"user",type:"string"}];t.V1SELinuxOptions=V1SELinuxOptions;class V1Scale{static getAttributeTypeMap(){return V1Scale.attributeTypeMap}}V1Scale.discriminator=undefined;V1Scale.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1ScaleSpec"},{name:"status",baseName:"status",type:"V1ScaleStatus"}];t.V1Scale=V1Scale;class V1ScaleIOPersistentVolumeSource{static getAttributeTypeMap(){return V1ScaleIOPersistentVolumeSource.attributeTypeMap}}V1ScaleIOPersistentVolumeSource.discriminator=undefined;V1ScaleIOPersistentVolumeSource.attributeTypeMap=[{name:"fsType",baseName:"fsType",type:"string"},{name:"gateway",baseName:"gateway",type:"string"},{name:"protectionDomain",baseName:"protectionDomain",type:"string"},{name:"readOnly",baseName:"readOnly",type:"boolean"},{name:"secretRef",baseName:"secretRef",type:"V1SecretReference"},{name:"sslEnabled",baseName:"sslEnabled",type:"boolean"},{name:"storageMode",baseName:"storageMode",type:"string"},{name:"storagePool",baseName:"storagePool",type:"string"},{name:"system",baseName:"system",type:"string"},{name:"volumeName",baseName:"volumeName",type:"string"}];t.V1ScaleIOPersistentVolumeSource=V1ScaleIOPersistentVolumeSource;class V1ScaleIOVolumeSource{static getAttributeTypeMap(){return V1ScaleIOVolumeSource.attributeTypeMap}}V1ScaleIOVolumeSource.discriminator=undefined;V1ScaleIOVolumeSource.attributeTypeMap=[{name:"fsType",baseName:"fsType",type:"string"},{name:"gateway",baseName:"gateway",type:"string"},{name:"protectionDomain",baseName:"protectionDomain",type:"string"},{name:"readOnly",baseName:"readOnly",type:"boolean"},{name:"secretRef",baseName:"secretRef",type:"V1LocalObjectReference"},{name:"sslEnabled",baseName:"sslEnabled",type:"boolean"},{name:"storageMode",baseName:"storageMode",type:"string"},{name:"storagePool",baseName:"storagePool",type:"string"},{name:"system",baseName:"system",type:"string"},{name:"volumeName",baseName:"volumeName",type:"string"}];t.V1ScaleIOVolumeSource=V1ScaleIOVolumeSource;class V1ScaleSpec{static getAttributeTypeMap(){return V1ScaleSpec.attributeTypeMap}}V1ScaleSpec.discriminator=undefined;V1ScaleSpec.attributeTypeMap=[{name:"replicas",baseName:"replicas",type:"number"}];t.V1ScaleSpec=V1ScaleSpec;class V1ScaleStatus{static getAttributeTypeMap(){return V1ScaleStatus.attributeTypeMap}}V1ScaleStatus.discriminator=undefined;V1ScaleStatus.attributeTypeMap=[{name:"replicas",baseName:"replicas",type:"number"},{name:"selector",baseName:"selector",type:"string"}];t.V1ScaleStatus=V1ScaleStatus;class V1ScopeSelector{static getAttributeTypeMap(){return V1ScopeSelector.attributeTypeMap}}V1ScopeSelector.discriminator=undefined;V1ScopeSelector.attributeTypeMap=[{name:"matchExpressions",baseName:"matchExpressions",type:"Array"}];t.V1ScopeSelector=V1ScopeSelector;class V1ScopedResourceSelectorRequirement{static getAttributeTypeMap(){return V1ScopedResourceSelectorRequirement.attributeTypeMap}}V1ScopedResourceSelectorRequirement.discriminator=undefined;V1ScopedResourceSelectorRequirement.attributeTypeMap=[{name:"operator",baseName:"operator",type:"string"},{name:"scopeName",baseName:"scopeName",type:"string"},{name:"values",baseName:"values",type:"Array"}];t.V1ScopedResourceSelectorRequirement=V1ScopedResourceSelectorRequirement;class V1Secret{static getAttributeTypeMap(){return V1Secret.attributeTypeMap}}V1Secret.discriminator=undefined;V1Secret.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"data",baseName:"data",type:"{ [key: string]: string; }"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"stringData",baseName:"stringData",type:"{ [key: string]: string; }"},{name:"type",baseName:"type",type:"string"}];t.V1Secret=V1Secret;class V1SecretEnvSource{static getAttributeTypeMap(){return V1SecretEnvSource.attributeTypeMap}}V1SecretEnvSource.discriminator=undefined;V1SecretEnvSource.attributeTypeMap=[{name:"name",baseName:"name",type:"string"},{name:"optional",baseName:"optional",type:"boolean"}];t.V1SecretEnvSource=V1SecretEnvSource;class V1SecretKeySelector{static getAttributeTypeMap(){return V1SecretKeySelector.attributeTypeMap}}V1SecretKeySelector.discriminator=undefined;V1SecretKeySelector.attributeTypeMap=[{name:"key",baseName:"key",type:"string"},{name:"name",baseName:"name",type:"string"},{name:"optional",baseName:"optional",type:"boolean"}];t.V1SecretKeySelector=V1SecretKeySelector;class V1SecretList{static getAttributeTypeMap(){return V1SecretList.attributeTypeMap}}V1SecretList.discriminator=undefined;V1SecretList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1SecretList=V1SecretList;class V1SecretProjection{static getAttributeTypeMap(){return V1SecretProjection.attributeTypeMap}}V1SecretProjection.discriminator=undefined;V1SecretProjection.attributeTypeMap=[{name:"items",baseName:"items",type:"Array"},{name:"name",baseName:"name",type:"string"},{name:"optional",baseName:"optional",type:"boolean"}];t.V1SecretProjection=V1SecretProjection;class V1SecretReference{static getAttributeTypeMap(){return V1SecretReference.attributeTypeMap}}V1SecretReference.discriminator=undefined;V1SecretReference.attributeTypeMap=[{name:"name",baseName:"name",type:"string"},{name:"namespace",baseName:"namespace",type:"string"}];t.V1SecretReference=V1SecretReference;class V1SecretVolumeSource{static getAttributeTypeMap(){return V1SecretVolumeSource.attributeTypeMap}}V1SecretVolumeSource.discriminator=undefined;V1SecretVolumeSource.attributeTypeMap=[{name:"defaultMode",baseName:"defaultMode",type:"number"},{name:"items",baseName:"items",type:"Array"},{name:"optional",baseName:"optional",type:"boolean"},{name:"secretName",baseName:"secretName",type:"string"}];t.V1SecretVolumeSource=V1SecretVolumeSource;class V1SecurityContext{static getAttributeTypeMap(){return V1SecurityContext.attributeTypeMap}}V1SecurityContext.discriminator=undefined;V1SecurityContext.attributeTypeMap=[{name:"allowPrivilegeEscalation",baseName:"allowPrivilegeEscalation",type:"boolean"},{name:"capabilities",baseName:"capabilities",type:"V1Capabilities"},{name:"privileged",baseName:"privileged",type:"boolean"},{name:"procMount",baseName:"procMount",type:"string"},{name:"readOnlyRootFilesystem",baseName:"readOnlyRootFilesystem",type:"boolean"},{name:"runAsGroup",baseName:"runAsGroup",type:"number"},{name:"runAsNonRoot",baseName:"runAsNonRoot",type:"boolean"},{name:"runAsUser",baseName:"runAsUser",type:"number"},{name:"seLinuxOptions",baseName:"seLinuxOptions",type:"V1SELinuxOptions"}];t.V1SecurityContext=V1SecurityContext;class V1SelfSubjectAccessReview{static getAttributeTypeMap(){return V1SelfSubjectAccessReview.attributeTypeMap}}V1SelfSubjectAccessReview.discriminator=undefined;V1SelfSubjectAccessReview.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1SelfSubjectAccessReviewSpec"},{name:"status",baseName:"status",type:"V1SubjectAccessReviewStatus"}];t.V1SelfSubjectAccessReview=V1SelfSubjectAccessReview;class V1SelfSubjectAccessReviewSpec{static getAttributeTypeMap(){return V1SelfSubjectAccessReviewSpec.attributeTypeMap}}V1SelfSubjectAccessReviewSpec.discriminator=undefined;V1SelfSubjectAccessReviewSpec.attributeTypeMap=[{name:"nonResourceAttributes",baseName:"nonResourceAttributes",type:"V1NonResourceAttributes"},{name:"resourceAttributes",baseName:"resourceAttributes",type:"V1ResourceAttributes"}];t.V1SelfSubjectAccessReviewSpec=V1SelfSubjectAccessReviewSpec;class V1SelfSubjectRulesReview{static getAttributeTypeMap(){return V1SelfSubjectRulesReview.attributeTypeMap}}V1SelfSubjectRulesReview.discriminator=undefined;V1SelfSubjectRulesReview.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1SelfSubjectRulesReviewSpec"},{name:"status",baseName:"status",type:"V1SubjectRulesReviewStatus"}];t.V1SelfSubjectRulesReview=V1SelfSubjectRulesReview;class V1SelfSubjectRulesReviewSpec{static getAttributeTypeMap(){return V1SelfSubjectRulesReviewSpec.attributeTypeMap}}V1SelfSubjectRulesReviewSpec.discriminator=undefined;V1SelfSubjectRulesReviewSpec.attributeTypeMap=[{name:"namespace",baseName:"namespace",type:"string"}];t.V1SelfSubjectRulesReviewSpec=V1SelfSubjectRulesReviewSpec;class V1ServerAddressByClientCIDR{static getAttributeTypeMap(){return V1ServerAddressByClientCIDR.attributeTypeMap}}V1ServerAddressByClientCIDR.discriminator=undefined;V1ServerAddressByClientCIDR.attributeTypeMap=[{name:"clientCIDR",baseName:"clientCIDR",type:"string"},{name:"serverAddress",baseName:"serverAddress",type:"string"}];t.V1ServerAddressByClientCIDR=V1ServerAddressByClientCIDR;class V1Service{static getAttributeTypeMap(){return V1Service.attributeTypeMap}}V1Service.discriminator=undefined;V1Service.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1ServiceSpec"},{name:"status",baseName:"status",type:"V1ServiceStatus"}];t.V1Service=V1Service;class V1ServiceAccount{static getAttributeTypeMap(){return V1ServiceAccount.attributeTypeMap}}V1ServiceAccount.discriminator=undefined;V1ServiceAccount.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"automountServiceAccountToken",baseName:"automountServiceAccountToken",type:"boolean"},{name:"imagePullSecrets",baseName:"imagePullSecrets",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"secrets",baseName:"secrets",type:"Array"}];t.V1ServiceAccount=V1ServiceAccount;class V1ServiceAccountList{static getAttributeTypeMap(){return V1ServiceAccountList.attributeTypeMap}}V1ServiceAccountList.discriminator=undefined;V1ServiceAccountList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1ServiceAccountList=V1ServiceAccountList;class V1ServiceAccountTokenProjection{static getAttributeTypeMap(){return V1ServiceAccountTokenProjection.attributeTypeMap}}V1ServiceAccountTokenProjection.discriminator=undefined;V1ServiceAccountTokenProjection.attributeTypeMap=[{name:"audience",baseName:"audience",type:"string"},{name:"expirationSeconds",baseName:"expirationSeconds",type:"number"},{name:"path",baseName:"path",type:"string"}];t.V1ServiceAccountTokenProjection=V1ServiceAccountTokenProjection;class V1ServiceList{static getAttributeTypeMap(){return V1ServiceList.attributeTypeMap}}V1ServiceList.discriminator=undefined;V1ServiceList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1ServiceList=V1ServiceList;class V1ServicePort{static getAttributeTypeMap(){return V1ServicePort.attributeTypeMap}}V1ServicePort.discriminator=undefined;V1ServicePort.attributeTypeMap=[{name:"name",baseName:"name",type:"string"},{name:"nodePort",baseName:"nodePort",type:"number"},{name:"port",baseName:"port",type:"number"},{name:"protocol",baseName:"protocol",type:"string"},{name:"targetPort",baseName:"targetPort",type:"any"}];t.V1ServicePort=V1ServicePort;class V1ServiceReference{static getAttributeTypeMap(){return V1ServiceReference.attributeTypeMap}}V1ServiceReference.discriminator=undefined;V1ServiceReference.attributeTypeMap=[{name:"name",baseName:"name",type:"string"},{name:"namespace",baseName:"namespace",type:"string"}];t.V1ServiceReference=V1ServiceReference;class V1ServiceSpec{static getAttributeTypeMap(){return V1ServiceSpec.attributeTypeMap}}V1ServiceSpec.discriminator=undefined;V1ServiceSpec.attributeTypeMap=[{name:"clusterIP",baseName:"clusterIP",type:"string"},{name:"externalIPs",baseName:"externalIPs",type:"Array"},{name:"externalName",baseName:"externalName",type:"string"},{name:"externalTrafficPolicy",baseName:"externalTrafficPolicy",type:"string"},{name:"healthCheckNodePort",baseName:"healthCheckNodePort",type:"number"},{name:"loadBalancerIP",baseName:"loadBalancerIP",type:"string"},{name:"loadBalancerSourceRanges",baseName:"loadBalancerSourceRanges",type:"Array"},{name:"ports",baseName:"ports",type:"Array"},{name:"publishNotReadyAddresses",baseName:"publishNotReadyAddresses",type:"boolean"},{name:"selector",baseName:"selector",type:"{ [key: string]: string; }"},{name:"sessionAffinity",baseName:"sessionAffinity",type:"string"},{name:"sessionAffinityConfig",baseName:"sessionAffinityConfig",type:"V1SessionAffinityConfig"},{name:"type",baseName:"type",type:"string"}];t.V1ServiceSpec=V1ServiceSpec;class V1ServiceStatus{static getAttributeTypeMap(){return V1ServiceStatus.attributeTypeMap}}V1ServiceStatus.discriminator=undefined;V1ServiceStatus.attributeTypeMap=[{name:"loadBalancer",baseName:"loadBalancer",type:"V1LoadBalancerStatus"}];t.V1ServiceStatus=V1ServiceStatus;class V1SessionAffinityConfig{static getAttributeTypeMap(){return V1SessionAffinityConfig.attributeTypeMap}}V1SessionAffinityConfig.discriminator=undefined;V1SessionAffinityConfig.attributeTypeMap=[{name:"clientIP",baseName:"clientIP",type:"V1ClientIPConfig"}];t.V1SessionAffinityConfig=V1SessionAffinityConfig;class V1StatefulSet{static getAttributeTypeMap(){return V1StatefulSet.attributeTypeMap}}V1StatefulSet.discriminator=undefined;V1StatefulSet.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1StatefulSetSpec"},{name:"status",baseName:"status",type:"V1StatefulSetStatus"}];t.V1StatefulSet=V1StatefulSet;class V1StatefulSetCondition{static getAttributeTypeMap(){return V1StatefulSetCondition.attributeTypeMap}}V1StatefulSetCondition.discriminator=undefined;V1StatefulSetCondition.attributeTypeMap=[{name:"lastTransitionTime",baseName:"lastTransitionTime",type:"Date"},{name:"message",baseName:"message",type:"string"},{name:"reason",baseName:"reason",type:"string"},{name:"status",baseName:"status",type:"string"},{name:"type",baseName:"type",type:"string"}];t.V1StatefulSetCondition=V1StatefulSetCondition;class V1StatefulSetList{static getAttributeTypeMap(){return V1StatefulSetList.attributeTypeMap}}V1StatefulSetList.discriminator=undefined;V1StatefulSetList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1StatefulSetList=V1StatefulSetList;class V1StatefulSetSpec{static getAttributeTypeMap(){return V1StatefulSetSpec.attributeTypeMap}}V1StatefulSetSpec.discriminator=undefined;V1StatefulSetSpec.attributeTypeMap=[{name:"podManagementPolicy",baseName:"podManagementPolicy",type:"string"},{name:"replicas",baseName:"replicas",type:"number"},{name:"revisionHistoryLimit",baseName:"revisionHistoryLimit",type:"number"},{name:"selector",baseName:"selector",type:"V1LabelSelector"},{name:"serviceName",baseName:"serviceName",type:"string"},{name:"template",baseName:"template",type:"V1PodTemplateSpec"},{name:"updateStrategy",baseName:"updateStrategy",type:"V1StatefulSetUpdateStrategy"},{name:"volumeClaimTemplates",baseName:"volumeClaimTemplates",type:"Array"}];t.V1StatefulSetSpec=V1StatefulSetSpec;class V1StatefulSetStatus{static getAttributeTypeMap(){return V1StatefulSetStatus.attributeTypeMap}}V1StatefulSetStatus.discriminator=undefined;V1StatefulSetStatus.attributeTypeMap=[{name:"collisionCount",baseName:"collisionCount",type:"number"},{name:"conditions",baseName:"conditions",type:"Array"},{name:"currentReplicas",baseName:"currentReplicas",type:"number"},{name:"currentRevision",baseName:"currentRevision",type:"string"},{name:"observedGeneration",baseName:"observedGeneration",type:"number"},{name:"readyReplicas",baseName:"readyReplicas",type:"number"},{name:"replicas",baseName:"replicas",type:"number"},{name:"updateRevision",baseName:"updateRevision",type:"string"},{name:"updatedReplicas",baseName:"updatedReplicas",type:"number"}];t.V1StatefulSetStatus=V1StatefulSetStatus;class V1StatefulSetUpdateStrategy{static getAttributeTypeMap(){return V1StatefulSetUpdateStrategy.attributeTypeMap}}V1StatefulSetUpdateStrategy.discriminator=undefined;V1StatefulSetUpdateStrategy.attributeTypeMap=[{name:"rollingUpdate",baseName:"rollingUpdate",type:"V1RollingUpdateStatefulSetStrategy"},{name:"type",baseName:"type",type:"string"}];t.V1StatefulSetUpdateStrategy=V1StatefulSetUpdateStrategy;class V1Status{static getAttributeTypeMap(){return V1Status.attributeTypeMap}}V1Status.discriminator=undefined;V1Status.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"code",baseName:"code",type:"number"},{name:"details",baseName:"details",type:"V1StatusDetails"},{name:"kind",baseName:"kind",type:"string"},{name:"message",baseName:"message",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"},{name:"reason",baseName:"reason",type:"string"},{name:"status",baseName:"status",type:"string"}];t.V1Status=V1Status;class V1StatusCause{static getAttributeTypeMap(){return V1StatusCause.attributeTypeMap}}V1StatusCause.discriminator=undefined;V1StatusCause.attributeTypeMap=[{name:"field",baseName:"field",type:"string"},{name:"message",baseName:"message",type:"string"},{name:"reason",baseName:"reason",type:"string"}];t.V1StatusCause=V1StatusCause;class V1StatusDetails{static getAttributeTypeMap(){return V1StatusDetails.attributeTypeMap}}V1StatusDetails.discriminator=undefined;V1StatusDetails.attributeTypeMap=[{name:"causes",baseName:"causes",type:"Array"},{name:"group",baseName:"group",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"name",baseName:"name",type:"string"},{name:"retryAfterSeconds",baseName:"retryAfterSeconds",type:"number"},{name:"uid",baseName:"uid",type:"string"}];t.V1StatusDetails=V1StatusDetails;class V1StorageClass{static getAttributeTypeMap(){return V1StorageClass.attributeTypeMap}}V1StorageClass.discriminator=undefined;V1StorageClass.attributeTypeMap=[{name:"allowVolumeExpansion",baseName:"allowVolumeExpansion",type:"boolean"},{name:"allowedTopologies",baseName:"allowedTopologies",type:"Array"},{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"mountOptions",baseName:"mountOptions",type:"Array"},{name:"parameters",baseName:"parameters",type:"{ [key: string]: string; }"},{name:"provisioner",baseName:"provisioner",type:"string"},{name:"reclaimPolicy",baseName:"reclaimPolicy",type:"string"},{name:"volumeBindingMode",baseName:"volumeBindingMode",type:"string"}];t.V1StorageClass=V1StorageClass;class V1StorageClassList{static getAttributeTypeMap(){return V1StorageClassList.attributeTypeMap}}V1StorageClassList.discriminator=undefined;V1StorageClassList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1StorageClassList=V1StorageClassList;class V1StorageOSPersistentVolumeSource{static getAttributeTypeMap(){return V1StorageOSPersistentVolumeSource.attributeTypeMap}}V1StorageOSPersistentVolumeSource.discriminator=undefined;V1StorageOSPersistentVolumeSource.attributeTypeMap=[{name:"fsType",baseName:"fsType",type:"string"},{name:"readOnly",baseName:"readOnly",type:"boolean"},{name:"secretRef",baseName:"secretRef",type:"V1ObjectReference"},{name:"volumeName",baseName:"volumeName",type:"string"},{name:"volumeNamespace",baseName:"volumeNamespace",type:"string"}];t.V1StorageOSPersistentVolumeSource=V1StorageOSPersistentVolumeSource;class V1StorageOSVolumeSource{static getAttributeTypeMap(){return V1StorageOSVolumeSource.attributeTypeMap}}V1StorageOSVolumeSource.discriminator=undefined;V1StorageOSVolumeSource.attributeTypeMap=[{name:"fsType",baseName:"fsType",type:"string"},{name:"readOnly",baseName:"readOnly",type:"boolean"},{name:"secretRef",baseName:"secretRef",type:"V1LocalObjectReference"},{name:"volumeName",baseName:"volumeName",type:"string"},{name:"volumeNamespace",baseName:"volumeNamespace",type:"string"}];t.V1StorageOSVolumeSource=V1StorageOSVolumeSource;class V1Subject{static getAttributeTypeMap(){return V1Subject.attributeTypeMap}}V1Subject.discriminator=undefined;V1Subject.attributeTypeMap=[{name:"apiGroup",baseName:"apiGroup",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"name",baseName:"name",type:"string"},{name:"namespace",baseName:"namespace",type:"string"}];t.V1Subject=V1Subject;class V1SubjectAccessReview{static getAttributeTypeMap(){return V1SubjectAccessReview.attributeTypeMap}}V1SubjectAccessReview.discriminator=undefined;V1SubjectAccessReview.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1SubjectAccessReviewSpec"},{name:"status",baseName:"status",type:"V1SubjectAccessReviewStatus"}];t.V1SubjectAccessReview=V1SubjectAccessReview;class V1SubjectAccessReviewSpec{static getAttributeTypeMap(){return V1SubjectAccessReviewSpec.attributeTypeMap}}V1SubjectAccessReviewSpec.discriminator=undefined;V1SubjectAccessReviewSpec.attributeTypeMap=[{name:"extra",baseName:"extra",type:"{ [key: string]: Array; }"},{name:"groups",baseName:"groups",type:"Array"},{name:"nonResourceAttributes",baseName:"nonResourceAttributes",type:"V1NonResourceAttributes"},{name:"resourceAttributes",baseName:"resourceAttributes",type:"V1ResourceAttributes"},{name:"uid",baseName:"uid",type:"string"},{name:"user",baseName:"user",type:"string"}];t.V1SubjectAccessReviewSpec=V1SubjectAccessReviewSpec;class V1SubjectAccessReviewStatus{static getAttributeTypeMap(){return V1SubjectAccessReviewStatus.attributeTypeMap}}V1SubjectAccessReviewStatus.discriminator=undefined;V1SubjectAccessReviewStatus.attributeTypeMap=[{name:"allowed",baseName:"allowed",type:"boolean"},{name:"denied",baseName:"denied",type:"boolean"},{name:"evaluationError",baseName:"evaluationError",type:"string"},{name:"reason",baseName:"reason",type:"string"}];t.V1SubjectAccessReviewStatus=V1SubjectAccessReviewStatus;class V1SubjectRulesReviewStatus{static getAttributeTypeMap(){return V1SubjectRulesReviewStatus.attributeTypeMap}}V1SubjectRulesReviewStatus.discriminator=undefined;V1SubjectRulesReviewStatus.attributeTypeMap=[{name:"evaluationError",baseName:"evaluationError",type:"string"},{name:"incomplete",baseName:"incomplete",type:"boolean"},{name:"nonResourceRules",baseName:"nonResourceRules",type:"Array"},{name:"resourceRules",baseName:"resourceRules",type:"Array"}];t.V1SubjectRulesReviewStatus=V1SubjectRulesReviewStatus;class V1Sysctl{static getAttributeTypeMap(){return V1Sysctl.attributeTypeMap}}V1Sysctl.discriminator=undefined;V1Sysctl.attributeTypeMap=[{name:"name",baseName:"name",type:"string"},{name:"value",baseName:"value",type:"string"}];t.V1Sysctl=V1Sysctl;class V1TCPSocketAction{static getAttributeTypeMap(){return V1TCPSocketAction.attributeTypeMap}}V1TCPSocketAction.discriminator=undefined;V1TCPSocketAction.attributeTypeMap=[{name:"host",baseName:"host",type:"string"},{name:"port",baseName:"port",type:"any"}];t.V1TCPSocketAction=V1TCPSocketAction;class V1Taint{static getAttributeTypeMap(){return V1Taint.attributeTypeMap}}V1Taint.discriminator=undefined;V1Taint.attributeTypeMap=[{name:"effect",baseName:"effect",type:"string"},{name:"key",baseName:"key",type:"string"},{name:"timeAdded",baseName:"timeAdded",type:"Date"},{name:"value",baseName:"value",type:"string"}];t.V1Taint=V1Taint;class V1TokenReview{static getAttributeTypeMap(){return V1TokenReview.attributeTypeMap}}V1TokenReview.discriminator=undefined;V1TokenReview.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1TokenReviewSpec"},{name:"status",baseName:"status",type:"V1TokenReviewStatus"}];t.V1TokenReview=V1TokenReview;class V1TokenReviewSpec{static getAttributeTypeMap(){return V1TokenReviewSpec.attributeTypeMap}}V1TokenReviewSpec.discriminator=undefined;V1TokenReviewSpec.attributeTypeMap=[{name:"audiences",baseName:"audiences",type:"Array"},{name:"token",baseName:"token",type:"string"}];t.V1TokenReviewSpec=V1TokenReviewSpec;class V1TokenReviewStatus{static getAttributeTypeMap(){return V1TokenReviewStatus.attributeTypeMap}}V1TokenReviewStatus.discriminator=undefined;V1TokenReviewStatus.attributeTypeMap=[{name:"audiences",baseName:"audiences",type:"Array"},{name:"authenticated",baseName:"authenticated",type:"boolean"},{name:"error",baseName:"error",type:"string"},{name:"user",baseName:"user",type:"V1UserInfo"}];t.V1TokenReviewStatus=V1TokenReviewStatus;class V1Toleration{static getAttributeTypeMap(){return V1Toleration.attributeTypeMap}}V1Toleration.discriminator=undefined;V1Toleration.attributeTypeMap=[{name:"effect",baseName:"effect",type:"string"},{name:"key",baseName:"key",type:"string"},{name:"operator",baseName:"operator",type:"string"},{name:"tolerationSeconds",baseName:"tolerationSeconds",type:"number"},{name:"value",baseName:"value",type:"string"}];t.V1Toleration=V1Toleration;class V1TopologySelectorLabelRequirement{static getAttributeTypeMap(){return V1TopologySelectorLabelRequirement.attributeTypeMap}}V1TopologySelectorLabelRequirement.discriminator=undefined;V1TopologySelectorLabelRequirement.attributeTypeMap=[{name:"key",baseName:"key",type:"string"},{name:"values",baseName:"values",type:"Array"}];t.V1TopologySelectorLabelRequirement=V1TopologySelectorLabelRequirement;class V1TopologySelectorTerm{static getAttributeTypeMap(){return V1TopologySelectorTerm.attributeTypeMap}}V1TopologySelectorTerm.discriminator=undefined;V1TopologySelectorTerm.attributeTypeMap=[{name:"matchLabelExpressions",baseName:"matchLabelExpressions",type:"Array"}];t.V1TopologySelectorTerm=V1TopologySelectorTerm;class V1TypedLocalObjectReference{static getAttributeTypeMap(){return V1TypedLocalObjectReference.attributeTypeMap}}V1TypedLocalObjectReference.discriminator=undefined;V1TypedLocalObjectReference.attributeTypeMap=[{name:"apiGroup",baseName:"apiGroup",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"name",baseName:"name",type:"string"}];t.V1TypedLocalObjectReference=V1TypedLocalObjectReference;class V1UserInfo{static getAttributeTypeMap(){return V1UserInfo.attributeTypeMap}}V1UserInfo.discriminator=undefined;V1UserInfo.attributeTypeMap=[{name:"extra",baseName:"extra",type:"{ [key: string]: Array; }"},{name:"groups",baseName:"groups",type:"Array"},{name:"uid",baseName:"uid",type:"string"},{name:"username",baseName:"username",type:"string"}];t.V1UserInfo=V1UserInfo;class V1Volume{static getAttributeTypeMap(){return V1Volume.attributeTypeMap}}V1Volume.discriminator=undefined;V1Volume.attributeTypeMap=[{name:"awsElasticBlockStore",baseName:"awsElasticBlockStore",type:"V1AWSElasticBlockStoreVolumeSource"},{name:"azureDisk",baseName:"azureDisk",type:"V1AzureDiskVolumeSource"},{name:"azureFile",baseName:"azureFile",type:"V1AzureFileVolumeSource"},{name:"cephfs",baseName:"cephfs",type:"V1CephFSVolumeSource"},{name:"cinder",baseName:"cinder",type:"V1CinderVolumeSource"},{name:"configMap",baseName:"configMap",type:"V1ConfigMapVolumeSource"},{name:"downwardAPI",baseName:"downwardAPI",type:"V1DownwardAPIVolumeSource"},{name:"emptyDir",baseName:"emptyDir",type:"V1EmptyDirVolumeSource"},{name:"fc",baseName:"fc",type:"V1FCVolumeSource"},{name:"flexVolume",baseName:"flexVolume",type:"V1FlexVolumeSource"},{name:"flocker",baseName:"flocker",type:"V1FlockerVolumeSource"},{name:"gcePersistentDisk",baseName:"gcePersistentDisk",type:"V1GCEPersistentDiskVolumeSource"},{name:"gitRepo",baseName:"gitRepo",type:"V1GitRepoVolumeSource"},{name:"glusterfs",baseName:"glusterfs",type:"V1GlusterfsVolumeSource"},{name:"hostPath",baseName:"hostPath",type:"V1HostPathVolumeSource"},{name:"iscsi",baseName:"iscsi",type:"V1ISCSIVolumeSource"},{name:"name",baseName:"name",type:"string"},{name:"nfs",baseName:"nfs",type:"V1NFSVolumeSource"},{name:"persistentVolumeClaim",baseName:"persistentVolumeClaim",type:"V1PersistentVolumeClaimVolumeSource"},{name:"photonPersistentDisk",baseName:"photonPersistentDisk",type:"V1PhotonPersistentDiskVolumeSource"},{name:"portworxVolume",baseName:"portworxVolume",type:"V1PortworxVolumeSource"},{name:"projected",baseName:"projected",type:"V1ProjectedVolumeSource"},{name:"quobyte",baseName:"quobyte",type:"V1QuobyteVolumeSource"},{name:"rbd",baseName:"rbd",type:"V1RBDVolumeSource"},{name:"scaleIO",baseName:"scaleIO",type:"V1ScaleIOVolumeSource"},{name:"secret",baseName:"secret",type:"V1SecretVolumeSource"},{name:"storageos",baseName:"storageos",type:"V1StorageOSVolumeSource"},{name:"vsphereVolume",baseName:"vsphereVolume",type:"V1VsphereVirtualDiskVolumeSource"}];t.V1Volume=V1Volume;class V1VolumeAttachment{static getAttributeTypeMap(){return V1VolumeAttachment.attributeTypeMap}}V1VolumeAttachment.discriminator=undefined;V1VolumeAttachment.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1VolumeAttachmentSpec"},{name:"status",baseName:"status",type:"V1VolumeAttachmentStatus"}];t.V1VolumeAttachment=V1VolumeAttachment;class V1VolumeAttachmentList{static getAttributeTypeMap(){return V1VolumeAttachmentList.attributeTypeMap}}V1VolumeAttachmentList.discriminator=undefined;V1VolumeAttachmentList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1VolumeAttachmentList=V1VolumeAttachmentList;class V1VolumeAttachmentSource{static getAttributeTypeMap(){return V1VolumeAttachmentSource.attributeTypeMap}}V1VolumeAttachmentSource.discriminator=undefined;V1VolumeAttachmentSource.attributeTypeMap=[{name:"persistentVolumeName",baseName:"persistentVolumeName",type:"string"}];t.V1VolumeAttachmentSource=V1VolumeAttachmentSource;class V1VolumeAttachmentSpec{static getAttributeTypeMap(){return V1VolumeAttachmentSpec.attributeTypeMap}}V1VolumeAttachmentSpec.discriminator=undefined;V1VolumeAttachmentSpec.attributeTypeMap=[{name:"attacher",baseName:"attacher",type:"string"},{name:"nodeName",baseName:"nodeName",type:"string"},{name:"source",baseName:"source",type:"V1VolumeAttachmentSource"}];t.V1VolumeAttachmentSpec=V1VolumeAttachmentSpec;class V1VolumeAttachmentStatus{static getAttributeTypeMap(){return V1VolumeAttachmentStatus.attributeTypeMap}}V1VolumeAttachmentStatus.discriminator=undefined;V1VolumeAttachmentStatus.attributeTypeMap=[{name:"attachError",baseName:"attachError",type:"V1VolumeError"},{name:"attached",baseName:"attached",type:"boolean"},{name:"attachmentMetadata",baseName:"attachmentMetadata",type:"{ [key: string]: string; }"},{name:"detachError",baseName:"detachError",type:"V1VolumeError"}];t.V1VolumeAttachmentStatus=V1VolumeAttachmentStatus;class V1VolumeDevice{static getAttributeTypeMap(){return V1VolumeDevice.attributeTypeMap}}V1VolumeDevice.discriminator=undefined;V1VolumeDevice.attributeTypeMap=[{name:"devicePath",baseName:"devicePath",type:"string"},{name:"name",baseName:"name",type:"string"}];t.V1VolumeDevice=V1VolumeDevice;class V1VolumeError{static getAttributeTypeMap(){return V1VolumeError.attributeTypeMap}}V1VolumeError.discriminator=undefined;V1VolumeError.attributeTypeMap=[{name:"message",baseName:"message",type:"string"},{name:"time",baseName:"time",type:"Date"}];t.V1VolumeError=V1VolumeError;class V1VolumeMount{static getAttributeTypeMap(){return V1VolumeMount.attributeTypeMap}}V1VolumeMount.discriminator=undefined;V1VolumeMount.attributeTypeMap=[{name:"mountPath",baseName:"mountPath",type:"string"},{name:"mountPropagation",baseName:"mountPropagation",type:"string"},{name:"name",baseName:"name",type:"string"},{name:"readOnly",baseName:"readOnly",type:"boolean"},{name:"subPath",baseName:"subPath",type:"string"}];t.V1VolumeMount=V1VolumeMount;class V1VolumeNodeAffinity{static getAttributeTypeMap(){return V1VolumeNodeAffinity.attributeTypeMap}}V1VolumeNodeAffinity.discriminator=undefined;V1VolumeNodeAffinity.attributeTypeMap=[{name:"required",baseName:"required",type:"V1NodeSelector"}];t.V1VolumeNodeAffinity=V1VolumeNodeAffinity;class V1VolumeProjection{static getAttributeTypeMap(){return V1VolumeProjection.attributeTypeMap}}V1VolumeProjection.discriminator=undefined;V1VolumeProjection.attributeTypeMap=[{name:"configMap",baseName:"configMap",type:"V1ConfigMapProjection"},{name:"downwardAPI",baseName:"downwardAPI",type:"V1DownwardAPIProjection"},{name:"secret",baseName:"secret",type:"V1SecretProjection"},{name:"serviceAccountToken",baseName:"serviceAccountToken",type:"V1ServiceAccountTokenProjection"}];t.V1VolumeProjection=V1VolumeProjection;class V1VsphereVirtualDiskVolumeSource{static getAttributeTypeMap(){return V1VsphereVirtualDiskVolumeSource.attributeTypeMap}}V1VsphereVirtualDiskVolumeSource.discriminator=undefined;V1VsphereVirtualDiskVolumeSource.attributeTypeMap=[{name:"fsType",baseName:"fsType",type:"string"},{name:"storagePolicyID",baseName:"storagePolicyID",type:"string"},{name:"storagePolicyName",baseName:"storagePolicyName",type:"string"},{name:"volumePath",baseName:"volumePath",type:"string"}];t.V1VsphereVirtualDiskVolumeSource=V1VsphereVirtualDiskVolumeSource;class V1WatchEvent{static getAttributeTypeMap(){return V1WatchEvent.attributeTypeMap}}V1WatchEvent.discriminator=undefined;V1WatchEvent.attributeTypeMap=[{name:"object",baseName:"object",type:"RuntimeRawExtension"},{name:"type",baseName:"type",type:"string"}];t.V1WatchEvent=V1WatchEvent;class V1WeightedPodAffinityTerm{static getAttributeTypeMap(){return V1WeightedPodAffinityTerm.attributeTypeMap}}V1WeightedPodAffinityTerm.discriminator=undefined;V1WeightedPodAffinityTerm.attributeTypeMap=[{name:"podAffinityTerm",baseName:"podAffinityTerm",type:"V1PodAffinityTerm"},{name:"weight",baseName:"weight",type:"number"}];t.V1WeightedPodAffinityTerm=V1WeightedPodAffinityTerm;class V1alpha1AggregationRule{static getAttributeTypeMap(){return V1alpha1AggregationRule.attributeTypeMap}}V1alpha1AggregationRule.discriminator=undefined;V1alpha1AggregationRule.attributeTypeMap=[{name:"clusterRoleSelectors",baseName:"clusterRoleSelectors",type:"Array"}];t.V1alpha1AggregationRule=V1alpha1AggregationRule;class V1alpha1AuditSink{static getAttributeTypeMap(){return V1alpha1AuditSink.attributeTypeMap}}V1alpha1AuditSink.discriminator=undefined;V1alpha1AuditSink.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1alpha1AuditSinkSpec"}];t.V1alpha1AuditSink=V1alpha1AuditSink;class V1alpha1AuditSinkList{static getAttributeTypeMap(){return V1alpha1AuditSinkList.attributeTypeMap}}V1alpha1AuditSinkList.discriminator=undefined;V1alpha1AuditSinkList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1alpha1AuditSinkList=V1alpha1AuditSinkList;class V1alpha1AuditSinkSpec{static getAttributeTypeMap(){return V1alpha1AuditSinkSpec.attributeTypeMap}}V1alpha1AuditSinkSpec.discriminator=undefined;V1alpha1AuditSinkSpec.attributeTypeMap=[{name:"policy",baseName:"policy",type:"V1alpha1Policy"},{name:"webhook",baseName:"webhook",type:"V1alpha1Webhook"}];t.V1alpha1AuditSinkSpec=V1alpha1AuditSinkSpec;class V1alpha1ClusterRole{static getAttributeTypeMap(){return V1alpha1ClusterRole.attributeTypeMap}}V1alpha1ClusterRole.discriminator=undefined;V1alpha1ClusterRole.attributeTypeMap=[{name:"aggregationRule",baseName:"aggregationRule",type:"V1alpha1AggregationRule"},{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"rules",baseName:"rules",type:"Array"}];t.V1alpha1ClusterRole=V1alpha1ClusterRole;class V1alpha1ClusterRoleBinding{static getAttributeTypeMap(){return V1alpha1ClusterRoleBinding.attributeTypeMap}}V1alpha1ClusterRoleBinding.discriminator=undefined;V1alpha1ClusterRoleBinding.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"roleRef",baseName:"roleRef",type:"V1alpha1RoleRef"},{name:"subjects",baseName:"subjects",type:"Array"}];t.V1alpha1ClusterRoleBinding=V1alpha1ClusterRoleBinding;class V1alpha1ClusterRoleBindingList{static getAttributeTypeMap(){return V1alpha1ClusterRoleBindingList.attributeTypeMap}}V1alpha1ClusterRoleBindingList.discriminator=undefined;V1alpha1ClusterRoleBindingList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1alpha1ClusterRoleBindingList=V1alpha1ClusterRoleBindingList;class V1alpha1ClusterRoleList{static getAttributeTypeMap(){return V1alpha1ClusterRoleList.attributeTypeMap}}V1alpha1ClusterRoleList.discriminator=undefined;V1alpha1ClusterRoleList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1alpha1ClusterRoleList=V1alpha1ClusterRoleList;class V1alpha1Initializer{static getAttributeTypeMap(){return V1alpha1Initializer.attributeTypeMap}}V1alpha1Initializer.discriminator=undefined;V1alpha1Initializer.attributeTypeMap=[{name:"name",baseName:"name",type:"string"},{name:"rules",baseName:"rules",type:"Array"}];t.V1alpha1Initializer=V1alpha1Initializer;class V1alpha1InitializerConfiguration{static getAttributeTypeMap(){return V1alpha1InitializerConfiguration.attributeTypeMap}}V1alpha1InitializerConfiguration.discriminator=undefined;V1alpha1InitializerConfiguration.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"initializers",baseName:"initializers",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"}];t.V1alpha1InitializerConfiguration=V1alpha1InitializerConfiguration;class V1alpha1InitializerConfigurationList{static getAttributeTypeMap(){return V1alpha1InitializerConfigurationList.attributeTypeMap}}V1alpha1InitializerConfigurationList.discriminator=undefined;V1alpha1InitializerConfigurationList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1alpha1InitializerConfigurationList=V1alpha1InitializerConfigurationList;class V1alpha1PodPreset{static getAttributeTypeMap(){return V1alpha1PodPreset.attributeTypeMap}}V1alpha1PodPreset.discriminator=undefined;V1alpha1PodPreset.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1alpha1PodPresetSpec"}];t.V1alpha1PodPreset=V1alpha1PodPreset;class V1alpha1PodPresetList{static getAttributeTypeMap(){return V1alpha1PodPresetList.attributeTypeMap}}V1alpha1PodPresetList.discriminator=undefined;V1alpha1PodPresetList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1alpha1PodPresetList=V1alpha1PodPresetList;class V1alpha1PodPresetSpec{static getAttributeTypeMap(){return V1alpha1PodPresetSpec.attributeTypeMap}}V1alpha1PodPresetSpec.discriminator=undefined;V1alpha1PodPresetSpec.attributeTypeMap=[{name:"env",baseName:"env",type:"Array"},{name:"envFrom",baseName:"envFrom",type:"Array"},{name:"selector",baseName:"selector",type:"V1LabelSelector"},{name:"volumeMounts",baseName:"volumeMounts",type:"Array"},{name:"volumes",baseName:"volumes",type:"Array"}];t.V1alpha1PodPresetSpec=V1alpha1PodPresetSpec;class V1alpha1Policy{static getAttributeTypeMap(){return V1alpha1Policy.attributeTypeMap}}V1alpha1Policy.discriminator=undefined;V1alpha1Policy.attributeTypeMap=[{name:"level",baseName:"level",type:"string"},{name:"stages",baseName:"stages",type:"Array"}];t.V1alpha1Policy=V1alpha1Policy;class V1alpha1PolicyRule{static getAttributeTypeMap(){return V1alpha1PolicyRule.attributeTypeMap}}V1alpha1PolicyRule.discriminator=undefined;V1alpha1PolicyRule.attributeTypeMap=[{name:"apiGroups",baseName:"apiGroups",type:"Array"},{name:"nonResourceURLs",baseName:"nonResourceURLs",type:"Array"},{name:"resourceNames",baseName:"resourceNames",type:"Array"},{name:"resources",baseName:"resources",type:"Array"},{name:"verbs",baseName:"verbs",type:"Array"}];t.V1alpha1PolicyRule=V1alpha1PolicyRule;class V1alpha1PriorityClass{static getAttributeTypeMap(){return V1alpha1PriorityClass.attributeTypeMap}}V1alpha1PriorityClass.discriminator=undefined;V1alpha1PriorityClass.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"description",baseName:"description",type:"string"},{name:"globalDefault",baseName:"globalDefault",type:"boolean"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"value",baseName:"value",type:"number"}];t.V1alpha1PriorityClass=V1alpha1PriorityClass;class V1alpha1PriorityClassList{static getAttributeTypeMap(){return V1alpha1PriorityClassList.attributeTypeMap}}V1alpha1PriorityClassList.discriminator=undefined;V1alpha1PriorityClassList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1alpha1PriorityClassList=V1alpha1PriorityClassList;class V1alpha1Role{static getAttributeTypeMap(){return V1alpha1Role.attributeTypeMap}}V1alpha1Role.discriminator=undefined;V1alpha1Role.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"rules",baseName:"rules",type:"Array"}];t.V1alpha1Role=V1alpha1Role;class V1alpha1RoleBinding{static getAttributeTypeMap(){return V1alpha1RoleBinding.attributeTypeMap}}V1alpha1RoleBinding.discriminator=undefined;V1alpha1RoleBinding.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"roleRef",baseName:"roleRef",type:"V1alpha1RoleRef"},{name:"subjects",baseName:"subjects",type:"Array"}];t.V1alpha1RoleBinding=V1alpha1RoleBinding;class V1alpha1RoleBindingList{static getAttributeTypeMap(){return V1alpha1RoleBindingList.attributeTypeMap}}V1alpha1RoleBindingList.discriminator=undefined;V1alpha1RoleBindingList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1alpha1RoleBindingList=V1alpha1RoleBindingList;class V1alpha1RoleList{static getAttributeTypeMap(){return V1alpha1RoleList.attributeTypeMap}}V1alpha1RoleList.discriminator=undefined;V1alpha1RoleList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1alpha1RoleList=V1alpha1RoleList;class V1alpha1RoleRef{static getAttributeTypeMap(){return V1alpha1RoleRef.attributeTypeMap}}V1alpha1RoleRef.discriminator=undefined;V1alpha1RoleRef.attributeTypeMap=[{name:"apiGroup",baseName:"apiGroup",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"name",baseName:"name",type:"string"}];t.V1alpha1RoleRef=V1alpha1RoleRef;class V1alpha1Rule{static getAttributeTypeMap(){return V1alpha1Rule.attributeTypeMap}}V1alpha1Rule.discriminator=undefined;V1alpha1Rule.attributeTypeMap=[{name:"apiGroups",baseName:"apiGroups",type:"Array"},{name:"apiVersions",baseName:"apiVersions",type:"Array"},{name:"resources",baseName:"resources",type:"Array"}];t.V1alpha1Rule=V1alpha1Rule;class V1alpha1ServiceReference{static getAttributeTypeMap(){return V1alpha1ServiceReference.attributeTypeMap}}V1alpha1ServiceReference.discriminator=undefined;V1alpha1ServiceReference.attributeTypeMap=[{name:"name",baseName:"name",type:"string"},{name:"namespace",baseName:"namespace",type:"string"},{name:"path",baseName:"path",type:"string"}];t.V1alpha1ServiceReference=V1alpha1ServiceReference;class V1alpha1Subject{static getAttributeTypeMap(){return V1alpha1Subject.attributeTypeMap}}V1alpha1Subject.discriminator=undefined;V1alpha1Subject.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"name",baseName:"name",type:"string"},{name:"namespace",baseName:"namespace",type:"string"}];t.V1alpha1Subject=V1alpha1Subject;class V1alpha1VolumeAttachment{static getAttributeTypeMap(){return V1alpha1VolumeAttachment.attributeTypeMap}}V1alpha1VolumeAttachment.discriminator=undefined;V1alpha1VolumeAttachment.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1alpha1VolumeAttachmentSpec"},{name:"status",baseName:"status",type:"V1alpha1VolumeAttachmentStatus"}];t.V1alpha1VolumeAttachment=V1alpha1VolumeAttachment;class V1alpha1VolumeAttachmentList{static getAttributeTypeMap(){return V1alpha1VolumeAttachmentList.attributeTypeMap}}V1alpha1VolumeAttachmentList.discriminator=undefined;V1alpha1VolumeAttachmentList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1alpha1VolumeAttachmentList=V1alpha1VolumeAttachmentList;class V1alpha1VolumeAttachmentSource{static getAttributeTypeMap(){return V1alpha1VolumeAttachmentSource.attributeTypeMap}}V1alpha1VolumeAttachmentSource.discriminator=undefined;V1alpha1VolumeAttachmentSource.attributeTypeMap=[{name:"persistentVolumeName",baseName:"persistentVolumeName",type:"string"}];t.V1alpha1VolumeAttachmentSource=V1alpha1VolumeAttachmentSource;class V1alpha1VolumeAttachmentSpec{static getAttributeTypeMap(){return V1alpha1VolumeAttachmentSpec.attributeTypeMap}}V1alpha1VolumeAttachmentSpec.discriminator=undefined;V1alpha1VolumeAttachmentSpec.attributeTypeMap=[{name:"attacher",baseName:"attacher",type:"string"},{name:"nodeName",baseName:"nodeName",type:"string"},{name:"source",baseName:"source",type:"V1alpha1VolumeAttachmentSource"}];t.V1alpha1VolumeAttachmentSpec=V1alpha1VolumeAttachmentSpec;class V1alpha1VolumeAttachmentStatus{static getAttributeTypeMap(){return V1alpha1VolumeAttachmentStatus.attributeTypeMap}}V1alpha1VolumeAttachmentStatus.discriminator=undefined;V1alpha1VolumeAttachmentStatus.attributeTypeMap=[{name:"attachError",baseName:"attachError",type:"V1alpha1VolumeError"},{name:"attached",baseName:"attached",type:"boolean"},{name:"attachmentMetadata",baseName:"attachmentMetadata",type:"{ [key: string]: string; }"},{name:"detachError",baseName:"detachError",type:"V1alpha1VolumeError"}];t.V1alpha1VolumeAttachmentStatus=V1alpha1VolumeAttachmentStatus;class V1alpha1VolumeError{static getAttributeTypeMap(){return V1alpha1VolumeError.attributeTypeMap}}V1alpha1VolumeError.discriminator=undefined;V1alpha1VolumeError.attributeTypeMap=[{name:"message",baseName:"message",type:"string"},{name:"time",baseName:"time",type:"Date"}];t.V1alpha1VolumeError=V1alpha1VolumeError;class V1alpha1Webhook{static getAttributeTypeMap(){return V1alpha1Webhook.attributeTypeMap}}V1alpha1Webhook.discriminator=undefined;V1alpha1Webhook.attributeTypeMap=[{name:"clientConfig",baseName:"clientConfig",type:"V1alpha1WebhookClientConfig"},{name:"throttle",baseName:"throttle",type:"V1alpha1WebhookThrottleConfig"}];t.V1alpha1Webhook=V1alpha1Webhook;class V1alpha1WebhookClientConfig{static getAttributeTypeMap(){return V1alpha1WebhookClientConfig.attributeTypeMap}}V1alpha1WebhookClientConfig.discriminator=undefined;V1alpha1WebhookClientConfig.attributeTypeMap=[{name:"caBundle",baseName:"caBundle",type:"string"},{name:"service",baseName:"service",type:"V1alpha1ServiceReference"},{name:"url",baseName:"url",type:"string"}];t.V1alpha1WebhookClientConfig=V1alpha1WebhookClientConfig;class V1alpha1WebhookThrottleConfig{static getAttributeTypeMap(){return V1alpha1WebhookThrottleConfig.attributeTypeMap}}V1alpha1WebhookThrottleConfig.discriminator=undefined;V1alpha1WebhookThrottleConfig.attributeTypeMap=[{name:"burst",baseName:"burst",type:"number"},{name:"qps",baseName:"qps",type:"number"}];t.V1alpha1WebhookThrottleConfig=V1alpha1WebhookThrottleConfig;class V1beta1APIService{static getAttributeTypeMap(){return V1beta1APIService.attributeTypeMap}}V1beta1APIService.discriminator=undefined;V1beta1APIService.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1beta1APIServiceSpec"},{name:"status",baseName:"status",type:"V1beta1APIServiceStatus"}];t.V1beta1APIService=V1beta1APIService;class V1beta1APIServiceCondition{static getAttributeTypeMap(){return V1beta1APIServiceCondition.attributeTypeMap}}V1beta1APIServiceCondition.discriminator=undefined;V1beta1APIServiceCondition.attributeTypeMap=[{name:"lastTransitionTime",baseName:"lastTransitionTime",type:"Date"},{name:"message",baseName:"message",type:"string"},{name:"reason",baseName:"reason",type:"string"},{name:"status",baseName:"status",type:"string"},{name:"type",baseName:"type",type:"string"}];t.V1beta1APIServiceCondition=V1beta1APIServiceCondition;class V1beta1APIServiceList{static getAttributeTypeMap(){return V1beta1APIServiceList.attributeTypeMap}}V1beta1APIServiceList.discriminator=undefined;V1beta1APIServiceList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1beta1APIServiceList=V1beta1APIServiceList;class V1beta1APIServiceSpec{static getAttributeTypeMap(){return V1beta1APIServiceSpec.attributeTypeMap}}V1beta1APIServiceSpec.discriminator=undefined;V1beta1APIServiceSpec.attributeTypeMap=[{name:"caBundle",baseName:"caBundle",type:"string"},{name:"group",baseName:"group",type:"string"},{name:"groupPriorityMinimum",baseName:"groupPriorityMinimum",type:"number"},{name:"insecureSkipTLSVerify",baseName:"insecureSkipTLSVerify",type:"boolean"},{name:"service",baseName:"service",type:"ApiregistrationV1beta1ServiceReference"},{name:"version",baseName:"version",type:"string"},{name:"versionPriority",baseName:"versionPriority",type:"number"}];t.V1beta1APIServiceSpec=V1beta1APIServiceSpec;class V1beta1APIServiceStatus{static getAttributeTypeMap(){return V1beta1APIServiceStatus.attributeTypeMap}}V1beta1APIServiceStatus.discriminator=undefined;V1beta1APIServiceStatus.attributeTypeMap=[{name:"conditions",baseName:"conditions",type:"Array"}];t.V1beta1APIServiceStatus=V1beta1APIServiceStatus;class V1beta1AggregationRule{static getAttributeTypeMap(){return V1beta1AggregationRule.attributeTypeMap}}V1beta1AggregationRule.discriminator=undefined;V1beta1AggregationRule.attributeTypeMap=[{name:"clusterRoleSelectors",baseName:"clusterRoleSelectors",type:"Array"}];t.V1beta1AggregationRule=V1beta1AggregationRule;class V1beta1CertificateSigningRequest{static getAttributeTypeMap(){return V1beta1CertificateSigningRequest.attributeTypeMap}}V1beta1CertificateSigningRequest.discriminator=undefined;V1beta1CertificateSigningRequest.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1beta1CertificateSigningRequestSpec"},{name:"status",baseName:"status",type:"V1beta1CertificateSigningRequestStatus"}];t.V1beta1CertificateSigningRequest=V1beta1CertificateSigningRequest;class V1beta1CertificateSigningRequestCondition{static getAttributeTypeMap(){return V1beta1CertificateSigningRequestCondition.attributeTypeMap}}V1beta1CertificateSigningRequestCondition.discriminator=undefined;V1beta1CertificateSigningRequestCondition.attributeTypeMap=[{name:"lastUpdateTime",baseName:"lastUpdateTime",type:"Date"},{name:"message",baseName:"message",type:"string"},{name:"reason",baseName:"reason",type:"string"},{name:"type",baseName:"type",type:"string"}];t.V1beta1CertificateSigningRequestCondition=V1beta1CertificateSigningRequestCondition;class V1beta1CertificateSigningRequestList{static getAttributeTypeMap(){return V1beta1CertificateSigningRequestList.attributeTypeMap}}V1beta1CertificateSigningRequestList.discriminator=undefined;V1beta1CertificateSigningRequestList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1beta1CertificateSigningRequestList=V1beta1CertificateSigningRequestList;class V1beta1CertificateSigningRequestSpec{static getAttributeTypeMap(){return V1beta1CertificateSigningRequestSpec.attributeTypeMap}}V1beta1CertificateSigningRequestSpec.discriminator=undefined;V1beta1CertificateSigningRequestSpec.attributeTypeMap=[{name:"extra",baseName:"extra",type:"{ [key: string]: Array; }"},{name:"groups",baseName:"groups",type:"Array"},{name:"request",baseName:"request",type:"string"},{name:"uid",baseName:"uid",type:"string"},{name:"usages",baseName:"usages",type:"Array"},{name:"username",baseName:"username",type:"string"}];t.V1beta1CertificateSigningRequestSpec=V1beta1CertificateSigningRequestSpec;class V1beta1CertificateSigningRequestStatus{static getAttributeTypeMap(){return V1beta1CertificateSigningRequestStatus.attributeTypeMap}}V1beta1CertificateSigningRequestStatus.discriminator=undefined;V1beta1CertificateSigningRequestStatus.attributeTypeMap=[{name:"certificate",baseName:"certificate",type:"string"},{name:"conditions",baseName:"conditions",type:"Array"}];t.V1beta1CertificateSigningRequestStatus=V1beta1CertificateSigningRequestStatus;class V1beta1ClusterRole{static getAttributeTypeMap(){return V1beta1ClusterRole.attributeTypeMap}}V1beta1ClusterRole.discriminator=undefined;V1beta1ClusterRole.attributeTypeMap=[{name:"aggregationRule",baseName:"aggregationRule",type:"V1beta1AggregationRule"},{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"rules",baseName:"rules",type:"Array"}];t.V1beta1ClusterRole=V1beta1ClusterRole;class V1beta1ClusterRoleBinding{static getAttributeTypeMap(){return V1beta1ClusterRoleBinding.attributeTypeMap}}V1beta1ClusterRoleBinding.discriminator=undefined;V1beta1ClusterRoleBinding.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"roleRef",baseName:"roleRef",type:"V1beta1RoleRef"},{name:"subjects",baseName:"subjects",type:"Array"}];t.V1beta1ClusterRoleBinding=V1beta1ClusterRoleBinding;class V1beta1ClusterRoleBindingList{static getAttributeTypeMap(){return V1beta1ClusterRoleBindingList.attributeTypeMap}}V1beta1ClusterRoleBindingList.discriminator=undefined;V1beta1ClusterRoleBindingList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1beta1ClusterRoleBindingList=V1beta1ClusterRoleBindingList;class V1beta1ClusterRoleList{static getAttributeTypeMap(){return V1beta1ClusterRoleList.attributeTypeMap}}V1beta1ClusterRoleList.discriminator=undefined;V1beta1ClusterRoleList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1beta1ClusterRoleList=V1beta1ClusterRoleList;class V1beta1ControllerRevision{static getAttributeTypeMap(){return V1beta1ControllerRevision.attributeTypeMap}}V1beta1ControllerRevision.discriminator=undefined;V1beta1ControllerRevision.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"data",baseName:"data",type:"RuntimeRawExtension"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"revision",baseName:"revision",type:"number"}];t.V1beta1ControllerRevision=V1beta1ControllerRevision;class V1beta1ControllerRevisionList{static getAttributeTypeMap(){return V1beta1ControllerRevisionList.attributeTypeMap}}V1beta1ControllerRevisionList.discriminator=undefined;V1beta1ControllerRevisionList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1beta1ControllerRevisionList=V1beta1ControllerRevisionList;class V1beta1CronJob{static getAttributeTypeMap(){return V1beta1CronJob.attributeTypeMap}}V1beta1CronJob.discriminator=undefined;V1beta1CronJob.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1beta1CronJobSpec"},{name:"status",baseName:"status",type:"V1beta1CronJobStatus"}];t.V1beta1CronJob=V1beta1CronJob;class V1beta1CronJobList{static getAttributeTypeMap(){return V1beta1CronJobList.attributeTypeMap}}V1beta1CronJobList.discriminator=undefined;V1beta1CronJobList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1beta1CronJobList=V1beta1CronJobList;class V1beta1CronJobSpec{static getAttributeTypeMap(){return V1beta1CronJobSpec.attributeTypeMap}}V1beta1CronJobSpec.discriminator=undefined;V1beta1CronJobSpec.attributeTypeMap=[{name:"concurrencyPolicy",baseName:"concurrencyPolicy",type:"string"},{name:"failedJobsHistoryLimit",baseName:"failedJobsHistoryLimit",type:"number"},{name:"jobTemplate",baseName:"jobTemplate",type:"V1beta1JobTemplateSpec"},{name:"schedule",baseName:"schedule",type:"string"},{name:"startingDeadlineSeconds",baseName:"startingDeadlineSeconds",type:"number"},{name:"successfulJobsHistoryLimit",baseName:"successfulJobsHistoryLimit",type:"number"},{name:"suspend",baseName:"suspend",type:"boolean"}];t.V1beta1CronJobSpec=V1beta1CronJobSpec;class V1beta1CronJobStatus{static getAttributeTypeMap(){return V1beta1CronJobStatus.attributeTypeMap}}V1beta1CronJobStatus.discriminator=undefined;V1beta1CronJobStatus.attributeTypeMap=[{name:"active",baseName:"active",type:"Array"},{name:"lastScheduleTime",baseName:"lastScheduleTime",type:"Date"}];t.V1beta1CronJobStatus=V1beta1CronJobStatus;class V1beta1CustomResourceColumnDefinition{static getAttributeTypeMap(){return V1beta1CustomResourceColumnDefinition.attributeTypeMap}}V1beta1CustomResourceColumnDefinition.discriminator=undefined;V1beta1CustomResourceColumnDefinition.attributeTypeMap=[{name:"jSONPath",baseName:"JSONPath",type:"string"},{name:"description",baseName:"description",type:"string"},{name:"format",baseName:"format",type:"string"},{name:"name",baseName:"name",type:"string"},{name:"priority",baseName:"priority",type:"number"},{name:"type",baseName:"type",type:"string"}];t.V1beta1CustomResourceColumnDefinition=V1beta1CustomResourceColumnDefinition;class V1beta1CustomResourceConversion{static getAttributeTypeMap(){return V1beta1CustomResourceConversion.attributeTypeMap}}V1beta1CustomResourceConversion.discriminator=undefined;V1beta1CustomResourceConversion.attributeTypeMap=[{name:"strategy",baseName:"strategy",type:"string"},{name:"webhookClientConfig",baseName:"webhookClientConfig",type:"ApiextensionsV1beta1WebhookClientConfig"}];t.V1beta1CustomResourceConversion=V1beta1CustomResourceConversion;class V1beta1CustomResourceDefinition{static getAttributeTypeMap(){return V1beta1CustomResourceDefinition.attributeTypeMap}}V1beta1CustomResourceDefinition.discriminator=undefined;V1beta1CustomResourceDefinition.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1beta1CustomResourceDefinitionSpec"},{name:"status",baseName:"status",type:"V1beta1CustomResourceDefinitionStatus"}];t.V1beta1CustomResourceDefinition=V1beta1CustomResourceDefinition;class V1beta1CustomResourceDefinitionCondition{static getAttributeTypeMap(){return V1beta1CustomResourceDefinitionCondition.attributeTypeMap}}V1beta1CustomResourceDefinitionCondition.discriminator=undefined;V1beta1CustomResourceDefinitionCondition.attributeTypeMap=[{name:"lastTransitionTime",baseName:"lastTransitionTime",type:"Date"},{name:"message",baseName:"message",type:"string"},{name:"reason",baseName:"reason",type:"string"},{name:"status",baseName:"status",type:"string"},{name:"type",baseName:"type",type:"string"}];t.V1beta1CustomResourceDefinitionCondition=V1beta1CustomResourceDefinitionCondition;class V1beta1CustomResourceDefinitionList{static getAttributeTypeMap(){return V1beta1CustomResourceDefinitionList.attributeTypeMap}}V1beta1CustomResourceDefinitionList.discriminator=undefined;V1beta1CustomResourceDefinitionList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1beta1CustomResourceDefinitionList=V1beta1CustomResourceDefinitionList;class V1beta1CustomResourceDefinitionNames{static getAttributeTypeMap(){return V1beta1CustomResourceDefinitionNames.attributeTypeMap}}V1beta1CustomResourceDefinitionNames.discriminator=undefined;V1beta1CustomResourceDefinitionNames.attributeTypeMap=[{name:"categories",baseName:"categories",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"listKind",baseName:"listKind",type:"string"},{name:"plural",baseName:"plural",type:"string"},{name:"shortNames",baseName:"shortNames",type:"Array"},{name:"singular",baseName:"singular",type:"string"}];t.V1beta1CustomResourceDefinitionNames=V1beta1CustomResourceDefinitionNames;class V1beta1CustomResourceDefinitionSpec{static getAttributeTypeMap(){return V1beta1CustomResourceDefinitionSpec.attributeTypeMap}}V1beta1CustomResourceDefinitionSpec.discriminator=undefined;V1beta1CustomResourceDefinitionSpec.attributeTypeMap=[{name:"additionalPrinterColumns",baseName:"additionalPrinterColumns",type:"Array"},{name:"conversion",baseName:"conversion",type:"V1beta1CustomResourceConversion"},{name:"group",baseName:"group",type:"string"},{name:"names",baseName:"names",type:"V1beta1CustomResourceDefinitionNames"},{name:"scope",baseName:"scope",type:"string"},{name:"subresources",baseName:"subresources",type:"V1beta1CustomResourceSubresources"},{name:"validation",baseName:"validation",type:"V1beta1CustomResourceValidation"},{name:"version",baseName:"version",type:"string"},{name:"versions",baseName:"versions",type:"Array"}];t.V1beta1CustomResourceDefinitionSpec=V1beta1CustomResourceDefinitionSpec;class V1beta1CustomResourceDefinitionStatus{static getAttributeTypeMap(){return V1beta1CustomResourceDefinitionStatus.attributeTypeMap}}V1beta1CustomResourceDefinitionStatus.discriminator=undefined;V1beta1CustomResourceDefinitionStatus.attributeTypeMap=[{name:"acceptedNames",baseName:"acceptedNames",type:"V1beta1CustomResourceDefinitionNames"},{name:"conditions",baseName:"conditions",type:"Array"},{name:"storedVersions",baseName:"storedVersions",type:"Array"}];t.V1beta1CustomResourceDefinitionStatus=V1beta1CustomResourceDefinitionStatus;class V1beta1CustomResourceDefinitionVersion{static getAttributeTypeMap(){return V1beta1CustomResourceDefinitionVersion.attributeTypeMap}}V1beta1CustomResourceDefinitionVersion.discriminator=undefined;V1beta1CustomResourceDefinitionVersion.attributeTypeMap=[{name:"additionalPrinterColumns",baseName:"additionalPrinterColumns",type:"Array"},{name:"name",baseName:"name",type:"string"},{name:"schema",baseName:"schema",type:"V1beta1CustomResourceValidation"},{name:"served",baseName:"served",type:"boolean"},{name:"storage",baseName:"storage",type:"boolean"},{name:"subresources",baseName:"subresources",type:"V1beta1CustomResourceSubresources"}];t.V1beta1CustomResourceDefinitionVersion=V1beta1CustomResourceDefinitionVersion;class V1beta1CustomResourceSubresourceScale{static getAttributeTypeMap(){return V1beta1CustomResourceSubresourceScale.attributeTypeMap}}V1beta1CustomResourceSubresourceScale.discriminator=undefined;V1beta1CustomResourceSubresourceScale.attributeTypeMap=[{name:"labelSelectorPath",baseName:"labelSelectorPath",type:"string"},{name:"specReplicasPath",baseName:"specReplicasPath",type:"string"},{name:"statusReplicasPath",baseName:"statusReplicasPath",type:"string"}];t.V1beta1CustomResourceSubresourceScale=V1beta1CustomResourceSubresourceScale;class V1beta1CustomResourceSubresources{static getAttributeTypeMap(){return V1beta1CustomResourceSubresources.attributeTypeMap}}V1beta1CustomResourceSubresources.discriminator=undefined;V1beta1CustomResourceSubresources.attributeTypeMap=[{name:"scale",baseName:"scale",type:"V1beta1CustomResourceSubresourceScale"},{name:"status",baseName:"status",type:"any"}];t.V1beta1CustomResourceSubresources=V1beta1CustomResourceSubresources;class V1beta1CustomResourceValidation{static getAttributeTypeMap(){return V1beta1CustomResourceValidation.attributeTypeMap}}V1beta1CustomResourceValidation.discriminator=undefined;V1beta1CustomResourceValidation.attributeTypeMap=[{name:"openAPIV3Schema",baseName:"openAPIV3Schema",type:"V1beta1JSONSchemaProps"}];t.V1beta1CustomResourceValidation=V1beta1CustomResourceValidation;class V1beta1DaemonSet{static getAttributeTypeMap(){return V1beta1DaemonSet.attributeTypeMap}}V1beta1DaemonSet.discriminator=undefined;V1beta1DaemonSet.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1beta1DaemonSetSpec"},{name:"status",baseName:"status",type:"V1beta1DaemonSetStatus"}];t.V1beta1DaemonSet=V1beta1DaemonSet;class V1beta1DaemonSetCondition{static getAttributeTypeMap(){return V1beta1DaemonSetCondition.attributeTypeMap}}V1beta1DaemonSetCondition.discriminator=undefined;V1beta1DaemonSetCondition.attributeTypeMap=[{name:"lastTransitionTime",baseName:"lastTransitionTime",type:"Date"},{name:"message",baseName:"message",type:"string"},{name:"reason",baseName:"reason",type:"string"},{name:"status",baseName:"status",type:"string"},{name:"type",baseName:"type",type:"string"}];t.V1beta1DaemonSetCondition=V1beta1DaemonSetCondition;class V1beta1DaemonSetList{static getAttributeTypeMap(){return V1beta1DaemonSetList.attributeTypeMap}}V1beta1DaemonSetList.discriminator=undefined;V1beta1DaemonSetList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1beta1DaemonSetList=V1beta1DaemonSetList;class V1beta1DaemonSetSpec{static getAttributeTypeMap(){return V1beta1DaemonSetSpec.attributeTypeMap}}V1beta1DaemonSetSpec.discriminator=undefined;V1beta1DaemonSetSpec.attributeTypeMap=[{name:"minReadySeconds",baseName:"minReadySeconds",type:"number"},{name:"revisionHistoryLimit",baseName:"revisionHistoryLimit",type:"number"},{name:"selector",baseName:"selector",type:"V1LabelSelector"},{name:"template",baseName:"template",type:"V1PodTemplateSpec"},{name:"templateGeneration",baseName:"templateGeneration",type:"number"},{name:"updateStrategy",baseName:"updateStrategy",type:"V1beta1DaemonSetUpdateStrategy"}];t.V1beta1DaemonSetSpec=V1beta1DaemonSetSpec;class V1beta1DaemonSetStatus{static getAttributeTypeMap(){return V1beta1DaemonSetStatus.attributeTypeMap}}V1beta1DaemonSetStatus.discriminator=undefined;V1beta1DaemonSetStatus.attributeTypeMap=[{name:"collisionCount",baseName:"collisionCount",type:"number"},{name:"conditions",baseName:"conditions",type:"Array"},{name:"currentNumberScheduled",baseName:"currentNumberScheduled",type:"number"},{name:"desiredNumberScheduled",baseName:"desiredNumberScheduled",type:"number"},{name:"numberAvailable",baseName:"numberAvailable",type:"number"},{name:"numberMisscheduled",baseName:"numberMisscheduled",type:"number"},{name:"numberReady",baseName:"numberReady",type:"number"},{name:"numberUnavailable",baseName:"numberUnavailable",type:"number"},{name:"observedGeneration",baseName:"observedGeneration",type:"number"},{name:"updatedNumberScheduled",baseName:"updatedNumberScheduled",type:"number"}];t.V1beta1DaemonSetStatus=V1beta1DaemonSetStatus;class V1beta1DaemonSetUpdateStrategy{static getAttributeTypeMap(){return V1beta1DaemonSetUpdateStrategy.attributeTypeMap}}V1beta1DaemonSetUpdateStrategy.discriminator=undefined;V1beta1DaemonSetUpdateStrategy.attributeTypeMap=[{name:"rollingUpdate",baseName:"rollingUpdate",type:"V1beta1RollingUpdateDaemonSet"},{name:"type",baseName:"type",type:"string"}];t.V1beta1DaemonSetUpdateStrategy=V1beta1DaemonSetUpdateStrategy;class V1beta1Event{static getAttributeTypeMap(){return V1beta1Event.attributeTypeMap}}V1beta1Event.discriminator=undefined;V1beta1Event.attributeTypeMap=[{name:"action",baseName:"action",type:"string"},{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"deprecatedCount",baseName:"deprecatedCount",type:"number"},{name:"deprecatedFirstTimestamp",baseName:"deprecatedFirstTimestamp",type:"Date"},{name:"deprecatedLastTimestamp",baseName:"deprecatedLastTimestamp",type:"Date"},{name:"deprecatedSource",baseName:"deprecatedSource",type:"V1EventSource"},{name:"eventTime",baseName:"eventTime",type:"Date"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"note",baseName:"note",type:"string"},{name:"reason",baseName:"reason",type:"string"},{name:"regarding",baseName:"regarding",type:"V1ObjectReference"},{name:"related",baseName:"related",type:"V1ObjectReference"},{name:"reportingController",baseName:"reportingController",type:"string"},{name:"reportingInstance",baseName:"reportingInstance",type:"string"},{name:"series",baseName:"series",type:"V1beta1EventSeries"},{name:"type",baseName:"type",type:"string"}];t.V1beta1Event=V1beta1Event;class V1beta1EventList{static getAttributeTypeMap(){return V1beta1EventList.attributeTypeMap}}V1beta1EventList.discriminator=undefined;V1beta1EventList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1beta1EventList=V1beta1EventList;class V1beta1EventSeries{static getAttributeTypeMap(){return V1beta1EventSeries.attributeTypeMap}}V1beta1EventSeries.discriminator=undefined;V1beta1EventSeries.attributeTypeMap=[{name:"count",baseName:"count",type:"number"},{name:"lastObservedTime",baseName:"lastObservedTime",type:"Date"},{name:"state",baseName:"state",type:"string"}];t.V1beta1EventSeries=V1beta1EventSeries;class V1beta1Eviction{static getAttributeTypeMap(){return V1beta1Eviction.attributeTypeMap}}V1beta1Eviction.discriminator=undefined;V1beta1Eviction.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"deleteOptions",baseName:"deleteOptions",type:"V1DeleteOptions"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"}];t.V1beta1Eviction=V1beta1Eviction;class V1beta1ExternalDocumentation{static getAttributeTypeMap(){return V1beta1ExternalDocumentation.attributeTypeMap}}V1beta1ExternalDocumentation.discriminator=undefined;V1beta1ExternalDocumentation.attributeTypeMap=[{name:"description",baseName:"description",type:"string"},{name:"url",baseName:"url",type:"string"}];t.V1beta1ExternalDocumentation=V1beta1ExternalDocumentation;class V1beta1HTTPIngressPath{static getAttributeTypeMap(){return V1beta1HTTPIngressPath.attributeTypeMap}}V1beta1HTTPIngressPath.discriminator=undefined;V1beta1HTTPIngressPath.attributeTypeMap=[{name:"backend",baseName:"backend",type:"V1beta1IngressBackend"},{name:"path",baseName:"path",type:"string"}];t.V1beta1HTTPIngressPath=V1beta1HTTPIngressPath;class V1beta1HTTPIngressRuleValue{static getAttributeTypeMap(){return V1beta1HTTPIngressRuleValue.attributeTypeMap}}V1beta1HTTPIngressRuleValue.discriminator=undefined;V1beta1HTTPIngressRuleValue.attributeTypeMap=[{name:"paths",baseName:"paths",type:"Array"}];t.V1beta1HTTPIngressRuleValue=V1beta1HTTPIngressRuleValue;class V1beta1IPBlock{static getAttributeTypeMap(){return V1beta1IPBlock.attributeTypeMap}}V1beta1IPBlock.discriminator=undefined;V1beta1IPBlock.attributeTypeMap=[{name:"cidr",baseName:"cidr",type:"string"},{name:"except",baseName:"except",type:"Array"}];t.V1beta1IPBlock=V1beta1IPBlock;class V1beta1Ingress{static getAttributeTypeMap(){return V1beta1Ingress.attributeTypeMap}}V1beta1Ingress.discriminator=undefined;V1beta1Ingress.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1beta1IngressSpec"},{name:"status",baseName:"status",type:"V1beta1IngressStatus"}];t.V1beta1Ingress=V1beta1Ingress;class V1beta1IngressBackend{static getAttributeTypeMap(){return V1beta1IngressBackend.attributeTypeMap}}V1beta1IngressBackend.discriminator=undefined;V1beta1IngressBackend.attributeTypeMap=[{name:"serviceName",baseName:"serviceName",type:"string"},{name:"servicePort",baseName:"servicePort",type:"any"}];t.V1beta1IngressBackend=V1beta1IngressBackend;class V1beta1IngressList{static getAttributeTypeMap(){return V1beta1IngressList.attributeTypeMap}}V1beta1IngressList.discriminator=undefined;V1beta1IngressList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1beta1IngressList=V1beta1IngressList;class V1beta1IngressRule{static getAttributeTypeMap(){return V1beta1IngressRule.attributeTypeMap}}V1beta1IngressRule.discriminator=undefined;V1beta1IngressRule.attributeTypeMap=[{name:"host",baseName:"host",type:"string"},{name:"http",baseName:"http",type:"V1beta1HTTPIngressRuleValue"}];t.V1beta1IngressRule=V1beta1IngressRule;class V1beta1IngressSpec{static getAttributeTypeMap(){return V1beta1IngressSpec.attributeTypeMap}}V1beta1IngressSpec.discriminator=undefined;V1beta1IngressSpec.attributeTypeMap=[{name:"backend",baseName:"backend",type:"V1beta1IngressBackend"},{name:"rules",baseName:"rules",type:"Array"},{name:"tls",baseName:"tls",type:"Array"}];t.V1beta1IngressSpec=V1beta1IngressSpec;class V1beta1IngressStatus{static getAttributeTypeMap(){return V1beta1IngressStatus.attributeTypeMap}}V1beta1IngressStatus.discriminator=undefined;V1beta1IngressStatus.attributeTypeMap=[{name:"loadBalancer",baseName:"loadBalancer",type:"V1LoadBalancerStatus"}];t.V1beta1IngressStatus=V1beta1IngressStatus;class V1beta1IngressTLS{static getAttributeTypeMap(){return V1beta1IngressTLS.attributeTypeMap}}V1beta1IngressTLS.discriminator=undefined;V1beta1IngressTLS.attributeTypeMap=[{name:"hosts",baseName:"hosts",type:"Array"},{name:"secretName",baseName:"secretName",type:"string"}];t.V1beta1IngressTLS=V1beta1IngressTLS;class V1beta1JSONSchemaProps{static getAttributeTypeMap(){return V1beta1JSONSchemaProps.attributeTypeMap}}V1beta1JSONSchemaProps.discriminator=undefined;V1beta1JSONSchemaProps.attributeTypeMap=[{name:"ref",baseName:"$ref",type:"string"},{name:"schema",baseName:"$schema",type:"string"},{name:"additionalItems",baseName:"additionalItems",type:"any"},{name:"additionalProperties",baseName:"additionalProperties",type:"any"},{name:"allOf",baseName:"allOf",type:"Array"},{name:"anyOf",baseName:"anyOf",type:"Array"},{name:"_default",baseName:"default",type:"any"},{name:"definitions",baseName:"definitions",type:"{ [key: string]: V1beta1JSONSchemaProps; }"},{name:"dependencies",baseName:"dependencies",type:"{ [key: string]: any; }"},{name:"description",baseName:"description",type:"string"},{name:"_enum",baseName:"enum",type:"Array"},{name:"example",baseName:"example",type:"any"},{name:"exclusiveMaximum",baseName:"exclusiveMaximum",type:"boolean"},{name:"exclusiveMinimum",baseName:"exclusiveMinimum",type:"boolean"},{name:"externalDocs",baseName:"externalDocs",type:"V1beta1ExternalDocumentation"},{name:"format",baseName:"format",type:"string"},{name:"id",baseName:"id",type:"string"},{name:"items",baseName:"items",type:"any"},{name:"maxItems",baseName:"maxItems",type:"number"},{name:"maxLength",baseName:"maxLength",type:"number"},{name:"maxProperties",baseName:"maxProperties",type:"number"},{name:"maximum",baseName:"maximum",type:"number"},{name:"minItems",baseName:"minItems",type:"number"},{name:"minLength",baseName:"minLength",type:"number"},{name:"minProperties",baseName:"minProperties",type:"number"},{name:"minimum",baseName:"minimum",type:"number"},{name:"multipleOf",baseName:"multipleOf",type:"number"},{name:"not",baseName:"not",type:"V1beta1JSONSchemaProps"},{name:"oneOf",baseName:"oneOf",type:"Array"},{name:"pattern",baseName:"pattern",type:"string"},{name:"patternProperties",baseName:"patternProperties",type:"{ [key: string]: V1beta1JSONSchemaProps; }"},{name:"properties",baseName:"properties",type:"{ [key: string]: V1beta1JSONSchemaProps; }"},{name:"required",baseName:"required",type:"Array"},{name:"title",baseName:"title",type:"string"},{name:"type",baseName:"type",type:"string"},{name:"uniqueItems",baseName:"uniqueItems",type:"boolean"}];t.V1beta1JSONSchemaProps=V1beta1JSONSchemaProps;class V1beta1JobTemplateSpec{static getAttributeTypeMap(){return V1beta1JobTemplateSpec.attributeTypeMap}}V1beta1JobTemplateSpec.discriminator=undefined;V1beta1JobTemplateSpec.attributeTypeMap=[{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1JobSpec"}];t.V1beta1JobTemplateSpec=V1beta1JobTemplateSpec;class V1beta1Lease{static getAttributeTypeMap(){return V1beta1Lease.attributeTypeMap}}V1beta1Lease.discriminator=undefined;V1beta1Lease.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1beta1LeaseSpec"}];t.V1beta1Lease=V1beta1Lease;class V1beta1LeaseList{static getAttributeTypeMap(){return V1beta1LeaseList.attributeTypeMap}}V1beta1LeaseList.discriminator=undefined;V1beta1LeaseList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1beta1LeaseList=V1beta1LeaseList;class V1beta1LeaseSpec{static getAttributeTypeMap(){return V1beta1LeaseSpec.attributeTypeMap}}V1beta1LeaseSpec.discriminator=undefined;V1beta1LeaseSpec.attributeTypeMap=[{name:"acquireTime",baseName:"acquireTime",type:"Date"},{name:"holderIdentity",baseName:"holderIdentity",type:"string"},{name:"leaseDurationSeconds",baseName:"leaseDurationSeconds",type:"number"},{name:"leaseTransitions",baseName:"leaseTransitions",type:"number"},{name:"renewTime",baseName:"renewTime",type:"Date"}];t.V1beta1LeaseSpec=V1beta1LeaseSpec;class V1beta1LocalSubjectAccessReview{static getAttributeTypeMap(){return V1beta1LocalSubjectAccessReview.attributeTypeMap}}V1beta1LocalSubjectAccessReview.discriminator=undefined;V1beta1LocalSubjectAccessReview.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1beta1SubjectAccessReviewSpec"},{name:"status",baseName:"status",type:"V1beta1SubjectAccessReviewStatus"}];t.V1beta1LocalSubjectAccessReview=V1beta1LocalSubjectAccessReview;class V1beta1MutatingWebhookConfiguration{static getAttributeTypeMap(){return V1beta1MutatingWebhookConfiguration.attributeTypeMap}}V1beta1MutatingWebhookConfiguration.discriminator=undefined;V1beta1MutatingWebhookConfiguration.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"webhooks",baseName:"webhooks",type:"Array"}];t.V1beta1MutatingWebhookConfiguration=V1beta1MutatingWebhookConfiguration;class V1beta1MutatingWebhookConfigurationList{static getAttributeTypeMap(){return V1beta1MutatingWebhookConfigurationList.attributeTypeMap}}V1beta1MutatingWebhookConfigurationList.discriminator=undefined;V1beta1MutatingWebhookConfigurationList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1beta1MutatingWebhookConfigurationList=V1beta1MutatingWebhookConfigurationList;class V1beta1NetworkPolicy{static getAttributeTypeMap(){return V1beta1NetworkPolicy.attributeTypeMap}}V1beta1NetworkPolicy.discriminator=undefined;V1beta1NetworkPolicy.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1beta1NetworkPolicySpec"}];t.V1beta1NetworkPolicy=V1beta1NetworkPolicy;class V1beta1NetworkPolicyEgressRule{static getAttributeTypeMap(){return V1beta1NetworkPolicyEgressRule.attributeTypeMap}}V1beta1NetworkPolicyEgressRule.discriminator=undefined;V1beta1NetworkPolicyEgressRule.attributeTypeMap=[{name:"ports",baseName:"ports",type:"Array"},{name:"to",baseName:"to",type:"Array"}];t.V1beta1NetworkPolicyEgressRule=V1beta1NetworkPolicyEgressRule;class V1beta1NetworkPolicyIngressRule{static getAttributeTypeMap(){return V1beta1NetworkPolicyIngressRule.attributeTypeMap}}V1beta1NetworkPolicyIngressRule.discriminator=undefined;V1beta1NetworkPolicyIngressRule.attributeTypeMap=[{name:"from",baseName:"from",type:"Array"},{name:"ports",baseName:"ports",type:"Array"}];t.V1beta1NetworkPolicyIngressRule=V1beta1NetworkPolicyIngressRule;class V1beta1NetworkPolicyList{static getAttributeTypeMap(){return V1beta1NetworkPolicyList.attributeTypeMap}}V1beta1NetworkPolicyList.discriminator=undefined;V1beta1NetworkPolicyList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1beta1NetworkPolicyList=V1beta1NetworkPolicyList;class V1beta1NetworkPolicyPeer{static getAttributeTypeMap(){return V1beta1NetworkPolicyPeer.attributeTypeMap}}V1beta1NetworkPolicyPeer.discriminator=undefined;V1beta1NetworkPolicyPeer.attributeTypeMap=[{name:"ipBlock",baseName:"ipBlock",type:"V1beta1IPBlock"},{name:"namespaceSelector",baseName:"namespaceSelector",type:"V1LabelSelector"},{name:"podSelector",baseName:"podSelector",type:"V1LabelSelector"}];t.V1beta1NetworkPolicyPeer=V1beta1NetworkPolicyPeer;class V1beta1NetworkPolicyPort{static getAttributeTypeMap(){return V1beta1NetworkPolicyPort.attributeTypeMap}}V1beta1NetworkPolicyPort.discriminator=undefined;V1beta1NetworkPolicyPort.attributeTypeMap=[{name:"port",baseName:"port",type:"any"},{name:"protocol",baseName:"protocol",type:"string"}];t.V1beta1NetworkPolicyPort=V1beta1NetworkPolicyPort;class V1beta1NetworkPolicySpec{static getAttributeTypeMap(){return V1beta1NetworkPolicySpec.attributeTypeMap}}V1beta1NetworkPolicySpec.discriminator=undefined;V1beta1NetworkPolicySpec.attributeTypeMap=[{name:"egress",baseName:"egress",type:"Array"},{name:"ingress",baseName:"ingress",type:"Array"},{name:"podSelector",baseName:"podSelector",type:"V1LabelSelector"},{name:"policyTypes",baseName:"policyTypes",type:"Array"}];t.V1beta1NetworkPolicySpec=V1beta1NetworkPolicySpec;class V1beta1NonResourceAttributes{static getAttributeTypeMap(){return V1beta1NonResourceAttributes.attributeTypeMap}}V1beta1NonResourceAttributes.discriminator=undefined;V1beta1NonResourceAttributes.attributeTypeMap=[{name:"path",baseName:"path",type:"string"},{name:"verb",baseName:"verb",type:"string"}];t.V1beta1NonResourceAttributes=V1beta1NonResourceAttributes;class V1beta1NonResourceRule{static getAttributeTypeMap(){return V1beta1NonResourceRule.attributeTypeMap}}V1beta1NonResourceRule.discriminator=undefined;V1beta1NonResourceRule.attributeTypeMap=[{name:"nonResourceURLs",baseName:"nonResourceURLs",type:"Array"},{name:"verbs",baseName:"verbs",type:"Array"}];t.V1beta1NonResourceRule=V1beta1NonResourceRule;class V1beta1PodDisruptionBudget{static getAttributeTypeMap(){return V1beta1PodDisruptionBudget.attributeTypeMap}}V1beta1PodDisruptionBudget.discriminator=undefined;V1beta1PodDisruptionBudget.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1beta1PodDisruptionBudgetSpec"},{name:"status",baseName:"status",type:"V1beta1PodDisruptionBudgetStatus"}];t.V1beta1PodDisruptionBudget=V1beta1PodDisruptionBudget;class V1beta1PodDisruptionBudgetList{static getAttributeTypeMap(){return V1beta1PodDisruptionBudgetList.attributeTypeMap}}V1beta1PodDisruptionBudgetList.discriminator=undefined;V1beta1PodDisruptionBudgetList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1beta1PodDisruptionBudgetList=V1beta1PodDisruptionBudgetList;class V1beta1PodDisruptionBudgetSpec{static getAttributeTypeMap(){return V1beta1PodDisruptionBudgetSpec.attributeTypeMap}}V1beta1PodDisruptionBudgetSpec.discriminator=undefined;V1beta1PodDisruptionBudgetSpec.attributeTypeMap=[{name:"maxUnavailable",baseName:"maxUnavailable",type:"any"},{name:"minAvailable",baseName:"minAvailable",type:"any"},{name:"selector",baseName:"selector",type:"V1LabelSelector"}];t.V1beta1PodDisruptionBudgetSpec=V1beta1PodDisruptionBudgetSpec;class V1beta1PodDisruptionBudgetStatus{static getAttributeTypeMap(){return V1beta1PodDisruptionBudgetStatus.attributeTypeMap}}V1beta1PodDisruptionBudgetStatus.discriminator=undefined;V1beta1PodDisruptionBudgetStatus.attributeTypeMap=[{name:"currentHealthy",baseName:"currentHealthy",type:"number"},{name:"desiredHealthy",baseName:"desiredHealthy",type:"number"},{name:"disruptedPods",baseName:"disruptedPods",type:"{ [key: string]: Date; }"},{name:"disruptionsAllowed",baseName:"disruptionsAllowed",type:"number"},{name:"expectedPods",baseName:"expectedPods",type:"number"},{name:"observedGeneration",baseName:"observedGeneration",type:"number"}];t.V1beta1PodDisruptionBudgetStatus=V1beta1PodDisruptionBudgetStatus;class V1beta1PolicyRule{static getAttributeTypeMap(){return V1beta1PolicyRule.attributeTypeMap}}V1beta1PolicyRule.discriminator=undefined;V1beta1PolicyRule.attributeTypeMap=[{name:"apiGroups",baseName:"apiGroups",type:"Array"},{name:"nonResourceURLs",baseName:"nonResourceURLs",type:"Array"},{name:"resourceNames",baseName:"resourceNames",type:"Array"},{name:"resources",baseName:"resources",type:"Array"},{name:"verbs",baseName:"verbs",type:"Array"}];t.V1beta1PolicyRule=V1beta1PolicyRule;class V1beta1PriorityClass{static getAttributeTypeMap(){return V1beta1PriorityClass.attributeTypeMap}}V1beta1PriorityClass.discriminator=undefined;V1beta1PriorityClass.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"description",baseName:"description",type:"string"},{name:"globalDefault",baseName:"globalDefault",type:"boolean"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"value",baseName:"value",type:"number"}];t.V1beta1PriorityClass=V1beta1PriorityClass;class V1beta1PriorityClassList{static getAttributeTypeMap(){return V1beta1PriorityClassList.attributeTypeMap}}V1beta1PriorityClassList.discriminator=undefined;V1beta1PriorityClassList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1beta1PriorityClassList=V1beta1PriorityClassList;class V1beta1ReplicaSet{static getAttributeTypeMap(){return V1beta1ReplicaSet.attributeTypeMap}}V1beta1ReplicaSet.discriminator=undefined;V1beta1ReplicaSet.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1beta1ReplicaSetSpec"},{name:"status",baseName:"status",type:"V1beta1ReplicaSetStatus"}];t.V1beta1ReplicaSet=V1beta1ReplicaSet;class V1beta1ReplicaSetCondition{static getAttributeTypeMap(){return V1beta1ReplicaSetCondition.attributeTypeMap}}V1beta1ReplicaSetCondition.discriminator=undefined;V1beta1ReplicaSetCondition.attributeTypeMap=[{name:"lastTransitionTime",baseName:"lastTransitionTime",type:"Date"},{name:"message",baseName:"message",type:"string"},{name:"reason",baseName:"reason",type:"string"},{name:"status",baseName:"status",type:"string"},{name:"type",baseName:"type",type:"string"}];t.V1beta1ReplicaSetCondition=V1beta1ReplicaSetCondition;class V1beta1ReplicaSetList{static getAttributeTypeMap(){return V1beta1ReplicaSetList.attributeTypeMap}}V1beta1ReplicaSetList.discriminator=undefined;V1beta1ReplicaSetList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1beta1ReplicaSetList=V1beta1ReplicaSetList;class V1beta1ReplicaSetSpec{static getAttributeTypeMap(){return V1beta1ReplicaSetSpec.attributeTypeMap}}V1beta1ReplicaSetSpec.discriminator=undefined;V1beta1ReplicaSetSpec.attributeTypeMap=[{name:"minReadySeconds",baseName:"minReadySeconds",type:"number"},{name:"replicas",baseName:"replicas",type:"number"},{name:"selector",baseName:"selector",type:"V1LabelSelector"},{name:"template",baseName:"template",type:"V1PodTemplateSpec"}];t.V1beta1ReplicaSetSpec=V1beta1ReplicaSetSpec;class V1beta1ReplicaSetStatus{static getAttributeTypeMap(){return V1beta1ReplicaSetStatus.attributeTypeMap}}V1beta1ReplicaSetStatus.discriminator=undefined;V1beta1ReplicaSetStatus.attributeTypeMap=[{name:"availableReplicas",baseName:"availableReplicas",type:"number"},{name:"conditions",baseName:"conditions",type:"Array"},{name:"fullyLabeledReplicas",baseName:"fullyLabeledReplicas",type:"number"},{name:"observedGeneration",baseName:"observedGeneration",type:"number"},{name:"readyReplicas",baseName:"readyReplicas",type:"number"},{name:"replicas",baseName:"replicas",type:"number"}];t.V1beta1ReplicaSetStatus=V1beta1ReplicaSetStatus;class V1beta1ResourceAttributes{static getAttributeTypeMap(){return V1beta1ResourceAttributes.attributeTypeMap}}V1beta1ResourceAttributes.discriminator=undefined;V1beta1ResourceAttributes.attributeTypeMap=[{name:"group",baseName:"group",type:"string"},{name:"name",baseName:"name",type:"string"},{name:"namespace",baseName:"namespace",type:"string"},{name:"resource",baseName:"resource",type:"string"},{name:"subresource",baseName:"subresource",type:"string"},{name:"verb",baseName:"verb",type:"string"},{name:"version",baseName:"version",type:"string"}];t.V1beta1ResourceAttributes=V1beta1ResourceAttributes;class V1beta1ResourceRule{static getAttributeTypeMap(){return V1beta1ResourceRule.attributeTypeMap}}V1beta1ResourceRule.discriminator=undefined;V1beta1ResourceRule.attributeTypeMap=[{name:"apiGroups",baseName:"apiGroups",type:"Array"},{name:"resourceNames",baseName:"resourceNames",type:"Array"},{name:"resources",baseName:"resources",type:"Array"},{name:"verbs",baseName:"verbs",type:"Array"}];t.V1beta1ResourceRule=V1beta1ResourceRule;class V1beta1Role{static getAttributeTypeMap(){return V1beta1Role.attributeTypeMap}}V1beta1Role.discriminator=undefined;V1beta1Role.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"rules",baseName:"rules",type:"Array"}];t.V1beta1Role=V1beta1Role;class V1beta1RoleBinding{static getAttributeTypeMap(){return V1beta1RoleBinding.attributeTypeMap}}V1beta1RoleBinding.discriminator=undefined;V1beta1RoleBinding.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"roleRef",baseName:"roleRef",type:"V1beta1RoleRef"},{name:"subjects",baseName:"subjects",type:"Array"}];t.V1beta1RoleBinding=V1beta1RoleBinding;class V1beta1RoleBindingList{static getAttributeTypeMap(){return V1beta1RoleBindingList.attributeTypeMap}}V1beta1RoleBindingList.discriminator=undefined;V1beta1RoleBindingList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1beta1RoleBindingList=V1beta1RoleBindingList;class V1beta1RoleList{static getAttributeTypeMap(){return V1beta1RoleList.attributeTypeMap}}V1beta1RoleList.discriminator=undefined;V1beta1RoleList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1beta1RoleList=V1beta1RoleList;class V1beta1RoleRef{static getAttributeTypeMap(){return V1beta1RoleRef.attributeTypeMap}}V1beta1RoleRef.discriminator=undefined;V1beta1RoleRef.attributeTypeMap=[{name:"apiGroup",baseName:"apiGroup",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"name",baseName:"name",type:"string"}];t.V1beta1RoleRef=V1beta1RoleRef;class V1beta1RollingUpdateDaemonSet{static getAttributeTypeMap(){return V1beta1RollingUpdateDaemonSet.attributeTypeMap}}V1beta1RollingUpdateDaemonSet.discriminator=undefined;V1beta1RollingUpdateDaemonSet.attributeTypeMap=[{name:"maxUnavailable",baseName:"maxUnavailable",type:"any"}];t.V1beta1RollingUpdateDaemonSet=V1beta1RollingUpdateDaemonSet;class V1beta1RollingUpdateStatefulSetStrategy{static getAttributeTypeMap(){return V1beta1RollingUpdateStatefulSetStrategy.attributeTypeMap}}V1beta1RollingUpdateStatefulSetStrategy.discriminator=undefined;V1beta1RollingUpdateStatefulSetStrategy.attributeTypeMap=[{name:"partition",baseName:"partition",type:"number"}];t.V1beta1RollingUpdateStatefulSetStrategy=V1beta1RollingUpdateStatefulSetStrategy;class V1beta1RuleWithOperations{static getAttributeTypeMap(){return V1beta1RuleWithOperations.attributeTypeMap}}V1beta1RuleWithOperations.discriminator=undefined;V1beta1RuleWithOperations.attributeTypeMap=[{name:"apiGroups",baseName:"apiGroups",type:"Array"},{name:"apiVersions",baseName:"apiVersions",type:"Array"},{name:"operations",baseName:"operations",type:"Array"},{name:"resources",baseName:"resources",type:"Array"}];t.V1beta1RuleWithOperations=V1beta1RuleWithOperations;class V1beta1SelfSubjectAccessReview{static getAttributeTypeMap(){return V1beta1SelfSubjectAccessReview.attributeTypeMap}}V1beta1SelfSubjectAccessReview.discriminator=undefined;V1beta1SelfSubjectAccessReview.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1beta1SelfSubjectAccessReviewSpec"},{name:"status",baseName:"status",type:"V1beta1SubjectAccessReviewStatus"}];t.V1beta1SelfSubjectAccessReview=V1beta1SelfSubjectAccessReview;class V1beta1SelfSubjectAccessReviewSpec{static getAttributeTypeMap(){return V1beta1SelfSubjectAccessReviewSpec.attributeTypeMap}}V1beta1SelfSubjectAccessReviewSpec.discriminator=undefined;V1beta1SelfSubjectAccessReviewSpec.attributeTypeMap=[{name:"nonResourceAttributes",baseName:"nonResourceAttributes",type:"V1beta1NonResourceAttributes"},{name:"resourceAttributes",baseName:"resourceAttributes",type:"V1beta1ResourceAttributes"}];t.V1beta1SelfSubjectAccessReviewSpec=V1beta1SelfSubjectAccessReviewSpec;class V1beta1SelfSubjectRulesReview{static getAttributeTypeMap(){return V1beta1SelfSubjectRulesReview.attributeTypeMap}}V1beta1SelfSubjectRulesReview.discriminator=undefined;V1beta1SelfSubjectRulesReview.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1beta1SelfSubjectRulesReviewSpec"},{name:"status",baseName:"status",type:"V1beta1SubjectRulesReviewStatus"}];t.V1beta1SelfSubjectRulesReview=V1beta1SelfSubjectRulesReview;class V1beta1SelfSubjectRulesReviewSpec{static getAttributeTypeMap(){return V1beta1SelfSubjectRulesReviewSpec.attributeTypeMap}}V1beta1SelfSubjectRulesReviewSpec.discriminator=undefined;V1beta1SelfSubjectRulesReviewSpec.attributeTypeMap=[{name:"namespace",baseName:"namespace",type:"string"}];t.V1beta1SelfSubjectRulesReviewSpec=V1beta1SelfSubjectRulesReviewSpec;class V1beta1StatefulSet{static getAttributeTypeMap(){return V1beta1StatefulSet.attributeTypeMap}}V1beta1StatefulSet.discriminator=undefined;V1beta1StatefulSet.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1beta1StatefulSetSpec"},{name:"status",baseName:"status",type:"V1beta1StatefulSetStatus"}];t.V1beta1StatefulSet=V1beta1StatefulSet;class V1beta1StatefulSetCondition{static getAttributeTypeMap(){return V1beta1StatefulSetCondition.attributeTypeMap}}V1beta1StatefulSetCondition.discriminator=undefined;V1beta1StatefulSetCondition.attributeTypeMap=[{name:"lastTransitionTime",baseName:"lastTransitionTime",type:"Date"},{name:"message",baseName:"message",type:"string"},{name:"reason",baseName:"reason",type:"string"},{name:"status",baseName:"status",type:"string"},{name:"type",baseName:"type",type:"string"}];t.V1beta1StatefulSetCondition=V1beta1StatefulSetCondition;class V1beta1StatefulSetList{static getAttributeTypeMap(){return V1beta1StatefulSetList.attributeTypeMap}}V1beta1StatefulSetList.discriminator=undefined;V1beta1StatefulSetList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1beta1StatefulSetList=V1beta1StatefulSetList;class V1beta1StatefulSetSpec{static getAttributeTypeMap(){return V1beta1StatefulSetSpec.attributeTypeMap}}V1beta1StatefulSetSpec.discriminator=undefined;V1beta1StatefulSetSpec.attributeTypeMap=[{name:"podManagementPolicy",baseName:"podManagementPolicy",type:"string"},{name:"replicas",baseName:"replicas",type:"number"},{name:"revisionHistoryLimit",baseName:"revisionHistoryLimit",type:"number"},{name:"selector",baseName:"selector",type:"V1LabelSelector"},{name:"serviceName",baseName:"serviceName",type:"string"},{name:"template",baseName:"template",type:"V1PodTemplateSpec"},{name:"updateStrategy",baseName:"updateStrategy",type:"V1beta1StatefulSetUpdateStrategy"},{name:"volumeClaimTemplates",baseName:"volumeClaimTemplates",type:"Array"}];t.V1beta1StatefulSetSpec=V1beta1StatefulSetSpec;class V1beta1StatefulSetStatus{static getAttributeTypeMap(){return V1beta1StatefulSetStatus.attributeTypeMap}}V1beta1StatefulSetStatus.discriminator=undefined;V1beta1StatefulSetStatus.attributeTypeMap=[{name:"collisionCount",baseName:"collisionCount",type:"number"},{name:"conditions",baseName:"conditions",type:"Array"},{name:"currentReplicas",baseName:"currentReplicas",type:"number"},{name:"currentRevision",baseName:"currentRevision",type:"string"},{name:"observedGeneration",baseName:"observedGeneration",type:"number"},{name:"readyReplicas",baseName:"readyReplicas",type:"number"},{name:"replicas",baseName:"replicas",type:"number"},{name:"updateRevision",baseName:"updateRevision",type:"string"},{name:"updatedReplicas",baseName:"updatedReplicas",type:"number"}];t.V1beta1StatefulSetStatus=V1beta1StatefulSetStatus;class V1beta1StatefulSetUpdateStrategy{static getAttributeTypeMap(){return V1beta1StatefulSetUpdateStrategy.attributeTypeMap}}V1beta1StatefulSetUpdateStrategy.discriminator=undefined;V1beta1StatefulSetUpdateStrategy.attributeTypeMap=[{name:"rollingUpdate",baseName:"rollingUpdate",type:"V1beta1RollingUpdateStatefulSetStrategy"},{name:"type",baseName:"type",type:"string"}];t.V1beta1StatefulSetUpdateStrategy=V1beta1StatefulSetUpdateStrategy;class V1beta1StorageClass{static getAttributeTypeMap(){return V1beta1StorageClass.attributeTypeMap}}V1beta1StorageClass.discriminator=undefined;V1beta1StorageClass.attributeTypeMap=[{name:"allowVolumeExpansion",baseName:"allowVolumeExpansion",type:"boolean"},{name:"allowedTopologies",baseName:"allowedTopologies",type:"Array"},{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"mountOptions",baseName:"mountOptions",type:"Array"},{name:"parameters",baseName:"parameters",type:"{ [key: string]: string; }"},{name:"provisioner",baseName:"provisioner",type:"string"},{name:"reclaimPolicy",baseName:"reclaimPolicy",type:"string"},{name:"volumeBindingMode",baseName:"volumeBindingMode",type:"string"}];t.V1beta1StorageClass=V1beta1StorageClass;class V1beta1StorageClassList{static getAttributeTypeMap(){return V1beta1StorageClassList.attributeTypeMap}}V1beta1StorageClassList.discriminator=undefined;V1beta1StorageClassList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1beta1StorageClassList=V1beta1StorageClassList;class V1beta1Subject{static getAttributeTypeMap(){return V1beta1Subject.attributeTypeMap}}V1beta1Subject.discriminator=undefined;V1beta1Subject.attributeTypeMap=[{name:"apiGroup",baseName:"apiGroup",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"name",baseName:"name",type:"string"},{name:"namespace",baseName:"namespace",type:"string"}];t.V1beta1Subject=V1beta1Subject;class V1beta1SubjectAccessReview{static getAttributeTypeMap(){return V1beta1SubjectAccessReview.attributeTypeMap}}V1beta1SubjectAccessReview.discriminator=undefined;V1beta1SubjectAccessReview.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1beta1SubjectAccessReviewSpec"},{name:"status",baseName:"status",type:"V1beta1SubjectAccessReviewStatus"}];t.V1beta1SubjectAccessReview=V1beta1SubjectAccessReview;class V1beta1SubjectAccessReviewSpec{static getAttributeTypeMap(){return V1beta1SubjectAccessReviewSpec.attributeTypeMap}}V1beta1SubjectAccessReviewSpec.discriminator=undefined;V1beta1SubjectAccessReviewSpec.attributeTypeMap=[{name:"extra",baseName:"extra",type:"{ [key: string]: Array; }"},{name:"group",baseName:"group",type:"Array"},{name:"nonResourceAttributes",baseName:"nonResourceAttributes",type:"V1beta1NonResourceAttributes"},{name:"resourceAttributes",baseName:"resourceAttributes",type:"V1beta1ResourceAttributes"},{name:"uid",baseName:"uid",type:"string"},{name:"user",baseName:"user",type:"string"}];t.V1beta1SubjectAccessReviewSpec=V1beta1SubjectAccessReviewSpec;class V1beta1SubjectAccessReviewStatus{static getAttributeTypeMap(){return V1beta1SubjectAccessReviewStatus.attributeTypeMap}}V1beta1SubjectAccessReviewStatus.discriminator=undefined;V1beta1SubjectAccessReviewStatus.attributeTypeMap=[{name:"allowed",baseName:"allowed",type:"boolean"},{name:"denied",baseName:"denied",type:"boolean"},{name:"evaluationError",baseName:"evaluationError",type:"string"},{name:"reason",baseName:"reason",type:"string"}];t.V1beta1SubjectAccessReviewStatus=V1beta1SubjectAccessReviewStatus;class V1beta1SubjectRulesReviewStatus{static getAttributeTypeMap(){return V1beta1SubjectRulesReviewStatus.attributeTypeMap}}V1beta1SubjectRulesReviewStatus.discriminator=undefined;V1beta1SubjectRulesReviewStatus.attributeTypeMap=[{name:"evaluationError",baseName:"evaluationError",type:"string"},{name:"incomplete",baseName:"incomplete",type:"boolean"},{name:"nonResourceRules",baseName:"nonResourceRules",type:"Array"},{name:"resourceRules",baseName:"resourceRules",type:"Array"}];t.V1beta1SubjectRulesReviewStatus=V1beta1SubjectRulesReviewStatus;class V1beta1TokenReview{static getAttributeTypeMap(){return V1beta1TokenReview.attributeTypeMap}}V1beta1TokenReview.discriminator=undefined;V1beta1TokenReview.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1beta1TokenReviewSpec"},{name:"status",baseName:"status",type:"V1beta1TokenReviewStatus"}];t.V1beta1TokenReview=V1beta1TokenReview;class V1beta1TokenReviewSpec{static getAttributeTypeMap(){return V1beta1TokenReviewSpec.attributeTypeMap}}V1beta1TokenReviewSpec.discriminator=undefined;V1beta1TokenReviewSpec.attributeTypeMap=[{name:"audiences",baseName:"audiences",type:"Array"},{name:"token",baseName:"token",type:"string"}];t.V1beta1TokenReviewSpec=V1beta1TokenReviewSpec;class V1beta1TokenReviewStatus{static getAttributeTypeMap(){return V1beta1TokenReviewStatus.attributeTypeMap}}V1beta1TokenReviewStatus.discriminator=undefined;V1beta1TokenReviewStatus.attributeTypeMap=[{name:"audiences",baseName:"audiences",type:"Array"},{name:"authenticated",baseName:"authenticated",type:"boolean"},{name:"error",baseName:"error",type:"string"},{name:"user",baseName:"user",type:"V1beta1UserInfo"}];t.V1beta1TokenReviewStatus=V1beta1TokenReviewStatus;class V1beta1UserInfo{static getAttributeTypeMap(){return V1beta1UserInfo.attributeTypeMap}}V1beta1UserInfo.discriminator=undefined;V1beta1UserInfo.attributeTypeMap=[{name:"extra",baseName:"extra",type:"{ [key: string]: Array; }"},{name:"groups",baseName:"groups",type:"Array"},{name:"uid",baseName:"uid",type:"string"},{name:"username",baseName:"username",type:"string"}];t.V1beta1UserInfo=V1beta1UserInfo;class V1beta1ValidatingWebhookConfiguration{static getAttributeTypeMap(){return V1beta1ValidatingWebhookConfiguration.attributeTypeMap}}V1beta1ValidatingWebhookConfiguration.discriminator=undefined;V1beta1ValidatingWebhookConfiguration.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"webhooks",baseName:"webhooks",type:"Array"}];t.V1beta1ValidatingWebhookConfiguration=V1beta1ValidatingWebhookConfiguration;class V1beta1ValidatingWebhookConfigurationList{static getAttributeTypeMap(){return V1beta1ValidatingWebhookConfigurationList.attributeTypeMap}}V1beta1ValidatingWebhookConfigurationList.discriminator=undefined;V1beta1ValidatingWebhookConfigurationList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1beta1ValidatingWebhookConfigurationList=V1beta1ValidatingWebhookConfigurationList;class V1beta1VolumeAttachment{static getAttributeTypeMap(){return V1beta1VolumeAttachment.attributeTypeMap}}V1beta1VolumeAttachment.discriminator=undefined;V1beta1VolumeAttachment.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1beta1VolumeAttachmentSpec"},{name:"status",baseName:"status",type:"V1beta1VolumeAttachmentStatus"}];t.V1beta1VolumeAttachment=V1beta1VolumeAttachment;class V1beta1VolumeAttachmentList{static getAttributeTypeMap(){return V1beta1VolumeAttachmentList.attributeTypeMap}}V1beta1VolumeAttachmentList.discriminator=undefined;V1beta1VolumeAttachmentList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1beta1VolumeAttachmentList=V1beta1VolumeAttachmentList;class V1beta1VolumeAttachmentSource{static getAttributeTypeMap(){return V1beta1VolumeAttachmentSource.attributeTypeMap}}V1beta1VolumeAttachmentSource.discriminator=undefined;V1beta1VolumeAttachmentSource.attributeTypeMap=[{name:"persistentVolumeName",baseName:"persistentVolumeName",type:"string"}];t.V1beta1VolumeAttachmentSource=V1beta1VolumeAttachmentSource;class V1beta1VolumeAttachmentSpec{static getAttributeTypeMap(){return V1beta1VolumeAttachmentSpec.attributeTypeMap}}V1beta1VolumeAttachmentSpec.discriminator=undefined;V1beta1VolumeAttachmentSpec.attributeTypeMap=[{name:"attacher",baseName:"attacher",type:"string"},{name:"nodeName",baseName:"nodeName",type:"string"},{name:"source",baseName:"source",type:"V1beta1VolumeAttachmentSource"}];t.V1beta1VolumeAttachmentSpec=V1beta1VolumeAttachmentSpec;class V1beta1VolumeAttachmentStatus{static getAttributeTypeMap(){return V1beta1VolumeAttachmentStatus.attributeTypeMap}}V1beta1VolumeAttachmentStatus.discriminator=undefined;V1beta1VolumeAttachmentStatus.attributeTypeMap=[{name:"attachError",baseName:"attachError",type:"V1beta1VolumeError"},{name:"attached",baseName:"attached",type:"boolean"},{name:"attachmentMetadata",baseName:"attachmentMetadata",type:"{ [key: string]: string; }"},{name:"detachError",baseName:"detachError",type:"V1beta1VolumeError"}];t.V1beta1VolumeAttachmentStatus=V1beta1VolumeAttachmentStatus;class V1beta1VolumeError{static getAttributeTypeMap(){return V1beta1VolumeError.attributeTypeMap}}V1beta1VolumeError.discriminator=undefined;V1beta1VolumeError.attributeTypeMap=[{name:"message",baseName:"message",type:"string"},{name:"time",baseName:"time",type:"Date"}];t.V1beta1VolumeError=V1beta1VolumeError;class V1beta1Webhook{static getAttributeTypeMap(){return V1beta1Webhook.attributeTypeMap}}V1beta1Webhook.discriminator=undefined;V1beta1Webhook.attributeTypeMap=[{name:"clientConfig",baseName:"clientConfig",type:"AdmissionregistrationV1beta1WebhookClientConfig"},{name:"failurePolicy",baseName:"failurePolicy",type:"string"},{name:"name",baseName:"name",type:"string"},{name:"namespaceSelector",baseName:"namespaceSelector",type:"V1LabelSelector"},{name:"rules",baseName:"rules",type:"Array"},{name:"sideEffects",baseName:"sideEffects",type:"string"}];t.V1beta1Webhook=V1beta1Webhook;class V1beta2ControllerRevision{static getAttributeTypeMap(){return V1beta2ControllerRevision.attributeTypeMap}}V1beta2ControllerRevision.discriminator=undefined;V1beta2ControllerRevision.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"data",baseName:"data",type:"RuntimeRawExtension"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"revision",baseName:"revision",type:"number"}];t.V1beta2ControllerRevision=V1beta2ControllerRevision;class V1beta2ControllerRevisionList{static getAttributeTypeMap(){return V1beta2ControllerRevisionList.attributeTypeMap}}V1beta2ControllerRevisionList.discriminator=undefined;V1beta2ControllerRevisionList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1beta2ControllerRevisionList=V1beta2ControllerRevisionList;class V1beta2DaemonSet{static getAttributeTypeMap(){return V1beta2DaemonSet.attributeTypeMap}}V1beta2DaemonSet.discriminator=undefined;V1beta2DaemonSet.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1beta2DaemonSetSpec"},{name:"status",baseName:"status",type:"V1beta2DaemonSetStatus"}];t.V1beta2DaemonSet=V1beta2DaemonSet;class V1beta2DaemonSetCondition{static getAttributeTypeMap(){return V1beta2DaemonSetCondition.attributeTypeMap}}V1beta2DaemonSetCondition.discriminator=undefined;V1beta2DaemonSetCondition.attributeTypeMap=[{name:"lastTransitionTime",baseName:"lastTransitionTime",type:"Date"},{name:"message",baseName:"message",type:"string"},{name:"reason",baseName:"reason",type:"string"},{name:"status",baseName:"status",type:"string"},{name:"type",baseName:"type",type:"string"}];t.V1beta2DaemonSetCondition=V1beta2DaemonSetCondition;class V1beta2DaemonSetList{static getAttributeTypeMap(){return V1beta2DaemonSetList.attributeTypeMap}}V1beta2DaemonSetList.discriminator=undefined;V1beta2DaemonSetList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1beta2DaemonSetList=V1beta2DaemonSetList;class V1beta2DaemonSetSpec{static getAttributeTypeMap(){return V1beta2DaemonSetSpec.attributeTypeMap}}V1beta2DaemonSetSpec.discriminator=undefined;V1beta2DaemonSetSpec.attributeTypeMap=[{name:"minReadySeconds",baseName:"minReadySeconds",type:"number"},{name:"revisionHistoryLimit",baseName:"revisionHistoryLimit",type:"number"},{name:"selector",baseName:"selector",type:"V1LabelSelector"},{name:"template",baseName:"template",type:"V1PodTemplateSpec"},{name:"updateStrategy",baseName:"updateStrategy",type:"V1beta2DaemonSetUpdateStrategy"}];t.V1beta2DaemonSetSpec=V1beta2DaemonSetSpec;class V1beta2DaemonSetStatus{static getAttributeTypeMap(){return V1beta2DaemonSetStatus.attributeTypeMap}}V1beta2DaemonSetStatus.discriminator=undefined;V1beta2DaemonSetStatus.attributeTypeMap=[{name:"collisionCount",baseName:"collisionCount",type:"number"},{name:"conditions",baseName:"conditions",type:"Array"},{name:"currentNumberScheduled",baseName:"currentNumberScheduled",type:"number"},{name:"desiredNumberScheduled",baseName:"desiredNumberScheduled",type:"number"},{name:"numberAvailable",baseName:"numberAvailable",type:"number"},{name:"numberMisscheduled",baseName:"numberMisscheduled",type:"number"},{name:"numberReady",baseName:"numberReady",type:"number"},{name:"numberUnavailable",baseName:"numberUnavailable",type:"number"},{name:"observedGeneration",baseName:"observedGeneration",type:"number"},{name:"updatedNumberScheduled",baseName:"updatedNumberScheduled",type:"number"}];t.V1beta2DaemonSetStatus=V1beta2DaemonSetStatus;class V1beta2DaemonSetUpdateStrategy{static getAttributeTypeMap(){return V1beta2DaemonSetUpdateStrategy.attributeTypeMap}}V1beta2DaemonSetUpdateStrategy.discriminator=undefined;V1beta2DaemonSetUpdateStrategy.attributeTypeMap=[{name:"rollingUpdate",baseName:"rollingUpdate",type:"V1beta2RollingUpdateDaemonSet"},{name:"type",baseName:"type",type:"string"}];t.V1beta2DaemonSetUpdateStrategy=V1beta2DaemonSetUpdateStrategy;class V1beta2Deployment{static getAttributeTypeMap(){return V1beta2Deployment.attributeTypeMap}}V1beta2Deployment.discriminator=undefined;V1beta2Deployment.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1beta2DeploymentSpec"},{name:"status",baseName:"status",type:"V1beta2DeploymentStatus"}];t.V1beta2Deployment=V1beta2Deployment;class V1beta2DeploymentCondition{static getAttributeTypeMap(){return V1beta2DeploymentCondition.attributeTypeMap}}V1beta2DeploymentCondition.discriminator=undefined;V1beta2DeploymentCondition.attributeTypeMap=[{name:"lastTransitionTime",baseName:"lastTransitionTime",type:"Date"},{name:"lastUpdateTime",baseName:"lastUpdateTime",type:"Date"},{name:"message",baseName:"message",type:"string"},{name:"reason",baseName:"reason",type:"string"},{name:"status",baseName:"status",type:"string"},{name:"type",baseName:"type",type:"string"}];t.V1beta2DeploymentCondition=V1beta2DeploymentCondition;class V1beta2DeploymentList{static getAttributeTypeMap(){return V1beta2DeploymentList.attributeTypeMap}}V1beta2DeploymentList.discriminator=undefined;V1beta2DeploymentList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1beta2DeploymentList=V1beta2DeploymentList;class V1beta2DeploymentSpec{static getAttributeTypeMap(){return V1beta2DeploymentSpec.attributeTypeMap}}V1beta2DeploymentSpec.discriminator=undefined;V1beta2DeploymentSpec.attributeTypeMap=[{name:"minReadySeconds",baseName:"minReadySeconds",type:"number"},{name:"paused",baseName:"paused",type:"boolean"},{name:"progressDeadlineSeconds",baseName:"progressDeadlineSeconds",type:"number"},{name:"replicas",baseName:"replicas",type:"number"},{name:"revisionHistoryLimit",baseName:"revisionHistoryLimit",type:"number"},{name:"selector",baseName:"selector",type:"V1LabelSelector"},{name:"strategy",baseName:"strategy",type:"V1beta2DeploymentStrategy"},{name:"template",baseName:"template",type:"V1PodTemplateSpec"}];t.V1beta2DeploymentSpec=V1beta2DeploymentSpec;class V1beta2DeploymentStatus{static getAttributeTypeMap(){return V1beta2DeploymentStatus.attributeTypeMap}}V1beta2DeploymentStatus.discriminator=undefined;V1beta2DeploymentStatus.attributeTypeMap=[{name:"availableReplicas",baseName:"availableReplicas",type:"number"},{name:"collisionCount",baseName:"collisionCount",type:"number"},{name:"conditions",baseName:"conditions",type:"Array"},{name:"observedGeneration",baseName:"observedGeneration",type:"number"},{name:"readyReplicas",baseName:"readyReplicas",type:"number"},{name:"replicas",baseName:"replicas",type:"number"},{name:"unavailableReplicas",baseName:"unavailableReplicas",type:"number"},{name:"updatedReplicas",baseName:"updatedReplicas",type:"number"}];t.V1beta2DeploymentStatus=V1beta2DeploymentStatus;class V1beta2DeploymentStrategy{static getAttributeTypeMap(){return V1beta2DeploymentStrategy.attributeTypeMap}}V1beta2DeploymentStrategy.discriminator=undefined;V1beta2DeploymentStrategy.attributeTypeMap=[{name:"rollingUpdate",baseName:"rollingUpdate",type:"V1beta2RollingUpdateDeployment"},{name:"type",baseName:"type",type:"string"}];t.V1beta2DeploymentStrategy=V1beta2DeploymentStrategy;class V1beta2ReplicaSet{static getAttributeTypeMap(){return V1beta2ReplicaSet.attributeTypeMap}}V1beta2ReplicaSet.discriminator=undefined;V1beta2ReplicaSet.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1beta2ReplicaSetSpec"},{name:"status",baseName:"status",type:"V1beta2ReplicaSetStatus"}];t.V1beta2ReplicaSet=V1beta2ReplicaSet;class V1beta2ReplicaSetCondition{static getAttributeTypeMap(){return V1beta2ReplicaSetCondition.attributeTypeMap}}V1beta2ReplicaSetCondition.discriminator=undefined;V1beta2ReplicaSetCondition.attributeTypeMap=[{name:"lastTransitionTime",baseName:"lastTransitionTime",type:"Date"},{name:"message",baseName:"message",type:"string"},{name:"reason",baseName:"reason",type:"string"},{name:"status",baseName:"status",type:"string"},{name:"type",baseName:"type",type:"string"}];t.V1beta2ReplicaSetCondition=V1beta2ReplicaSetCondition;class V1beta2ReplicaSetList{static getAttributeTypeMap(){return V1beta2ReplicaSetList.attributeTypeMap}}V1beta2ReplicaSetList.discriminator=undefined;V1beta2ReplicaSetList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1beta2ReplicaSetList=V1beta2ReplicaSetList;class V1beta2ReplicaSetSpec{static getAttributeTypeMap(){return V1beta2ReplicaSetSpec.attributeTypeMap}}V1beta2ReplicaSetSpec.discriminator=undefined;V1beta2ReplicaSetSpec.attributeTypeMap=[{name:"minReadySeconds",baseName:"minReadySeconds",type:"number"},{name:"replicas",baseName:"replicas",type:"number"},{name:"selector",baseName:"selector",type:"V1LabelSelector"},{name:"template",baseName:"template",type:"V1PodTemplateSpec"}];t.V1beta2ReplicaSetSpec=V1beta2ReplicaSetSpec;class V1beta2ReplicaSetStatus{static getAttributeTypeMap(){return V1beta2ReplicaSetStatus.attributeTypeMap}}V1beta2ReplicaSetStatus.discriminator=undefined;V1beta2ReplicaSetStatus.attributeTypeMap=[{name:"availableReplicas",baseName:"availableReplicas",type:"number"},{name:"conditions",baseName:"conditions",type:"Array"},{name:"fullyLabeledReplicas",baseName:"fullyLabeledReplicas",type:"number"},{name:"observedGeneration",baseName:"observedGeneration",type:"number"},{name:"readyReplicas",baseName:"readyReplicas",type:"number"},{name:"replicas",baseName:"replicas",type:"number"}];t.V1beta2ReplicaSetStatus=V1beta2ReplicaSetStatus;class V1beta2RollingUpdateDaemonSet{static getAttributeTypeMap(){return V1beta2RollingUpdateDaemonSet.attributeTypeMap}}V1beta2RollingUpdateDaemonSet.discriminator=undefined;V1beta2RollingUpdateDaemonSet.attributeTypeMap=[{name:"maxUnavailable",baseName:"maxUnavailable",type:"any"}];t.V1beta2RollingUpdateDaemonSet=V1beta2RollingUpdateDaemonSet;class V1beta2RollingUpdateDeployment{static getAttributeTypeMap(){return V1beta2RollingUpdateDeployment.attributeTypeMap}}V1beta2RollingUpdateDeployment.discriminator=undefined;V1beta2RollingUpdateDeployment.attributeTypeMap=[{name:"maxSurge",baseName:"maxSurge",type:"any"},{name:"maxUnavailable",baseName:"maxUnavailable",type:"any"}];t.V1beta2RollingUpdateDeployment=V1beta2RollingUpdateDeployment;class V1beta2RollingUpdateStatefulSetStrategy{static getAttributeTypeMap(){return V1beta2RollingUpdateStatefulSetStrategy.attributeTypeMap}}V1beta2RollingUpdateStatefulSetStrategy.discriminator=undefined;V1beta2RollingUpdateStatefulSetStrategy.attributeTypeMap=[{name:"partition",baseName:"partition",type:"number"}];t.V1beta2RollingUpdateStatefulSetStrategy=V1beta2RollingUpdateStatefulSetStrategy;class V1beta2Scale{static getAttributeTypeMap(){return V1beta2Scale.attributeTypeMap}}V1beta2Scale.discriminator=undefined;V1beta2Scale.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1beta2ScaleSpec"},{name:"status",baseName:"status",type:"V1beta2ScaleStatus"}];t.V1beta2Scale=V1beta2Scale;class V1beta2ScaleSpec{static getAttributeTypeMap(){return V1beta2ScaleSpec.attributeTypeMap}}V1beta2ScaleSpec.discriminator=undefined;V1beta2ScaleSpec.attributeTypeMap=[{name:"replicas",baseName:"replicas",type:"number"}];t.V1beta2ScaleSpec=V1beta2ScaleSpec;class V1beta2ScaleStatus{static getAttributeTypeMap(){return V1beta2ScaleStatus.attributeTypeMap}}V1beta2ScaleStatus.discriminator=undefined;V1beta2ScaleStatus.attributeTypeMap=[{name:"replicas",baseName:"replicas",type:"number"},{name:"selector",baseName:"selector",type:"{ [key: string]: string; }"},{name:"targetSelector",baseName:"targetSelector",type:"string"}];t.V1beta2ScaleStatus=V1beta2ScaleStatus;class V1beta2StatefulSet{static getAttributeTypeMap(){return V1beta2StatefulSet.attributeTypeMap}}V1beta2StatefulSet.discriminator=undefined;V1beta2StatefulSet.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1beta2StatefulSetSpec"},{name:"status",baseName:"status",type:"V1beta2StatefulSetStatus"}];t.V1beta2StatefulSet=V1beta2StatefulSet;class V1beta2StatefulSetCondition{static getAttributeTypeMap(){return V1beta2StatefulSetCondition.attributeTypeMap}}V1beta2StatefulSetCondition.discriminator=undefined;V1beta2StatefulSetCondition.attributeTypeMap=[{name:"lastTransitionTime",baseName:"lastTransitionTime",type:"Date"},{name:"message",baseName:"message",type:"string"},{name:"reason",baseName:"reason",type:"string"},{name:"status",baseName:"status",type:"string"},{name:"type",baseName:"type",type:"string"}];t.V1beta2StatefulSetCondition=V1beta2StatefulSetCondition;class V1beta2StatefulSetList{static getAttributeTypeMap(){return V1beta2StatefulSetList.attributeTypeMap}}V1beta2StatefulSetList.discriminator=undefined;V1beta2StatefulSetList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V1beta2StatefulSetList=V1beta2StatefulSetList;class V1beta2StatefulSetSpec{static getAttributeTypeMap(){return V1beta2StatefulSetSpec.attributeTypeMap}}V1beta2StatefulSetSpec.discriminator=undefined;V1beta2StatefulSetSpec.attributeTypeMap=[{name:"podManagementPolicy",baseName:"podManagementPolicy",type:"string"},{name:"replicas",baseName:"replicas",type:"number"},{name:"revisionHistoryLimit",baseName:"revisionHistoryLimit",type:"number"},{name:"selector",baseName:"selector",type:"V1LabelSelector"},{name:"serviceName",baseName:"serviceName",type:"string"},{name:"template",baseName:"template",type:"V1PodTemplateSpec"},{name:"updateStrategy",baseName:"updateStrategy",type:"V1beta2StatefulSetUpdateStrategy"},{name:"volumeClaimTemplates",baseName:"volumeClaimTemplates",type:"Array"}];t.V1beta2StatefulSetSpec=V1beta2StatefulSetSpec;class V1beta2StatefulSetStatus{static getAttributeTypeMap(){return V1beta2StatefulSetStatus.attributeTypeMap}}V1beta2StatefulSetStatus.discriminator=undefined;V1beta2StatefulSetStatus.attributeTypeMap=[{name:"collisionCount",baseName:"collisionCount",type:"number"},{name:"conditions",baseName:"conditions",type:"Array"},{name:"currentReplicas",baseName:"currentReplicas",type:"number"},{name:"currentRevision",baseName:"currentRevision",type:"string"},{name:"observedGeneration",baseName:"observedGeneration",type:"number"},{name:"readyReplicas",baseName:"readyReplicas",type:"number"},{name:"replicas",baseName:"replicas",type:"number"},{name:"updateRevision",baseName:"updateRevision",type:"string"},{name:"updatedReplicas",baseName:"updatedReplicas",type:"number"}];t.V1beta2StatefulSetStatus=V1beta2StatefulSetStatus;class V1beta2StatefulSetUpdateStrategy{static getAttributeTypeMap(){return V1beta2StatefulSetUpdateStrategy.attributeTypeMap}}V1beta2StatefulSetUpdateStrategy.discriminator=undefined;V1beta2StatefulSetUpdateStrategy.attributeTypeMap=[{name:"rollingUpdate",baseName:"rollingUpdate",type:"V1beta2RollingUpdateStatefulSetStrategy"},{name:"type",baseName:"type",type:"string"}];t.V1beta2StatefulSetUpdateStrategy=V1beta2StatefulSetUpdateStrategy;class V2alpha1CronJob{static getAttributeTypeMap(){return V2alpha1CronJob.attributeTypeMap}}V2alpha1CronJob.discriminator=undefined;V2alpha1CronJob.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V2alpha1CronJobSpec"},{name:"status",baseName:"status",type:"V2alpha1CronJobStatus"}];t.V2alpha1CronJob=V2alpha1CronJob;class V2alpha1CronJobList{static getAttributeTypeMap(){return V2alpha1CronJobList.attributeTypeMap}}V2alpha1CronJobList.discriminator=undefined;V2alpha1CronJobList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V2alpha1CronJobList=V2alpha1CronJobList;class V2alpha1CronJobSpec{static getAttributeTypeMap(){return V2alpha1CronJobSpec.attributeTypeMap}}V2alpha1CronJobSpec.discriminator=undefined;V2alpha1CronJobSpec.attributeTypeMap=[{name:"concurrencyPolicy",baseName:"concurrencyPolicy",type:"string"},{name:"failedJobsHistoryLimit",baseName:"failedJobsHistoryLimit",type:"number"},{name:"jobTemplate",baseName:"jobTemplate",type:"V2alpha1JobTemplateSpec"},{name:"schedule",baseName:"schedule",type:"string"},{name:"startingDeadlineSeconds",baseName:"startingDeadlineSeconds",type:"number"},{name:"successfulJobsHistoryLimit",baseName:"successfulJobsHistoryLimit",type:"number"},{name:"suspend",baseName:"suspend",type:"boolean"}];t.V2alpha1CronJobSpec=V2alpha1CronJobSpec;class V2alpha1CronJobStatus{static getAttributeTypeMap(){return V2alpha1CronJobStatus.attributeTypeMap}}V2alpha1CronJobStatus.discriminator=undefined;V2alpha1CronJobStatus.attributeTypeMap=[{name:"active",baseName:"active",type:"Array"},{name:"lastScheduleTime",baseName:"lastScheduleTime",type:"Date"}];t.V2alpha1CronJobStatus=V2alpha1CronJobStatus;class V2alpha1JobTemplateSpec{static getAttributeTypeMap(){return V2alpha1JobTemplateSpec.attributeTypeMap}}V2alpha1JobTemplateSpec.discriminator=undefined;V2alpha1JobTemplateSpec.attributeTypeMap=[{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V1JobSpec"}];t.V2alpha1JobTemplateSpec=V2alpha1JobTemplateSpec;class V2beta1CrossVersionObjectReference{static getAttributeTypeMap(){return V2beta1CrossVersionObjectReference.attributeTypeMap}}V2beta1CrossVersionObjectReference.discriminator=undefined;V2beta1CrossVersionObjectReference.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"name",baseName:"name",type:"string"}];t.V2beta1CrossVersionObjectReference=V2beta1CrossVersionObjectReference;class V2beta1ExternalMetricSource{static getAttributeTypeMap(){return V2beta1ExternalMetricSource.attributeTypeMap}}V2beta1ExternalMetricSource.discriminator=undefined;V2beta1ExternalMetricSource.attributeTypeMap=[{name:"metricName",baseName:"metricName",type:"string"},{name:"metricSelector",baseName:"metricSelector",type:"V1LabelSelector"},{name:"targetAverageValue",baseName:"targetAverageValue",type:"string"},{name:"targetValue",baseName:"targetValue",type:"string"}];t.V2beta1ExternalMetricSource=V2beta1ExternalMetricSource;class V2beta1ExternalMetricStatus{static getAttributeTypeMap(){return V2beta1ExternalMetricStatus.attributeTypeMap}}V2beta1ExternalMetricStatus.discriminator=undefined;V2beta1ExternalMetricStatus.attributeTypeMap=[{name:"currentAverageValue",baseName:"currentAverageValue",type:"string"},{name:"currentValue",baseName:"currentValue",type:"string"},{name:"metricName",baseName:"metricName",type:"string"},{name:"metricSelector",baseName:"metricSelector",type:"V1LabelSelector"}];t.V2beta1ExternalMetricStatus=V2beta1ExternalMetricStatus;class V2beta1HorizontalPodAutoscaler{static getAttributeTypeMap(){return V2beta1HorizontalPodAutoscaler.attributeTypeMap}}V2beta1HorizontalPodAutoscaler.discriminator=undefined;V2beta1HorizontalPodAutoscaler.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V2beta1HorizontalPodAutoscalerSpec"},{name:"status",baseName:"status",type:"V2beta1HorizontalPodAutoscalerStatus"}];t.V2beta1HorizontalPodAutoscaler=V2beta1HorizontalPodAutoscaler;class V2beta1HorizontalPodAutoscalerCondition{static getAttributeTypeMap(){return V2beta1HorizontalPodAutoscalerCondition.attributeTypeMap}}V2beta1HorizontalPodAutoscalerCondition.discriminator=undefined;V2beta1HorizontalPodAutoscalerCondition.attributeTypeMap=[{name:"lastTransitionTime",baseName:"lastTransitionTime",type:"Date"},{name:"message",baseName:"message",type:"string"},{name:"reason",baseName:"reason",type:"string"},{name:"status",baseName:"status",type:"string"},{name:"type",baseName:"type",type:"string"}];t.V2beta1HorizontalPodAutoscalerCondition=V2beta1HorizontalPodAutoscalerCondition;class V2beta1HorizontalPodAutoscalerList{static getAttributeTypeMap(){return V2beta1HorizontalPodAutoscalerList.attributeTypeMap}}V2beta1HorizontalPodAutoscalerList.discriminator=undefined;V2beta1HorizontalPodAutoscalerList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V2beta1HorizontalPodAutoscalerList=V2beta1HorizontalPodAutoscalerList;class V2beta1HorizontalPodAutoscalerSpec{static getAttributeTypeMap(){return V2beta1HorizontalPodAutoscalerSpec.attributeTypeMap}}V2beta1HorizontalPodAutoscalerSpec.discriminator=undefined;V2beta1HorizontalPodAutoscalerSpec.attributeTypeMap=[{name:"maxReplicas",baseName:"maxReplicas",type:"number"},{name:"metrics",baseName:"metrics",type:"Array"},{name:"minReplicas",baseName:"minReplicas",type:"number"},{name:"scaleTargetRef",baseName:"scaleTargetRef",type:"V2beta1CrossVersionObjectReference"}];t.V2beta1HorizontalPodAutoscalerSpec=V2beta1HorizontalPodAutoscalerSpec;class V2beta1HorizontalPodAutoscalerStatus{static getAttributeTypeMap(){return V2beta1HorizontalPodAutoscalerStatus.attributeTypeMap}}V2beta1HorizontalPodAutoscalerStatus.discriminator=undefined;V2beta1HorizontalPodAutoscalerStatus.attributeTypeMap=[{name:"conditions",baseName:"conditions",type:"Array"},{name:"currentMetrics",baseName:"currentMetrics",type:"Array"},{name:"currentReplicas",baseName:"currentReplicas",type:"number"},{name:"desiredReplicas",baseName:"desiredReplicas",type:"number"},{name:"lastScaleTime",baseName:"lastScaleTime",type:"Date"},{name:"observedGeneration",baseName:"observedGeneration",type:"number"}];t.V2beta1HorizontalPodAutoscalerStatus=V2beta1HorizontalPodAutoscalerStatus;class V2beta1MetricSpec{static getAttributeTypeMap(){return V2beta1MetricSpec.attributeTypeMap}}V2beta1MetricSpec.discriminator=undefined;V2beta1MetricSpec.attributeTypeMap=[{name:"external",baseName:"external",type:"V2beta1ExternalMetricSource"},{name:"object",baseName:"object",type:"V2beta1ObjectMetricSource"},{name:"pods",baseName:"pods",type:"V2beta1PodsMetricSource"},{name:"resource",baseName:"resource",type:"V2beta1ResourceMetricSource"},{name:"type",baseName:"type",type:"string"}];t.V2beta1MetricSpec=V2beta1MetricSpec;class V2beta1MetricStatus{static getAttributeTypeMap(){return V2beta1MetricStatus.attributeTypeMap}}V2beta1MetricStatus.discriminator=undefined;V2beta1MetricStatus.attributeTypeMap=[{name:"external",baseName:"external",type:"V2beta1ExternalMetricStatus"},{name:"object",baseName:"object",type:"V2beta1ObjectMetricStatus"},{name:"pods",baseName:"pods",type:"V2beta1PodsMetricStatus"},{name:"resource",baseName:"resource",type:"V2beta1ResourceMetricStatus"},{name:"type",baseName:"type",type:"string"}];t.V2beta1MetricStatus=V2beta1MetricStatus;class V2beta1ObjectMetricSource{static getAttributeTypeMap(){return V2beta1ObjectMetricSource.attributeTypeMap}}V2beta1ObjectMetricSource.discriminator=undefined;V2beta1ObjectMetricSource.attributeTypeMap=[{name:"averageValue",baseName:"averageValue",type:"string"},{name:"metricName",baseName:"metricName",type:"string"},{name:"selector",baseName:"selector",type:"V1LabelSelector"},{name:"target",baseName:"target",type:"V2beta1CrossVersionObjectReference"},{name:"targetValue",baseName:"targetValue",type:"string"}];t.V2beta1ObjectMetricSource=V2beta1ObjectMetricSource;class V2beta1ObjectMetricStatus{static getAttributeTypeMap(){return V2beta1ObjectMetricStatus.attributeTypeMap}}V2beta1ObjectMetricStatus.discriminator=undefined;V2beta1ObjectMetricStatus.attributeTypeMap=[{name:"averageValue",baseName:"averageValue",type:"string"},{name:"currentValue",baseName:"currentValue",type:"string"},{name:"metricName",baseName:"metricName",type:"string"},{name:"selector",baseName:"selector",type:"V1LabelSelector"},{name:"target",baseName:"target",type:"V2beta1CrossVersionObjectReference"}];t.V2beta1ObjectMetricStatus=V2beta1ObjectMetricStatus;class V2beta1PodsMetricSource{static getAttributeTypeMap(){return V2beta1PodsMetricSource.attributeTypeMap}}V2beta1PodsMetricSource.discriminator=undefined;V2beta1PodsMetricSource.attributeTypeMap=[{name:"metricName",baseName:"metricName",type:"string"},{name:"selector",baseName:"selector",type:"V1LabelSelector"},{name:"targetAverageValue",baseName:"targetAverageValue",type:"string"}];t.V2beta1PodsMetricSource=V2beta1PodsMetricSource;class V2beta1PodsMetricStatus{static getAttributeTypeMap(){return V2beta1PodsMetricStatus.attributeTypeMap}}V2beta1PodsMetricStatus.discriminator=undefined;V2beta1PodsMetricStatus.attributeTypeMap=[{name:"currentAverageValue",baseName:"currentAverageValue",type:"string"},{name:"metricName",baseName:"metricName",type:"string"},{name:"selector",baseName:"selector",type:"V1LabelSelector"}];t.V2beta1PodsMetricStatus=V2beta1PodsMetricStatus;class V2beta1ResourceMetricSource{static getAttributeTypeMap(){return V2beta1ResourceMetricSource.attributeTypeMap}}V2beta1ResourceMetricSource.discriminator=undefined;V2beta1ResourceMetricSource.attributeTypeMap=[{name:"name",baseName:"name",type:"string"},{name:"targetAverageUtilization",baseName:"targetAverageUtilization",type:"number"},{name:"targetAverageValue",baseName:"targetAverageValue",type:"string"}];t.V2beta1ResourceMetricSource=V2beta1ResourceMetricSource;class V2beta1ResourceMetricStatus{static getAttributeTypeMap(){return V2beta1ResourceMetricStatus.attributeTypeMap}}V2beta1ResourceMetricStatus.discriminator=undefined;V2beta1ResourceMetricStatus.attributeTypeMap=[{name:"currentAverageUtilization",baseName:"currentAverageUtilization",type:"number"},{name:"currentAverageValue",baseName:"currentAverageValue",type:"string"},{name:"name",baseName:"name",type:"string"}];t.V2beta1ResourceMetricStatus=V2beta1ResourceMetricStatus;class V2beta2CrossVersionObjectReference{static getAttributeTypeMap(){return V2beta2CrossVersionObjectReference.attributeTypeMap}}V2beta2CrossVersionObjectReference.discriminator=undefined;V2beta2CrossVersionObjectReference.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"name",baseName:"name",type:"string"}];t.V2beta2CrossVersionObjectReference=V2beta2CrossVersionObjectReference;class V2beta2ExternalMetricSource{static getAttributeTypeMap(){return V2beta2ExternalMetricSource.attributeTypeMap}}V2beta2ExternalMetricSource.discriminator=undefined;V2beta2ExternalMetricSource.attributeTypeMap=[{name:"metric",baseName:"metric",type:"V2beta2MetricIdentifier"},{name:"target",baseName:"target",type:"V2beta2MetricTarget"}];t.V2beta2ExternalMetricSource=V2beta2ExternalMetricSource;class V2beta2ExternalMetricStatus{static getAttributeTypeMap(){return V2beta2ExternalMetricStatus.attributeTypeMap}}V2beta2ExternalMetricStatus.discriminator=undefined;V2beta2ExternalMetricStatus.attributeTypeMap=[{name:"current",baseName:"current",type:"V2beta2MetricValueStatus"},{name:"metric",baseName:"metric",type:"V2beta2MetricIdentifier"}];t.V2beta2ExternalMetricStatus=V2beta2ExternalMetricStatus;class V2beta2HorizontalPodAutoscaler{static getAttributeTypeMap(){return V2beta2HorizontalPodAutoscaler.attributeTypeMap}}V2beta2HorizontalPodAutoscaler.discriminator=undefined;V2beta2HorizontalPodAutoscaler.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ObjectMeta"},{name:"spec",baseName:"spec",type:"V2beta2HorizontalPodAutoscalerSpec"},{name:"status",baseName:"status",type:"V2beta2HorizontalPodAutoscalerStatus"}];t.V2beta2HorizontalPodAutoscaler=V2beta2HorizontalPodAutoscaler;class V2beta2HorizontalPodAutoscalerCondition{static getAttributeTypeMap(){return V2beta2HorizontalPodAutoscalerCondition.attributeTypeMap}}V2beta2HorizontalPodAutoscalerCondition.discriminator=undefined;V2beta2HorizontalPodAutoscalerCondition.attributeTypeMap=[{name:"lastTransitionTime",baseName:"lastTransitionTime",type:"Date"},{name:"message",baseName:"message",type:"string"},{name:"reason",baseName:"reason",type:"string"},{name:"status",baseName:"status",type:"string"},{name:"type",baseName:"type",type:"string"}];t.V2beta2HorizontalPodAutoscalerCondition=V2beta2HorizontalPodAutoscalerCondition;class V2beta2HorizontalPodAutoscalerList{static getAttributeTypeMap(){return V2beta2HorizontalPodAutoscalerList.attributeTypeMap}}V2beta2HorizontalPodAutoscalerList.discriminator=undefined;V2beta2HorizontalPodAutoscalerList.attributeTypeMap=[{name:"apiVersion",baseName:"apiVersion",type:"string"},{name:"items",baseName:"items",type:"Array"},{name:"kind",baseName:"kind",type:"string"},{name:"metadata",baseName:"metadata",type:"V1ListMeta"}];t.V2beta2HorizontalPodAutoscalerList=V2beta2HorizontalPodAutoscalerList;class V2beta2HorizontalPodAutoscalerSpec{static getAttributeTypeMap(){return V2beta2HorizontalPodAutoscalerSpec.attributeTypeMap}}V2beta2HorizontalPodAutoscalerSpec.discriminator=undefined;V2beta2HorizontalPodAutoscalerSpec.attributeTypeMap=[{name:"maxReplicas",baseName:"maxReplicas",type:"number"},{name:"metrics",baseName:"metrics",type:"Array"},{name:"minReplicas",baseName:"minReplicas",type:"number"},{name:"scaleTargetRef",baseName:"scaleTargetRef",type:"V2beta2CrossVersionObjectReference"}];t.V2beta2HorizontalPodAutoscalerSpec=V2beta2HorizontalPodAutoscalerSpec;class V2beta2HorizontalPodAutoscalerStatus{static getAttributeTypeMap(){return V2beta2HorizontalPodAutoscalerStatus.attributeTypeMap}}V2beta2HorizontalPodAutoscalerStatus.discriminator=undefined;V2beta2HorizontalPodAutoscalerStatus.attributeTypeMap=[{name:"conditions",baseName:"conditions",type:"Array"},{name:"currentMetrics",baseName:"currentMetrics",type:"Array"},{name:"currentReplicas",baseName:"currentReplicas",type:"number"},{name:"desiredReplicas",baseName:"desiredReplicas",type:"number"},{name:"lastScaleTime",baseName:"lastScaleTime",type:"Date"},{name:"observedGeneration",baseName:"observedGeneration",type:"number"}];t.V2beta2HorizontalPodAutoscalerStatus=V2beta2HorizontalPodAutoscalerStatus;class V2beta2MetricIdentifier{static getAttributeTypeMap(){return V2beta2MetricIdentifier.attributeTypeMap}}V2beta2MetricIdentifier.discriminator=undefined;V2beta2MetricIdentifier.attributeTypeMap=[{name:"name",baseName:"name",type:"string"},{name:"selector",baseName:"selector",type:"V1LabelSelector"}];t.V2beta2MetricIdentifier=V2beta2MetricIdentifier;class V2beta2MetricSpec{static getAttributeTypeMap(){return V2beta2MetricSpec.attributeTypeMap}}V2beta2MetricSpec.discriminator=undefined;V2beta2MetricSpec.attributeTypeMap=[{name:"external",baseName:"external",type:"V2beta2ExternalMetricSource"},{name:"object",baseName:"object",type:"V2beta2ObjectMetricSource"},{name:"pods",baseName:"pods",type:"V2beta2PodsMetricSource"},{name:"resource",baseName:"resource",type:"V2beta2ResourceMetricSource"},{name:"type",baseName:"type",type:"string"}];t.V2beta2MetricSpec=V2beta2MetricSpec;class V2beta2MetricStatus{static getAttributeTypeMap(){return V2beta2MetricStatus.attributeTypeMap}}V2beta2MetricStatus.discriminator=undefined;V2beta2MetricStatus.attributeTypeMap=[{name:"external",baseName:"external",type:"V2beta2ExternalMetricStatus"},{name:"object",baseName:"object",type:"V2beta2ObjectMetricStatus"},{name:"pods",baseName:"pods",type:"V2beta2PodsMetricStatus"},{name:"resource",baseName:"resource",type:"V2beta2ResourceMetricStatus"},{name:"type",baseName:"type",type:"string"}];t.V2beta2MetricStatus=V2beta2MetricStatus;class V2beta2MetricTarget{static getAttributeTypeMap(){return V2beta2MetricTarget.attributeTypeMap}}V2beta2MetricTarget.discriminator=undefined;V2beta2MetricTarget.attributeTypeMap=[{name:"averageUtilization",baseName:"averageUtilization",type:"number"},{name:"averageValue",baseName:"averageValue",type:"string"},{name:"type",baseName:"type",type:"string"},{name:"value",baseName:"value",type:"string"}];t.V2beta2MetricTarget=V2beta2MetricTarget;class V2beta2MetricValueStatus{static getAttributeTypeMap(){return V2beta2MetricValueStatus.attributeTypeMap}}V2beta2MetricValueStatus.discriminator=undefined;V2beta2MetricValueStatus.attributeTypeMap=[{name:"averageUtilization",baseName:"averageUtilization",type:"number"},{name:"averageValue",baseName:"averageValue",type:"string"},{name:"value",baseName:"value",type:"string"}];t.V2beta2MetricValueStatus=V2beta2MetricValueStatus;class V2beta2ObjectMetricSource{static getAttributeTypeMap(){return V2beta2ObjectMetricSource.attributeTypeMap}}V2beta2ObjectMetricSource.discriminator=undefined;V2beta2ObjectMetricSource.attributeTypeMap=[{name:"describedObject",baseName:"describedObject",type:"V2beta2CrossVersionObjectReference"},{name:"metric",baseName:"metric",type:"V2beta2MetricIdentifier"},{name:"target",baseName:"target",type:"V2beta2MetricTarget"}];t.V2beta2ObjectMetricSource=V2beta2ObjectMetricSource;class V2beta2ObjectMetricStatus{static getAttributeTypeMap(){return V2beta2ObjectMetricStatus.attributeTypeMap}}V2beta2ObjectMetricStatus.discriminator=undefined;V2beta2ObjectMetricStatus.attributeTypeMap=[{name:"current",baseName:"current",type:"V2beta2MetricValueStatus"},{name:"describedObject",baseName:"describedObject",type:"V2beta2CrossVersionObjectReference"},{name:"metric",baseName:"metric",type:"V2beta2MetricIdentifier"}];t.V2beta2ObjectMetricStatus=V2beta2ObjectMetricStatus;class V2beta2PodsMetricSource{static getAttributeTypeMap(){return V2beta2PodsMetricSource.attributeTypeMap}}V2beta2PodsMetricSource.discriminator=undefined;V2beta2PodsMetricSource.attributeTypeMap=[{name:"metric",baseName:"metric",type:"V2beta2MetricIdentifier"},{name:"target",baseName:"target",type:"V2beta2MetricTarget"}];t.V2beta2PodsMetricSource=V2beta2PodsMetricSource;class V2beta2PodsMetricStatus{static getAttributeTypeMap(){return V2beta2PodsMetricStatus.attributeTypeMap}}V2beta2PodsMetricStatus.discriminator=undefined;V2beta2PodsMetricStatus.attributeTypeMap=[{name:"current",baseName:"current",type:"V2beta2MetricValueStatus"},{name:"metric",baseName:"metric",type:"V2beta2MetricIdentifier"}];t.V2beta2PodsMetricStatus=V2beta2PodsMetricStatus;class V2beta2ResourceMetricSource{static getAttributeTypeMap(){return V2beta2ResourceMetricSource.attributeTypeMap}}V2beta2ResourceMetricSource.discriminator=undefined;V2beta2ResourceMetricSource.attributeTypeMap=[{name:"name",baseName:"name",type:"string"},{name:"target",baseName:"target",type:"V2beta2MetricTarget"}];t.V2beta2ResourceMetricSource=V2beta2ResourceMetricSource;class V2beta2ResourceMetricStatus{static getAttributeTypeMap(){return V2beta2ResourceMetricStatus.attributeTypeMap}}V2beta2ResourceMetricStatus.discriminator=undefined;V2beta2ResourceMetricStatus.attributeTypeMap=[{name:"current",baseName:"current",type:"V2beta2MetricValueStatus"},{name:"name",baseName:"name",type:"string"}];t.V2beta2ResourceMetricStatus=V2beta2ResourceMetricStatus;class VersionInfo{static getAttributeTypeMap(){return VersionInfo.attributeTypeMap}}VersionInfo.discriminator=undefined;VersionInfo.attributeTypeMap=[{name:"buildDate",baseName:"buildDate",type:"string"},{name:"compiler",baseName:"compiler",type:"string"},{name:"gitCommit",baseName:"gitCommit",type:"string"},{name:"gitTreeState",baseName:"gitTreeState",type:"string"},{name:"gitVersion",baseName:"gitVersion",type:"string"},{name:"goVersion",baseName:"goVersion",type:"string"},{name:"major",baseName:"major",type:"string"},{name:"minor",baseName:"minor",type:"string"},{name:"platform",baseName:"platform",type:"string"}];t.VersionInfo=VersionInfo;let s={};let o={AdmissionregistrationV1beta1ServiceReference:AdmissionregistrationV1beta1ServiceReference,AdmissionregistrationV1beta1WebhookClientConfig:AdmissionregistrationV1beta1WebhookClientConfig,ApiextensionsV1beta1ServiceReference:ApiextensionsV1beta1ServiceReference,ApiextensionsV1beta1WebhookClientConfig:ApiextensionsV1beta1WebhookClientConfig,ApiregistrationV1beta1ServiceReference:ApiregistrationV1beta1ServiceReference,AppsV1beta1Deployment:AppsV1beta1Deployment,AppsV1beta1DeploymentCondition:AppsV1beta1DeploymentCondition,AppsV1beta1DeploymentList:AppsV1beta1DeploymentList,AppsV1beta1DeploymentRollback:AppsV1beta1DeploymentRollback,AppsV1beta1DeploymentSpec:AppsV1beta1DeploymentSpec,AppsV1beta1DeploymentStatus:AppsV1beta1DeploymentStatus,AppsV1beta1DeploymentStrategy:AppsV1beta1DeploymentStrategy,AppsV1beta1RollbackConfig:AppsV1beta1RollbackConfig,AppsV1beta1RollingUpdateDeployment:AppsV1beta1RollingUpdateDeployment,AppsV1beta1Scale:AppsV1beta1Scale,AppsV1beta1ScaleSpec:AppsV1beta1ScaleSpec,AppsV1beta1ScaleStatus:AppsV1beta1ScaleStatus,ExtensionsV1beta1AllowedFlexVolume:ExtensionsV1beta1AllowedFlexVolume,ExtensionsV1beta1AllowedHostPath:ExtensionsV1beta1AllowedHostPath,ExtensionsV1beta1Deployment:ExtensionsV1beta1Deployment,ExtensionsV1beta1DeploymentCondition:ExtensionsV1beta1DeploymentCondition,ExtensionsV1beta1DeploymentList:ExtensionsV1beta1DeploymentList,ExtensionsV1beta1DeploymentRollback:ExtensionsV1beta1DeploymentRollback,ExtensionsV1beta1DeploymentSpec:ExtensionsV1beta1DeploymentSpec,ExtensionsV1beta1DeploymentStatus:ExtensionsV1beta1DeploymentStatus,ExtensionsV1beta1DeploymentStrategy:ExtensionsV1beta1DeploymentStrategy,ExtensionsV1beta1FSGroupStrategyOptions:ExtensionsV1beta1FSGroupStrategyOptions,ExtensionsV1beta1HostPortRange:ExtensionsV1beta1HostPortRange,ExtensionsV1beta1IDRange:ExtensionsV1beta1IDRange,ExtensionsV1beta1PodSecurityPolicy:ExtensionsV1beta1PodSecurityPolicy,ExtensionsV1beta1PodSecurityPolicyList:ExtensionsV1beta1PodSecurityPolicyList,ExtensionsV1beta1PodSecurityPolicySpec:ExtensionsV1beta1PodSecurityPolicySpec,ExtensionsV1beta1RollbackConfig:ExtensionsV1beta1RollbackConfig,ExtensionsV1beta1RollingUpdateDeployment:ExtensionsV1beta1RollingUpdateDeployment,ExtensionsV1beta1RunAsGroupStrategyOptions:ExtensionsV1beta1RunAsGroupStrategyOptions,ExtensionsV1beta1RunAsUserStrategyOptions:ExtensionsV1beta1RunAsUserStrategyOptions,ExtensionsV1beta1SELinuxStrategyOptions:ExtensionsV1beta1SELinuxStrategyOptions,ExtensionsV1beta1Scale:ExtensionsV1beta1Scale,ExtensionsV1beta1ScaleSpec:ExtensionsV1beta1ScaleSpec,ExtensionsV1beta1ScaleStatus:ExtensionsV1beta1ScaleStatus,ExtensionsV1beta1SupplementalGroupsStrategyOptions:ExtensionsV1beta1SupplementalGroupsStrategyOptions,PolicyV1beta1AllowedFlexVolume:PolicyV1beta1AllowedFlexVolume,PolicyV1beta1AllowedHostPath:PolicyV1beta1AllowedHostPath,PolicyV1beta1FSGroupStrategyOptions:PolicyV1beta1FSGroupStrategyOptions,PolicyV1beta1HostPortRange:PolicyV1beta1HostPortRange,PolicyV1beta1IDRange:PolicyV1beta1IDRange,PolicyV1beta1PodSecurityPolicy:PolicyV1beta1PodSecurityPolicy,PolicyV1beta1PodSecurityPolicyList:PolicyV1beta1PodSecurityPolicyList,PolicyV1beta1PodSecurityPolicySpec:PolicyV1beta1PodSecurityPolicySpec,PolicyV1beta1RunAsGroupStrategyOptions:PolicyV1beta1RunAsGroupStrategyOptions,PolicyV1beta1RunAsUserStrategyOptions:PolicyV1beta1RunAsUserStrategyOptions,PolicyV1beta1SELinuxStrategyOptions:PolicyV1beta1SELinuxStrategyOptions,PolicyV1beta1SupplementalGroupsStrategyOptions:PolicyV1beta1SupplementalGroupsStrategyOptions,RuntimeRawExtension:RuntimeRawExtension,V1APIGroup:V1APIGroup,V1APIGroupList:V1APIGroupList,V1APIResource:V1APIResource,V1APIResourceList:V1APIResourceList,V1APIService:V1APIService,V1APIServiceCondition:V1APIServiceCondition,V1APIServiceList:V1APIServiceList,V1APIServiceSpec:V1APIServiceSpec,V1APIServiceStatus:V1APIServiceStatus,V1APIVersions:V1APIVersions,V1AWSElasticBlockStoreVolumeSource:V1AWSElasticBlockStoreVolumeSource,V1Affinity:V1Affinity,V1AggregationRule:V1AggregationRule,V1AttachedVolume:V1AttachedVolume,V1AzureDiskVolumeSource:V1AzureDiskVolumeSource,V1AzureFilePersistentVolumeSource:V1AzureFilePersistentVolumeSource,V1AzureFileVolumeSource:V1AzureFileVolumeSource,V1Binding:V1Binding,V1CSIPersistentVolumeSource:V1CSIPersistentVolumeSource,V1Capabilities:V1Capabilities,V1CephFSPersistentVolumeSource:V1CephFSPersistentVolumeSource,V1CephFSVolumeSource:V1CephFSVolumeSource,V1CinderPersistentVolumeSource:V1CinderPersistentVolumeSource,V1CinderVolumeSource:V1CinderVolumeSource,V1ClientIPConfig:V1ClientIPConfig,V1ClusterRole:V1ClusterRole,V1ClusterRoleBinding:V1ClusterRoleBinding,V1ClusterRoleBindingList:V1ClusterRoleBindingList,V1ClusterRoleList:V1ClusterRoleList,V1ComponentCondition:V1ComponentCondition,V1ComponentStatus:V1ComponentStatus,V1ComponentStatusList:V1ComponentStatusList,V1ConfigMap:V1ConfigMap,V1ConfigMapEnvSource:V1ConfigMapEnvSource,V1ConfigMapKeySelector:V1ConfigMapKeySelector,V1ConfigMapList:V1ConfigMapList,V1ConfigMapNodeConfigSource:V1ConfigMapNodeConfigSource,V1ConfigMapProjection:V1ConfigMapProjection,V1ConfigMapVolumeSource:V1ConfigMapVolumeSource,V1Container:V1Container,V1ContainerImage:V1ContainerImage,V1ContainerPort:V1ContainerPort,V1ContainerState:V1ContainerState,V1ContainerStateRunning:V1ContainerStateRunning,V1ContainerStateTerminated:V1ContainerStateTerminated,V1ContainerStateWaiting:V1ContainerStateWaiting,V1ContainerStatus:V1ContainerStatus,V1ControllerRevision:V1ControllerRevision,V1ControllerRevisionList:V1ControllerRevisionList,V1CrossVersionObjectReference:V1CrossVersionObjectReference,V1DaemonEndpoint:V1DaemonEndpoint,V1DaemonSet:V1DaemonSet,V1DaemonSetCondition:V1DaemonSetCondition,V1DaemonSetList:V1DaemonSetList,V1DaemonSetSpec:V1DaemonSetSpec,V1DaemonSetStatus:V1DaemonSetStatus,V1DaemonSetUpdateStrategy:V1DaemonSetUpdateStrategy,V1DeleteOptions:V1DeleteOptions,V1Deployment:V1Deployment,V1DeploymentCondition:V1DeploymentCondition,V1DeploymentList:V1DeploymentList,V1DeploymentSpec:V1DeploymentSpec,V1DeploymentStatus:V1DeploymentStatus,V1DeploymentStrategy:V1DeploymentStrategy,V1DownwardAPIProjection:V1DownwardAPIProjection,V1DownwardAPIVolumeFile:V1DownwardAPIVolumeFile,V1DownwardAPIVolumeSource:V1DownwardAPIVolumeSource,V1EmptyDirVolumeSource:V1EmptyDirVolumeSource,V1EndpointAddress:V1EndpointAddress,V1EndpointPort:V1EndpointPort,V1EndpointSubset:V1EndpointSubset,V1Endpoints:V1Endpoints,V1EndpointsList:V1EndpointsList,V1EnvFromSource:V1EnvFromSource,V1EnvVar:V1EnvVar,V1EnvVarSource:V1EnvVarSource,V1Event:V1Event,V1EventList:V1EventList,V1EventSeries:V1EventSeries,V1EventSource:V1EventSource,V1ExecAction:V1ExecAction,V1FCVolumeSource:V1FCVolumeSource,V1FlexPersistentVolumeSource:V1FlexPersistentVolumeSource,V1FlexVolumeSource:V1FlexVolumeSource,V1FlockerVolumeSource:V1FlockerVolumeSource,V1GCEPersistentDiskVolumeSource:V1GCEPersistentDiskVolumeSource,V1GitRepoVolumeSource:V1GitRepoVolumeSource,V1GlusterfsPersistentVolumeSource:V1GlusterfsPersistentVolumeSource,V1GlusterfsVolumeSource:V1GlusterfsVolumeSource,V1GroupVersionForDiscovery:V1GroupVersionForDiscovery,V1HTTPGetAction:V1HTTPGetAction,V1HTTPHeader:V1HTTPHeader,V1Handler:V1Handler,V1HorizontalPodAutoscaler:V1HorizontalPodAutoscaler,V1HorizontalPodAutoscalerList:V1HorizontalPodAutoscalerList,V1HorizontalPodAutoscalerSpec:V1HorizontalPodAutoscalerSpec,V1HorizontalPodAutoscalerStatus:V1HorizontalPodAutoscalerStatus,V1HostAlias:V1HostAlias,V1HostPathVolumeSource:V1HostPathVolumeSource,V1IPBlock:V1IPBlock,V1ISCSIPersistentVolumeSource:V1ISCSIPersistentVolumeSource,V1ISCSIVolumeSource:V1ISCSIVolumeSource,V1Initializer:V1Initializer,V1Initializers:V1Initializers,V1Job:V1Job,V1JobCondition:V1JobCondition,V1JobList:V1JobList,V1JobSpec:V1JobSpec,V1JobStatus:V1JobStatus,V1KeyToPath:V1KeyToPath,V1LabelSelector:V1LabelSelector,V1LabelSelectorRequirement:V1LabelSelectorRequirement,V1Lifecycle:V1Lifecycle,V1LimitRange:V1LimitRange,V1LimitRangeItem:V1LimitRangeItem,V1LimitRangeList:V1LimitRangeList,V1LimitRangeSpec:V1LimitRangeSpec,V1ListMeta:V1ListMeta,V1LoadBalancerIngress:V1LoadBalancerIngress,V1LoadBalancerStatus:V1LoadBalancerStatus,V1LocalObjectReference:V1LocalObjectReference,V1LocalSubjectAccessReview:V1LocalSubjectAccessReview,V1LocalVolumeSource:V1LocalVolumeSource,V1NFSVolumeSource:V1NFSVolumeSource,V1Namespace:V1Namespace,V1NamespaceList:V1NamespaceList,V1NamespaceSpec:V1NamespaceSpec,V1NamespaceStatus:V1NamespaceStatus,V1NetworkPolicy:V1NetworkPolicy,V1NetworkPolicyEgressRule:V1NetworkPolicyEgressRule,V1NetworkPolicyIngressRule:V1NetworkPolicyIngressRule,V1NetworkPolicyList:V1NetworkPolicyList,V1NetworkPolicyPeer:V1NetworkPolicyPeer,V1NetworkPolicyPort:V1NetworkPolicyPort,V1NetworkPolicySpec:V1NetworkPolicySpec,V1Node:V1Node,V1NodeAddress:V1NodeAddress,V1NodeAffinity:V1NodeAffinity,V1NodeCondition:V1NodeCondition,V1NodeConfigSource:V1NodeConfigSource,V1NodeConfigStatus:V1NodeConfigStatus,V1NodeDaemonEndpoints:V1NodeDaemonEndpoints,V1NodeList:V1NodeList,V1NodeSelector:V1NodeSelector,V1NodeSelectorRequirement:V1NodeSelectorRequirement,V1NodeSelectorTerm:V1NodeSelectorTerm,V1NodeSpec:V1NodeSpec,V1NodeStatus:V1NodeStatus,V1NodeSystemInfo:V1NodeSystemInfo,V1NonResourceAttributes:V1NonResourceAttributes,V1NonResourceRule:V1NonResourceRule,V1ObjectFieldSelector:V1ObjectFieldSelector,V1ObjectMeta:V1ObjectMeta,V1ObjectReference:V1ObjectReference,V1OwnerReference:V1OwnerReference,V1PersistentVolume:V1PersistentVolume,V1PersistentVolumeClaim:V1PersistentVolumeClaim,V1PersistentVolumeClaimCondition:V1PersistentVolumeClaimCondition,V1PersistentVolumeClaimList:V1PersistentVolumeClaimList,V1PersistentVolumeClaimSpec:V1PersistentVolumeClaimSpec,V1PersistentVolumeClaimStatus:V1PersistentVolumeClaimStatus,V1PersistentVolumeClaimVolumeSource:V1PersistentVolumeClaimVolumeSource,V1PersistentVolumeList:V1PersistentVolumeList,V1PersistentVolumeSpec:V1PersistentVolumeSpec,V1PersistentVolumeStatus:V1PersistentVolumeStatus,V1PhotonPersistentDiskVolumeSource:V1PhotonPersistentDiskVolumeSource,V1Pod:V1Pod,V1PodAffinity:V1PodAffinity,V1PodAffinityTerm:V1PodAffinityTerm,V1PodAntiAffinity:V1PodAntiAffinity,V1PodCondition:V1PodCondition,V1PodDNSConfig:V1PodDNSConfig,V1PodDNSConfigOption:V1PodDNSConfigOption,V1PodList:V1PodList,V1PodReadinessGate:V1PodReadinessGate,V1PodSecurityContext:V1PodSecurityContext,V1PodSpec:V1PodSpec,V1PodStatus:V1PodStatus,V1PodTemplate:V1PodTemplate,V1PodTemplateList:V1PodTemplateList,V1PodTemplateSpec:V1PodTemplateSpec,V1PolicyRule:V1PolicyRule,V1PortworxVolumeSource:V1PortworxVolumeSource,V1Preconditions:V1Preconditions,V1PreferredSchedulingTerm:V1PreferredSchedulingTerm,V1Probe:V1Probe,V1ProjectedVolumeSource:V1ProjectedVolumeSource,V1QuobyteVolumeSource:V1QuobyteVolumeSource,V1RBDPersistentVolumeSource:V1RBDPersistentVolumeSource,V1RBDVolumeSource:V1RBDVolumeSource,V1ReplicaSet:V1ReplicaSet,V1ReplicaSetCondition:V1ReplicaSetCondition,V1ReplicaSetList:V1ReplicaSetList,V1ReplicaSetSpec:V1ReplicaSetSpec,V1ReplicaSetStatus:V1ReplicaSetStatus,V1ReplicationController:V1ReplicationController,V1ReplicationControllerCondition:V1ReplicationControllerCondition,V1ReplicationControllerList:V1ReplicationControllerList,V1ReplicationControllerSpec:V1ReplicationControllerSpec,V1ReplicationControllerStatus:V1ReplicationControllerStatus,V1ResourceAttributes:V1ResourceAttributes,V1ResourceFieldSelector:V1ResourceFieldSelector,V1ResourceQuota:V1ResourceQuota,V1ResourceQuotaList:V1ResourceQuotaList,V1ResourceQuotaSpec:V1ResourceQuotaSpec,V1ResourceQuotaStatus:V1ResourceQuotaStatus,V1ResourceRequirements:V1ResourceRequirements,V1ResourceRule:V1ResourceRule,V1Role:V1Role,V1RoleBinding:V1RoleBinding,V1RoleBindingList:V1RoleBindingList,V1RoleList:V1RoleList,V1RoleRef:V1RoleRef,V1RollingUpdateDaemonSet:V1RollingUpdateDaemonSet,V1RollingUpdateDeployment:V1RollingUpdateDeployment,V1RollingUpdateStatefulSetStrategy:V1RollingUpdateStatefulSetStrategy,V1SELinuxOptions:V1SELinuxOptions,V1Scale:V1Scale,V1ScaleIOPersistentVolumeSource:V1ScaleIOPersistentVolumeSource,V1ScaleIOVolumeSource:V1ScaleIOVolumeSource,V1ScaleSpec:V1ScaleSpec,V1ScaleStatus:V1ScaleStatus,V1ScopeSelector:V1ScopeSelector,V1ScopedResourceSelectorRequirement:V1ScopedResourceSelectorRequirement,V1Secret:V1Secret,V1SecretEnvSource:V1SecretEnvSource,V1SecretKeySelector:V1SecretKeySelector,V1SecretList:V1SecretList,V1SecretProjection:V1SecretProjection,V1SecretReference:V1SecretReference,V1SecretVolumeSource:V1SecretVolumeSource,V1SecurityContext:V1SecurityContext,V1SelfSubjectAccessReview:V1SelfSubjectAccessReview,V1SelfSubjectAccessReviewSpec:V1SelfSubjectAccessReviewSpec,V1SelfSubjectRulesReview:V1SelfSubjectRulesReview,V1SelfSubjectRulesReviewSpec:V1SelfSubjectRulesReviewSpec,V1ServerAddressByClientCIDR:V1ServerAddressByClientCIDR,V1Service:V1Service,V1ServiceAccount:V1ServiceAccount,V1ServiceAccountList:V1ServiceAccountList,V1ServiceAccountTokenProjection:V1ServiceAccountTokenProjection,V1ServiceList:V1ServiceList,V1ServicePort:V1ServicePort,V1ServiceReference:V1ServiceReference,V1ServiceSpec:V1ServiceSpec,V1ServiceStatus:V1ServiceStatus,V1SessionAffinityConfig:V1SessionAffinityConfig,V1StatefulSet:V1StatefulSet,V1StatefulSetCondition:V1StatefulSetCondition,V1StatefulSetList:V1StatefulSetList,V1StatefulSetSpec:V1StatefulSetSpec,V1StatefulSetStatus:V1StatefulSetStatus,V1StatefulSetUpdateStrategy:V1StatefulSetUpdateStrategy,V1Status:V1Status,V1StatusCause:V1StatusCause,V1StatusDetails:V1StatusDetails,V1StorageClass:V1StorageClass,V1StorageClassList:V1StorageClassList,V1StorageOSPersistentVolumeSource:V1StorageOSPersistentVolumeSource,V1StorageOSVolumeSource:V1StorageOSVolumeSource,V1Subject:V1Subject,V1SubjectAccessReview:V1SubjectAccessReview,V1SubjectAccessReviewSpec:V1SubjectAccessReviewSpec,V1SubjectAccessReviewStatus:V1SubjectAccessReviewStatus,V1SubjectRulesReviewStatus:V1SubjectRulesReviewStatus,V1Sysctl:V1Sysctl,V1TCPSocketAction:V1TCPSocketAction,V1Taint:V1Taint,V1TokenReview:V1TokenReview,V1TokenReviewSpec:V1TokenReviewSpec,V1TokenReviewStatus:V1TokenReviewStatus,V1Toleration:V1Toleration,V1TopologySelectorLabelRequirement:V1TopologySelectorLabelRequirement,V1TopologySelectorTerm:V1TopologySelectorTerm,V1TypedLocalObjectReference:V1TypedLocalObjectReference,V1UserInfo:V1UserInfo,V1Volume:V1Volume,V1VolumeAttachment:V1VolumeAttachment,V1VolumeAttachmentList:V1VolumeAttachmentList,V1VolumeAttachmentSource:V1VolumeAttachmentSource,V1VolumeAttachmentSpec:V1VolumeAttachmentSpec,V1VolumeAttachmentStatus:V1VolumeAttachmentStatus,V1VolumeDevice:V1VolumeDevice,V1VolumeError:V1VolumeError,V1VolumeMount:V1VolumeMount,V1VolumeNodeAffinity:V1VolumeNodeAffinity,V1VolumeProjection:V1VolumeProjection,V1VsphereVirtualDiskVolumeSource:V1VsphereVirtualDiskVolumeSource,V1WatchEvent:V1WatchEvent,V1WeightedPodAffinityTerm:V1WeightedPodAffinityTerm,V1alpha1AggregationRule:V1alpha1AggregationRule,V1alpha1AuditSink:V1alpha1AuditSink,V1alpha1AuditSinkList:V1alpha1AuditSinkList,V1alpha1AuditSinkSpec:V1alpha1AuditSinkSpec,V1alpha1ClusterRole:V1alpha1ClusterRole,V1alpha1ClusterRoleBinding:V1alpha1ClusterRoleBinding,V1alpha1ClusterRoleBindingList:V1alpha1ClusterRoleBindingList,V1alpha1ClusterRoleList:V1alpha1ClusterRoleList,V1alpha1Initializer:V1alpha1Initializer,V1alpha1InitializerConfiguration:V1alpha1InitializerConfiguration,V1alpha1InitializerConfigurationList:V1alpha1InitializerConfigurationList,V1alpha1PodPreset:V1alpha1PodPreset,V1alpha1PodPresetList:V1alpha1PodPresetList,V1alpha1PodPresetSpec:V1alpha1PodPresetSpec,V1alpha1Policy:V1alpha1Policy,V1alpha1PolicyRule:V1alpha1PolicyRule,V1alpha1PriorityClass:V1alpha1PriorityClass,V1alpha1PriorityClassList:V1alpha1PriorityClassList,V1alpha1Role:V1alpha1Role,V1alpha1RoleBinding:V1alpha1RoleBinding,V1alpha1RoleBindingList:V1alpha1RoleBindingList,V1alpha1RoleList:V1alpha1RoleList,V1alpha1RoleRef:V1alpha1RoleRef,V1alpha1Rule:V1alpha1Rule,V1alpha1ServiceReference:V1alpha1ServiceReference,V1alpha1Subject:V1alpha1Subject,V1alpha1VolumeAttachment:V1alpha1VolumeAttachment,V1alpha1VolumeAttachmentList:V1alpha1VolumeAttachmentList,V1alpha1VolumeAttachmentSource:V1alpha1VolumeAttachmentSource,V1alpha1VolumeAttachmentSpec:V1alpha1VolumeAttachmentSpec,V1alpha1VolumeAttachmentStatus:V1alpha1VolumeAttachmentStatus,V1alpha1VolumeError:V1alpha1VolumeError,V1alpha1Webhook:V1alpha1Webhook,V1alpha1WebhookClientConfig:V1alpha1WebhookClientConfig,V1alpha1WebhookThrottleConfig:V1alpha1WebhookThrottleConfig,V1beta1APIService:V1beta1APIService,V1beta1APIServiceCondition:V1beta1APIServiceCondition,V1beta1APIServiceList:V1beta1APIServiceList,V1beta1APIServiceSpec:V1beta1APIServiceSpec,V1beta1APIServiceStatus:V1beta1APIServiceStatus,V1beta1AggregationRule:V1beta1AggregationRule,V1beta1CertificateSigningRequest:V1beta1CertificateSigningRequest,V1beta1CertificateSigningRequestCondition:V1beta1CertificateSigningRequestCondition,V1beta1CertificateSigningRequestList:V1beta1CertificateSigningRequestList,V1beta1CertificateSigningRequestSpec:V1beta1CertificateSigningRequestSpec,V1beta1CertificateSigningRequestStatus:V1beta1CertificateSigningRequestStatus,V1beta1ClusterRole:V1beta1ClusterRole,V1beta1ClusterRoleBinding:V1beta1ClusterRoleBinding,V1beta1ClusterRoleBindingList:V1beta1ClusterRoleBindingList,V1beta1ClusterRoleList:V1beta1ClusterRoleList,V1beta1ControllerRevision:V1beta1ControllerRevision,V1beta1ControllerRevisionList:V1beta1ControllerRevisionList,V1beta1CronJob:V1beta1CronJob,V1beta1CronJobList:V1beta1CronJobList,V1beta1CronJobSpec:V1beta1CronJobSpec,V1beta1CronJobStatus:V1beta1CronJobStatus,V1beta1CustomResourceColumnDefinition:V1beta1CustomResourceColumnDefinition,V1beta1CustomResourceConversion:V1beta1CustomResourceConversion,V1beta1CustomResourceDefinition:V1beta1CustomResourceDefinition,V1beta1CustomResourceDefinitionCondition:V1beta1CustomResourceDefinitionCondition,V1beta1CustomResourceDefinitionList:V1beta1CustomResourceDefinitionList,V1beta1CustomResourceDefinitionNames:V1beta1CustomResourceDefinitionNames,V1beta1CustomResourceDefinitionSpec:V1beta1CustomResourceDefinitionSpec,V1beta1CustomResourceDefinitionStatus:V1beta1CustomResourceDefinitionStatus,V1beta1CustomResourceDefinitionVersion:V1beta1CustomResourceDefinitionVersion,V1beta1CustomResourceSubresourceScale:V1beta1CustomResourceSubresourceScale,V1beta1CustomResourceSubresources:V1beta1CustomResourceSubresources,V1beta1CustomResourceValidation:V1beta1CustomResourceValidation,V1beta1DaemonSet:V1beta1DaemonSet,V1beta1DaemonSetCondition:V1beta1DaemonSetCondition,V1beta1DaemonSetList:V1beta1DaemonSetList,V1beta1DaemonSetSpec:V1beta1DaemonSetSpec,V1beta1DaemonSetStatus:V1beta1DaemonSetStatus,V1beta1DaemonSetUpdateStrategy:V1beta1DaemonSetUpdateStrategy,V1beta1Event:V1beta1Event,V1beta1EventList:V1beta1EventList,V1beta1EventSeries:V1beta1EventSeries,V1beta1Eviction:V1beta1Eviction,V1beta1ExternalDocumentation:V1beta1ExternalDocumentation,V1beta1HTTPIngressPath:V1beta1HTTPIngressPath,V1beta1HTTPIngressRuleValue:V1beta1HTTPIngressRuleValue,V1beta1IPBlock:V1beta1IPBlock,V1beta1Ingress:V1beta1Ingress,V1beta1IngressBackend:V1beta1IngressBackend,V1beta1IngressList:V1beta1IngressList,V1beta1IngressRule:V1beta1IngressRule,V1beta1IngressSpec:V1beta1IngressSpec,V1beta1IngressStatus:V1beta1IngressStatus,V1beta1IngressTLS:V1beta1IngressTLS,V1beta1JSONSchemaProps:V1beta1JSONSchemaProps,V1beta1JobTemplateSpec:V1beta1JobTemplateSpec,V1beta1Lease:V1beta1Lease,V1beta1LeaseList:V1beta1LeaseList,V1beta1LeaseSpec:V1beta1LeaseSpec,V1beta1LocalSubjectAccessReview:V1beta1LocalSubjectAccessReview,V1beta1MutatingWebhookConfiguration:V1beta1MutatingWebhookConfiguration,V1beta1MutatingWebhookConfigurationList:V1beta1MutatingWebhookConfigurationList,V1beta1NetworkPolicy:V1beta1NetworkPolicy,V1beta1NetworkPolicyEgressRule:V1beta1NetworkPolicyEgressRule,V1beta1NetworkPolicyIngressRule:V1beta1NetworkPolicyIngressRule,V1beta1NetworkPolicyList:V1beta1NetworkPolicyList,V1beta1NetworkPolicyPeer:V1beta1NetworkPolicyPeer,V1beta1NetworkPolicyPort:V1beta1NetworkPolicyPort,V1beta1NetworkPolicySpec:V1beta1NetworkPolicySpec,V1beta1NonResourceAttributes:V1beta1NonResourceAttributes,V1beta1NonResourceRule:V1beta1NonResourceRule,V1beta1PodDisruptionBudget:V1beta1PodDisruptionBudget,V1beta1PodDisruptionBudgetList:V1beta1PodDisruptionBudgetList,V1beta1PodDisruptionBudgetSpec:V1beta1PodDisruptionBudgetSpec,V1beta1PodDisruptionBudgetStatus:V1beta1PodDisruptionBudgetStatus,V1beta1PolicyRule:V1beta1PolicyRule,V1beta1PriorityClass:V1beta1PriorityClass,V1beta1PriorityClassList:V1beta1PriorityClassList,V1beta1ReplicaSet:V1beta1ReplicaSet,V1beta1ReplicaSetCondition:V1beta1ReplicaSetCondition,V1beta1ReplicaSetList:V1beta1ReplicaSetList,V1beta1ReplicaSetSpec:V1beta1ReplicaSetSpec,V1beta1ReplicaSetStatus:V1beta1ReplicaSetStatus,V1beta1ResourceAttributes:V1beta1ResourceAttributes,V1beta1ResourceRule:V1beta1ResourceRule,V1beta1Role:V1beta1Role,V1beta1RoleBinding:V1beta1RoleBinding,V1beta1RoleBindingList:V1beta1RoleBindingList,V1beta1RoleList:V1beta1RoleList,V1beta1RoleRef:V1beta1RoleRef,V1beta1RollingUpdateDaemonSet:V1beta1RollingUpdateDaemonSet,V1beta1RollingUpdateStatefulSetStrategy:V1beta1RollingUpdateStatefulSetStrategy,V1beta1RuleWithOperations:V1beta1RuleWithOperations,V1beta1SelfSubjectAccessReview:V1beta1SelfSubjectAccessReview,V1beta1SelfSubjectAccessReviewSpec:V1beta1SelfSubjectAccessReviewSpec,V1beta1SelfSubjectRulesReview:V1beta1SelfSubjectRulesReview,V1beta1SelfSubjectRulesReviewSpec:V1beta1SelfSubjectRulesReviewSpec,V1beta1StatefulSet:V1beta1StatefulSet,V1beta1StatefulSetCondition:V1beta1StatefulSetCondition,V1beta1StatefulSetList:V1beta1StatefulSetList,V1beta1StatefulSetSpec:V1beta1StatefulSetSpec,V1beta1StatefulSetStatus:V1beta1StatefulSetStatus,V1beta1StatefulSetUpdateStrategy:V1beta1StatefulSetUpdateStrategy,V1beta1StorageClass:V1beta1StorageClass,V1beta1StorageClassList:V1beta1StorageClassList,V1beta1Subject:V1beta1Subject,V1beta1SubjectAccessReview:V1beta1SubjectAccessReview,V1beta1SubjectAccessReviewSpec:V1beta1SubjectAccessReviewSpec,V1beta1SubjectAccessReviewStatus:V1beta1SubjectAccessReviewStatus,V1beta1SubjectRulesReviewStatus:V1beta1SubjectRulesReviewStatus,V1beta1TokenReview:V1beta1TokenReview,V1beta1TokenReviewSpec:V1beta1TokenReviewSpec,V1beta1TokenReviewStatus:V1beta1TokenReviewStatus,V1beta1UserInfo:V1beta1UserInfo,V1beta1ValidatingWebhookConfiguration:V1beta1ValidatingWebhookConfiguration,V1beta1ValidatingWebhookConfigurationList:V1beta1ValidatingWebhookConfigurationList,V1beta1VolumeAttachment:V1beta1VolumeAttachment,V1beta1VolumeAttachmentList:V1beta1VolumeAttachmentList,V1beta1VolumeAttachmentSource:V1beta1VolumeAttachmentSource,V1beta1VolumeAttachmentSpec:V1beta1VolumeAttachmentSpec,V1beta1VolumeAttachmentStatus:V1beta1VolumeAttachmentStatus,V1beta1VolumeError:V1beta1VolumeError,V1beta1Webhook:V1beta1Webhook,V1beta2ControllerRevision:V1beta2ControllerRevision,V1beta2ControllerRevisionList:V1beta2ControllerRevisionList,V1beta2DaemonSet:V1beta2DaemonSet,V1beta2DaemonSetCondition:V1beta2DaemonSetCondition,V1beta2DaemonSetList:V1beta2DaemonSetList,V1beta2DaemonSetSpec:V1beta2DaemonSetSpec,V1beta2DaemonSetStatus:V1beta2DaemonSetStatus,V1beta2DaemonSetUpdateStrategy:V1beta2DaemonSetUpdateStrategy,V1beta2Deployment:V1beta2Deployment,V1beta2DeploymentCondition:V1beta2DeploymentCondition,V1beta2DeploymentList:V1beta2DeploymentList,V1beta2DeploymentSpec:V1beta2DeploymentSpec,V1beta2DeploymentStatus:V1beta2DeploymentStatus,V1beta2DeploymentStrategy:V1beta2DeploymentStrategy,V1beta2ReplicaSet:V1beta2ReplicaSet,V1beta2ReplicaSetCondition:V1beta2ReplicaSetCondition,V1beta2ReplicaSetList:V1beta2ReplicaSetList,V1beta2ReplicaSetSpec:V1beta2ReplicaSetSpec,V1beta2ReplicaSetStatus:V1beta2ReplicaSetStatus,V1beta2RollingUpdateDaemonSet:V1beta2RollingUpdateDaemonSet,V1beta2RollingUpdateDeployment:V1beta2RollingUpdateDeployment,V1beta2RollingUpdateStatefulSetStrategy:V1beta2RollingUpdateStatefulSetStrategy,V1beta2Scale:V1beta2Scale,V1beta2ScaleSpec:V1beta2ScaleSpec,V1beta2ScaleStatus:V1beta2ScaleStatus,V1beta2StatefulSet:V1beta2StatefulSet,V1beta2StatefulSetCondition:V1beta2StatefulSetCondition,V1beta2StatefulSetList:V1beta2StatefulSetList,V1beta2StatefulSetSpec:V1beta2StatefulSetSpec,V1beta2StatefulSetStatus:V1beta2StatefulSetStatus,V1beta2StatefulSetUpdateStrategy:V1beta2StatefulSetUpdateStrategy,V2alpha1CronJob:V2alpha1CronJob,V2alpha1CronJobList:V2alpha1CronJobList,V2alpha1CronJobSpec:V2alpha1CronJobSpec,V2alpha1CronJobStatus:V2alpha1CronJobStatus,V2alpha1JobTemplateSpec:V2alpha1JobTemplateSpec,V2beta1CrossVersionObjectReference:V2beta1CrossVersionObjectReference,V2beta1ExternalMetricSource:V2beta1ExternalMetricSource,V2beta1ExternalMetricStatus:V2beta1ExternalMetricStatus,V2beta1HorizontalPodAutoscaler:V2beta1HorizontalPodAutoscaler,V2beta1HorizontalPodAutoscalerCondition:V2beta1HorizontalPodAutoscalerCondition,V2beta1HorizontalPodAutoscalerList:V2beta1HorizontalPodAutoscalerList,V2beta1HorizontalPodAutoscalerSpec:V2beta1HorizontalPodAutoscalerSpec,V2beta1HorizontalPodAutoscalerStatus:V2beta1HorizontalPodAutoscalerStatus,V2beta1MetricSpec:V2beta1MetricSpec,V2beta1MetricStatus:V2beta1MetricStatus,V2beta1ObjectMetricSource:V2beta1ObjectMetricSource,V2beta1ObjectMetricStatus:V2beta1ObjectMetricStatus,V2beta1PodsMetricSource:V2beta1PodsMetricSource,V2beta1PodsMetricStatus:V2beta1PodsMetricStatus,V2beta1ResourceMetricSource:V2beta1ResourceMetricSource,V2beta1ResourceMetricStatus:V2beta1ResourceMetricStatus,V2beta2CrossVersionObjectReference:V2beta2CrossVersionObjectReference,V2beta2ExternalMetricSource:V2beta2ExternalMetricSource,V2beta2ExternalMetricStatus:V2beta2ExternalMetricStatus,V2beta2HorizontalPodAutoscaler:V2beta2HorizontalPodAutoscaler,V2beta2HorizontalPodAutoscalerCondition:V2beta2HorizontalPodAutoscalerCondition,V2beta2HorizontalPodAutoscalerList:V2beta2HorizontalPodAutoscalerList,V2beta2HorizontalPodAutoscalerSpec:V2beta2HorizontalPodAutoscalerSpec,V2beta2HorizontalPodAutoscalerStatus:V2beta2HorizontalPodAutoscalerStatus,V2beta2MetricIdentifier:V2beta2MetricIdentifier,V2beta2MetricSpec:V2beta2MetricSpec,V2beta2MetricStatus:V2beta2MetricStatus,V2beta2MetricTarget:V2beta2MetricTarget,V2beta2MetricValueStatus:V2beta2MetricValueStatus,V2beta2ObjectMetricSource:V2beta2ObjectMetricSource,V2beta2ObjectMetricStatus:V2beta2ObjectMetricStatus,V2beta2PodsMetricSource:V2beta2PodsMetricSource,V2beta2PodsMetricStatus:V2beta2PodsMetricStatus,V2beta2ResourceMetricSource:V2beta2ResourceMetricSource,V2beta2ResourceMetricStatus:V2beta2ResourceMetricStatus,VersionInfo:VersionInfo};class HttpBasicAuth{constructor(){this.username="";this.password=""}applyToRequest(e){e.auth={username:this.username,password:this.password}}}t.HttpBasicAuth=HttpBasicAuth;class ApiKeyAuth{constructor(e,t){this.location=e;this.paramName=t;this.apiKey=""}applyToRequest(e){if(this.location=="query"){e.qs[this.paramName]=this.apiKey}else if(this.location=="header"&&e&&e.headers){e.headers[this.paramName]=this.apiKey}}}t.ApiKeyAuth=ApiKeyAuth;class OAuth{constructor(){this.accessToken=""}applyToRequest(e){if(e&&e.headers){e.headers["Authorization"]="Bearer "+this.accessToken}}}t.OAuth=OAuth;class VoidAuth{constructor(){this.username="";this.password=""}applyToRequest(e){}}t.VoidAuth=VoidAuth;var u;(function(e){e[e["BearerToken"]=0]="BearerToken"})(u=t.AdmissionregistrationApiApiKeys||(t.AdmissionregistrationApiApiKeys={}));class AdmissionregistrationApi{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[u[e]].apiKey=t}getAPIGroup(e={}){const t=this.basePath+"/apis/admissionregistration.k8s.io/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIGroup");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.AdmissionregistrationApi=AdmissionregistrationApi;var l;(function(e){e[e["BearerToken"]=0]="BearerToken"})(l=t.AdmissionregistrationV1alpha1ApiApiKeys||(t.AdmissionregistrationV1alpha1ApiApiKeys={}));class AdmissionregistrationV1alpha1Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[l[e]].apiKey=t}createInitializerConfiguration(e,t,i,a,r={}){const s=this.basePath+"/apis/admissionregistration.k8s.io/v1alpha1/initializerconfigurations";let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter body was null or undefined when calling createInitializerConfiguration.")}if(t!==undefined){o["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(e,"V1alpha1InitializerConfiguration")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1InitializerConfiguration");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionInitializerConfiguration(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/admissionregistration.k8s.io/v1alpha1/initializerconfigurations";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"DELETE",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteInitializerConfiguration(e,t,i,a,r,s,o,u={}){const l=this.basePath+"/apis/admissionregistration.k8s.io/v1alpha1/initializerconfigurations/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let c={};let d=Object.assign({},this.defaultHeaders);let p={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteInitializerConfiguration.")}if(t!==undefined){c["pretty"]=ObjectSerializer.serialize(t,"string")}if(a!==undefined){c["dryRun"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){c["gracePeriodSeconds"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){c["orphanDependents"]=ObjectSerializer.serialize(s,"boolean")}if(o!==undefined){c["propagationPolicy"]=ObjectSerializer.serialize(o,"string")}Object.assign(d,u.headers);let f=false;let h={method:"DELETE",qs:c,headers:d,uri:l,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(h);this.authentications.default.applyToRequest(h);if(Object.keys(p).length){if(f){h.formData=p}else{h.form=p}}return new Promise((e,t)=>{n(h,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/apis/admissionregistration.k8s.io/v1alpha1/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listInitializerConfiguration(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/admissionregistration.k8s.io/v1alpha1/initializerconfigurations";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1InitializerConfigurationList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchInitializerConfiguration(e,t,i,a,r={}){const s=this.basePath+"/apis/admissionregistration.k8s.io/v1alpha1/initializerconfigurations/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchInitializerConfiguration.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling patchInitializerConfiguration.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"any")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1InitializerConfiguration");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readInitializerConfiguration(e,t,i,a,r={}){const s=this.basePath+"/apis/admissionregistration.k8s.io/v1alpha1/initializerconfigurations/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readInitializerConfiguration.")}if(t!==undefined){o["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){o["exact"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){o["export"]=ObjectSerializer.serialize(a,"boolean")}Object.assign(u,r.headers);let c=false;let d={method:"GET",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1InitializerConfiguration");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceInitializerConfiguration(e,t,i,a,r={}){const s=this.basePath+"/apis/admissionregistration.k8s.io/v1alpha1/initializerconfigurations/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceInitializerConfiguration.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replaceInitializerConfiguration.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1alpha1InitializerConfiguration")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1InitializerConfiguration");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.AdmissionregistrationV1alpha1Api=AdmissionregistrationV1alpha1Api;var c;(function(e){e[e["BearerToken"]=0]="BearerToken"})(c=t.AdmissionregistrationV1beta1ApiApiKeys||(t.AdmissionregistrationV1beta1ApiApiKeys={}));class AdmissionregistrationV1beta1Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[c[e]].apiKey=t}createMutatingWebhookConfiguration(e,t,i,a,r={}){const s=this.basePath+"/apis/admissionregistration.k8s.io/v1beta1/mutatingwebhookconfigurations";let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter body was null or undefined when calling createMutatingWebhookConfiguration.")}if(t!==undefined){o["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(e,"V1beta1MutatingWebhookConfiguration")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1MutatingWebhookConfiguration");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createValidatingWebhookConfiguration(e,t,i,a,r={}){const s=this.basePath+"/apis/admissionregistration.k8s.io/v1beta1/validatingwebhookconfigurations";let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter body was null or undefined when calling createValidatingWebhookConfiguration.")}if(t!==undefined){o["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(e,"V1beta1ValidatingWebhookConfiguration")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1ValidatingWebhookConfiguration");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionMutatingWebhookConfiguration(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/admissionregistration.k8s.io/v1beta1/mutatingwebhookconfigurations";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"DELETE",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionValidatingWebhookConfiguration(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/admissionregistration.k8s.io/v1beta1/validatingwebhookconfigurations";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"DELETE",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteMutatingWebhookConfiguration(e,t,i,a,r,s,o,u={}){const l=this.basePath+"/apis/admissionregistration.k8s.io/v1beta1/mutatingwebhookconfigurations/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let c={};let d=Object.assign({},this.defaultHeaders);let p={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteMutatingWebhookConfiguration.")}if(t!==undefined){c["pretty"]=ObjectSerializer.serialize(t,"string")}if(a!==undefined){c["dryRun"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){c["gracePeriodSeconds"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){c["orphanDependents"]=ObjectSerializer.serialize(s,"boolean")}if(o!==undefined){c["propagationPolicy"]=ObjectSerializer.serialize(o,"string")}Object.assign(d,u.headers);let f=false;let h={method:"DELETE",qs:c,headers:d,uri:l,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(h);this.authentications.default.applyToRequest(h);if(Object.keys(p).length){if(f){h.formData=p}else{h.form=p}}return new Promise((e,t)=>{n(h,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteValidatingWebhookConfiguration(e,t,i,a,r,s,o,u={}){const l=this.basePath+"/apis/admissionregistration.k8s.io/v1beta1/validatingwebhookconfigurations/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let c={};let d=Object.assign({},this.defaultHeaders);let p={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteValidatingWebhookConfiguration.")}if(t!==undefined){c["pretty"]=ObjectSerializer.serialize(t,"string")}if(a!==undefined){c["dryRun"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){c["gracePeriodSeconds"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){c["orphanDependents"]=ObjectSerializer.serialize(s,"boolean")}if(o!==undefined){c["propagationPolicy"]=ObjectSerializer.serialize(o,"string")}Object.assign(d,u.headers);let f=false;let h={method:"DELETE",qs:c,headers:d,uri:l,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(h);this.authentications.default.applyToRequest(h);if(Object.keys(p).length){if(f){h.formData=p}else{h.form=p}}return new Promise((e,t)=>{n(h,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/apis/admissionregistration.k8s.io/v1beta1/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listMutatingWebhookConfiguration(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/admissionregistration.k8s.io/v1beta1/mutatingwebhookconfigurations";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1MutatingWebhookConfigurationList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listValidatingWebhookConfiguration(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/admissionregistration.k8s.io/v1beta1/validatingwebhookconfigurations";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1ValidatingWebhookConfigurationList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchMutatingWebhookConfiguration(e,t,i,a,r={}){const s=this.basePath+"/apis/admissionregistration.k8s.io/v1beta1/mutatingwebhookconfigurations/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchMutatingWebhookConfiguration.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling patchMutatingWebhookConfiguration.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"any")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1MutatingWebhookConfiguration");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchValidatingWebhookConfiguration(e,t,i,a,r={}){const s=this.basePath+"/apis/admissionregistration.k8s.io/v1beta1/validatingwebhookconfigurations/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchValidatingWebhookConfiguration.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling patchValidatingWebhookConfiguration.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"any")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1ValidatingWebhookConfiguration");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readMutatingWebhookConfiguration(e,t,i,a,r={}){const s=this.basePath+"/apis/admissionregistration.k8s.io/v1beta1/mutatingwebhookconfigurations/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readMutatingWebhookConfiguration.")}if(t!==undefined){o["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){o["exact"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){o["export"]=ObjectSerializer.serialize(a,"boolean")}Object.assign(u,r.headers);let c=false;let d={method:"GET",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1MutatingWebhookConfiguration");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readValidatingWebhookConfiguration(e,t,i,a,r={}){const s=this.basePath+"/apis/admissionregistration.k8s.io/v1beta1/validatingwebhookconfigurations/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readValidatingWebhookConfiguration.")}if(t!==undefined){o["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){o["exact"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){o["export"]=ObjectSerializer.serialize(a,"boolean")}Object.assign(u,r.headers);let c=false;let d={method:"GET",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1ValidatingWebhookConfiguration");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceMutatingWebhookConfiguration(e,t,i,a,r={}){const s=this.basePath+"/apis/admissionregistration.k8s.io/v1beta1/mutatingwebhookconfigurations/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceMutatingWebhookConfiguration.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replaceMutatingWebhookConfiguration.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1beta1MutatingWebhookConfiguration")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1MutatingWebhookConfiguration");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceValidatingWebhookConfiguration(e,t,i,a,r={}){const s=this.basePath+"/apis/admissionregistration.k8s.io/v1beta1/validatingwebhookconfigurations/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceValidatingWebhookConfiguration.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replaceValidatingWebhookConfiguration.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1beta1ValidatingWebhookConfiguration")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1ValidatingWebhookConfiguration");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.AdmissionregistrationV1beta1Api=AdmissionregistrationV1beta1Api;var d;(function(e){e[e["BearerToken"]=0]="BearerToken"})(d=t.ApiextensionsApiApiKeys||(t.ApiextensionsApiApiKeys={}));class ApiextensionsApi{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[d[e]].apiKey=t}getAPIGroup(e={}){const t=this.basePath+"/apis/apiextensions.k8s.io/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIGroup");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.ApiextensionsApi=ApiextensionsApi;var p;(function(e){e[e["BearerToken"]=0]="BearerToken"})(p=t.ApiextensionsV1beta1ApiApiKeys||(t.ApiextensionsV1beta1ApiApiKeys={}));class ApiextensionsV1beta1Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[p[e]].apiKey=t}createCustomResourceDefinition(e,t,i,a,r={}){const s=this.basePath+"/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions";let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter body was null or undefined when calling createCustomResourceDefinition.")}if(t!==undefined){o["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(e,"V1beta1CustomResourceDefinition")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1CustomResourceDefinition");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionCustomResourceDefinition(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"DELETE",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCustomResourceDefinition(e,t,i,a,r,s,o,u={}){const l=this.basePath+"/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let c={};let d=Object.assign({},this.defaultHeaders);let p={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteCustomResourceDefinition.")}if(t!==undefined){c["pretty"]=ObjectSerializer.serialize(t,"string")}if(a!==undefined){c["dryRun"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){c["gracePeriodSeconds"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){c["orphanDependents"]=ObjectSerializer.serialize(s,"boolean")}if(o!==undefined){c["propagationPolicy"]=ObjectSerializer.serialize(o,"string")}Object.assign(d,u.headers);let f=false;let h={method:"DELETE",qs:c,headers:d,uri:l,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(h);this.authentications.default.applyToRequest(h);if(Object.keys(p).length){if(f){h.formData=p}else{h.form=p}}return new Promise((e,t)=>{n(h,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/apis/apiextensions.k8s.io/v1beta1/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listCustomResourceDefinition(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1CustomResourceDefinitionList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchCustomResourceDefinition(e,t,i,a,r={}){const s=this.basePath+"/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchCustomResourceDefinition.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling patchCustomResourceDefinition.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"any")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1CustomResourceDefinition");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchCustomResourceDefinitionStatus(e,t,i,a,r={}){const s=this.basePath+"/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchCustomResourceDefinitionStatus.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling patchCustomResourceDefinitionStatus.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"any")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1CustomResourceDefinition");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readCustomResourceDefinition(e,t,i,a,r={}){const s=this.basePath+"/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readCustomResourceDefinition.")}if(t!==undefined){o["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){o["exact"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){o["export"]=ObjectSerializer.serialize(a,"boolean")}Object.assign(u,r.headers);let c=false;let d={method:"GET",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1CustomResourceDefinition");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readCustomResourceDefinitionStatus(e,t,i={}){const a=this.basePath+"/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e)));let r={};let s=Object.assign({},this.defaultHeaders);let o={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readCustomResourceDefinitionStatus.")}if(t!==undefined){r["pretty"]=ObjectSerializer.serialize(t,"string")}Object.assign(s,i.headers);let u=false;let l={method:"GET",qs:r,headers:s,uri:a,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(l);this.authentications.default.applyToRequest(l);if(Object.keys(o).length){if(u){l.formData=o}else{l.form=o}}return new Promise((e,t)=>{n(l,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1CustomResourceDefinition");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceCustomResourceDefinition(e,t,i,a,r={}){const s=this.basePath+"/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceCustomResourceDefinition.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replaceCustomResourceDefinition.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1beta1CustomResourceDefinition")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1CustomResourceDefinition");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceCustomResourceDefinitionStatus(e,t,i,a,r={}){const s=this.basePath+"/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceCustomResourceDefinitionStatus.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replaceCustomResourceDefinitionStatus.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1beta1CustomResourceDefinition")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1CustomResourceDefinition");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.ApiextensionsV1beta1Api=ApiextensionsV1beta1Api;var f;(function(e){e[e["BearerToken"]=0]="BearerToken"})(f=t.ApiregistrationApiApiKeys||(t.ApiregistrationApiApiKeys={}));class ApiregistrationApi{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[f[e]].apiKey=t}getAPIGroup(e={}){const t=this.basePath+"/apis/apiregistration.k8s.io/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIGroup");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.ApiregistrationApi=ApiregistrationApi;var h;(function(e){e[e["BearerToken"]=0]="BearerToken"})(h=t.ApiregistrationV1ApiApiKeys||(t.ApiregistrationV1ApiApiKeys={}));class ApiregistrationV1Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[h[e]].apiKey=t}createAPIService(e,t,i,a,r={}){const s=this.basePath+"/apis/apiregistration.k8s.io/v1/apiservices";let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter body was null or undefined when calling createAPIService.")}if(t!==undefined){o["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(e,"V1APIService")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIService");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteAPIService(e,t,i,a,r,s,o,u={}){const l=this.basePath+"/apis/apiregistration.k8s.io/v1/apiservices/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let c={};let d=Object.assign({},this.defaultHeaders);let p={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteAPIService.")}if(t!==undefined){c["pretty"]=ObjectSerializer.serialize(t,"string")}if(a!==undefined){c["dryRun"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){c["gracePeriodSeconds"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){c["orphanDependents"]=ObjectSerializer.serialize(s,"boolean")}if(o!==undefined){c["propagationPolicy"]=ObjectSerializer.serialize(o,"string")}Object.assign(d,u.headers);let f=false;let h={method:"DELETE",qs:c,headers:d,uri:l,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(h);this.authentications.default.applyToRequest(h);if(Object.keys(p).length){if(f){h.formData=p}else{h.form=p}}return new Promise((e,t)=>{n(h,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionAPIService(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/apiregistration.k8s.io/v1/apiservices";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"DELETE",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/apis/apiregistration.k8s.io/v1/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listAPIService(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/apiregistration.k8s.io/v1/apiservices";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIServiceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchAPIService(e,t,i,a,r={}){const s=this.basePath+"/apis/apiregistration.k8s.io/v1/apiservices/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchAPIService.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling patchAPIService.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"any")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIService");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchAPIServiceStatus(e,t,i,a,r={}){const s=this.basePath+"/apis/apiregistration.k8s.io/v1/apiservices/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchAPIServiceStatus.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling patchAPIServiceStatus.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"any")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIService");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readAPIService(e,t,i,a,r={}){const s=this.basePath+"/apis/apiregistration.k8s.io/v1/apiservices/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readAPIService.")}if(t!==undefined){o["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){o["exact"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){o["export"]=ObjectSerializer.serialize(a,"boolean")}Object.assign(u,r.headers);let c=false;let d={method:"GET",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIService");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readAPIServiceStatus(e,t,i={}){const a=this.basePath+"/apis/apiregistration.k8s.io/v1/apiservices/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e)));let r={};let s=Object.assign({},this.defaultHeaders);let o={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readAPIServiceStatus.")}if(t!==undefined){r["pretty"]=ObjectSerializer.serialize(t,"string")}Object.assign(s,i.headers);let u=false;let l={method:"GET",qs:r,headers:s,uri:a,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(l);this.authentications.default.applyToRequest(l);if(Object.keys(o).length){if(u){l.formData=o}else{l.form=o}}return new Promise((e,t)=>{n(l,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIService");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceAPIService(e,t,i,a,r={}){const s=this.basePath+"/apis/apiregistration.k8s.io/v1/apiservices/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceAPIService.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replaceAPIService.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1APIService")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIService");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceAPIServiceStatus(e,t,i,a,r={}){const s=this.basePath+"/apis/apiregistration.k8s.io/v1/apiservices/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceAPIServiceStatus.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replaceAPIServiceStatus.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1APIService")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIService");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.ApiregistrationV1Api=ApiregistrationV1Api;var m;(function(e){e[e["BearerToken"]=0]="BearerToken"})(m=t.ApiregistrationV1beta1ApiApiKeys||(t.ApiregistrationV1beta1ApiApiKeys={}));class ApiregistrationV1beta1Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[m[e]].apiKey=t}createAPIService(e,t,i,a,r={}){const s=this.basePath+"/apis/apiregistration.k8s.io/v1beta1/apiservices";let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter body was null or undefined when calling createAPIService.")}if(t!==undefined){o["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(e,"V1beta1APIService")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1APIService");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteAPIService(e,t,i,a,r,s,o,u={}){const l=this.basePath+"/apis/apiregistration.k8s.io/v1beta1/apiservices/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let c={};let d=Object.assign({},this.defaultHeaders);let p={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteAPIService.")}if(t!==undefined){c["pretty"]=ObjectSerializer.serialize(t,"string")}if(a!==undefined){c["dryRun"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){c["gracePeriodSeconds"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){c["orphanDependents"]=ObjectSerializer.serialize(s,"boolean")}if(o!==undefined){c["propagationPolicy"]=ObjectSerializer.serialize(o,"string")}Object.assign(d,u.headers);let f=false;let h={method:"DELETE",qs:c,headers:d,uri:l,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(h);this.authentications.default.applyToRequest(h);if(Object.keys(p).length){if(f){h.formData=p}else{h.form=p}}return new Promise((e,t)=>{n(h,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionAPIService(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/apiregistration.k8s.io/v1beta1/apiservices";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"DELETE",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/apis/apiregistration.k8s.io/v1beta1/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listAPIService(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/apiregistration.k8s.io/v1beta1/apiservices";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1APIServiceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchAPIService(e,t,i,a,r={}){const s=this.basePath+"/apis/apiregistration.k8s.io/v1beta1/apiservices/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchAPIService.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling patchAPIService.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"any")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1APIService");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchAPIServiceStatus(e,t,i,a,r={}){const s=this.basePath+"/apis/apiregistration.k8s.io/v1beta1/apiservices/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchAPIServiceStatus.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling patchAPIServiceStatus.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"any")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1APIService");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readAPIService(e,t,i,a,r={}){const s=this.basePath+"/apis/apiregistration.k8s.io/v1beta1/apiservices/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readAPIService.")}if(t!==undefined){o["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){o["exact"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){o["export"]=ObjectSerializer.serialize(a,"boolean")}Object.assign(u,r.headers);let c=false;let d={method:"GET",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1APIService");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readAPIServiceStatus(e,t,i={}){const a=this.basePath+"/apis/apiregistration.k8s.io/v1beta1/apiservices/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e)));let r={};let s=Object.assign({},this.defaultHeaders);let o={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readAPIServiceStatus.")}if(t!==undefined){r["pretty"]=ObjectSerializer.serialize(t,"string")}Object.assign(s,i.headers);let u=false;let l={method:"GET",qs:r,headers:s,uri:a,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(l);this.authentications.default.applyToRequest(l);if(Object.keys(o).length){if(u){l.formData=o}else{l.form=o}}return new Promise((e,t)=>{n(l,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1APIService");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceAPIService(e,t,i,a,r={}){const s=this.basePath+"/apis/apiregistration.k8s.io/v1beta1/apiservices/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceAPIService.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replaceAPIService.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1beta1APIService")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1APIService");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceAPIServiceStatus(e,t,i,a,r={}){const s=this.basePath+"/apis/apiregistration.k8s.io/v1beta1/apiservices/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceAPIServiceStatus.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replaceAPIServiceStatus.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1beta1APIService")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1APIService");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.ApiregistrationV1beta1Api=ApiregistrationV1beta1Api;var b;(function(e){e[e["BearerToken"]=0]="BearerToken"})(b=t.ApisApiApiKeys||(t.ApisApiApiKeys={}));class ApisApi{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[b[e]].apiKey=t}getAPIVersions(e={}){const t=this.basePath+"/apis/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIGroupList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.ApisApi=ApisApi;var g;(function(e){e[e["BearerToken"]=0]="BearerToken"})(g=t.AppsApiApiKeys||(t.AppsApiApiKeys={}));class AppsApi{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[g[e]].apiKey=t}getAPIGroup(e={}){const t=this.basePath+"/apis/apps/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIGroup");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.AppsApi=AppsApi;var y;(function(e){e[e["BearerToken"]=0]="BearerToken"})(y=t.AppsV1ApiApiKeys||(t.AppsV1ApiApiKeys={}));class AppsV1Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[y[e]].apiKey=t}createNamespacedControllerRevision(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1/namespaces/{namespace}/controllerrevisions".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedControllerRevision.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedControllerRevision.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1ControllerRevision")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ControllerRevision");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedDaemonSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1/namespaces/{namespace}/daemonsets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedDaemonSet.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedDaemonSet.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1DaemonSet")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1DaemonSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedDeployment(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1/namespaces/{namespace}/deployments".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedDeployment.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedDeployment.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1Deployment")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Deployment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedReplicaSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1/namespaces/{namespace}/replicasets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedReplicaSet.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedReplicaSet.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1ReplicaSet")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ReplicaSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedStatefulSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1/namespaces/{namespace}/statefulsets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedStatefulSet.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedStatefulSet.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1StatefulSet")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1StatefulSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedControllerRevision(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/apps/v1/namespaces/{namespace}/controllerrevisions".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedControllerRevision.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedDaemonSet(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/apps/v1/namespaces/{namespace}/daemonsets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedDaemonSet.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedDeployment(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/apps/v1/namespaces/{namespace}/deployments".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedDeployment.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedReplicaSet(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/apps/v1/namespaces/{namespace}/replicasets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedReplicaSet.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedStatefulSet(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/apps/v1/namespaces/{namespace}/statefulsets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedStatefulSet.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedControllerRevision(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedControllerRevision.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedControllerRevision.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedDaemonSet(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedDaemonSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedDaemonSet.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedDeployment(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/apps/v1/namespaces/{namespace}/deployments/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedDeployment.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedDeployment.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedReplicaSet(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/apps/v1/namespaces/{namespace}/replicasets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedReplicaSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedReplicaSet.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedStatefulSet(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedStatefulSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedStatefulSet.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/apis/apps/v1/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listControllerRevisionForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/apps/v1/controllerrevisions";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ControllerRevisionList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listDaemonSetForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/apps/v1/daemonsets";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1DaemonSetList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listDeploymentForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/apps/v1/deployments";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1DeploymentList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedControllerRevision(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/apps/v1/namespaces/{namespace}/controllerrevisions".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedControllerRevision.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ControllerRevisionList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedDaemonSet(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/apps/v1/namespaces/{namespace}/daemonsets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedDaemonSet.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1DaemonSetList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedDeployment(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/apps/v1/namespaces/{namespace}/deployments".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedDeployment.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1DeploymentList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedReplicaSet(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/apps/v1/namespaces/{namespace}/replicasets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedReplicaSet.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ReplicaSetList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedStatefulSet(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/apps/v1/namespaces/{namespace}/statefulsets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedStatefulSet.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1StatefulSetList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listReplicaSetForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/apps/v1/replicasets";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ReplicaSetList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listStatefulSetForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/apps/v1/statefulsets";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1StatefulSetList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedControllerRevision(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedControllerRevision.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedControllerRevision.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedControllerRevision.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ControllerRevision");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedDaemonSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedDaemonSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedDaemonSet.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedDaemonSet.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1DaemonSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedDaemonSetStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedDaemonSetStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedDaemonSetStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedDaemonSetStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1DaemonSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedDeployment(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1/namespaces/{namespace}/deployments/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedDeployment.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedDeployment.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedDeployment.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Deployment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedDeploymentScale(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1/namespaces/{namespace}/deployments/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedDeploymentScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedDeploymentScale.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedDeploymentScale.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedDeploymentStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1/namespaces/{namespace}/deployments/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedDeploymentStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedDeploymentStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedDeploymentStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Deployment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedReplicaSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1/namespaces/{namespace}/replicasets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedReplicaSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedReplicaSet.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedReplicaSet.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ReplicaSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedReplicaSetScale(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1/namespaces/{namespace}/replicasets/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedReplicaSetScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedReplicaSetScale.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedReplicaSetScale.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedReplicaSetStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1/namespaces/{namespace}/replicasets/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedReplicaSetStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedReplicaSetStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedReplicaSetStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ReplicaSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedStatefulSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedStatefulSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedStatefulSet.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedStatefulSet.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1StatefulSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedStatefulSetScale(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedStatefulSetScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedStatefulSetScale.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedStatefulSetScale.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedStatefulSetStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedStatefulSetStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedStatefulSetStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedStatefulSetStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1StatefulSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedControllerRevision(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedControllerRevision.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedControllerRevision.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ControllerRevision");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedDaemonSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedDaemonSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedDaemonSet.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1DaemonSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedDaemonSetStatus(e,t,i,a={}){const r=this.basePath+"/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedDaemonSetStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedDaemonSetStatus.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1DaemonSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedDeployment(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1/namespaces/{namespace}/deployments/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedDeployment.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedDeployment.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Deployment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedDeploymentScale(e,t,i,a={}){const r=this.basePath+"/apis/apps/v1/namespaces/{namespace}/deployments/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedDeploymentScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedDeploymentScale.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedDeploymentStatus(e,t,i,a={}){const r=this.basePath+"/apis/apps/v1/namespaces/{namespace}/deployments/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedDeploymentStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedDeploymentStatus.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Deployment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedReplicaSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1/namespaces/{namespace}/replicasets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedReplicaSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedReplicaSet.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ReplicaSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedReplicaSetScale(e,t,i,a={}){const r=this.basePath+"/apis/apps/v1/namespaces/{namespace}/replicasets/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedReplicaSetScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedReplicaSetScale.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedReplicaSetStatus(e,t,i,a={}){const r=this.basePath+"/apis/apps/v1/namespaces/{namespace}/replicasets/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedReplicaSetStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedReplicaSetStatus.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ReplicaSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedStatefulSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedStatefulSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedStatefulSet.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1StatefulSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedStatefulSetScale(e,t,i,a={}){const r=this.basePath+"/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedStatefulSetScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedStatefulSetScale.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedStatefulSetStatus(e,t,i,a={}){const r=this.basePath+"/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedStatefulSetStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedStatefulSetStatus.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1StatefulSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedControllerRevision(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedControllerRevision.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedControllerRevision.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedControllerRevision.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1ControllerRevision")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ControllerRevision");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedDaemonSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedDaemonSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedDaemonSet.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedDaemonSet.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1DaemonSet")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1DaemonSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedDaemonSetStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedDaemonSetStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedDaemonSetStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedDaemonSetStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1DaemonSet")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1DaemonSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedDeployment(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1/namespaces/{namespace}/deployments/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedDeployment.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedDeployment.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedDeployment.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1Deployment")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Deployment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedDeploymentScale(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1/namespaces/{namespace}/deployments/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedDeploymentScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedDeploymentScale.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedDeploymentScale.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1Scale")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedDeploymentStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1/namespaces/{namespace}/deployments/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedDeploymentStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedDeploymentStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedDeploymentStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1Deployment")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Deployment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedReplicaSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1/namespaces/{namespace}/replicasets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedReplicaSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedReplicaSet.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedReplicaSet.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1ReplicaSet")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ReplicaSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedReplicaSetScale(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1/namespaces/{namespace}/replicasets/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedReplicaSetScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedReplicaSetScale.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedReplicaSetScale.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1Scale")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedReplicaSetStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1/namespaces/{namespace}/replicasets/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedReplicaSetStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedReplicaSetStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedReplicaSetStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1ReplicaSet")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ReplicaSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedStatefulSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedStatefulSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedStatefulSet.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedStatefulSet.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1StatefulSet")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1StatefulSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedStatefulSetScale(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedStatefulSetScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedStatefulSetScale.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedStatefulSetScale.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1Scale")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedStatefulSetStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedStatefulSetStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedStatefulSetStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedStatefulSetStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1StatefulSet")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1StatefulSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.AppsV1Api=AppsV1Api;var S;(function(e){e[e["BearerToken"]=0]="BearerToken"})(S=t.AppsV1beta1ApiApiKeys||(t.AppsV1beta1ApiApiKeys={}));class AppsV1beta1Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[S[e]].apiKey=t}createNamespacedControllerRevision(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta1/namespaces/{namespace}/controllerrevisions".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedControllerRevision.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedControllerRevision.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1beta1ControllerRevision")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1ControllerRevision");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedDeployment(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta1/namespaces/{namespace}/deployments".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedDeployment.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedDeployment.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"AppsV1beta1Deployment")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"AppsV1beta1Deployment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedDeploymentRollback(e,t,i,a,r,s,o={}){const u=this.basePath+"/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/rollback".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let l={};let c=Object.assign({},this.defaultHeaders);let d={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling createNamespacedDeploymentRollback.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedDeploymentRollback.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedDeploymentRollback.")}if(a!==undefined){l["dryRun"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){l["includeUninitialized"]=ObjectSerializer.serialize(r,"boolean")}if(s!==undefined){l["pretty"]=ObjectSerializer.serialize(s,"string")}Object.assign(c,o.headers);let p=false;let f={method:"POST",qs:l,headers:c,uri:u,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"AppsV1beta1DeploymentRollback")};this.authentications.BearerToken.applyToRequest(f);this.authentications.default.applyToRequest(f);if(Object.keys(d).length){if(p){f.formData=d}else{f.form=d}}return new Promise((e,t)=>{n(f,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedStatefulSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta1/namespaces/{namespace}/statefulsets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedStatefulSet.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedStatefulSet.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1beta1StatefulSet")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1StatefulSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedControllerRevision(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/apps/v1beta1/namespaces/{namespace}/controllerrevisions".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedControllerRevision.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedDeployment(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/apps/v1beta1/namespaces/{namespace}/deployments".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedDeployment.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedStatefulSet(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/apps/v1beta1/namespaces/{namespace}/statefulsets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedStatefulSet.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedControllerRevision(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/apps/v1beta1/namespaces/{namespace}/controllerrevisions/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedControllerRevision.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedControllerRevision.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedDeployment(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedDeployment.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedDeployment.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedStatefulSet(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedStatefulSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedStatefulSet.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/apis/apps/v1beta1/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listControllerRevisionForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/apps/v1beta1/controllerrevisions";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1ControllerRevisionList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listDeploymentForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/apps/v1beta1/deployments";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"AppsV1beta1DeploymentList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedControllerRevision(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/apps/v1beta1/namespaces/{namespace}/controllerrevisions".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedControllerRevision.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1ControllerRevisionList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedDeployment(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/apps/v1beta1/namespaces/{namespace}/deployments".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedDeployment.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"AppsV1beta1DeploymentList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedStatefulSet(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/apps/v1beta1/namespaces/{namespace}/statefulsets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedStatefulSet.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1StatefulSetList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listStatefulSetForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/apps/v1beta1/statefulsets";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1StatefulSetList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedControllerRevision(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta1/namespaces/{namespace}/controllerrevisions/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedControllerRevision.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedControllerRevision.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedControllerRevision.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1ControllerRevision");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedDeployment(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedDeployment.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedDeployment.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedDeployment.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"AppsV1beta1Deployment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedDeploymentScale(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedDeploymentScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedDeploymentScale.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedDeploymentScale.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"AppsV1beta1Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedDeploymentStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedDeploymentStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedDeploymentStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedDeploymentStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"AppsV1beta1Deployment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedStatefulSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedStatefulSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedStatefulSet.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedStatefulSet.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1StatefulSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedStatefulSetScale(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedStatefulSetScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedStatefulSetScale.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedStatefulSetScale.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"AppsV1beta1Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedStatefulSetStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedStatefulSetStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedStatefulSetStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedStatefulSetStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1StatefulSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedControllerRevision(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta1/namespaces/{namespace}/controllerrevisions/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedControllerRevision.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedControllerRevision.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1ControllerRevision");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedDeployment(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedDeployment.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedDeployment.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"AppsV1beta1Deployment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedDeploymentScale(e,t,i,a={}){const r=this.basePath+"/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedDeploymentScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedDeploymentScale.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"AppsV1beta1Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedDeploymentStatus(e,t,i,a={}){const r=this.basePath+"/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedDeploymentStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedDeploymentStatus.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"AppsV1beta1Deployment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedStatefulSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedStatefulSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedStatefulSet.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1StatefulSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedStatefulSetScale(e,t,i,a={}){const r=this.basePath+"/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedStatefulSetScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedStatefulSetScale.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"AppsV1beta1Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedStatefulSetStatus(e,t,i,a={}){const r=this.basePath+"/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedStatefulSetStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedStatefulSetStatus.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1StatefulSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedControllerRevision(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta1/namespaces/{namespace}/controllerrevisions/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedControllerRevision.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedControllerRevision.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedControllerRevision.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1beta1ControllerRevision")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1ControllerRevision");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedDeployment(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedDeployment.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedDeployment.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedDeployment.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"AppsV1beta1Deployment")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"AppsV1beta1Deployment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedDeploymentScale(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedDeploymentScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedDeploymentScale.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedDeploymentScale.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"AppsV1beta1Scale")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"AppsV1beta1Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedDeploymentStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedDeploymentStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedDeploymentStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedDeploymentStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"AppsV1beta1Deployment")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"AppsV1beta1Deployment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedStatefulSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedStatefulSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedStatefulSet.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedStatefulSet.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1beta1StatefulSet")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1StatefulSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedStatefulSetScale(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedStatefulSetScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedStatefulSetScale.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedStatefulSetScale.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"AppsV1beta1Scale")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"AppsV1beta1Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedStatefulSetStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedStatefulSetStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedStatefulSetStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedStatefulSetStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1beta1StatefulSet")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1StatefulSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.AppsV1beta1Api=AppsV1beta1Api;var w;(function(e){e[e["BearerToken"]=0]="BearerToken"})(w=t.AppsV1beta2ApiApiKeys||(t.AppsV1beta2ApiApiKeys={}));class AppsV1beta2Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[w[e]].apiKey=t}createNamespacedControllerRevision(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/controllerrevisions".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedControllerRevision.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedControllerRevision.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1beta2ControllerRevision")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2ControllerRevision");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedDaemonSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/daemonsets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedDaemonSet.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedDaemonSet.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1beta2DaemonSet")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2DaemonSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedDeployment(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/deployments".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedDeployment.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedDeployment.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1beta2Deployment")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2Deployment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedReplicaSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/replicasets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedReplicaSet.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedReplicaSet.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1beta2ReplicaSet")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2ReplicaSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedStatefulSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/statefulsets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedStatefulSet.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedStatefulSet.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1beta2StatefulSet")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2StatefulSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedControllerRevision(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/controllerrevisions".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedControllerRevision.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedDaemonSet(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/daemonsets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedDaemonSet.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedDeployment(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/deployments".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedDeployment.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedReplicaSet(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/replicasets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedReplicaSet.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedStatefulSet(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/statefulsets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedStatefulSet.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedControllerRevision(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/controllerrevisions/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedControllerRevision.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedControllerRevision.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedDaemonSet(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/daemonsets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedDaemonSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedDaemonSet.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedDeployment(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedDeployment.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedDeployment.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedReplicaSet(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/replicasets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedReplicaSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedReplicaSet.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedStatefulSet(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedStatefulSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedStatefulSet.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/apis/apps/v1beta2/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listControllerRevisionForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/apps/v1beta2/controllerrevisions";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2ControllerRevisionList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listDaemonSetForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/apps/v1beta2/daemonsets";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2DaemonSetList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listDeploymentForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/apps/v1beta2/deployments";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2DeploymentList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedControllerRevision(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/controllerrevisions".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedControllerRevision.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2ControllerRevisionList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedDaemonSet(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/daemonsets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedDaemonSet.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2DaemonSetList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedDeployment(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/deployments".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedDeployment.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2DeploymentList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedReplicaSet(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/replicasets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedReplicaSet.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2ReplicaSetList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedStatefulSet(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/statefulsets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedStatefulSet.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2StatefulSetList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listReplicaSetForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/apps/v1beta2/replicasets";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2ReplicaSetList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listStatefulSetForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/apps/v1beta2/statefulsets";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2StatefulSetList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedControllerRevision(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/controllerrevisions/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedControllerRevision.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedControllerRevision.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedControllerRevision.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2ControllerRevision");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedDaemonSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/daemonsets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedDaemonSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedDaemonSet.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedDaemonSet.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2DaemonSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedDaemonSetStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/daemonsets/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedDaemonSetStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedDaemonSetStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedDaemonSetStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2DaemonSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedDeployment(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedDeployment.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedDeployment.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedDeployment.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2Deployment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedDeploymentScale(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedDeploymentScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedDeploymentScale.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedDeploymentScale.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedDeploymentStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedDeploymentStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedDeploymentStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedDeploymentStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2Deployment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedReplicaSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/replicasets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedReplicaSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedReplicaSet.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedReplicaSet.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2ReplicaSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedReplicaSetScale(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/replicasets/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedReplicaSetScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedReplicaSetScale.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedReplicaSetScale.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedReplicaSetStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/replicasets/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedReplicaSetStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedReplicaSetStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedReplicaSetStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2ReplicaSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedStatefulSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedStatefulSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedStatefulSet.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedStatefulSet.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2StatefulSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedStatefulSetScale(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedStatefulSetScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedStatefulSetScale.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedStatefulSetScale.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedStatefulSetStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedStatefulSetStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedStatefulSetStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedStatefulSetStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2StatefulSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedControllerRevision(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/controllerrevisions/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedControllerRevision.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedControllerRevision.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2ControllerRevision");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedDaemonSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/daemonsets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedDaemonSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedDaemonSet.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2DaemonSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedDaemonSetStatus(e,t,i,a={}){const r=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/daemonsets/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedDaemonSetStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedDaemonSetStatus.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2DaemonSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedDeployment(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedDeployment.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedDeployment.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2Deployment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedDeploymentScale(e,t,i,a={}){const r=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedDeploymentScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedDeploymentScale.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedDeploymentStatus(e,t,i,a={}){const r=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedDeploymentStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedDeploymentStatus.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2Deployment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedReplicaSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/replicasets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedReplicaSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedReplicaSet.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2ReplicaSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedReplicaSetScale(e,t,i,a={}){const r=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/replicasets/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedReplicaSetScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedReplicaSetScale.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedReplicaSetStatus(e,t,i,a={}){const r=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/replicasets/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedReplicaSetStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedReplicaSetStatus.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2ReplicaSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedStatefulSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedStatefulSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedStatefulSet.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2StatefulSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedStatefulSetScale(e,t,i,a={}){const r=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedStatefulSetScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedStatefulSetScale.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedStatefulSetStatus(e,t,i,a={}){const r=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedStatefulSetStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedStatefulSetStatus.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2StatefulSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedControllerRevision(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/controllerrevisions/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedControllerRevision.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedControllerRevision.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedControllerRevision.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1beta2ControllerRevision")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2ControllerRevision");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedDaemonSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/daemonsets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedDaemonSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedDaemonSet.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedDaemonSet.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1beta2DaemonSet")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2DaemonSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedDaemonSetStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/daemonsets/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedDaemonSetStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedDaemonSetStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedDaemonSetStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1beta2DaemonSet")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2DaemonSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedDeployment(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedDeployment.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedDeployment.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedDeployment.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1beta2Deployment")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2Deployment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedDeploymentScale(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedDeploymentScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedDeploymentScale.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedDeploymentScale.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1beta2Scale")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedDeploymentStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedDeploymentStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedDeploymentStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedDeploymentStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1beta2Deployment")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2Deployment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedReplicaSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/replicasets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedReplicaSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedReplicaSet.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedReplicaSet.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1beta2ReplicaSet")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2ReplicaSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedReplicaSetScale(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/replicasets/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedReplicaSetScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedReplicaSetScale.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedReplicaSetScale.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1beta2Scale")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedReplicaSetStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/replicasets/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedReplicaSetStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedReplicaSetStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedReplicaSetStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1beta2ReplicaSet")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2ReplicaSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedStatefulSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedStatefulSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedStatefulSet.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedStatefulSet.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1beta2StatefulSet")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2StatefulSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedStatefulSetScale(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedStatefulSetScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedStatefulSetScale.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedStatefulSetScale.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1beta2Scale")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedStatefulSetStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedStatefulSetStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedStatefulSetStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedStatefulSetStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1beta2StatefulSet")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta2StatefulSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.AppsV1beta2Api=AppsV1beta2Api;var v;(function(e){e[e["BearerToken"]=0]="BearerToken"})(v=t.AuditregistrationApiApiKeys||(t.AuditregistrationApiApiKeys={}));class AuditregistrationApi{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[v[e]].apiKey=t}getAPIGroup(e={}){const t=this.basePath+"/apis/auditregistration.k8s.io/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIGroup");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.AuditregistrationApi=AuditregistrationApi;var z;(function(e){e[e["BearerToken"]=0]="BearerToken"})(z=t.AuditregistrationV1alpha1ApiApiKeys||(t.AuditregistrationV1alpha1ApiApiKeys={}));class AuditregistrationV1alpha1Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[z[e]].apiKey=t}createAuditSink(e,t,i,a,r={}){const s=this.basePath+"/apis/auditregistration.k8s.io/v1alpha1/auditsinks";let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter body was null or undefined when calling createAuditSink.")}if(t!==undefined){o["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(e,"V1alpha1AuditSink")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1AuditSink");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteAuditSink(e,t,i,a,r,s,o,u={}){const l=this.basePath+"/apis/auditregistration.k8s.io/v1alpha1/auditsinks/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let c={};let d=Object.assign({},this.defaultHeaders);let p={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteAuditSink.")}if(t!==undefined){c["pretty"]=ObjectSerializer.serialize(t,"string")}if(a!==undefined){c["dryRun"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){c["gracePeriodSeconds"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){c["orphanDependents"]=ObjectSerializer.serialize(s,"boolean")}if(o!==undefined){c["propagationPolicy"]=ObjectSerializer.serialize(o,"string")}Object.assign(d,u.headers);let f=false;let h={method:"DELETE",qs:c,headers:d,uri:l,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(h);this.authentications.default.applyToRequest(h);if(Object.keys(p).length){if(f){h.formData=p}else{h.form=p}}return new Promise((e,t)=>{n(h,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionAuditSink(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/auditregistration.k8s.io/v1alpha1/auditsinks";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"DELETE",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/apis/auditregistration.k8s.io/v1alpha1/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listAuditSink(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/auditregistration.k8s.io/v1alpha1/auditsinks";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1AuditSinkList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchAuditSink(e,t,i,a,r={}){const s=this.basePath+"/apis/auditregistration.k8s.io/v1alpha1/auditsinks/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchAuditSink.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling patchAuditSink.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"any")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1AuditSink");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readAuditSink(e,t,i,a,r={}){const s=this.basePath+"/apis/auditregistration.k8s.io/v1alpha1/auditsinks/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readAuditSink.")}if(t!==undefined){o["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){o["exact"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){o["export"]=ObjectSerializer.serialize(a,"boolean")}Object.assign(u,r.headers);let c=false;let d={method:"GET",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1AuditSink");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceAuditSink(e,t,i,a,r={}){const s=this.basePath+"/apis/auditregistration.k8s.io/v1alpha1/auditsinks/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceAuditSink.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replaceAuditSink.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1alpha1AuditSink")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1AuditSink");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.AuditregistrationV1alpha1Api=AuditregistrationV1alpha1Api;var j;(function(e){e[e["BearerToken"]=0]="BearerToken"})(j=t.AuthenticationApiApiKeys||(t.AuthenticationApiApiKeys={}));class AuthenticationApi{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[j[e]].apiKey=t}getAPIGroup(e={}){const t=this.basePath+"/apis/authentication.k8s.io/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIGroup");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.AuthenticationApi=AuthenticationApi;var O;(function(e){e[e["BearerToken"]=0]="BearerToken"})(O=t.AuthenticationV1ApiApiKeys||(t.AuthenticationV1ApiApiKeys={}));class AuthenticationV1Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[O[e]].apiKey=t}createTokenReview(e,t,i,a,r={}){const s=this.basePath+"/apis/authentication.k8s.io/v1/tokenreviews";let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter body was null or undefined when calling createTokenReview.")}if(t!==undefined){o["dryRun"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){o["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){o["pretty"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(e,"V1TokenReview")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1TokenReview");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/apis/authentication.k8s.io/v1/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.AuthenticationV1Api=AuthenticationV1Api;var k;(function(e){e[e["BearerToken"]=0]="BearerToken"})(k=t.AuthenticationV1beta1ApiApiKeys||(t.AuthenticationV1beta1ApiApiKeys={}));class AuthenticationV1beta1Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[k[e]].apiKey=t}createTokenReview(e,t,i,a,r={}){const s=this.basePath+"/apis/authentication.k8s.io/v1beta1/tokenreviews";let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter body was null or undefined when calling createTokenReview.")}if(t!==undefined){o["dryRun"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){o["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){o["pretty"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(e,"V1beta1TokenReview")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1TokenReview");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/apis/authentication.k8s.io/v1beta1/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.AuthenticationV1beta1Api=AuthenticationV1beta1Api;var C;(function(e){e[e["BearerToken"]=0]="BearerToken"})(C=t.AuthorizationApiApiKeys||(t.AuthorizationApiApiKeys={}));class AuthorizationApi{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[C[e]].apiKey=t}getAPIGroup(e={}){const t=this.basePath+"/apis/authorization.k8s.io/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIGroup");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.AuthorizationApi=AuthorizationApi;var T;(function(e){e[e["BearerToken"]=0]="BearerToken"})(T=t.AuthorizationV1ApiApiKeys||(t.AuthorizationV1ApiApiKeys={}));class AuthorizationV1Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[T[e]].apiKey=t}createNamespacedLocalSubjectAccessReview(e,t,i,a,r,s={}){const o=this.basePath+"/apis/authorization.k8s.io/v1/namespaces/{namespace}/localsubjectaccessreviews".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedLocalSubjectAccessReview.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedLocalSubjectAccessReview.")}if(i!==undefined){u["dryRun"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["pretty"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1LocalSubjectAccessReview")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1LocalSubjectAccessReview");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createSelfSubjectAccessReview(e,t,i,a,r={}){const s=this.basePath+"/apis/authorization.k8s.io/v1/selfsubjectaccessreviews";let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter body was null or undefined when calling createSelfSubjectAccessReview.")}if(t!==undefined){o["dryRun"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){o["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){o["pretty"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(e,"V1SelfSubjectAccessReview")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1SelfSubjectAccessReview");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createSelfSubjectRulesReview(e,t,i,a,r={}){const s=this.basePath+"/apis/authorization.k8s.io/v1/selfsubjectrulesreviews";let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter body was null or undefined when calling createSelfSubjectRulesReview.")}if(t!==undefined){o["dryRun"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){o["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){o["pretty"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(e,"V1SelfSubjectRulesReview")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1SelfSubjectRulesReview");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createSubjectAccessReview(e,t,i,a,r={}){const s=this.basePath+"/apis/authorization.k8s.io/v1/subjectaccessreviews";let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter body was null or undefined when calling createSubjectAccessReview.")}if(t!==undefined){o["dryRun"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){o["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){o["pretty"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(e,"V1SubjectAccessReview")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1SubjectAccessReview");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/apis/authorization.k8s.io/v1/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.AuthorizationV1Api=AuthorizationV1Api;var R;(function(e){e[e["BearerToken"]=0]="BearerToken"})(R=t.AuthorizationV1beta1ApiApiKeys||(t.AuthorizationV1beta1ApiApiKeys={}));class AuthorizationV1beta1Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[R[e]].apiKey=t}createNamespacedLocalSubjectAccessReview(e,t,i,a,r,s={}){const o=this.basePath+"/apis/authorization.k8s.io/v1beta1/namespaces/{namespace}/localsubjectaccessreviews".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedLocalSubjectAccessReview.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedLocalSubjectAccessReview.")}if(i!==undefined){u["dryRun"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["pretty"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1beta1LocalSubjectAccessReview")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1LocalSubjectAccessReview");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createSelfSubjectAccessReview(e,t,i,a,r={}){const s=this.basePath+"/apis/authorization.k8s.io/v1beta1/selfsubjectaccessreviews";let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter body was null or undefined when calling createSelfSubjectAccessReview.")}if(t!==undefined){o["dryRun"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){o["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){o["pretty"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(e,"V1beta1SelfSubjectAccessReview")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1SelfSubjectAccessReview");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createSelfSubjectRulesReview(e,t,i,a,r={}){const s=this.basePath+"/apis/authorization.k8s.io/v1beta1/selfsubjectrulesreviews";let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter body was null or undefined when calling createSelfSubjectRulesReview.")}if(t!==undefined){o["dryRun"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){o["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){o["pretty"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(e,"V1beta1SelfSubjectRulesReview")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1SelfSubjectRulesReview");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createSubjectAccessReview(e,t,i,a,r={}){const s=this.basePath+"/apis/authorization.k8s.io/v1beta1/subjectaccessreviews";let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter body was null or undefined when calling createSubjectAccessReview.")}if(t!==undefined){o["dryRun"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){o["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){o["pretty"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(e,"V1beta1SubjectAccessReview")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1SubjectAccessReview");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/apis/authorization.k8s.io/v1beta1/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.AuthorizationV1beta1Api=AuthorizationV1beta1Api;var E;(function(e){e[e["BearerToken"]=0]="BearerToken"})(E=t.AutoscalingApiApiKeys||(t.AutoscalingApiApiKeys={}));class AutoscalingApi{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[E[e]].apiKey=t}getAPIGroup(e={}){const t=this.basePath+"/apis/autoscaling/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIGroup");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.AutoscalingApi=AutoscalingApi;var A;(function(e){e[e["BearerToken"]=0]="BearerToken"})(A=t.AutoscalingV1ApiApiKeys||(t.AutoscalingV1ApiApiKeys={}));class AutoscalingV1Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[A[e]].apiKey=t}createNamespacedHorizontalPodAutoscaler(e,t,i,a,r,s={}){const o=this.basePath+"/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedHorizontalPodAutoscaler.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedHorizontalPodAutoscaler.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1HorizontalPodAutoscaler")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1HorizontalPodAutoscaler");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedHorizontalPodAutoscaler(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedHorizontalPodAutoscaler.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedHorizontalPodAutoscaler(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedHorizontalPodAutoscaler.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedHorizontalPodAutoscaler.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/apis/autoscaling/v1/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listHorizontalPodAutoscalerForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/autoscaling/v1/horizontalpodautoscalers";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1HorizontalPodAutoscalerList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedHorizontalPodAutoscaler(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedHorizontalPodAutoscaler.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1HorizontalPodAutoscalerList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedHorizontalPodAutoscaler(e,t,i,a,r,s={}){const o=this.basePath+"/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedHorizontalPodAutoscaler.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedHorizontalPodAutoscaler.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedHorizontalPodAutoscaler.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1HorizontalPodAutoscaler");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedHorizontalPodAutoscalerStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedHorizontalPodAutoscalerStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedHorizontalPodAutoscalerStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedHorizontalPodAutoscalerStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1HorizontalPodAutoscaler");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedHorizontalPodAutoscaler(e,t,i,a,r,s={}){const o=this.basePath+"/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedHorizontalPodAutoscaler.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedHorizontalPodAutoscaler.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1HorizontalPodAutoscaler");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedHorizontalPodAutoscalerStatus(e,t,i,a={}){const r=this.basePath+"/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedHorizontalPodAutoscalerStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedHorizontalPodAutoscalerStatus.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1HorizontalPodAutoscaler");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedHorizontalPodAutoscaler(e,t,i,a,r,s={}){const o=this.basePath+"/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedHorizontalPodAutoscaler.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedHorizontalPodAutoscaler.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedHorizontalPodAutoscaler.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1HorizontalPodAutoscaler")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1HorizontalPodAutoscaler");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedHorizontalPodAutoscalerStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedHorizontalPodAutoscalerStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedHorizontalPodAutoscalerStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedHorizontalPodAutoscalerStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1HorizontalPodAutoscaler")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1HorizontalPodAutoscaler");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.AutoscalingV1Api=AutoscalingV1Api;var x;(function(e){e[e["BearerToken"]=0]="BearerToken"})(x=t.AutoscalingV2beta1ApiApiKeys||(t.AutoscalingV2beta1ApiApiKeys={}));class AutoscalingV2beta1Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[x[e]].apiKey=t}createNamespacedHorizontalPodAutoscaler(e,t,i,a,r,s={}){const o=this.basePath+"/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedHorizontalPodAutoscaler.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedHorizontalPodAutoscaler.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V2beta1HorizontalPodAutoscaler")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V2beta1HorizontalPodAutoscaler");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedHorizontalPodAutoscaler(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedHorizontalPodAutoscaler.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedHorizontalPodAutoscaler(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedHorizontalPodAutoscaler.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedHorizontalPodAutoscaler.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/apis/autoscaling/v2beta1/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listHorizontalPodAutoscalerForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/autoscaling/v2beta1/horizontalpodautoscalers";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V2beta1HorizontalPodAutoscalerList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedHorizontalPodAutoscaler(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedHorizontalPodAutoscaler.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V2beta1HorizontalPodAutoscalerList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedHorizontalPodAutoscaler(e,t,i,a,r,s={}){const o=this.basePath+"/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedHorizontalPodAutoscaler.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedHorizontalPodAutoscaler.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedHorizontalPodAutoscaler.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V2beta1HorizontalPodAutoscaler");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedHorizontalPodAutoscalerStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedHorizontalPodAutoscalerStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedHorizontalPodAutoscalerStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedHorizontalPodAutoscalerStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V2beta1HorizontalPodAutoscaler");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedHorizontalPodAutoscaler(e,t,i,a,r,s={}){const o=this.basePath+"/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedHorizontalPodAutoscaler.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedHorizontalPodAutoscaler.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V2beta1HorizontalPodAutoscaler");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedHorizontalPodAutoscalerStatus(e,t,i,a={}){const r=this.basePath+"/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedHorizontalPodAutoscalerStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedHorizontalPodAutoscalerStatus.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V2beta1HorizontalPodAutoscaler");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedHorizontalPodAutoscaler(e,t,i,a,r,s={}){const o=this.basePath+"/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedHorizontalPodAutoscaler.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedHorizontalPodAutoscaler.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedHorizontalPodAutoscaler.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V2beta1HorizontalPodAutoscaler")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V2beta1HorizontalPodAutoscaler");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedHorizontalPodAutoscalerStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedHorizontalPodAutoscalerStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedHorizontalPodAutoscalerStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedHorizontalPodAutoscalerStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V2beta1HorizontalPodAutoscaler")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V2beta1HorizontalPodAutoscaler");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.AutoscalingV2beta1Api=AutoscalingV2beta1Api;var N;(function(e){e[e["BearerToken"]=0]="BearerToken"})(N=t.AutoscalingV2beta2ApiApiKeys||(t.AutoscalingV2beta2ApiApiKeys={}));class AutoscalingV2beta2Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[N[e]].apiKey=t}createNamespacedHorizontalPodAutoscaler(e,t,i,a,r,s={}){const o=this.basePath+"/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedHorizontalPodAutoscaler.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedHorizontalPodAutoscaler.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V2beta2HorizontalPodAutoscaler")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V2beta2HorizontalPodAutoscaler");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedHorizontalPodAutoscaler(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedHorizontalPodAutoscaler.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedHorizontalPodAutoscaler(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedHorizontalPodAutoscaler.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedHorizontalPodAutoscaler.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/apis/autoscaling/v2beta2/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listHorizontalPodAutoscalerForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/autoscaling/v2beta2/horizontalpodautoscalers";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V2beta2HorizontalPodAutoscalerList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedHorizontalPodAutoscaler(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedHorizontalPodAutoscaler.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V2beta2HorizontalPodAutoscalerList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedHorizontalPodAutoscaler(e,t,i,a,r,s={}){const o=this.basePath+"/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedHorizontalPodAutoscaler.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedHorizontalPodAutoscaler.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedHorizontalPodAutoscaler.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V2beta2HorizontalPodAutoscaler");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedHorizontalPodAutoscalerStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedHorizontalPodAutoscalerStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedHorizontalPodAutoscalerStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedHorizontalPodAutoscalerStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V2beta2HorizontalPodAutoscaler");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedHorizontalPodAutoscaler(e,t,i,a,r,s={}){const o=this.basePath+"/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedHorizontalPodAutoscaler.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedHorizontalPodAutoscaler.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V2beta2HorizontalPodAutoscaler");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedHorizontalPodAutoscalerStatus(e,t,i,a={}){const r=this.basePath+"/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedHorizontalPodAutoscalerStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedHorizontalPodAutoscalerStatus.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V2beta2HorizontalPodAutoscaler");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedHorizontalPodAutoscaler(e,t,i,a,r,s={}){const o=this.basePath+"/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedHorizontalPodAutoscaler.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedHorizontalPodAutoscaler.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedHorizontalPodAutoscaler.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V2beta2HorizontalPodAutoscaler")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V2beta2HorizontalPodAutoscaler");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedHorizontalPodAutoscalerStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedHorizontalPodAutoscalerStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedHorizontalPodAutoscalerStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedHorizontalPodAutoscalerStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V2beta2HorizontalPodAutoscaler")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V2beta2HorizontalPodAutoscaler");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.AutoscalingV2beta2Api=AutoscalingV2beta2Api;var V;(function(e){e[e["BearerToken"]=0]="BearerToken"})(V=t.BatchApiApiKeys||(t.BatchApiApiKeys={}));class BatchApi{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[V[e]].apiKey=t}getAPIGroup(e={}){const t=this.basePath+"/apis/batch/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIGroup");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.BatchApi=BatchApi;var P;(function(e){e[e["BearerToken"]=0]="BearerToken"})(P=t.BatchV1ApiApiKeys||(t.BatchV1ApiApiKeys={}));class BatchV1Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[P[e]].apiKey=t}createNamespacedJob(e,t,i,a,r,s={}){const o=this.basePath+"/apis/batch/v1/namespaces/{namespace}/jobs".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedJob.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedJob.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1Job")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Job");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedJob(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/batch/v1/namespaces/{namespace}/jobs".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedJob.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedJob(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/batch/v1/namespaces/{namespace}/jobs/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedJob.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedJob.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/apis/batch/v1/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listJobForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/batch/v1/jobs";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1JobList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedJob(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/batch/v1/namespaces/{namespace}/jobs".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedJob.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1JobList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedJob(e,t,i,a,r,s={}){const o=this.basePath+"/apis/batch/v1/namespaces/{namespace}/jobs/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedJob.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedJob.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedJob.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Job");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedJobStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/batch/v1/namespaces/{namespace}/jobs/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedJobStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedJobStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedJobStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Job");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedJob(e,t,i,a,r,s={}){const o=this.basePath+"/apis/batch/v1/namespaces/{namespace}/jobs/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedJob.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedJob.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Job");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedJobStatus(e,t,i,a={}){const r=this.basePath+"/apis/batch/v1/namespaces/{namespace}/jobs/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedJobStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedJobStatus.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Job");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedJob(e,t,i,a,r,s={}){const o=this.basePath+"/apis/batch/v1/namespaces/{namespace}/jobs/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedJob.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedJob.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedJob.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1Job")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Job");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedJobStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/batch/v1/namespaces/{namespace}/jobs/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedJobStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedJobStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedJobStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1Job")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Job");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.BatchV1Api=BatchV1Api;var D;(function(e){e[e["BearerToken"]=0]="BearerToken"})(D=t.BatchV1beta1ApiApiKeys||(t.BatchV1beta1ApiApiKeys={}));class BatchV1beta1Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[D[e]].apiKey=t}createNamespacedCronJob(e,t,i,a,r,s={}){const o=this.basePath+"/apis/batch/v1beta1/namespaces/{namespace}/cronjobs".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedCronJob.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedCronJob.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1beta1CronJob")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1CronJob");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedCronJob(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/batch/v1beta1/namespaces/{namespace}/cronjobs".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedCronJob.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedCronJob(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedCronJob.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedCronJob.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/apis/batch/v1beta1/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listCronJobForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/batch/v1beta1/cronjobs";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1CronJobList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedCronJob(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/batch/v1beta1/namespaces/{namespace}/cronjobs".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedCronJob.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1CronJobList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedCronJob(e,t,i,a,r,s={}){const o=this.basePath+"/apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedCronJob.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedCronJob.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedCronJob.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1CronJob");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedCronJobStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedCronJobStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedCronJobStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedCronJobStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1CronJob");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedCronJob(e,t,i,a,r,s={}){const o=this.basePath+"/apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedCronJob.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedCronJob.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1CronJob");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedCronJobStatus(e,t,i,a={}){const r=this.basePath+"/apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedCronJobStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedCronJobStatus.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1CronJob");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedCronJob(e,t,i,a,r,s={}){const o=this.basePath+"/apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedCronJob.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedCronJob.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedCronJob.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1beta1CronJob")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1CronJob");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedCronJobStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedCronJobStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedCronJobStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedCronJobStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1beta1CronJob")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1CronJob");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.BatchV1beta1Api=BatchV1beta1Api;var I;(function(e){e[e["BearerToken"]=0]="BearerToken"})(I=t.BatchV2alpha1ApiApiKeys||(t.BatchV2alpha1ApiApiKeys={}));class BatchV2alpha1Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[I[e]].apiKey=t}createNamespacedCronJob(e,t,i,a,r,s={}){const o=this.basePath+"/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedCronJob.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedCronJob.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V2alpha1CronJob")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V2alpha1CronJob");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedCronJob(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedCronJob.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedCronJob(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedCronJob.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedCronJob.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/apis/batch/v2alpha1/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listCronJobForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/batch/v2alpha1/cronjobs";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V2alpha1CronJobList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedCronJob(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedCronJob.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V2alpha1CronJobList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedCronJob(e,t,i,a,r,s={}){const o=this.basePath+"/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedCronJob.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedCronJob.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedCronJob.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V2alpha1CronJob");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedCronJobStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedCronJobStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedCronJobStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedCronJobStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V2alpha1CronJob");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedCronJob(e,t,i,a,r,s={}){const o=this.basePath+"/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedCronJob.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedCronJob.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V2alpha1CronJob");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedCronJobStatus(e,t,i,a={}){const r=this.basePath+"/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedCronJobStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedCronJobStatus.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V2alpha1CronJob");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedCronJob(e,t,i,a,r,s={}){const o=this.basePath+"/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedCronJob.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedCronJob.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedCronJob.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V2alpha1CronJob")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V2alpha1CronJob");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedCronJobStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedCronJobStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedCronJobStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedCronJobStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V2alpha1CronJob")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V2alpha1CronJob");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.BatchV2alpha1Api=BatchV2alpha1Api;var _;(function(e){e[e["BearerToken"]=0]="BearerToken"})(_=t.CertificatesApiApiKeys||(t.CertificatesApiApiKeys={}));class CertificatesApi{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[_[e]].apiKey=t}getAPIGroup(e={}){const t=this.basePath+"/apis/certificates.k8s.io/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIGroup");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.CertificatesApi=CertificatesApi;var q;(function(e){e[e["BearerToken"]=0]="BearerToken"})(q=t.CertificatesV1beta1ApiApiKeys||(t.CertificatesV1beta1ApiApiKeys={}));class CertificatesV1beta1Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[q[e]].apiKey=t}createCertificateSigningRequest(e,t,i,a,r={}){const s=this.basePath+"/apis/certificates.k8s.io/v1beta1/certificatesigningrequests";let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter body was null or undefined when calling createCertificateSigningRequest.")}if(t!==undefined){o["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(e,"V1beta1CertificateSigningRequest")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1CertificateSigningRequest");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCertificateSigningRequest(e,t,i,a,r,s,o,u={}){const l=this.basePath+"/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let c={};let d=Object.assign({},this.defaultHeaders);let p={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteCertificateSigningRequest.")}if(t!==undefined){c["pretty"]=ObjectSerializer.serialize(t,"string")}if(a!==undefined){c["dryRun"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){c["gracePeriodSeconds"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){c["orphanDependents"]=ObjectSerializer.serialize(s,"boolean")}if(o!==undefined){c["propagationPolicy"]=ObjectSerializer.serialize(o,"string")}Object.assign(d,u.headers);let f=false;let h={method:"DELETE",qs:c,headers:d,uri:l,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(h);this.authentications.default.applyToRequest(h);if(Object.keys(p).length){if(f){h.formData=p}else{h.form=p}}return new Promise((e,t)=>{n(h,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionCertificateSigningRequest(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/certificates.k8s.io/v1beta1/certificatesigningrequests";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"DELETE",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/apis/certificates.k8s.io/v1beta1/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listCertificateSigningRequest(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/certificates.k8s.io/v1beta1/certificatesigningrequests";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1CertificateSigningRequestList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchCertificateSigningRequest(e,t,i,a,r={}){const s=this.basePath+"/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchCertificateSigningRequest.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling patchCertificateSigningRequest.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"any")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1CertificateSigningRequest");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchCertificateSigningRequestStatus(e,t,i,a,r={}){const s=this.basePath+"/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchCertificateSigningRequestStatus.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling patchCertificateSigningRequestStatus.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"any")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1CertificateSigningRequest");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readCertificateSigningRequest(e,t,i,a,r={}){const s=this.basePath+"/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readCertificateSigningRequest.")}if(t!==undefined){o["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){o["exact"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){o["export"]=ObjectSerializer.serialize(a,"boolean")}Object.assign(u,r.headers);let c=false;let d={method:"GET",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1CertificateSigningRequest");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readCertificateSigningRequestStatus(e,t,i={}){const a=this.basePath+"/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e)));let r={};let s=Object.assign({},this.defaultHeaders);let o={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readCertificateSigningRequestStatus.")}if(t!==undefined){r["pretty"]=ObjectSerializer.serialize(t,"string")}Object.assign(s,i.headers);let u=false;let l={method:"GET",qs:r,headers:s,uri:a,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(l);this.authentications.default.applyToRequest(l);if(Object.keys(o).length){if(u){l.formData=o}else{l.form=o}}return new Promise((e,t)=>{n(l,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1CertificateSigningRequest");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceCertificateSigningRequest(e,t,i,a,r={}){const s=this.basePath+"/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceCertificateSigningRequest.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replaceCertificateSigningRequest.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1beta1CertificateSigningRequest")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1CertificateSigningRequest");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceCertificateSigningRequestApproval(e,t,i,a,r={}){const s=this.basePath+"/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}/approval".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceCertificateSigningRequestApproval.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replaceCertificateSigningRequestApproval.")}if(i!==undefined){o["dryRun"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["pretty"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1beta1CertificateSigningRequest")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1CertificateSigningRequest");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceCertificateSigningRequestStatus(e,t,i,a,r={}){const s=this.basePath+"/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceCertificateSigningRequestStatus.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replaceCertificateSigningRequestStatus.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1beta1CertificateSigningRequest")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1CertificateSigningRequest");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.CertificatesV1beta1Api=CertificatesV1beta1Api;var B;(function(e){e[e["BearerToken"]=0]="BearerToken"})(B=t.CoordinationApiApiKeys||(t.CoordinationApiApiKeys={}));class CoordinationApi{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[B[e]].apiKey=t}getAPIGroup(e={}){const t=this.basePath+"/apis/coordination.k8s.io/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIGroup");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.CoordinationApi=CoordinationApi;var M;(function(e){e[e["BearerToken"]=0]="BearerToken"})(M=t.CoordinationV1beta1ApiApiKeys||(t.CoordinationV1beta1ApiApiKeys={}));class CoordinationV1beta1Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[M[e]].apiKey=t}createNamespacedLease(e,t,i,a,r,s={}){const o=this.basePath+"/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leases".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedLease.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedLease.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1beta1Lease")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1Lease");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedLease(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leases".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedLease.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedLease(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leases/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedLease.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedLease.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/apis/coordination.k8s.io/v1beta1/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listLeaseForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/coordination.k8s.io/v1beta1/leases";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1LeaseList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedLease(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leases".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedLease.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1LeaseList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedLease(e,t,i,a,r,s={}){const o=this.basePath+"/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leases/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedLease.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedLease.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedLease.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1Lease");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedLease(e,t,i,a,r,s={}){const o=this.basePath+"/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leases/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedLease.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedLease.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1Lease");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedLease(e,t,i,a,r,s={}){const o=this.basePath+"/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leases/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedLease.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedLease.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedLease.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1beta1Lease")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1Lease");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.CoordinationV1beta1Api=CoordinationV1beta1Api;var U;(function(e){e[e["BearerToken"]=0]="BearerToken"})(U=t.CoreApiApiKeys||(t.CoreApiApiKeys={}));class CoreApi{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[U[e]].apiKey=t}getAPIVersions(e={}){const t=this.basePath+"/api/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIVersions");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.CoreApi=CoreApi;var L;(function(e){e[e["BearerToken"]=0]="BearerToken"})(L=t.CoreV1ApiApiKeys||(t.CoreV1ApiApiKeys={}));class CoreV1Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[L[e]].apiKey=t}connectDeleteNamespacedPodProxy(e,t,i,a={}){const r=this.basePath+"/api/v1/namespaces/{namespace}/pods/{name}/proxy".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectDeleteNamespacedPodProxy.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling connectDeleteNamespacedPodProxy.")}if(i!==undefined){s["path"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"DELETE",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectDeleteNamespacedPodProxyWithPath(e,t,i,a,r={}){const s=this.basePath+"/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t))).replace("{"+"path"+"}",encodeURIComponent(String(i)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectDeleteNamespacedPodProxyWithPath.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling connectDeleteNamespacedPodProxyWithPath.")}if(i===null||i===undefined){throw new Error("Required parameter path was null or undefined when calling connectDeleteNamespacedPodProxyWithPath.")}if(a!==undefined){o["path"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"DELETE",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectDeleteNamespacedServiceProxy(e,t,i,a={}){const r=this.basePath+"/api/v1/namespaces/{namespace}/services/{name}/proxy".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectDeleteNamespacedServiceProxy.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling connectDeleteNamespacedServiceProxy.")}if(i!==undefined){s["path"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"DELETE",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectDeleteNamespacedServiceProxyWithPath(e,t,i,a,r={}){const s=this.basePath+"/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t))).replace("{"+"path"+"}",encodeURIComponent(String(i)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectDeleteNamespacedServiceProxyWithPath.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling connectDeleteNamespacedServiceProxyWithPath.")}if(i===null||i===undefined){throw new Error("Required parameter path was null or undefined when calling connectDeleteNamespacedServiceProxyWithPath.")}if(a!==undefined){o["path"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"DELETE",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectDeleteNodeProxy(e,t,i={}){const a=this.basePath+"/api/v1/nodes/{name}/proxy".replace("{"+"name"+"}",encodeURIComponent(String(e)));let r={};let s=Object.assign({},this.defaultHeaders);let o={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectDeleteNodeProxy.")}if(t!==undefined){r["path"]=ObjectSerializer.serialize(t,"string")}Object.assign(s,i.headers);let u=false;let l={method:"DELETE",qs:r,headers:s,uri:a,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(l);this.authentications.default.applyToRequest(l);if(Object.keys(o).length){if(u){l.formData=o}else{l.form=o}}return new Promise((e,t)=>{n(l,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectDeleteNodeProxyWithPath(e,t,i,a={}){const r=this.basePath+"/api/v1/nodes/{name}/proxy/{path}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"path"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectDeleteNodeProxyWithPath.")}if(t===null||t===undefined){throw new Error("Required parameter path was null or undefined when calling connectDeleteNodeProxyWithPath.")}if(i!==undefined){s["path"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"DELETE",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectGetNamespacedPodAttach(e,t,i,a,r,s,o,u={}){const l=this.basePath+"/api/v1/namespaces/{namespace}/pods/{name}/attach".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let c={};let d=Object.assign({},this.defaultHeaders);let p={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectGetNamespacedPodAttach.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling connectGetNamespacedPodAttach.")}if(i!==undefined){c["container"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){c["stderr"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){c["stdin"]=ObjectSerializer.serialize(r,"boolean")}if(s!==undefined){c["stdout"]=ObjectSerializer.serialize(s,"boolean")}if(o!==undefined){c["tty"]=ObjectSerializer.serialize(o,"boolean")}Object.assign(d,u.headers);let f=false;let h={method:"GET",qs:c,headers:d,uri:l,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(h);this.authentications.default.applyToRequest(h);if(Object.keys(p).length){if(f){h.formData=p}else{h.form=p}}return new Promise((e,t)=>{n(h,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectGetNamespacedPodExec(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/api/v1/namespaces/{namespace}/pods/{name}/exec".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectGetNamespacedPodExec.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling connectGetNamespacedPodExec.")}if(i!==undefined){d["command"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){d["container"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){d["stderr"]=ObjectSerializer.serialize(r,"boolean")}if(s!==undefined){d["stdin"]=ObjectSerializer.serialize(s,"boolean")}if(o!==undefined){d["stdout"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["tty"]=ObjectSerializer.serialize(u,"boolean")}Object.assign(p,l.headers);let h=false;let m={method:"GET",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectGetNamespacedPodPortforward(e,t,i,a={}){const r=this.basePath+"/api/v1/namespaces/{namespace}/pods/{name}/portforward".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectGetNamespacedPodPortforward.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling connectGetNamespacedPodPortforward.")}if(i!==undefined){s["ports"]=ObjectSerializer.serialize(i,"number")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectGetNamespacedPodProxy(e,t,i,a={}){const r=this.basePath+"/api/v1/namespaces/{namespace}/pods/{name}/proxy".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectGetNamespacedPodProxy.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling connectGetNamespacedPodProxy.")}if(i!==undefined){s["path"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectGetNamespacedPodProxyWithPath(e,t,i,a,r={}){const s=this.basePath+"/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t))).replace("{"+"path"+"}",encodeURIComponent(String(i)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectGetNamespacedPodProxyWithPath.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling connectGetNamespacedPodProxyWithPath.")}if(i===null||i===undefined){throw new Error("Required parameter path was null or undefined when calling connectGetNamespacedPodProxyWithPath.")}if(a!==undefined){o["path"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"GET",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectGetNamespacedServiceProxy(e,t,i,a={}){const r=this.basePath+"/api/v1/namespaces/{namespace}/services/{name}/proxy".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectGetNamespacedServiceProxy.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling connectGetNamespacedServiceProxy.")}if(i!==undefined){s["path"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectGetNamespacedServiceProxyWithPath(e,t,i,a,r={}){const s=this.basePath+"/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t))).replace("{"+"path"+"}",encodeURIComponent(String(i)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectGetNamespacedServiceProxyWithPath.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling connectGetNamespacedServiceProxyWithPath.")}if(i===null||i===undefined){throw new Error("Required parameter path was null or undefined when calling connectGetNamespacedServiceProxyWithPath.")}if(a!==undefined){o["path"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"GET",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectGetNodeProxy(e,t,i={}){const a=this.basePath+"/api/v1/nodes/{name}/proxy".replace("{"+"name"+"}",encodeURIComponent(String(e)));let r={};let s=Object.assign({},this.defaultHeaders);let o={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectGetNodeProxy.")}if(t!==undefined){r["path"]=ObjectSerializer.serialize(t,"string")}Object.assign(s,i.headers);let u=false;let l={method:"GET",qs:r,headers:s,uri:a,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(l);this.authentications.default.applyToRequest(l);if(Object.keys(o).length){if(u){l.formData=o}else{l.form=o}}return new Promise((e,t)=>{n(l,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectGetNodeProxyWithPath(e,t,i,a={}){const r=this.basePath+"/api/v1/nodes/{name}/proxy/{path}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"path"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectGetNodeProxyWithPath.")}if(t===null||t===undefined){throw new Error("Required parameter path was null or undefined when calling connectGetNodeProxyWithPath.")}if(i!==undefined){s["path"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectHeadNamespacedPodProxy(e,t,i,a={}){const r=this.basePath+"/api/v1/namespaces/{namespace}/pods/{name}/proxy".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectHeadNamespacedPodProxy.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling connectHeadNamespacedPodProxy.")}if(i!==undefined){s["path"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"HEAD",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectHeadNamespacedPodProxyWithPath(e,t,i,a,r={}){const s=this.basePath+"/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t))).replace("{"+"path"+"}",encodeURIComponent(String(i)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectHeadNamespacedPodProxyWithPath.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling connectHeadNamespacedPodProxyWithPath.")}if(i===null||i===undefined){throw new Error("Required parameter path was null or undefined when calling connectHeadNamespacedPodProxyWithPath.")}if(a!==undefined){o["path"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"HEAD",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectHeadNamespacedServiceProxy(e,t,i,a={}){const r=this.basePath+"/api/v1/namespaces/{namespace}/services/{name}/proxy".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectHeadNamespacedServiceProxy.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling connectHeadNamespacedServiceProxy.")}if(i!==undefined){s["path"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"HEAD",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectHeadNamespacedServiceProxyWithPath(e,t,i,a,r={}){const s=this.basePath+"/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t))).replace("{"+"path"+"}",encodeURIComponent(String(i)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectHeadNamespacedServiceProxyWithPath.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling connectHeadNamespacedServiceProxyWithPath.")}if(i===null||i===undefined){throw new Error("Required parameter path was null or undefined when calling connectHeadNamespacedServiceProxyWithPath.")}if(a!==undefined){o["path"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"HEAD",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectHeadNodeProxy(e,t,i={}){const a=this.basePath+"/api/v1/nodes/{name}/proxy".replace("{"+"name"+"}",encodeURIComponent(String(e)));let r={};let s=Object.assign({},this.defaultHeaders);let o={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectHeadNodeProxy.")}if(t!==undefined){r["path"]=ObjectSerializer.serialize(t,"string")}Object.assign(s,i.headers);let u=false;let l={method:"HEAD",qs:r,headers:s,uri:a,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(l);this.authentications.default.applyToRequest(l);if(Object.keys(o).length){if(u){l.formData=o}else{l.form=o}}return new Promise((e,t)=>{n(l,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectHeadNodeProxyWithPath(e,t,i,a={}){const r=this.basePath+"/api/v1/nodes/{name}/proxy/{path}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"path"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectHeadNodeProxyWithPath.")}if(t===null||t===undefined){throw new Error("Required parameter path was null or undefined when calling connectHeadNodeProxyWithPath.")}if(i!==undefined){s["path"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"HEAD",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectOptionsNamespacedPodProxy(e,t,i,a={}){const r=this.basePath+"/api/v1/namespaces/{namespace}/pods/{name}/proxy".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectOptionsNamespacedPodProxy.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling connectOptionsNamespacedPodProxy.")}if(i!==undefined){s["path"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"OPTIONS",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectOptionsNamespacedPodProxyWithPath(e,t,i,a,r={}){const s=this.basePath+"/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t))).replace("{"+"path"+"}",encodeURIComponent(String(i)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectOptionsNamespacedPodProxyWithPath.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling connectOptionsNamespacedPodProxyWithPath.")}if(i===null||i===undefined){throw new Error("Required parameter path was null or undefined when calling connectOptionsNamespacedPodProxyWithPath.")}if(a!==undefined){o["path"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"OPTIONS",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectOptionsNamespacedServiceProxy(e,t,i,a={}){const r=this.basePath+"/api/v1/namespaces/{namespace}/services/{name}/proxy".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectOptionsNamespacedServiceProxy.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling connectOptionsNamespacedServiceProxy.")}if(i!==undefined){s["path"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"OPTIONS",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectOptionsNamespacedServiceProxyWithPath(e,t,i,a,r={}){const s=this.basePath+"/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t))).replace("{"+"path"+"}",encodeURIComponent(String(i)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectOptionsNamespacedServiceProxyWithPath.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling connectOptionsNamespacedServiceProxyWithPath.")}if(i===null||i===undefined){throw new Error("Required parameter path was null or undefined when calling connectOptionsNamespacedServiceProxyWithPath.")}if(a!==undefined){o["path"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"OPTIONS",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectOptionsNodeProxy(e,t,i={}){const a=this.basePath+"/api/v1/nodes/{name}/proxy".replace("{"+"name"+"}",encodeURIComponent(String(e)));let r={};let s=Object.assign({},this.defaultHeaders);let o={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectOptionsNodeProxy.")}if(t!==undefined){r["path"]=ObjectSerializer.serialize(t,"string")}Object.assign(s,i.headers);let u=false;let l={method:"OPTIONS",qs:r,headers:s,uri:a,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(l);this.authentications.default.applyToRequest(l);if(Object.keys(o).length){if(u){l.formData=o}else{l.form=o}}return new Promise((e,t)=>{n(l,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectOptionsNodeProxyWithPath(e,t,i,a={}){const r=this.basePath+"/api/v1/nodes/{name}/proxy/{path}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"path"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectOptionsNodeProxyWithPath.")}if(t===null||t===undefined){throw new Error("Required parameter path was null or undefined when calling connectOptionsNodeProxyWithPath.")}if(i!==undefined){s["path"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"OPTIONS",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectPatchNamespacedPodProxy(e,t,i,a={}){const r=this.basePath+"/api/v1/namespaces/{namespace}/pods/{name}/proxy".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectPatchNamespacedPodProxy.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling connectPatchNamespacedPodProxy.")}if(i!==undefined){s["path"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"PATCH",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectPatchNamespacedPodProxyWithPath(e,t,i,a,r={}){const s=this.basePath+"/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t))).replace("{"+"path"+"}",encodeURIComponent(String(i)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectPatchNamespacedPodProxyWithPath.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling connectPatchNamespacedPodProxyWithPath.")}if(i===null||i===undefined){throw new Error("Required parameter path was null or undefined when calling connectPatchNamespacedPodProxyWithPath.")}if(a!==undefined){o["path"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectPatchNamespacedServiceProxy(e,t,i,a={}){const r=this.basePath+"/api/v1/namespaces/{namespace}/services/{name}/proxy".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectPatchNamespacedServiceProxy.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling connectPatchNamespacedServiceProxy.")}if(i!==undefined){s["path"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"PATCH",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectPatchNamespacedServiceProxyWithPath(e,t,i,a,r={}){const s=this.basePath+"/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t))).replace("{"+"path"+"}",encodeURIComponent(String(i)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectPatchNamespacedServiceProxyWithPath.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling connectPatchNamespacedServiceProxyWithPath.")}if(i===null||i===undefined){throw new Error("Required parameter path was null or undefined when calling connectPatchNamespacedServiceProxyWithPath.")}if(a!==undefined){o["path"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectPatchNodeProxy(e,t,i={}){const a=this.basePath+"/api/v1/nodes/{name}/proxy".replace("{"+"name"+"}",encodeURIComponent(String(e)));let r={};let s=Object.assign({},this.defaultHeaders);let o={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectPatchNodeProxy.")}if(t!==undefined){r["path"]=ObjectSerializer.serialize(t,"string")}Object.assign(s,i.headers);let u=false;let l={method:"PATCH",qs:r,headers:s,uri:a,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(l);this.authentications.default.applyToRequest(l);if(Object.keys(o).length){if(u){l.formData=o}else{l.form=o}}return new Promise((e,t)=>{n(l,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectPatchNodeProxyWithPath(e,t,i,a={}){const r=this.basePath+"/api/v1/nodes/{name}/proxy/{path}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"path"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectPatchNodeProxyWithPath.")}if(t===null||t===undefined){throw new Error("Required parameter path was null or undefined when calling connectPatchNodeProxyWithPath.")}if(i!==undefined){s["path"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"PATCH",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectPostNamespacedPodAttach(e,t,i,a,r,s,o,u={}){const l=this.basePath+"/api/v1/namespaces/{namespace}/pods/{name}/attach".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let c={};let d=Object.assign({},this.defaultHeaders);let p={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectPostNamespacedPodAttach.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling connectPostNamespacedPodAttach.")}if(i!==undefined){c["container"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){c["stderr"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){c["stdin"]=ObjectSerializer.serialize(r,"boolean")}if(s!==undefined){c["stdout"]=ObjectSerializer.serialize(s,"boolean")}if(o!==undefined){c["tty"]=ObjectSerializer.serialize(o,"boolean")}Object.assign(d,u.headers);let f=false;let h={method:"POST",qs:c,headers:d,uri:l,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(h);this.authentications.default.applyToRequest(h);if(Object.keys(p).length){if(f){h.formData=p}else{h.form=p}}return new Promise((e,t)=>{n(h,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectPostNamespacedPodExec(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/api/v1/namespaces/{namespace}/pods/{name}/exec".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectPostNamespacedPodExec.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling connectPostNamespacedPodExec.")}if(i!==undefined){d["command"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){d["container"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){d["stderr"]=ObjectSerializer.serialize(r,"boolean")}if(s!==undefined){d["stdin"]=ObjectSerializer.serialize(s,"boolean")}if(o!==undefined){d["stdout"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["tty"]=ObjectSerializer.serialize(u,"boolean")}Object.assign(p,l.headers);let h=false;let m={method:"POST",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectPostNamespacedPodPortforward(e,t,i,a={}){const r=this.basePath+"/api/v1/namespaces/{namespace}/pods/{name}/portforward".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectPostNamespacedPodPortforward.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling connectPostNamespacedPodPortforward.")}if(i!==undefined){s["ports"]=ObjectSerializer.serialize(i,"number")}Object.assign(o,a.headers);let l=false;let c={method:"POST",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectPostNamespacedPodProxy(e,t,i,a={}){const r=this.basePath+"/api/v1/namespaces/{namespace}/pods/{name}/proxy".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectPostNamespacedPodProxy.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling connectPostNamespacedPodProxy.")}if(i!==undefined){s["path"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"POST",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectPostNamespacedPodProxyWithPath(e,t,i,a,r={}){const s=this.basePath+"/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t))).replace("{"+"path"+"}",encodeURIComponent(String(i)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectPostNamespacedPodProxyWithPath.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling connectPostNamespacedPodProxyWithPath.")}if(i===null||i===undefined){throw new Error("Required parameter path was null or undefined when calling connectPostNamespacedPodProxyWithPath.")}if(a!==undefined){o["path"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectPostNamespacedServiceProxy(e,t,i,a={}){const r=this.basePath+"/api/v1/namespaces/{namespace}/services/{name}/proxy".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectPostNamespacedServiceProxy.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling connectPostNamespacedServiceProxy.")}if(i!==undefined){s["path"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"POST",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectPostNamespacedServiceProxyWithPath(e,t,i,a,r={}){const s=this.basePath+"/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t))).replace("{"+"path"+"}",encodeURIComponent(String(i)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectPostNamespacedServiceProxyWithPath.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling connectPostNamespacedServiceProxyWithPath.")}if(i===null||i===undefined){throw new Error("Required parameter path was null or undefined when calling connectPostNamespacedServiceProxyWithPath.")}if(a!==undefined){o["path"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectPostNodeProxy(e,t,i={}){const a=this.basePath+"/api/v1/nodes/{name}/proxy".replace("{"+"name"+"}",encodeURIComponent(String(e)));let r={};let s=Object.assign({},this.defaultHeaders);let o={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectPostNodeProxy.")}if(t!==undefined){r["path"]=ObjectSerializer.serialize(t,"string")}Object.assign(s,i.headers);let u=false;let l={method:"POST",qs:r,headers:s,uri:a,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(l);this.authentications.default.applyToRequest(l);if(Object.keys(o).length){if(u){l.formData=o}else{l.form=o}}return new Promise((e,t)=>{n(l,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectPostNodeProxyWithPath(e,t,i,a={}){const r=this.basePath+"/api/v1/nodes/{name}/proxy/{path}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"path"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectPostNodeProxyWithPath.")}if(t===null||t===undefined){throw new Error("Required parameter path was null or undefined when calling connectPostNodeProxyWithPath.")}if(i!==undefined){s["path"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"POST",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectPutNamespacedPodProxy(e,t,i,a={}){const r=this.basePath+"/api/v1/namespaces/{namespace}/pods/{name}/proxy".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectPutNamespacedPodProxy.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling connectPutNamespacedPodProxy.")}if(i!==undefined){s["path"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"PUT",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectPutNamespacedPodProxyWithPath(e,t,i,a,r={}){const s=this.basePath+"/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t))).replace("{"+"path"+"}",encodeURIComponent(String(i)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectPutNamespacedPodProxyWithPath.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling connectPutNamespacedPodProxyWithPath.")}if(i===null||i===undefined){throw new Error("Required parameter path was null or undefined when calling connectPutNamespacedPodProxyWithPath.")}if(a!==undefined){o["path"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectPutNamespacedServiceProxy(e,t,i,a={}){const r=this.basePath+"/api/v1/namespaces/{namespace}/services/{name}/proxy".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectPutNamespacedServiceProxy.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling connectPutNamespacedServiceProxy.")}if(i!==undefined){s["path"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"PUT",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectPutNamespacedServiceProxyWithPath(e,t,i,a,r={}){const s=this.basePath+"/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t))).replace("{"+"path"+"}",encodeURIComponent(String(i)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectPutNamespacedServiceProxyWithPath.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling connectPutNamespacedServiceProxyWithPath.")}if(i===null||i===undefined){throw new Error("Required parameter path was null or undefined when calling connectPutNamespacedServiceProxyWithPath.")}if(a!==undefined){o["path"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectPutNodeProxy(e,t,i={}){const a=this.basePath+"/api/v1/nodes/{name}/proxy".replace("{"+"name"+"}",encodeURIComponent(String(e)));let r={};let s=Object.assign({},this.defaultHeaders);let o={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectPutNodeProxy.")}if(t!==undefined){r["path"]=ObjectSerializer.serialize(t,"string")}Object.assign(s,i.headers);let u=false;let l={method:"PUT",qs:r,headers:s,uri:a,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(l);this.authentications.default.applyToRequest(l);if(Object.keys(o).length){if(u){l.formData=o}else{l.form=o}}return new Promise((e,t)=>{n(l,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}connectPutNodeProxyWithPath(e,t,i,a={}){const r=this.basePath+"/api/v1/nodes/{name}/proxy/{path}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"path"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling connectPutNodeProxyWithPath.")}if(t===null||t===undefined){throw new Error("Required parameter path was null or undefined when calling connectPutNodeProxyWithPath.")}if(i!==undefined){s["path"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"PUT",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespace(e,t,i,a,r={}){const s=this.basePath+"/api/v1/namespaces";let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespace.")}if(t!==undefined){o["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(e,"V1Namespace")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Namespace");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedBinding(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/bindings".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedBinding.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedBinding.")}if(i!==undefined){u["dryRun"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["pretty"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1Binding")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Binding");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedConfigMap(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/configmaps".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedConfigMap.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedConfigMap.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1ConfigMap")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ConfigMap");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedEndpoints(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/endpoints".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedEndpoints.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedEndpoints.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1Endpoints")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Endpoints");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedEvent(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/events".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedEvent.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedEvent.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1Event")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Event");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedLimitRange(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/limitranges".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedLimitRange.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedLimitRange.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1LimitRange")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1LimitRange");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedPersistentVolumeClaim(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/persistentvolumeclaims".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedPersistentVolumeClaim.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedPersistentVolumeClaim.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1PersistentVolumeClaim")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1PersistentVolumeClaim");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedPod(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/pods".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedPod.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedPod.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1Pod")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Pod");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedPodBinding(e,t,i,a,r,s,o={}){const u=this.basePath+"/api/v1/namespaces/{namespace}/pods/{name}/binding".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let l={};let c=Object.assign({},this.defaultHeaders);let d={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling createNamespacedPodBinding.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedPodBinding.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedPodBinding.")}if(a!==undefined){l["dryRun"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){l["includeUninitialized"]=ObjectSerializer.serialize(r,"boolean")}if(s!==undefined){l["pretty"]=ObjectSerializer.serialize(s,"string")}Object.assign(c,o.headers);let p=false;let f={method:"POST",qs:l,headers:c,uri:u,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1Binding")};this.authentications.BearerToken.applyToRequest(f);this.authentications.default.applyToRequest(f);if(Object.keys(d).length){if(p){f.formData=d}else{f.form=d}}return new Promise((e,t)=>{n(f,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Binding");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedPodEviction(e,t,i,a,r,s,o={}){const u=this.basePath+"/api/v1/namespaces/{namespace}/pods/{name}/eviction".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let l={};let c=Object.assign({},this.defaultHeaders);let d={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling createNamespacedPodEviction.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedPodEviction.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedPodEviction.")}if(a!==undefined){l["dryRun"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){l["includeUninitialized"]=ObjectSerializer.serialize(r,"boolean")}if(s!==undefined){l["pretty"]=ObjectSerializer.serialize(s,"string")}Object.assign(c,o.headers);let p=false;let f={method:"POST",qs:l,headers:c,uri:u,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1beta1Eviction")};this.authentications.BearerToken.applyToRequest(f);this.authentications.default.applyToRequest(f);if(Object.keys(d).length){if(p){f.formData=d}else{f.form=d}}return new Promise((e,t)=>{n(f,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1Eviction");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedPodTemplate(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/podtemplates".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedPodTemplate.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedPodTemplate.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1PodTemplate")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1PodTemplate");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedReplicationController(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/replicationcontrollers".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedReplicationController.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedReplicationController.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1ReplicationController")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ReplicationController");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedResourceQuota(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/resourcequotas".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedResourceQuota.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedResourceQuota.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1ResourceQuota")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ResourceQuota");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedSecret(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/secrets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedSecret.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedSecret.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1Secret")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Secret");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedService(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/services".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedService.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedService.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1Service")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Service");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedServiceAccount(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/serviceaccounts".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedServiceAccount.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedServiceAccount.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1ServiceAccount")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ServiceAccount");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNode(e,t,i,a,r={}){const s=this.basePath+"/api/v1/nodes";let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter body was null or undefined when calling createNode.")}if(t!==undefined){o["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(e,"V1Node")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Node");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createPersistentVolume(e,t,i,a,r={}){const s=this.basePath+"/api/v1/persistentvolumes";let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter body was null or undefined when calling createPersistentVolume.")}if(t!==undefined){o["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(e,"V1PersistentVolume")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1PersistentVolume");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedConfigMap(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/api/v1/namespaces/{namespace}/configmaps".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedConfigMap.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedEndpoints(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/api/v1/namespaces/{namespace}/endpoints".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedEndpoints.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedEvent(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/api/v1/namespaces/{namespace}/events".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedEvent.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedLimitRange(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/api/v1/namespaces/{namespace}/limitranges".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedLimitRange.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedPersistentVolumeClaim(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/api/v1/namespaces/{namespace}/persistentvolumeclaims".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedPersistentVolumeClaim.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedPod(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/api/v1/namespaces/{namespace}/pods".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedPod.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedPodTemplate(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/api/v1/namespaces/{namespace}/podtemplates".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedPodTemplate.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedReplicationController(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/api/v1/namespaces/{namespace}/replicationcontrollers".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedReplicationController.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedResourceQuota(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/api/v1/namespaces/{namespace}/resourcequotas".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedResourceQuota.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedSecret(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/api/v1/namespaces/{namespace}/secrets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedSecret.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedServiceAccount(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/api/v1/namespaces/{namespace}/serviceaccounts".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedServiceAccount.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNode(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/api/v1/nodes";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"DELETE",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionPersistentVolume(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/api/v1/persistentvolumes";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"DELETE",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespace(e,t,i,a,r,s,o,u={}){const l=this.basePath+"/api/v1/namespaces/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let c={};let d=Object.assign({},this.defaultHeaders);let p={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespace.")}if(t!==undefined){c["pretty"]=ObjectSerializer.serialize(t,"string")}if(a!==undefined){c["dryRun"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){c["gracePeriodSeconds"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){c["orphanDependents"]=ObjectSerializer.serialize(s,"boolean")}if(o!==undefined){c["propagationPolicy"]=ObjectSerializer.serialize(o,"string")}Object.assign(d,u.headers);let f=false;let h={method:"DELETE",qs:c,headers:d,uri:l,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(h);this.authentications.default.applyToRequest(h);if(Object.keys(p).length){if(f){h.formData=p}else{h.form=p}}return new Promise((e,t)=>{n(h,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedConfigMap(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/api/v1/namespaces/{namespace}/configmaps/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedConfigMap.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedConfigMap.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedEndpoints(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/api/v1/namespaces/{namespace}/endpoints/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedEndpoints.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedEndpoints.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedEvent(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/api/v1/namespaces/{namespace}/events/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedEvent.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedEvent.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedLimitRange(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/api/v1/namespaces/{namespace}/limitranges/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedLimitRange.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedLimitRange.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedPersistentVolumeClaim(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedPersistentVolumeClaim.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedPersistentVolumeClaim.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedPod(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/api/v1/namespaces/{namespace}/pods/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedPod.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedPod.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedPodTemplate(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/api/v1/namespaces/{namespace}/podtemplates/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedPodTemplate.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedPodTemplate.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedReplicationController(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/api/v1/namespaces/{namespace}/replicationcontrollers/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedReplicationController.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedReplicationController.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedResourceQuota(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/api/v1/namespaces/{namespace}/resourcequotas/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedResourceQuota.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedResourceQuota.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedSecret(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/api/v1/namespaces/{namespace}/secrets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedSecret.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedSecret.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedService(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/api/v1/namespaces/{namespace}/services/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedService.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedService.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedServiceAccount(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/api/v1/namespaces/{namespace}/serviceaccounts/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedServiceAccount.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedServiceAccount.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNode(e,t,i,a,r,s,o,u={}){const l=this.basePath+"/api/v1/nodes/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let c={};let d=Object.assign({},this.defaultHeaders);let p={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNode.")}if(t!==undefined){c["pretty"]=ObjectSerializer.serialize(t,"string")}if(a!==undefined){c["dryRun"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){c["gracePeriodSeconds"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){c["orphanDependents"]=ObjectSerializer.serialize(s,"boolean")}if(o!==undefined){c["propagationPolicy"]=ObjectSerializer.serialize(o,"string")}Object.assign(d,u.headers);let f=false;let h={method:"DELETE",qs:c,headers:d,uri:l,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(h);this.authentications.default.applyToRequest(h);if(Object.keys(p).length){if(f){h.formData=p}else{h.form=p}}return new Promise((e,t)=>{n(h,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deletePersistentVolume(e,t,i,a,r,s,o,u={}){const l=this.basePath+"/api/v1/persistentvolumes/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let c={};let d=Object.assign({},this.defaultHeaders);let p={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deletePersistentVolume.")}if(t!==undefined){c["pretty"]=ObjectSerializer.serialize(t,"string")}if(a!==undefined){c["dryRun"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){c["gracePeriodSeconds"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){c["orphanDependents"]=ObjectSerializer.serialize(s,"boolean")}if(o!==undefined){c["propagationPolicy"]=ObjectSerializer.serialize(o,"string")}Object.assign(d,u.headers);let f=false;let h={method:"DELETE",qs:c,headers:d,uri:l,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(h);this.authentications.default.applyToRequest(h);if(Object.keys(p).length){if(f){h.formData=p}else{h.form=p}}return new Promise((e,t)=>{n(h,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/api/v1/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listComponentStatus(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/api/v1/componentstatuses";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ComponentStatusList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listConfigMapForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/api/v1/configmaps";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ConfigMapList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listEndpointsForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/api/v1/endpoints";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1EndpointsList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listEventForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/api/v1/events";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1EventList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listLimitRangeForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/api/v1/limitranges";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1LimitRangeList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespace(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/api/v1/namespaces";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1NamespaceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedConfigMap(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/api/v1/namespaces/{namespace}/configmaps".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedConfigMap.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ConfigMapList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedEndpoints(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/api/v1/namespaces/{namespace}/endpoints".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedEndpoints.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1EndpointsList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedEvent(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/api/v1/namespaces/{namespace}/events".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedEvent.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1EventList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedLimitRange(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/api/v1/namespaces/{namespace}/limitranges".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedLimitRange.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1LimitRangeList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedPersistentVolumeClaim(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/api/v1/namespaces/{namespace}/persistentvolumeclaims".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedPersistentVolumeClaim.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1PersistentVolumeClaimList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedPod(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/api/v1/namespaces/{namespace}/pods".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedPod.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1PodList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedPodTemplate(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/api/v1/namespaces/{namespace}/podtemplates".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedPodTemplate.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1PodTemplateList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedReplicationController(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/api/v1/namespaces/{namespace}/replicationcontrollers".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedReplicationController.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ReplicationControllerList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedResourceQuota(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/api/v1/namespaces/{namespace}/resourcequotas".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedResourceQuota.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ResourceQuotaList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedSecret(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/api/v1/namespaces/{namespace}/secrets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedSecret.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1SecretList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedService(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/api/v1/namespaces/{namespace}/services".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedService.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ServiceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedServiceAccount(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/api/v1/namespaces/{namespace}/serviceaccounts".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedServiceAccount.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ServiceAccountList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNode(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/api/v1/nodes";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1NodeList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listPersistentVolume(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/api/v1/persistentvolumes";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1PersistentVolumeList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listPersistentVolumeClaimForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/api/v1/persistentvolumeclaims";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1PersistentVolumeClaimList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listPodForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/api/v1/pods";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1PodList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listPodTemplateForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/api/v1/podtemplates";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1PodTemplateList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listReplicationControllerForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/api/v1/replicationcontrollers";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ReplicationControllerList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listResourceQuotaForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/api/v1/resourcequotas";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ResourceQuotaList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listSecretForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/api/v1/secrets";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1SecretList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listServiceAccountForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/api/v1/serviceaccounts";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ServiceAccountList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listServiceForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/api/v1/services";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ServiceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespace(e,t,i,a,r={}){const s=this.basePath+"/api/v1/namespaces/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespace.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespace.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"any")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Namespace");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespaceStatus(e,t,i,a,r={}){const s=this.basePath+"/api/v1/namespaces/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespaceStatus.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespaceStatus.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"any")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Namespace");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedConfigMap(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/configmaps/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedConfigMap.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedConfigMap.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedConfigMap.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ConfigMap");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedEndpoints(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/endpoints/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedEndpoints.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedEndpoints.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedEndpoints.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Endpoints");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedEvent(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/events/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedEvent.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedEvent.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedEvent.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Event");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedLimitRange(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/limitranges/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedLimitRange.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedLimitRange.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedLimitRange.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1LimitRange");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedPersistentVolumeClaim(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedPersistentVolumeClaim.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedPersistentVolumeClaim.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedPersistentVolumeClaim.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1PersistentVolumeClaim");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedPersistentVolumeClaimStatus(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedPersistentVolumeClaimStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedPersistentVolumeClaimStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedPersistentVolumeClaimStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1PersistentVolumeClaim");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedPod(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/pods/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedPod.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedPod.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedPod.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Pod");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedPodStatus(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/pods/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedPodStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedPodStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedPodStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Pod");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedPodTemplate(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/podtemplates/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedPodTemplate.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedPodTemplate.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedPodTemplate.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1PodTemplate");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedReplicationController(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/replicationcontrollers/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedReplicationController.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedReplicationController.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedReplicationController.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ReplicationController");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedReplicationControllerScale(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedReplicationControllerScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedReplicationControllerScale.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedReplicationControllerScale.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedReplicationControllerStatus(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedReplicationControllerStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedReplicationControllerStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedReplicationControllerStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ReplicationController");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedResourceQuota(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/resourcequotas/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedResourceQuota.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedResourceQuota.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedResourceQuota.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ResourceQuota");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedResourceQuotaStatus(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/resourcequotas/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedResourceQuotaStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedResourceQuotaStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedResourceQuotaStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ResourceQuota");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedSecret(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/secrets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedSecret.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedSecret.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedSecret.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Secret");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedService(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/services/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedService.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedService.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedService.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Service");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedServiceAccount(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/serviceaccounts/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedServiceAccount.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedServiceAccount.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedServiceAccount.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ServiceAccount");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedServiceStatus(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/services/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedServiceStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedServiceStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedServiceStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Service");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNode(e,t,i,a,r={}){const s=this.basePath+"/api/v1/nodes/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNode.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling patchNode.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"any")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Node");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNodeStatus(e,t,i,a,r={}){const s=this.basePath+"/api/v1/nodes/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNodeStatus.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling patchNodeStatus.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"any")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Node");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchPersistentVolume(e,t,i,a,r={}){const s=this.basePath+"/api/v1/persistentvolumes/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchPersistentVolume.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling patchPersistentVolume.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"any")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1PersistentVolume");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchPersistentVolumeStatus(e,t,i,a,r={}){const s=this.basePath+"/api/v1/persistentvolumes/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchPersistentVolumeStatus.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling patchPersistentVolumeStatus.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"any")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1PersistentVolume");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readComponentStatus(e,t,i={}){const a=this.basePath+"/api/v1/componentstatuses/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let r={};let s=Object.assign({},this.defaultHeaders);let o={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readComponentStatus.")}if(t!==undefined){r["pretty"]=ObjectSerializer.serialize(t,"string")}Object.assign(s,i.headers);let u=false;let l={method:"GET",qs:r,headers:s,uri:a,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(l);this.authentications.default.applyToRequest(l);if(Object.keys(o).length){if(u){l.formData=o}else{l.form=o}}return new Promise((e,t)=>{n(l,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ComponentStatus");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespace(e,t,i,a,r={}){const s=this.basePath+"/api/v1/namespaces/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespace.")}if(t!==undefined){o["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){o["exact"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){o["export"]=ObjectSerializer.serialize(a,"boolean")}Object.assign(u,r.headers);let c=false;let d={method:"GET",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Namespace");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespaceStatus(e,t,i={}){const a=this.basePath+"/api/v1/namespaces/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e)));let r={};let s=Object.assign({},this.defaultHeaders);let o={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespaceStatus.")}if(t!==undefined){r["pretty"]=ObjectSerializer.serialize(t,"string")}Object.assign(s,i.headers);let u=false;let l={method:"GET",qs:r,headers:s,uri:a,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(l);this.authentications.default.applyToRequest(l);if(Object.keys(o).length){if(u){l.formData=o}else{l.form=o}}return new Promise((e,t)=>{n(l,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Namespace");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedConfigMap(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/configmaps/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedConfigMap.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedConfigMap.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ConfigMap");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedEndpoints(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/endpoints/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedEndpoints.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedEndpoints.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Endpoints");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedEvent(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/events/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedEvent.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedEvent.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Event");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedLimitRange(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/limitranges/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedLimitRange.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedLimitRange.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1LimitRange");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedPersistentVolumeClaim(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedPersistentVolumeClaim.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedPersistentVolumeClaim.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1PersistentVolumeClaim");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedPersistentVolumeClaimStatus(e,t,i,a={}){const r=this.basePath+"/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedPersistentVolumeClaimStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedPersistentVolumeClaimStatus.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1PersistentVolumeClaim");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedPod(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/pods/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedPod.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedPod.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Pod");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedPodLog(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/api/v1/namespaces/{namespace}/pods/{name}/log".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedPodLog.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedPodLog.")}if(i!==undefined){f["container"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["follow"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){f["limitBytes"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){f["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["previous"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){f["sinceSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){f["tailLines"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["timestamps"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"string");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedPodStatus(e,t,i,a={}){const r=this.basePath+"/api/v1/namespaces/{namespace}/pods/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedPodStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedPodStatus.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Pod");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedPodTemplate(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/podtemplates/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedPodTemplate.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedPodTemplate.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1PodTemplate");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedReplicationController(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/replicationcontrollers/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedReplicationController.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedReplicationController.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ReplicationController");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedReplicationControllerScale(e,t,i,a={}){const r=this.basePath+"/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedReplicationControllerScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedReplicationControllerScale.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedReplicationControllerStatus(e,t,i,a={}){const r=this.basePath+"/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedReplicationControllerStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedReplicationControllerStatus.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ReplicationController");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedResourceQuota(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/resourcequotas/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedResourceQuota.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedResourceQuota.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ResourceQuota");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedResourceQuotaStatus(e,t,i,a={}){const r=this.basePath+"/api/v1/namespaces/{namespace}/resourcequotas/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedResourceQuotaStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedResourceQuotaStatus.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ResourceQuota");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedSecret(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/secrets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedSecret.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedSecret.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Secret");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedService(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/services/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedService.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedService.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Service");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedServiceAccount(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/serviceaccounts/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedServiceAccount.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedServiceAccount.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ServiceAccount");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedServiceStatus(e,t,i,a={}){const r=this.basePath+"/api/v1/namespaces/{namespace}/services/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedServiceStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedServiceStatus.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Service");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNode(e,t,i,a,r={}){const s=this.basePath+"/api/v1/nodes/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNode.")}if(t!==undefined){o["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){o["exact"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){o["export"]=ObjectSerializer.serialize(a,"boolean")}Object.assign(u,r.headers);let c=false;let d={method:"GET",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Node");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNodeStatus(e,t,i={}){const a=this.basePath+"/api/v1/nodes/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e)));let r={};let s=Object.assign({},this.defaultHeaders);let o={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNodeStatus.")}if(t!==undefined){r["pretty"]=ObjectSerializer.serialize(t,"string")}Object.assign(s,i.headers);let u=false;let l={method:"GET",qs:r,headers:s,uri:a,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(l);this.authentications.default.applyToRequest(l);if(Object.keys(o).length){if(u){l.formData=o}else{l.form=o}}return new Promise((e,t)=>{n(l,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Node");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readPersistentVolume(e,t,i,a,r={}){const s=this.basePath+"/api/v1/persistentvolumes/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readPersistentVolume.")}if(t!==undefined){o["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){o["exact"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){o["export"]=ObjectSerializer.serialize(a,"boolean")}Object.assign(u,r.headers);let c=false;let d={method:"GET",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1PersistentVolume");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readPersistentVolumeStatus(e,t,i={}){const a=this.basePath+"/api/v1/persistentvolumes/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e)));let r={};let s=Object.assign({},this.defaultHeaders);let o={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readPersistentVolumeStatus.")}if(t!==undefined){r["pretty"]=ObjectSerializer.serialize(t,"string")}Object.assign(s,i.headers);let u=false;let l={method:"GET",qs:r,headers:s,uri:a,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(l);this.authentications.default.applyToRequest(l);if(Object.keys(o).length){if(u){l.formData=o}else{l.form=o}}return new Promise((e,t)=>{n(l,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1PersistentVolume");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespace(e,t,i,a,r={}){const s=this.basePath+"/api/v1/namespaces/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespace.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespace.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1Namespace")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Namespace");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespaceFinalize(e,t,i,a,r={}){const s=this.basePath+"/api/v1/namespaces/{name}/finalize".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespaceFinalize.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespaceFinalize.")}if(i!==undefined){o["dryRun"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["pretty"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1Namespace")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Namespace");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespaceStatus(e,t,i,a,r={}){const s=this.basePath+"/api/v1/namespaces/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespaceStatus.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespaceStatus.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1Namespace")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Namespace");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedConfigMap(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/configmaps/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedConfigMap.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedConfigMap.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedConfigMap.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1ConfigMap")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ConfigMap");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedEndpoints(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/endpoints/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedEndpoints.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedEndpoints.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedEndpoints.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1Endpoints")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Endpoints");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedEvent(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/events/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedEvent.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedEvent.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedEvent.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1Event")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Event");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedLimitRange(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/limitranges/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedLimitRange.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedLimitRange.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedLimitRange.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1LimitRange")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1LimitRange");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedPersistentVolumeClaim(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedPersistentVolumeClaim.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedPersistentVolumeClaim.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedPersistentVolumeClaim.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1PersistentVolumeClaim")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1PersistentVolumeClaim");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedPersistentVolumeClaimStatus(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedPersistentVolumeClaimStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedPersistentVolumeClaimStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedPersistentVolumeClaimStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1PersistentVolumeClaim")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1PersistentVolumeClaim");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedPod(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/pods/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedPod.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedPod.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedPod.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1Pod")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Pod");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedPodStatus(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/pods/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedPodStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedPodStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedPodStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1Pod")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Pod");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedPodTemplate(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/podtemplates/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedPodTemplate.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedPodTemplate.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedPodTemplate.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1PodTemplate")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1PodTemplate");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedReplicationController(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/replicationcontrollers/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedReplicationController.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedReplicationController.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedReplicationController.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1ReplicationController")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ReplicationController");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedReplicationControllerScale(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedReplicationControllerScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedReplicationControllerScale.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedReplicationControllerScale.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1Scale")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedReplicationControllerStatus(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedReplicationControllerStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedReplicationControllerStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedReplicationControllerStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1ReplicationController")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ReplicationController");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedResourceQuota(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/resourcequotas/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedResourceQuota.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedResourceQuota.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedResourceQuota.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1ResourceQuota")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ResourceQuota");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedResourceQuotaStatus(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/resourcequotas/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedResourceQuotaStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedResourceQuotaStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedResourceQuotaStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1ResourceQuota")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ResourceQuota");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedSecret(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/secrets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedSecret.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedSecret.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedSecret.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1Secret")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Secret");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedService(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/services/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedService.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedService.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedService.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1Service")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Service");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedServiceAccount(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/serviceaccounts/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedServiceAccount.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedServiceAccount.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedServiceAccount.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1ServiceAccount")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ServiceAccount");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedServiceStatus(e,t,i,a,r,s={}){const o=this.basePath+"/api/v1/namespaces/{namespace}/services/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedServiceStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedServiceStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedServiceStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1Service")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Service");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNode(e,t,i,a,r={}){const s=this.basePath+"/api/v1/nodes/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNode.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNode.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1Node")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Node");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNodeStatus(e,t,i,a,r={}){const s=this.basePath+"/api/v1/nodes/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNodeStatus.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNodeStatus.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1Node")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Node");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replacePersistentVolume(e,t,i,a,r={}){const s=this.basePath+"/api/v1/persistentvolumes/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replacePersistentVolume.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replacePersistentVolume.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1PersistentVolume")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1PersistentVolume");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replacePersistentVolumeStatus(e,t,i,a,r={}){const s=this.basePath+"/api/v1/persistentvolumes/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replacePersistentVolumeStatus.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replacePersistentVolumeStatus.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1PersistentVolume")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1PersistentVolume");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.CoreV1Api=CoreV1Api;var H;(function(e){e[e["BearerToken"]=0]="BearerToken"})(H=t.CustomObjectsApiApiKeys||(t.CustomObjectsApiApiKeys={}));class CustomObjectsApi{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[H[e]].apiKey=t}createClusterCustomObject(e,t,i,a,r,s={}){const o=this.basePath+"/apis/{group}/{version}/{plural}".replace("{"+"group"+"}",encodeURIComponent(String(e))).replace("{"+"version"+"}",encodeURIComponent(String(t))).replace("{"+"plural"+"}",encodeURIComponent(String(i)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter group was null or undefined when calling createClusterCustomObject.")}if(t===null||t===undefined){throw new Error("Required parameter version was null or undefined when calling createClusterCustomObject.")}if(i===null||i===undefined){throw new Error("Required parameter plural was null or undefined when calling createClusterCustomObject.")}if(a===null||a===undefined){throw new Error("Required parameter body was null or undefined when calling createClusterCustomObject.")}if(r!==undefined){u["pretty"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"any");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedCustomObject(e,t,i,a,r,s,o={}){const u=this.basePath+"/apis/{group}/{version}/namespaces/{namespace}/{plural}".replace("{"+"group"+"}",encodeURIComponent(String(e))).replace("{"+"version"+"}",encodeURIComponent(String(t))).replace("{"+"namespace"+"}",encodeURIComponent(String(i))).replace("{"+"plural"+"}",encodeURIComponent(String(a)));let l={};let c=Object.assign({},this.defaultHeaders);let d={};if(e===null||e===undefined){throw new Error("Required parameter group was null or undefined when calling createNamespacedCustomObject.")}if(t===null||t===undefined){throw new Error("Required parameter version was null or undefined when calling createNamespacedCustomObject.")}if(i===null||i===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedCustomObject.")}if(a===null||a===undefined){throw new Error("Required parameter plural was null or undefined when calling createNamespacedCustomObject.")}if(r===null||r===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedCustomObject.")}if(s!==undefined){l["pretty"]=ObjectSerializer.serialize(s,"string")}Object.assign(c,o.headers);let p=false;let f={method:"POST",qs:l,headers:c,uri:u,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(r,"any")};this.authentications.BearerToken.applyToRequest(f);this.authentications.default.applyToRequest(f);if(Object.keys(d).length){if(p){f.formData=d}else{f.form=d}}return new Promise((e,t)=>{n(f,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"any");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteClusterCustomObject(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/{group}/{version}/{plural}/{name}".replace("{"+"group"+"}",encodeURIComponent(String(e))).replace("{"+"version"+"}",encodeURIComponent(String(t))).replace("{"+"plural"+"}",encodeURIComponent(String(i))).replace("{"+"name"+"}",encodeURIComponent(String(a)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter group was null or undefined when calling deleteClusterCustomObject.")}if(t===null||t===undefined){throw new Error("Required parameter version was null or undefined when calling deleteClusterCustomObject.")}if(i===null||i===undefined){throw new Error("Required parameter plural was null or undefined when calling deleteClusterCustomObject.")}if(a===null||a===undefined){throw new Error("Required parameter name was null or undefined when calling deleteClusterCustomObject.")}if(r===null||r===undefined){throw new Error("Required parameter body was null or undefined when calling deleteClusterCustomObject.")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(r,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"any");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedCustomObject(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}".replace("{"+"group"+"}",encodeURIComponent(String(e))).replace("{"+"version"+"}",encodeURIComponent(String(t))).replace("{"+"namespace"+"}",encodeURIComponent(String(i))).replace("{"+"plural"+"}",encodeURIComponent(String(a))).replace("{"+"name"+"}",encodeURIComponent(String(r)));let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e===null||e===undefined){throw new Error("Required parameter group was null or undefined when calling deleteNamespacedCustomObject.")}if(t===null||t===undefined){throw new Error("Required parameter version was null or undefined when calling deleteNamespacedCustomObject.")}if(i===null||i===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedCustomObject.")}if(a===null||a===undefined){throw new Error("Required parameter plural was null or undefined when calling deleteNamespacedCustomObject.")}if(r===null||r===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedCustomObject.")}if(s===null||s===undefined){throw new Error("Required parameter body was null or undefined when calling deleteNamespacedCustomObject.")}if(o!==undefined){p["gracePeriodSeconds"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){p["orphanDependents"]=ObjectSerializer.serialize(u,"boolean")}if(l!==undefined){p["propagationPolicy"]=ObjectSerializer.serialize(l,"string")}Object.assign(f,c.headers);let m=false;let b={method:"DELETE",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(s,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"any");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getClusterCustomObject(e,t,i,a,r={}){const s=this.basePath+"/apis/{group}/{version}/{plural}/{name}".replace("{"+"group"+"}",encodeURIComponent(String(e))).replace("{"+"version"+"}",encodeURIComponent(String(t))).replace("{"+"plural"+"}",encodeURIComponent(String(i))).replace("{"+"name"+"}",encodeURIComponent(String(a)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter group was null or undefined when calling getClusterCustomObject.")}if(t===null||t===undefined){throw new Error("Required parameter version was null or undefined when calling getClusterCustomObject.")}if(i===null||i===undefined){throw new Error("Required parameter plural was null or undefined when calling getClusterCustomObject.")}if(a===null||a===undefined){throw new Error("Required parameter name was null or undefined when calling getClusterCustomObject.")}Object.assign(u,r.headers);let c=false;let d={method:"GET",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"any");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getClusterCustomObjectScale(e,t,i,a,r={}){const s=this.basePath+"/apis/{group}/{version}/{plural}/{name}/scale".replace("{"+"group"+"}",encodeURIComponent(String(e))).replace("{"+"version"+"}",encodeURIComponent(String(t))).replace("{"+"plural"+"}",encodeURIComponent(String(i))).replace("{"+"name"+"}",encodeURIComponent(String(a)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter group was null or undefined when calling getClusterCustomObjectScale.")}if(t===null||t===undefined){throw new Error("Required parameter version was null or undefined when calling getClusterCustomObjectScale.")}if(i===null||i===undefined){throw new Error("Required parameter plural was null or undefined when calling getClusterCustomObjectScale.")}if(a===null||a===undefined){throw new Error("Required parameter name was null or undefined when calling getClusterCustomObjectScale.")}Object.assign(u,r.headers);let c=false;let d={method:"GET",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"any");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getClusterCustomObjectStatus(e,t,i,a,r={}){const s=this.basePath+"/apis/{group}/{version}/{plural}/{name}/status".replace("{"+"group"+"}",encodeURIComponent(String(e))).replace("{"+"version"+"}",encodeURIComponent(String(t))).replace("{"+"plural"+"}",encodeURIComponent(String(i))).replace("{"+"name"+"}",encodeURIComponent(String(a)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter group was null or undefined when calling getClusterCustomObjectStatus.")}if(t===null||t===undefined){throw new Error("Required parameter version was null or undefined when calling getClusterCustomObjectStatus.")}if(i===null||i===undefined){throw new Error("Required parameter plural was null or undefined when calling getClusterCustomObjectStatus.")}if(a===null||a===undefined){throw new Error("Required parameter name was null or undefined when calling getClusterCustomObjectStatus.")}Object.assign(u,r.headers);let c=false;let d={method:"GET",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"any");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getNamespacedCustomObject(e,t,i,a,r,s={}){const o=this.basePath+"/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}".replace("{"+"group"+"}",encodeURIComponent(String(e))).replace("{"+"version"+"}",encodeURIComponent(String(t))).replace("{"+"namespace"+"}",encodeURIComponent(String(i))).replace("{"+"plural"+"}",encodeURIComponent(String(a))).replace("{"+"name"+"}",encodeURIComponent(String(r)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter group was null or undefined when calling getNamespacedCustomObject.")}if(t===null||t===undefined){throw new Error("Required parameter version was null or undefined when calling getNamespacedCustomObject.")}if(i===null||i===undefined){throw new Error("Required parameter namespace was null or undefined when calling getNamespacedCustomObject.")}if(a===null||a===undefined){throw new Error("Required parameter plural was null or undefined when calling getNamespacedCustomObject.")}if(r===null||r===undefined){throw new Error("Required parameter name was null or undefined when calling getNamespacedCustomObject.")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"any");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getNamespacedCustomObjectScale(e,t,i,a,r,s={}){const o=this.basePath+"/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/scale".replace("{"+"group"+"}",encodeURIComponent(String(e))).replace("{"+"version"+"}",encodeURIComponent(String(t))).replace("{"+"namespace"+"}",encodeURIComponent(String(i))).replace("{"+"plural"+"}",encodeURIComponent(String(a))).replace("{"+"name"+"}",encodeURIComponent(String(r)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter group was null or undefined when calling getNamespacedCustomObjectScale.")}if(t===null||t===undefined){throw new Error("Required parameter version was null or undefined when calling getNamespacedCustomObjectScale.")}if(i===null||i===undefined){throw new Error("Required parameter namespace was null or undefined when calling getNamespacedCustomObjectScale.")}if(a===null||a===undefined){throw new Error("Required parameter plural was null or undefined when calling getNamespacedCustomObjectScale.")}if(r===null||r===undefined){throw new Error("Required parameter name was null or undefined when calling getNamespacedCustomObjectScale.")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"any");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getNamespacedCustomObjectStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/status".replace("{"+"group"+"}",encodeURIComponent(String(e))).replace("{"+"version"+"}",encodeURIComponent(String(t))).replace("{"+"namespace"+"}",encodeURIComponent(String(i))).replace("{"+"plural"+"}",encodeURIComponent(String(a))).replace("{"+"name"+"}",encodeURIComponent(String(r)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter group was null or undefined when calling getNamespacedCustomObjectStatus.")}if(t===null||t===undefined){throw new Error("Required parameter version was null or undefined when calling getNamespacedCustomObjectStatus.")}if(i===null||i===undefined){throw new Error("Required parameter namespace was null or undefined when calling getNamespacedCustomObjectStatus.")}if(a===null||a===undefined){throw new Error("Required parameter plural was null or undefined when calling getNamespacedCustomObjectStatus.")}if(r===null||r===undefined){throw new Error("Required parameter name was null or undefined when calling getNamespacedCustomObjectStatus.")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"any");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listClusterCustomObject(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/{group}/{version}/{plural}".replace("{"+"group"+"}",encodeURIComponent(String(e))).replace("{"+"version"+"}",encodeURIComponent(String(t))).replace("{"+"plural"+"}",encodeURIComponent(String(i)));let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e===null||e===undefined){throw new Error("Required parameter group was null or undefined when calling listClusterCustomObject.")}if(t===null||t===undefined){throw new Error("Required parameter version was null or undefined when calling listClusterCustomObject.")}if(i===null||i===undefined){throw new Error("Required parameter plural was null or undefined when calling listClusterCustomObject.")}if(a!==undefined){p["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"any");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedCustomObject(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/{group}/{version}/namespaces/{namespace}/{plural}".replace("{"+"group"+"}",encodeURIComponent(String(e))).replace("{"+"version"+"}",encodeURIComponent(String(t))).replace("{"+"namespace"+"}",encodeURIComponent(String(i))).replace("{"+"plural"+"}",encodeURIComponent(String(a)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter group was null or undefined when calling listNamespacedCustomObject.")}if(t===null||t===undefined){throw new Error("Required parameter version was null or undefined when calling listNamespacedCustomObject.")}if(i===null||i===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedCustomObject.")}if(a===null||a===undefined){throw new Error("Required parameter plural was null or undefined when calling listNamespacedCustomObject.")}if(r!==undefined){f["pretty"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["labelSelector"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"any");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchClusterCustomObject(e,t,i,a,r,s={}){const o=this.basePath+"/apis/{group}/{version}/{plural}/{name}".replace("{"+"group"+"}",encodeURIComponent(String(e))).replace("{"+"version"+"}",encodeURIComponent(String(t))).replace("{"+"plural"+"}",encodeURIComponent(String(i))).replace("{"+"name"+"}",encodeURIComponent(String(a)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter group was null or undefined when calling patchClusterCustomObject.")}if(t===null||t===undefined){throw new Error("Required parameter version was null or undefined when calling patchClusterCustomObject.")}if(i===null||i===undefined){throw new Error("Required parameter plural was null or undefined when calling patchClusterCustomObject.")}if(a===null||a===undefined){throw new Error("Required parameter name was null or undefined when calling patchClusterCustomObject.")}if(r===null||r===undefined){throw new Error("Required parameter body was null or undefined when calling patchClusterCustomObject.")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(r,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"any");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchClusterCustomObjectScale(e,t,i,a,r,s={}){const o=this.basePath+"/apis/{group}/{version}/{plural}/{name}/scale".replace("{"+"group"+"}",encodeURIComponent(String(e))).replace("{"+"version"+"}",encodeURIComponent(String(t))).replace("{"+"plural"+"}",encodeURIComponent(String(i))).replace("{"+"name"+"}",encodeURIComponent(String(a)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter group was null or undefined when calling patchClusterCustomObjectScale.")}if(t===null||t===undefined){throw new Error("Required parameter version was null or undefined when calling patchClusterCustomObjectScale.")}if(i===null||i===undefined){throw new Error("Required parameter plural was null or undefined when calling patchClusterCustomObjectScale.")}if(a===null||a===undefined){throw new Error("Required parameter name was null or undefined when calling patchClusterCustomObjectScale.")}if(r===null||r===undefined){throw new Error("Required parameter body was null or undefined when calling patchClusterCustomObjectScale.")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(r,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"any");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchClusterCustomObjectStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/{group}/{version}/{plural}/{name}/status".replace("{"+"group"+"}",encodeURIComponent(String(e))).replace("{"+"version"+"}",encodeURIComponent(String(t))).replace("{"+"plural"+"}",encodeURIComponent(String(i))).replace("{"+"name"+"}",encodeURIComponent(String(a)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter group was null or undefined when calling patchClusterCustomObjectStatus.")}if(t===null||t===undefined){throw new Error("Required parameter version was null or undefined when calling patchClusterCustomObjectStatus.")}if(i===null||i===undefined){throw new Error("Required parameter plural was null or undefined when calling patchClusterCustomObjectStatus.")}if(a===null||a===undefined){throw new Error("Required parameter name was null or undefined when calling patchClusterCustomObjectStatus.")}if(r===null||r===undefined){throw new Error("Required parameter body was null or undefined when calling patchClusterCustomObjectStatus.")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(r,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"any");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedCustomObject(e,t,i,a,r,s,o={}){const u=this.basePath+"/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}".replace("{"+"group"+"}",encodeURIComponent(String(e))).replace("{"+"version"+"}",encodeURIComponent(String(t))).replace("{"+"namespace"+"}",encodeURIComponent(String(i))).replace("{"+"plural"+"}",encodeURIComponent(String(a))).replace("{"+"name"+"}",encodeURIComponent(String(r)));let l={};let c=Object.assign({},this.defaultHeaders);let d={};if(e===null||e===undefined){throw new Error("Required parameter group was null or undefined when calling patchNamespacedCustomObject.")}if(t===null||t===undefined){throw new Error("Required parameter version was null or undefined when calling patchNamespacedCustomObject.")}if(i===null||i===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedCustomObject.")}if(a===null||a===undefined){throw new Error("Required parameter plural was null or undefined when calling patchNamespacedCustomObject.")}if(r===null||r===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedCustomObject.")}if(s===null||s===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedCustomObject.")}Object.assign(c,o.headers);let p=false;let f={method:"PATCH",qs:l,headers:c,uri:u,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(s,"any")};this.authentications.BearerToken.applyToRequest(f);this.authentications.default.applyToRequest(f);if(Object.keys(d).length){if(p){f.formData=d}else{f.form=d}}return new Promise((e,t)=>{n(f,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"any");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedCustomObjectScale(e,t,i,a,r,s,o={}){const u=this.basePath+"/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/scale".replace("{"+"group"+"}",encodeURIComponent(String(e))).replace("{"+"version"+"}",encodeURIComponent(String(t))).replace("{"+"namespace"+"}",encodeURIComponent(String(i))).replace("{"+"plural"+"}",encodeURIComponent(String(a))).replace("{"+"name"+"}",encodeURIComponent(String(r)));let l={};let c=Object.assign({},this.defaultHeaders);let d={};if(e===null||e===undefined){throw new Error("Required parameter group was null or undefined when calling patchNamespacedCustomObjectScale.")}if(t===null||t===undefined){throw new Error("Required parameter version was null or undefined when calling patchNamespacedCustomObjectScale.")}if(i===null||i===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedCustomObjectScale.")}if(a===null||a===undefined){throw new Error("Required parameter plural was null or undefined when calling patchNamespacedCustomObjectScale.")}if(r===null||r===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedCustomObjectScale.")}if(s===null||s===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedCustomObjectScale.")}Object.assign(c,o.headers);let p=false;let f={method:"PATCH",qs:l,headers:c,uri:u,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(s,"any")};this.authentications.BearerToken.applyToRequest(f);this.authentications.default.applyToRequest(f);if(Object.keys(d).length){if(p){f.formData=d}else{f.form=d}}return new Promise((e,t)=>{n(f,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"any");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedCustomObjectStatus(e,t,i,a,r,s,o={}){const u=this.basePath+"/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/status".replace("{"+"group"+"}",encodeURIComponent(String(e))).replace("{"+"version"+"}",encodeURIComponent(String(t))).replace("{"+"namespace"+"}",encodeURIComponent(String(i))).replace("{"+"plural"+"}",encodeURIComponent(String(a))).replace("{"+"name"+"}",encodeURIComponent(String(r)));let l={};let c=Object.assign({},this.defaultHeaders);let d={};if(e===null||e===undefined){throw new Error("Required parameter group was null or undefined when calling patchNamespacedCustomObjectStatus.")}if(t===null||t===undefined){throw new Error("Required parameter version was null or undefined when calling patchNamespacedCustomObjectStatus.")}if(i===null||i===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedCustomObjectStatus.")}if(a===null||a===undefined){throw new Error("Required parameter plural was null or undefined when calling patchNamespacedCustomObjectStatus.")}if(r===null||r===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedCustomObjectStatus.")}if(s===null||s===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedCustomObjectStatus.")}Object.assign(c,o.headers);let p=false;let f={method:"PATCH",qs:l,headers:c,uri:u,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(s,"any")};this.authentications.BearerToken.applyToRequest(f);this.authentications.default.applyToRequest(f);if(Object.keys(d).length){if(p){f.formData=d}else{f.form=d}}return new Promise((e,t)=>{n(f,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"any");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceClusterCustomObject(e,t,i,a,r,s={}){const o=this.basePath+"/apis/{group}/{version}/{plural}/{name}".replace("{"+"group"+"}",encodeURIComponent(String(e))).replace("{"+"version"+"}",encodeURIComponent(String(t))).replace("{"+"plural"+"}",encodeURIComponent(String(i))).replace("{"+"name"+"}",encodeURIComponent(String(a)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter group was null or undefined when calling replaceClusterCustomObject.")}if(t===null||t===undefined){throw new Error("Required parameter version was null or undefined when calling replaceClusterCustomObject.")}if(i===null||i===undefined){throw new Error("Required parameter plural was null or undefined when calling replaceClusterCustomObject.")}if(a===null||a===undefined){throw new Error("Required parameter name was null or undefined when calling replaceClusterCustomObject.")}if(r===null||r===undefined){throw new Error("Required parameter body was null or undefined when calling replaceClusterCustomObject.")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(r,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"any");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceClusterCustomObjectScale(e,t,i,a,r,s={}){const o=this.basePath+"/apis/{group}/{version}/{plural}/{name}/scale".replace("{"+"group"+"}",encodeURIComponent(String(e))).replace("{"+"version"+"}",encodeURIComponent(String(t))).replace("{"+"plural"+"}",encodeURIComponent(String(i))).replace("{"+"name"+"}",encodeURIComponent(String(a)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter group was null or undefined when calling replaceClusterCustomObjectScale.")}if(t===null||t===undefined){throw new Error("Required parameter version was null or undefined when calling replaceClusterCustomObjectScale.")}if(i===null||i===undefined){throw new Error("Required parameter plural was null or undefined when calling replaceClusterCustomObjectScale.")}if(a===null||a===undefined){throw new Error("Required parameter name was null or undefined when calling replaceClusterCustomObjectScale.")}if(r===null||r===undefined){throw new Error("Required parameter body was null or undefined when calling replaceClusterCustomObjectScale.")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(r,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"any");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceClusterCustomObjectStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/{group}/{version}/{plural}/{name}/status".replace("{"+"group"+"}",encodeURIComponent(String(e))).replace("{"+"version"+"}",encodeURIComponent(String(t))).replace("{"+"plural"+"}",encodeURIComponent(String(i))).replace("{"+"name"+"}",encodeURIComponent(String(a)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter group was null or undefined when calling replaceClusterCustomObjectStatus.")}if(t===null||t===undefined){throw new Error("Required parameter version was null or undefined when calling replaceClusterCustomObjectStatus.")}if(i===null||i===undefined){throw new Error("Required parameter plural was null or undefined when calling replaceClusterCustomObjectStatus.")}if(a===null||a===undefined){throw new Error("Required parameter name was null or undefined when calling replaceClusterCustomObjectStatus.")}if(r===null||r===undefined){throw new Error("Required parameter body was null or undefined when calling replaceClusterCustomObjectStatus.")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(r,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"any");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedCustomObject(e,t,i,a,r,s,o={}){const u=this.basePath+"/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}".replace("{"+"group"+"}",encodeURIComponent(String(e))).replace("{"+"version"+"}",encodeURIComponent(String(t))).replace("{"+"namespace"+"}",encodeURIComponent(String(i))).replace("{"+"plural"+"}",encodeURIComponent(String(a))).replace("{"+"name"+"}",encodeURIComponent(String(r)));let l={};let c=Object.assign({},this.defaultHeaders);let d={};if(e===null||e===undefined){throw new Error("Required parameter group was null or undefined when calling replaceNamespacedCustomObject.")}if(t===null||t===undefined){throw new Error("Required parameter version was null or undefined when calling replaceNamespacedCustomObject.")}if(i===null||i===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedCustomObject.")}if(a===null||a===undefined){throw new Error("Required parameter plural was null or undefined when calling replaceNamespacedCustomObject.")}if(r===null||r===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedCustomObject.")}if(s===null||s===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedCustomObject.")}Object.assign(c,o.headers);let p=false;let f={method:"PUT",qs:l,headers:c,uri:u,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(s,"any")};this.authentications.BearerToken.applyToRequest(f);this.authentications.default.applyToRequest(f);if(Object.keys(d).length){if(p){f.formData=d}else{f.form=d}}return new Promise((e,t)=>{n(f,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"any");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedCustomObjectScale(e,t,i,a,r,s,o={}){const u=this.basePath+"/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/scale".replace("{"+"group"+"}",encodeURIComponent(String(e))).replace("{"+"version"+"}",encodeURIComponent(String(t))).replace("{"+"namespace"+"}",encodeURIComponent(String(i))).replace("{"+"plural"+"}",encodeURIComponent(String(a))).replace("{"+"name"+"}",encodeURIComponent(String(r)));let l={};let c=Object.assign({},this.defaultHeaders);let d={};if(e===null||e===undefined){throw new Error("Required parameter group was null or undefined when calling replaceNamespacedCustomObjectScale.")}if(t===null||t===undefined){throw new Error("Required parameter version was null or undefined when calling replaceNamespacedCustomObjectScale.")}if(i===null||i===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedCustomObjectScale.")}if(a===null||a===undefined){throw new Error("Required parameter plural was null or undefined when calling replaceNamespacedCustomObjectScale.")}if(r===null||r===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedCustomObjectScale.")}if(s===null||s===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedCustomObjectScale.")}Object.assign(c,o.headers);let p=false;let f={method:"PUT",qs:l,headers:c,uri:u,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(s,"any")};this.authentications.BearerToken.applyToRequest(f);this.authentications.default.applyToRequest(f);if(Object.keys(d).length){if(p){f.formData=d}else{f.form=d}}return new Promise((e,t)=>{n(f,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"any");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedCustomObjectStatus(e,t,i,a,r,s,o={}){const u=this.basePath+"/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/status".replace("{"+"group"+"}",encodeURIComponent(String(e))).replace("{"+"version"+"}",encodeURIComponent(String(t))).replace("{"+"namespace"+"}",encodeURIComponent(String(i))).replace("{"+"plural"+"}",encodeURIComponent(String(a))).replace("{"+"name"+"}",encodeURIComponent(String(r)));let l={};let c=Object.assign({},this.defaultHeaders);let d={};if(e===null||e===undefined){throw new Error("Required parameter group was null or undefined when calling replaceNamespacedCustomObjectStatus.")}if(t===null||t===undefined){throw new Error("Required parameter version was null or undefined when calling replaceNamespacedCustomObjectStatus.")}if(i===null||i===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedCustomObjectStatus.")}if(a===null||a===undefined){throw new Error("Required parameter plural was null or undefined when calling replaceNamespacedCustomObjectStatus.")}if(r===null||r===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedCustomObjectStatus.")}if(s===null||s===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedCustomObjectStatus.")}Object.assign(c,o.headers);let p=false;let f={method:"PUT",qs:l,headers:c,uri:u,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(s,"any")};this.authentications.BearerToken.applyToRequest(f);this.authentications.default.applyToRequest(f);if(Object.keys(d).length){if(p){f.formData=d}else{f.form=d}}return new Promise((e,t)=>{n(f,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"any");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.CustomObjectsApi=CustomObjectsApi;var Q;(function(e){e[e["BearerToken"]=0]="BearerToken"})(Q=t.EventsApiApiKeys||(t.EventsApiApiKeys={}));class EventsApi{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[Q[e]].apiKey=t}getAPIGroup(e={}){const t=this.basePath+"/apis/events.k8s.io/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIGroup");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.EventsApi=EventsApi;var W;(function(e){e[e["BearerToken"]=0]="BearerToken"})(W=t.EventsV1beta1ApiApiKeys||(t.EventsV1beta1ApiApiKeys={}));class EventsV1beta1Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[W[e]].apiKey=t}createNamespacedEvent(e,t,i,a,r,s={}){const o=this.basePath+"/apis/events.k8s.io/v1beta1/namespaces/{namespace}/events".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedEvent.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedEvent.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1beta1Event")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1Event");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedEvent(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/events.k8s.io/v1beta1/namespaces/{namespace}/events".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedEvent.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedEvent(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/events.k8s.io/v1beta1/namespaces/{namespace}/events/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedEvent.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedEvent.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/apis/events.k8s.io/v1beta1/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listEventForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/events.k8s.io/v1beta1/events";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1EventList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedEvent(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/events.k8s.io/v1beta1/namespaces/{namespace}/events".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedEvent.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1EventList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedEvent(e,t,i,a,r,s={}){const o=this.basePath+"/apis/events.k8s.io/v1beta1/namespaces/{namespace}/events/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedEvent.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedEvent.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedEvent.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1Event");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedEvent(e,t,i,a,r,s={}){const o=this.basePath+"/apis/events.k8s.io/v1beta1/namespaces/{namespace}/events/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedEvent.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedEvent.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1Event");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedEvent(e,t,i,a,r,s={}){const o=this.basePath+"/apis/events.k8s.io/v1beta1/namespaces/{namespace}/events/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedEvent.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedEvent.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedEvent.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1beta1Event")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1Event");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.EventsV1beta1Api=EventsV1beta1Api;var G;(function(e){e[e["BearerToken"]=0]="BearerToken"})(G=t.ExtensionsApiApiKeys||(t.ExtensionsApiApiKeys={}));class ExtensionsApi{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[G[e]].apiKey=t}getAPIGroup(e={}){const t=this.basePath+"/apis/extensions/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIGroup");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.ExtensionsApi=ExtensionsApi;var K;(function(e){e[e["BearerToken"]=0]="BearerToken"})(K=t.ExtensionsV1beta1ApiApiKeys||(t.ExtensionsV1beta1ApiApiKeys={}));class ExtensionsV1beta1Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[K[e]].apiKey=t}createNamespacedDaemonSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedDaemonSet.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedDaemonSet.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1beta1DaemonSet")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1DaemonSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedDeployment(e,t,i,a,r,s={}){const o=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/deployments".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedDeployment.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedDeployment.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"ExtensionsV1beta1Deployment")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"ExtensionsV1beta1Deployment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedDeploymentRollback(e,t,i,a,r,s,o={}){const u=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/rollback".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let l={};let c=Object.assign({},this.defaultHeaders);let d={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling createNamespacedDeploymentRollback.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedDeploymentRollback.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedDeploymentRollback.")}if(a!==undefined){l["dryRun"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){l["includeUninitialized"]=ObjectSerializer.serialize(r,"boolean")}if(s!==undefined){l["pretty"]=ObjectSerializer.serialize(s,"string")}Object.assign(c,o.headers);let p=false;let f={method:"POST",qs:l,headers:c,uri:u,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"ExtensionsV1beta1DeploymentRollback")};this.authentications.BearerToken.applyToRequest(f);this.authentications.default.applyToRequest(f);if(Object.keys(d).length){if(p){f.formData=d}else{f.form=d}}return new Promise((e,t)=>{n(f,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedIngress(e,t,i,a,r,s={}){const o=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/ingresses".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedIngress.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedIngress.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1beta1Ingress")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1Ingress");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedNetworkPolicy(e,t,i,a,r,s={}){const o=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedNetworkPolicy.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedNetworkPolicy.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1beta1NetworkPolicy")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1NetworkPolicy");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedReplicaSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/replicasets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedReplicaSet.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedReplicaSet.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1beta1ReplicaSet")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1ReplicaSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createPodSecurityPolicy(e,t,i,a,r={}){const s=this.basePath+"/apis/extensions/v1beta1/podsecuritypolicies";let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter body was null or undefined when calling createPodSecurityPolicy.")}if(t!==undefined){o["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(e,"ExtensionsV1beta1PodSecurityPolicy")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"ExtensionsV1beta1PodSecurityPolicy");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedDaemonSet(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedDaemonSet.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedDeployment(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/deployments".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedDeployment.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedIngress(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/ingresses".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedIngress.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedNetworkPolicy(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedNetworkPolicy.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedReplicaSet(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/replicasets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedReplicaSet.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionPodSecurityPolicy(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/extensions/v1beta1/podsecuritypolicies";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"DELETE",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedDaemonSet(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedDaemonSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedDaemonSet.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedDeployment(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedDeployment.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedDeployment.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedIngress(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedIngress.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedIngress.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedNetworkPolicy(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedNetworkPolicy.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedNetworkPolicy.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedReplicaSet(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedReplicaSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedReplicaSet.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deletePodSecurityPolicy(e,t,i,a,r,s,o,u={}){const l=this.basePath+"/apis/extensions/v1beta1/podsecuritypolicies/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let c={};let d=Object.assign({},this.defaultHeaders);let p={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deletePodSecurityPolicy.")}if(t!==undefined){c["pretty"]=ObjectSerializer.serialize(t,"string")}if(a!==undefined){c["dryRun"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){c["gracePeriodSeconds"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){c["orphanDependents"]=ObjectSerializer.serialize(s,"boolean")}if(o!==undefined){c["propagationPolicy"]=ObjectSerializer.serialize(o,"string")}Object.assign(d,u.headers);let f=false;let h={method:"DELETE",qs:c,headers:d,uri:l,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(h);this.authentications.default.applyToRequest(h);if(Object.keys(p).length){if(f){h.formData=p}else{h.form=p}}return new Promise((e,t)=>{n(h,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/apis/extensions/v1beta1/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listDaemonSetForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/extensions/v1beta1/daemonsets";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1DaemonSetList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listDeploymentForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/extensions/v1beta1/deployments";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"ExtensionsV1beta1DeploymentList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listIngressForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/extensions/v1beta1/ingresses";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1IngressList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedDaemonSet(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedDaemonSet.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1DaemonSetList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedDeployment(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/deployments".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedDeployment.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"ExtensionsV1beta1DeploymentList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedIngress(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/ingresses".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedIngress.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1IngressList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedNetworkPolicy(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedNetworkPolicy.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1NetworkPolicyList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedReplicaSet(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/replicasets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedReplicaSet.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1ReplicaSetList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNetworkPolicyForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/extensions/v1beta1/networkpolicies";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1NetworkPolicyList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listPodSecurityPolicy(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/extensions/v1beta1/podsecuritypolicies";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"ExtensionsV1beta1PodSecurityPolicyList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listReplicaSetForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/extensions/v1beta1/replicasets";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1ReplicaSetList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedDaemonSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedDaemonSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedDaemonSet.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedDaemonSet.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1DaemonSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedDaemonSetStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedDaemonSetStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedDaemonSetStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedDaemonSetStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1DaemonSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedDeployment(e,t,i,a,r,s={}){const o=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedDeployment.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedDeployment.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedDeployment.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"ExtensionsV1beta1Deployment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedDeploymentScale(e,t,i,a,r,s={}){const o=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedDeploymentScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedDeploymentScale.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedDeploymentScale.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"ExtensionsV1beta1Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedDeploymentStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedDeploymentStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedDeploymentStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedDeploymentStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"ExtensionsV1beta1Deployment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedIngress(e,t,i,a,r,s={}){const o=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedIngress.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedIngress.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedIngress.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1Ingress");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedIngressStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedIngressStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedIngressStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedIngressStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1Ingress");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedNetworkPolicy(e,t,i,a,r,s={}){const o=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedNetworkPolicy.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedNetworkPolicy.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedNetworkPolicy.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1NetworkPolicy");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedReplicaSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedReplicaSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedReplicaSet.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedReplicaSet.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1ReplicaSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedReplicaSetScale(e,t,i,a,r,s={}){const o=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedReplicaSetScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedReplicaSetScale.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedReplicaSetScale.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"ExtensionsV1beta1Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedReplicaSetStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedReplicaSetStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedReplicaSetStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedReplicaSetStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1ReplicaSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedReplicationControllerDummyScale(e,t,i,a,r,s={}){const o=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/replicationcontrollers/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedReplicationControllerDummyScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedReplicationControllerDummyScale.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedReplicationControllerDummyScale.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"ExtensionsV1beta1Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchPodSecurityPolicy(e,t,i,a,r={}){const s=this.basePath+"/apis/extensions/v1beta1/podsecuritypolicies/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchPodSecurityPolicy.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling patchPodSecurityPolicy.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"any")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"ExtensionsV1beta1PodSecurityPolicy");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedDaemonSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedDaemonSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedDaemonSet.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1DaemonSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedDaemonSetStatus(e,t,i,a={}){const r=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedDaemonSetStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedDaemonSetStatus.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1DaemonSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedDeployment(e,t,i,a,r,s={}){const o=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedDeployment.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedDeployment.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"ExtensionsV1beta1Deployment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedDeploymentScale(e,t,i,a={}){const r=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedDeploymentScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedDeploymentScale.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"ExtensionsV1beta1Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedDeploymentStatus(e,t,i,a={}){const r=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedDeploymentStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedDeploymentStatus.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"ExtensionsV1beta1Deployment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedIngress(e,t,i,a,r,s={}){const o=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedIngress.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedIngress.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1Ingress");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedIngressStatus(e,t,i,a={}){const r=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedIngressStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedIngressStatus.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1Ingress");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedNetworkPolicy(e,t,i,a,r,s={}){const o=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedNetworkPolicy.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedNetworkPolicy.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1NetworkPolicy");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedReplicaSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedReplicaSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedReplicaSet.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1ReplicaSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedReplicaSetScale(e,t,i,a={}){const r=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedReplicaSetScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedReplicaSetScale.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"ExtensionsV1beta1Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedReplicaSetStatus(e,t,i,a={}){const r=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedReplicaSetStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedReplicaSetStatus.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1ReplicaSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedReplicationControllerDummyScale(e,t,i,a={}){const r=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/replicationcontrollers/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedReplicationControllerDummyScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedReplicationControllerDummyScale.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"ExtensionsV1beta1Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readPodSecurityPolicy(e,t,i,a,r={}){const s=this.basePath+"/apis/extensions/v1beta1/podsecuritypolicies/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readPodSecurityPolicy.")}if(t!==undefined){o["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){o["exact"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){o["export"]=ObjectSerializer.serialize(a,"boolean")}Object.assign(u,r.headers);let c=false;let d={method:"GET",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"ExtensionsV1beta1PodSecurityPolicy");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedDaemonSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedDaemonSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedDaemonSet.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedDaemonSet.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1beta1DaemonSet")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1DaemonSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedDaemonSetStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedDaemonSetStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedDaemonSetStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedDaemonSetStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1beta1DaemonSet")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1DaemonSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedDeployment(e,t,i,a,r,s={}){const o=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedDeployment.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedDeployment.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedDeployment.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"ExtensionsV1beta1Deployment")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"ExtensionsV1beta1Deployment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedDeploymentScale(e,t,i,a,r,s={}){const o=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedDeploymentScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedDeploymentScale.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedDeploymentScale.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"ExtensionsV1beta1Scale")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"ExtensionsV1beta1Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedDeploymentStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedDeploymentStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedDeploymentStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedDeploymentStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"ExtensionsV1beta1Deployment")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"ExtensionsV1beta1Deployment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedIngress(e,t,i,a,r,s={}){const o=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedIngress.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedIngress.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedIngress.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1beta1Ingress")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1Ingress");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedIngressStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedIngressStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedIngressStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedIngressStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1beta1Ingress")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1Ingress");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedNetworkPolicy(e,t,i,a,r,s={}){const o=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedNetworkPolicy.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedNetworkPolicy.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedNetworkPolicy.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1beta1NetworkPolicy")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1NetworkPolicy");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedReplicaSet(e,t,i,a,r,s={}){const o=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedReplicaSet.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedReplicaSet.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedReplicaSet.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1beta1ReplicaSet")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1ReplicaSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedReplicaSetScale(e,t,i,a,r,s={}){const o=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedReplicaSetScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedReplicaSetScale.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedReplicaSetScale.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"ExtensionsV1beta1Scale")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"ExtensionsV1beta1Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedReplicaSetStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedReplicaSetStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedReplicaSetStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedReplicaSetStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1beta1ReplicaSet")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1ReplicaSet");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedReplicationControllerDummyScale(e,t,i,a,r,s={}){const o=this.basePath+"/apis/extensions/v1beta1/namespaces/{namespace}/replicationcontrollers/{name}/scale".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedReplicationControllerDummyScale.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedReplicationControllerDummyScale.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedReplicationControllerDummyScale.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"ExtensionsV1beta1Scale")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"ExtensionsV1beta1Scale");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replacePodSecurityPolicy(e,t,i,a,r={}){const s=this.basePath+"/apis/extensions/v1beta1/podsecuritypolicies/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replacePodSecurityPolicy.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replacePodSecurityPolicy.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"ExtensionsV1beta1PodSecurityPolicy")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"ExtensionsV1beta1PodSecurityPolicy");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.ExtensionsV1beta1Api=ExtensionsV1beta1Api;var J;(function(e){e[e["BearerToken"]=0]="BearerToken"})(J=t.LogsApiApiKeys||(t.LogsApiApiKeys={}));class LogsApi{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[J[e]].apiKey=t}logFileHandler(e,t={}){const i=this.basePath+"/logs/{logpath}".replace("{"+"logpath"+"}",encodeURIComponent(String(e)));let a={};let r=Object.assign({},this.defaultHeaders);let s={};if(e===null||e===undefined){throw new Error("Required parameter logpath was null or undefined when calling logFileHandler.")}Object.assign(r,t.headers);let o=false;let u={method:"GET",qs:a,headers:r,uri:i,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(u);this.authentications.default.applyToRequest(u);if(Object.keys(s).length){if(o){u.formData=s}else{u.form=s}}return new Promise((e,t)=>{n(u,(i,n,a)=>{if(i){t(i)}else{if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}logFileListHandler(e={}){const t=this.basePath+"/logs/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.LogsApi=LogsApi;var F;(function(e){e[e["BearerToken"]=0]="BearerToken"})(F=t.NetworkingApiApiKeys||(t.NetworkingApiApiKeys={}));class NetworkingApi{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[F[e]].apiKey=t}getAPIGroup(e={}){const t=this.basePath+"/apis/networking.k8s.io/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIGroup");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.NetworkingApi=NetworkingApi;var Y;(function(e){e[e["BearerToken"]=0]="BearerToken"})(Y=t.NetworkingV1ApiApiKeys||(t.NetworkingV1ApiApiKeys={}));class NetworkingV1Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[Y[e]].apiKey=t}createNamespacedNetworkPolicy(e,t,i,a,r,s={}){const o=this.basePath+"/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedNetworkPolicy.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedNetworkPolicy.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1NetworkPolicy")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1NetworkPolicy");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedNetworkPolicy(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedNetworkPolicy.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedNetworkPolicy(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedNetworkPolicy.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedNetworkPolicy.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/apis/networking.k8s.io/v1/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedNetworkPolicy(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedNetworkPolicy.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1NetworkPolicyList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNetworkPolicyForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/networking.k8s.io/v1/networkpolicies";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1NetworkPolicyList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedNetworkPolicy(e,t,i,a,r,s={}){const o=this.basePath+"/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedNetworkPolicy.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedNetworkPolicy.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedNetworkPolicy.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1NetworkPolicy");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedNetworkPolicy(e,t,i,a,r,s={}){const o=this.basePath+"/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedNetworkPolicy.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedNetworkPolicy.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1NetworkPolicy");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedNetworkPolicy(e,t,i,a,r,s={}){const o=this.basePath+"/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedNetworkPolicy.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedNetworkPolicy.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedNetworkPolicy.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1NetworkPolicy")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1NetworkPolicy");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.NetworkingV1Api=NetworkingV1Api;var X;(function(e){e[e["BearerToken"]=0]="BearerToken"})(X=t.PolicyApiApiKeys||(t.PolicyApiApiKeys={}));class PolicyApi{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[X[e]].apiKey=t}getAPIGroup(e={}){const t=this.basePath+"/apis/policy/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIGroup");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.PolicyApi=PolicyApi;var Z;(function(e){e[e["BearerToken"]=0]="BearerToken"})(Z=t.PolicyV1beta1ApiApiKeys||(t.PolicyV1beta1ApiApiKeys={}));class PolicyV1beta1Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[Z[e]].apiKey=t}createNamespacedPodDisruptionBudget(e,t,i,a,r,s={}){const o=this.basePath+"/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedPodDisruptionBudget.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedPodDisruptionBudget.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1beta1PodDisruptionBudget")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1PodDisruptionBudget");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createPodSecurityPolicy(e,t,i,a,r={}){const s=this.basePath+"/apis/policy/v1beta1/podsecuritypolicies";let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter body was null or undefined when calling createPodSecurityPolicy.")}if(t!==undefined){o["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(e,"PolicyV1beta1PodSecurityPolicy")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"PolicyV1beta1PodSecurityPolicy");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedPodDisruptionBudget(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedPodDisruptionBudget.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionPodSecurityPolicy(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/policy/v1beta1/podsecuritypolicies";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"DELETE",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedPodDisruptionBudget(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedPodDisruptionBudget.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedPodDisruptionBudget.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deletePodSecurityPolicy(e,t,i,a,r,s,o,u={}){const l=this.basePath+"/apis/policy/v1beta1/podsecuritypolicies/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let c={};let d=Object.assign({},this.defaultHeaders);let p={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deletePodSecurityPolicy.")}if(t!==undefined){c["pretty"]=ObjectSerializer.serialize(t,"string")}if(a!==undefined){c["dryRun"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){c["gracePeriodSeconds"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){c["orphanDependents"]=ObjectSerializer.serialize(s,"boolean")}if(o!==undefined){c["propagationPolicy"]=ObjectSerializer.serialize(o,"string")}Object.assign(d,u.headers);let f=false;let h={method:"DELETE",qs:c,headers:d,uri:l,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(h);this.authentications.default.applyToRequest(h);if(Object.keys(p).length){if(f){h.formData=p}else{h.form=p}}return new Promise((e,t)=>{n(h,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/apis/policy/v1beta1/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedPodDisruptionBudget(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedPodDisruptionBudget.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1PodDisruptionBudgetList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listPodDisruptionBudgetForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/policy/v1beta1/poddisruptionbudgets";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1PodDisruptionBudgetList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listPodSecurityPolicy(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/policy/v1beta1/podsecuritypolicies";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"PolicyV1beta1PodSecurityPolicyList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedPodDisruptionBudget(e,t,i,a,r,s={}){const o=this.basePath+"/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedPodDisruptionBudget.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedPodDisruptionBudget.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedPodDisruptionBudget.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1PodDisruptionBudget");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedPodDisruptionBudgetStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedPodDisruptionBudgetStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedPodDisruptionBudgetStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedPodDisruptionBudgetStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1PodDisruptionBudget");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchPodSecurityPolicy(e,t,i,a,r={}){const s=this.basePath+"/apis/policy/v1beta1/podsecuritypolicies/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchPodSecurityPolicy.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling patchPodSecurityPolicy.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"any")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"PolicyV1beta1PodSecurityPolicy");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedPodDisruptionBudget(e,t,i,a,r,s={}){const o=this.basePath+"/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedPodDisruptionBudget.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedPodDisruptionBudget.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1PodDisruptionBudget");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedPodDisruptionBudgetStatus(e,t,i,a={}){const r=this.basePath+"/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedPodDisruptionBudgetStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedPodDisruptionBudgetStatus.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1PodDisruptionBudget");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readPodSecurityPolicy(e,t,i,a,r={}){const s=this.basePath+"/apis/policy/v1beta1/podsecuritypolicies/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readPodSecurityPolicy.")}if(t!==undefined){o["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){o["exact"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){o["export"]=ObjectSerializer.serialize(a,"boolean")}Object.assign(u,r.headers);let c=false;let d={method:"GET",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"PolicyV1beta1PodSecurityPolicy");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedPodDisruptionBudget(e,t,i,a,r,s={}){const o=this.basePath+"/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedPodDisruptionBudget.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedPodDisruptionBudget.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedPodDisruptionBudget.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1beta1PodDisruptionBudget")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1PodDisruptionBudget");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedPodDisruptionBudgetStatus(e,t,i,a,r,s={}){const o=this.basePath+"/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedPodDisruptionBudgetStatus.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedPodDisruptionBudgetStatus.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedPodDisruptionBudgetStatus.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1beta1PodDisruptionBudget")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1PodDisruptionBudget");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replacePodSecurityPolicy(e,t,i,a,r={}){const s=this.basePath+"/apis/policy/v1beta1/podsecuritypolicies/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replacePodSecurityPolicy.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replacePodSecurityPolicy.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"PolicyV1beta1PodSecurityPolicy")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"PolicyV1beta1PodSecurityPolicy");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.PolicyV1beta1Api=PolicyV1beta1Api;var $;(function(e){e[e["BearerToken"]=0]="BearerToken"})($=t.RbacAuthorizationApiApiKeys||(t.RbacAuthorizationApiApiKeys={}));class RbacAuthorizationApi{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[$[e]].apiKey=t}getAPIGroup(e={}){const t=this.basePath+"/apis/rbac.authorization.k8s.io/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIGroup");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.RbacAuthorizationApi=RbacAuthorizationApi;var ee;(function(e){e[e["BearerToken"]=0]="BearerToken"})(ee=t.RbacAuthorizationV1ApiApiKeys||(t.RbacAuthorizationV1ApiApiKeys={}));class RbacAuthorizationV1Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[ee[e]].apiKey=t}createClusterRole(e,t,i,a,r={}){const s=this.basePath+"/apis/rbac.authorization.k8s.io/v1/clusterroles";let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter body was null or undefined when calling createClusterRole.")}if(t!==undefined){o["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(e,"V1ClusterRole")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ClusterRole");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createClusterRoleBinding(e,t,i,a,r={}){const s=this.basePath+"/apis/rbac.authorization.k8s.io/v1/clusterrolebindings";let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter body was null or undefined when calling createClusterRoleBinding.")}if(t!==undefined){o["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(e,"V1ClusterRoleBinding")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ClusterRoleBinding");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedRole(e,t,i,a,r,s={}){const o=this.basePath+"/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedRole.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedRole.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1Role")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Role");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedRoleBinding(e,t,i,a,r,s={}){const o=this.basePath+"/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedRoleBinding.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedRoleBinding.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1RoleBinding")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1RoleBinding");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteClusterRole(e,t,i,a,r,s,o,u={}){const l=this.basePath+"/apis/rbac.authorization.k8s.io/v1/clusterroles/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let c={};let d=Object.assign({},this.defaultHeaders);let p={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteClusterRole.")}if(t!==undefined){c["pretty"]=ObjectSerializer.serialize(t,"string")}if(a!==undefined){c["dryRun"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){c["gracePeriodSeconds"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){c["orphanDependents"]=ObjectSerializer.serialize(s,"boolean")}if(o!==undefined){c["propagationPolicy"]=ObjectSerializer.serialize(o,"string")}Object.assign(d,u.headers);let f=false;let h={method:"DELETE",qs:c,headers:d,uri:l,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(h);this.authentications.default.applyToRequest(h);if(Object.keys(p).length){if(f){h.formData=p}else{h.form=p}}return new Promise((e,t)=>{n(h,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteClusterRoleBinding(e,t,i,a,r,s,o,u={}){const l=this.basePath+"/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let c={};let d=Object.assign({},this.defaultHeaders);let p={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteClusterRoleBinding.")}if(t!==undefined){c["pretty"]=ObjectSerializer.serialize(t,"string")}if(a!==undefined){c["dryRun"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){c["gracePeriodSeconds"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){c["orphanDependents"]=ObjectSerializer.serialize(s,"boolean")}if(o!==undefined){c["propagationPolicy"]=ObjectSerializer.serialize(o,"string")}Object.assign(d,u.headers);let f=false;let h={method:"DELETE",qs:c,headers:d,uri:l,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(h);this.authentications.default.applyToRequest(h);if(Object.keys(p).length){if(f){h.formData=p}else{h.form=p}}return new Promise((e,t)=>{n(h,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionClusterRole(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/rbac.authorization.k8s.io/v1/clusterroles";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"DELETE",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionClusterRoleBinding(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/rbac.authorization.k8s.io/v1/clusterrolebindings";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"DELETE",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedRole(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedRole.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedRoleBinding(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedRoleBinding.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedRole(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedRole.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedRole.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedRoleBinding(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedRoleBinding.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedRoleBinding.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/apis/rbac.authorization.k8s.io/v1/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listClusterRole(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/rbac.authorization.k8s.io/v1/clusterroles";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ClusterRoleList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listClusterRoleBinding(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/rbac.authorization.k8s.io/v1/clusterrolebindings";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ClusterRoleBindingList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedRole(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedRole.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1RoleList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedRoleBinding(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedRoleBinding.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1RoleBindingList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listRoleBindingForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/rbac.authorization.k8s.io/v1/rolebindings";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1RoleBindingList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listRoleForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/rbac.authorization.k8s.io/v1/roles";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1RoleList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchClusterRole(e,t,i,a,r={}){const s=this.basePath+"/apis/rbac.authorization.k8s.io/v1/clusterroles/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchClusterRole.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling patchClusterRole.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"any")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ClusterRole");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchClusterRoleBinding(e,t,i,a,r={}){const s=this.basePath+"/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchClusterRoleBinding.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling patchClusterRoleBinding.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"any")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ClusterRoleBinding");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedRole(e,t,i,a,r,s={}){const o=this.basePath+"/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedRole.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedRole.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedRole.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Role");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedRoleBinding(e,t,i,a,r,s={}){const o=this.basePath+"/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedRoleBinding.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedRoleBinding.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedRoleBinding.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1RoleBinding");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readClusterRole(e,t,i={}){const a=this.basePath+"/apis/rbac.authorization.k8s.io/v1/clusterroles/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let r={};let s=Object.assign({},this.defaultHeaders);let o={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readClusterRole.")}if(t!==undefined){r["pretty"]=ObjectSerializer.serialize(t,"string")}Object.assign(s,i.headers);let u=false;let l={method:"GET",qs:r,headers:s,uri:a,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(l);this.authentications.default.applyToRequest(l);if(Object.keys(o).length){if(u){l.formData=o}else{l.form=o}}return new Promise((e,t)=>{n(l,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ClusterRole");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readClusterRoleBinding(e,t,i={}){const a=this.basePath+"/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let r={};let s=Object.assign({},this.defaultHeaders);let o={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readClusterRoleBinding.")}if(t!==undefined){r["pretty"]=ObjectSerializer.serialize(t,"string")}Object.assign(s,i.headers);let u=false;let l={method:"GET",qs:r,headers:s,uri:a,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(l);this.authentications.default.applyToRequest(l);if(Object.keys(o).length){if(u){l.formData=o}else{l.form=o}}return new Promise((e,t)=>{n(l,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ClusterRoleBinding");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedRole(e,t,i,a={}){const r=this.basePath+"/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedRole.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedRole.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Role");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedRoleBinding(e,t,i,a={}){const r=this.basePath+"/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedRoleBinding.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedRoleBinding.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1RoleBinding");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceClusterRole(e,t,i,a,r={}){const s=this.basePath+"/apis/rbac.authorization.k8s.io/v1/clusterroles/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceClusterRole.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replaceClusterRole.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1ClusterRole")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ClusterRole");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceClusterRoleBinding(e,t,i,a,r={}){const s=this.basePath+"/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceClusterRoleBinding.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replaceClusterRoleBinding.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1ClusterRoleBinding")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1ClusterRoleBinding");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedRole(e,t,i,a,r,s={}){const o=this.basePath+"/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedRole.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedRole.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedRole.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1Role")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Role");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedRoleBinding(e,t,i,a,r,s={}){const o=this.basePath+"/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedRoleBinding.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedRoleBinding.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedRoleBinding.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1RoleBinding")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1RoleBinding");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.RbacAuthorizationV1Api=RbacAuthorizationV1Api;var te;(function(e){e[e["BearerToken"]=0]="BearerToken"})(te=t.RbacAuthorizationV1alpha1ApiApiKeys||(t.RbacAuthorizationV1alpha1ApiApiKeys={}));class RbacAuthorizationV1alpha1Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[te[e]].apiKey=t}createClusterRole(e,t,i,a,r={}){const s=this.basePath+"/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles";let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter body was null or undefined when calling createClusterRole.")}if(t!==undefined){o["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(e,"V1alpha1ClusterRole")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1ClusterRole");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createClusterRoleBinding(e,t,i,a,r={}){const s=this.basePath+"/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings";let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter body was null or undefined when calling createClusterRoleBinding.")}if(t!==undefined){o["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(e,"V1alpha1ClusterRoleBinding")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1ClusterRoleBinding");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedRole(e,t,i,a,r,s={}){const o=this.basePath+"/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedRole.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedRole.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1alpha1Role")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1Role");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedRoleBinding(e,t,i,a,r,s={}){const o=this.basePath+"/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedRoleBinding.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedRoleBinding.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1alpha1RoleBinding")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1RoleBinding");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteClusterRole(e,t,i,a,r,s,o,u={}){const l=this.basePath+"/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let c={};let d=Object.assign({},this.defaultHeaders);let p={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteClusterRole.")}if(t!==undefined){c["pretty"]=ObjectSerializer.serialize(t,"string")}if(a!==undefined){c["dryRun"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){c["gracePeriodSeconds"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){c["orphanDependents"]=ObjectSerializer.serialize(s,"boolean")}if(o!==undefined){c["propagationPolicy"]=ObjectSerializer.serialize(o,"string")}Object.assign(d,u.headers);let f=false;let h={method:"DELETE",qs:c,headers:d,uri:l,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(h);this.authentications.default.applyToRequest(h);if(Object.keys(p).length){if(f){h.formData=p}else{h.form=p}}return new Promise((e,t)=>{n(h,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteClusterRoleBinding(e,t,i,a,r,s,o,u={}){const l=this.basePath+"/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let c={};let d=Object.assign({},this.defaultHeaders);let p={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteClusterRoleBinding.")}if(t!==undefined){c["pretty"]=ObjectSerializer.serialize(t,"string")}if(a!==undefined){c["dryRun"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){c["gracePeriodSeconds"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){c["orphanDependents"]=ObjectSerializer.serialize(s,"boolean")}if(o!==undefined){c["propagationPolicy"]=ObjectSerializer.serialize(o,"string")}Object.assign(d,u.headers);let f=false;let h={method:"DELETE",qs:c,headers:d,uri:l,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(h);this.authentications.default.applyToRequest(h);if(Object.keys(p).length){if(f){h.formData=p}else{h.form=p}}return new Promise((e,t)=>{n(h,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionClusterRole(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"DELETE",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionClusterRoleBinding(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"DELETE",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedRole(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedRole.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedRoleBinding(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedRoleBinding.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedRole(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedRole.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedRole.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedRoleBinding(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedRoleBinding.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedRoleBinding.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/apis/rbac.authorization.k8s.io/v1alpha1/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listClusterRole(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1ClusterRoleList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listClusterRoleBinding(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1ClusterRoleBindingList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedRole(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedRole.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1RoleList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedRoleBinding(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedRoleBinding.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1RoleBindingList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listRoleBindingForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/rbac.authorization.k8s.io/v1alpha1/rolebindings";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1RoleBindingList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listRoleForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/rbac.authorization.k8s.io/v1alpha1/roles";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1RoleList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchClusterRole(e,t,i,a,r={}){const s=this.basePath+"/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchClusterRole.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling patchClusterRole.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"any")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1ClusterRole");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchClusterRoleBinding(e,t,i,a,r={}){const s=this.basePath+"/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchClusterRoleBinding.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling patchClusterRoleBinding.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"any")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1ClusterRoleBinding");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedRole(e,t,i,a,r,s={}){const o=this.basePath+"/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedRole.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedRole.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedRole.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1Role");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedRoleBinding(e,t,i,a,r,s={}){const o=this.basePath+"/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedRoleBinding.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedRoleBinding.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedRoleBinding.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1RoleBinding");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readClusterRole(e,t,i={}){const a=this.basePath+"/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let r={};let s=Object.assign({},this.defaultHeaders);let o={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readClusterRole.")}if(t!==undefined){r["pretty"]=ObjectSerializer.serialize(t,"string")}Object.assign(s,i.headers);let u=false;let l={method:"GET",qs:r,headers:s,uri:a,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(l);this.authentications.default.applyToRequest(l);if(Object.keys(o).length){if(u){l.formData=o}else{l.form=o}}return new Promise((e,t)=>{n(l,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1ClusterRole");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readClusterRoleBinding(e,t,i={}){const a=this.basePath+"/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let r={};let s=Object.assign({},this.defaultHeaders);let o={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readClusterRoleBinding.")}if(t!==undefined){r["pretty"]=ObjectSerializer.serialize(t,"string")}Object.assign(s,i.headers);let u=false;let l={method:"GET",qs:r,headers:s,uri:a,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(l);this.authentications.default.applyToRequest(l);if(Object.keys(o).length){if(u){l.formData=o}else{l.form=o}}return new Promise((e,t)=>{n(l,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1ClusterRoleBinding");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedRole(e,t,i,a={}){const r=this.basePath+"/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedRole.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedRole.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1Role");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedRoleBinding(e,t,i,a={}){const r=this.basePath+"/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedRoleBinding.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedRoleBinding.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1RoleBinding");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceClusterRole(e,t,i,a,r={}){const s=this.basePath+"/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceClusterRole.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replaceClusterRole.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1alpha1ClusterRole")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1ClusterRole");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceClusterRoleBinding(e,t,i,a,r={}){const s=this.basePath+"/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceClusterRoleBinding.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replaceClusterRoleBinding.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1alpha1ClusterRoleBinding")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1ClusterRoleBinding");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedRole(e,t,i,a,r,s={}){const o=this.basePath+"/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedRole.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedRole.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedRole.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1alpha1Role")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1Role");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedRoleBinding(e,t,i,a,r,s={}){const o=this.basePath+"/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedRoleBinding.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedRoleBinding.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedRoleBinding.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1alpha1RoleBinding")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1RoleBinding");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.RbacAuthorizationV1alpha1Api=RbacAuthorizationV1alpha1Api;var ie;(function(e){e[e["BearerToken"]=0]="BearerToken"})(ie=t.RbacAuthorizationV1beta1ApiApiKeys||(t.RbacAuthorizationV1beta1ApiApiKeys={}));class RbacAuthorizationV1beta1Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[ie[e]].apiKey=t}createClusterRole(e,t,i,a,r={}){const s=this.basePath+"/apis/rbac.authorization.k8s.io/v1beta1/clusterroles";let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter body was null or undefined when calling createClusterRole.")}if(t!==undefined){o["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(e,"V1beta1ClusterRole")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1ClusterRole");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createClusterRoleBinding(e,t,i,a,r={}){const s=this.basePath+"/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings";let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter body was null or undefined when calling createClusterRoleBinding.")}if(t!==undefined){o["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(e,"V1beta1ClusterRoleBinding")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1ClusterRoleBinding");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedRole(e,t,i,a,r,s={}){const o=this.basePath+"/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedRole.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedRole.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1beta1Role")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1Role");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createNamespacedRoleBinding(e,t,i,a,r,s={}){const o=this.basePath+"/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedRoleBinding.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedRoleBinding.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1beta1RoleBinding")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1RoleBinding");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteClusterRole(e,t,i,a,r,s,o,u={}){const l=this.basePath+"/apis/rbac.authorization.k8s.io/v1beta1/clusterroles/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let c={};let d=Object.assign({},this.defaultHeaders);let p={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteClusterRole.")}if(t!==undefined){c["pretty"]=ObjectSerializer.serialize(t,"string")}if(a!==undefined){c["dryRun"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){c["gracePeriodSeconds"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){c["orphanDependents"]=ObjectSerializer.serialize(s,"boolean")}if(o!==undefined){c["propagationPolicy"]=ObjectSerializer.serialize(o,"string")}Object.assign(d,u.headers);let f=false;let h={method:"DELETE",qs:c,headers:d,uri:l,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(h);this.authentications.default.applyToRequest(h);if(Object.keys(p).length){if(f){h.formData=p}else{h.form=p}}return new Promise((e,t)=>{n(h,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteClusterRoleBinding(e,t,i,a,r,s,o,u={}){const l=this.basePath+"/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let c={};let d=Object.assign({},this.defaultHeaders);let p={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteClusterRoleBinding.")}if(t!==undefined){c["pretty"]=ObjectSerializer.serialize(t,"string")}if(a!==undefined){c["dryRun"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){c["gracePeriodSeconds"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){c["orphanDependents"]=ObjectSerializer.serialize(s,"boolean")}if(o!==undefined){c["propagationPolicy"]=ObjectSerializer.serialize(o,"string")}Object.assign(d,u.headers);let f=false;let h={method:"DELETE",qs:c,headers:d,uri:l,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(h);this.authentications.default.applyToRequest(h);if(Object.keys(p).length){if(f){h.formData=p}else{h.form=p}}return new Promise((e,t)=>{n(h,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionClusterRole(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/rbac.authorization.k8s.io/v1beta1/clusterroles";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"DELETE",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionClusterRoleBinding(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"DELETE",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedRole(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedRole.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedRoleBinding(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedRoleBinding.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedRole(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedRole.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedRole.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedRoleBinding(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedRoleBinding.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedRoleBinding.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/apis/rbac.authorization.k8s.io/v1beta1/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listClusterRole(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/rbac.authorization.k8s.io/v1beta1/clusterroles";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1ClusterRoleList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listClusterRoleBinding(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1ClusterRoleBindingList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedRole(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedRole.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1RoleList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedRoleBinding(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedRoleBinding.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1RoleBindingList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listRoleBindingForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/rbac.authorization.k8s.io/v1beta1/rolebindings";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1RoleBindingList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listRoleForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/rbac.authorization.k8s.io/v1beta1/roles";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1RoleList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchClusterRole(e,t,i,a,r={}){const s=this.basePath+"/apis/rbac.authorization.k8s.io/v1beta1/clusterroles/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchClusterRole.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling patchClusterRole.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"any")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1ClusterRole");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchClusterRoleBinding(e,t,i,a,r={}){const s=this.basePath+"/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchClusterRoleBinding.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling patchClusterRoleBinding.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"any")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1ClusterRoleBinding");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedRole(e,t,i,a,r,s={}){const o=this.basePath+"/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedRole.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedRole.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedRole.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1Role");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedRoleBinding(e,t,i,a,r,s={}){const o=this.basePath+"/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedRoleBinding.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedRoleBinding.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedRoleBinding.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1RoleBinding");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readClusterRole(e,t,i={}){const a=this.basePath+"/apis/rbac.authorization.k8s.io/v1beta1/clusterroles/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let r={};let s=Object.assign({},this.defaultHeaders);let o={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readClusterRole.")}if(t!==undefined){r["pretty"]=ObjectSerializer.serialize(t,"string")}Object.assign(s,i.headers);let u=false;let l={method:"GET",qs:r,headers:s,uri:a,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(l);this.authentications.default.applyToRequest(l);if(Object.keys(o).length){if(u){l.formData=o}else{l.form=o}}return new Promise((e,t)=>{n(l,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1ClusterRole");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readClusterRoleBinding(e,t,i={}){const a=this.basePath+"/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let r={};let s=Object.assign({},this.defaultHeaders);let o={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readClusterRoleBinding.")}if(t!==undefined){r["pretty"]=ObjectSerializer.serialize(t,"string")}Object.assign(s,i.headers);let u=false;let l={method:"GET",qs:r,headers:s,uri:a,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(l);this.authentications.default.applyToRequest(l);if(Object.keys(o).length){if(u){l.formData=o}else{l.form=o}}return new Promise((e,t)=>{n(l,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1ClusterRoleBinding");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedRole(e,t,i,a={}){const r=this.basePath+"/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedRole.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedRole.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1Role");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedRoleBinding(e,t,i,a={}){const r=this.basePath+"/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let s={};let o=Object.assign({},this.defaultHeaders);let u={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedRoleBinding.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedRoleBinding.")}if(i!==undefined){s["pretty"]=ObjectSerializer.serialize(i,"string")}Object.assign(o,a.headers);let l=false;let c={method:"GET",qs:s,headers:o,uri:r,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(c);this.authentications.default.applyToRequest(c);if(Object.keys(u).length){if(l){c.formData=u}else{c.form=u}}return new Promise((e,t)=>{n(c,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1RoleBinding");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceClusterRole(e,t,i,a,r={}){const s=this.basePath+"/apis/rbac.authorization.k8s.io/v1beta1/clusterroles/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceClusterRole.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replaceClusterRole.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1beta1ClusterRole")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1ClusterRole");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceClusterRoleBinding(e,t,i,a,r={}){const s=this.basePath+"/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceClusterRoleBinding.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replaceClusterRoleBinding.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1beta1ClusterRoleBinding")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1ClusterRoleBinding");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedRole(e,t,i,a,r,s={}){const o=this.basePath+"/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedRole.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedRole.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedRole.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1beta1Role")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1Role");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedRoleBinding(e,t,i,a,r,s={}){const o=this.basePath+"/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedRoleBinding.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedRoleBinding.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedRoleBinding.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1beta1RoleBinding")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1RoleBinding");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.RbacAuthorizationV1beta1Api=RbacAuthorizationV1beta1Api;var ne;(function(e){e[e["BearerToken"]=0]="BearerToken"})(ne=t.SchedulingApiApiKeys||(t.SchedulingApiApiKeys={}));class SchedulingApi{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[ne[e]].apiKey=t}getAPIGroup(e={}){const t=this.basePath+"/apis/scheduling.k8s.io/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIGroup");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.SchedulingApi=SchedulingApi;var ae;(function(e){e[e["BearerToken"]=0]="BearerToken"})(ae=t.SchedulingV1alpha1ApiApiKeys||(t.SchedulingV1alpha1ApiApiKeys={}));class SchedulingV1alpha1Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[ae[e]].apiKey=t}createPriorityClass(e,t,i,a,r={}){const s=this.basePath+"/apis/scheduling.k8s.io/v1alpha1/priorityclasses";let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter body was null or undefined when calling createPriorityClass.")}if(t!==undefined){o["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(e,"V1alpha1PriorityClass")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1PriorityClass");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionPriorityClass(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/scheduling.k8s.io/v1alpha1/priorityclasses";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"DELETE",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deletePriorityClass(e,t,i,a,r,s,o,u={}){const l=this.basePath+"/apis/scheduling.k8s.io/v1alpha1/priorityclasses/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let c={};let d=Object.assign({},this.defaultHeaders);let p={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deletePriorityClass.")}if(t!==undefined){c["pretty"]=ObjectSerializer.serialize(t,"string")}if(a!==undefined){c["dryRun"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){c["gracePeriodSeconds"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){c["orphanDependents"]=ObjectSerializer.serialize(s,"boolean")}if(o!==undefined){c["propagationPolicy"]=ObjectSerializer.serialize(o,"string")}Object.assign(d,u.headers);let f=false;let h={method:"DELETE",qs:c,headers:d,uri:l,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(h);this.authentications.default.applyToRequest(h);if(Object.keys(p).length){if(f){h.formData=p}else{h.form=p}}return new Promise((e,t)=>{n(h,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/apis/scheduling.k8s.io/v1alpha1/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listPriorityClass(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/scheduling.k8s.io/v1alpha1/priorityclasses";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1PriorityClassList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchPriorityClass(e,t,i,a,r={}){const s=this.basePath+"/apis/scheduling.k8s.io/v1alpha1/priorityclasses/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchPriorityClass.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling patchPriorityClass.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"any")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1PriorityClass");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readPriorityClass(e,t,i,a,r={}){const s=this.basePath+"/apis/scheduling.k8s.io/v1alpha1/priorityclasses/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readPriorityClass.")}if(t!==undefined){o["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){o["exact"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){o["export"]=ObjectSerializer.serialize(a,"boolean")}Object.assign(u,r.headers);let c=false;let d={method:"GET",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1PriorityClass");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replacePriorityClass(e,t,i,a,r={}){const s=this.basePath+"/apis/scheduling.k8s.io/v1alpha1/priorityclasses/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replacePriorityClass.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replacePriorityClass.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1alpha1PriorityClass")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1PriorityClass");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.SchedulingV1alpha1Api=SchedulingV1alpha1Api;var re;(function(e){e[e["BearerToken"]=0]="BearerToken"})(re=t.SchedulingV1beta1ApiApiKeys||(t.SchedulingV1beta1ApiApiKeys={}));class SchedulingV1beta1Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[re[e]].apiKey=t}createPriorityClass(e,t,i,a,r={}){const s=this.basePath+"/apis/scheduling.k8s.io/v1beta1/priorityclasses";let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter body was null or undefined when calling createPriorityClass.")}if(t!==undefined){o["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(e,"V1beta1PriorityClass")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1PriorityClass");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionPriorityClass(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/scheduling.k8s.io/v1beta1/priorityclasses";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"DELETE",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deletePriorityClass(e,t,i,a,r,s,o,u={}){const l=this.basePath+"/apis/scheduling.k8s.io/v1beta1/priorityclasses/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let c={};let d=Object.assign({},this.defaultHeaders);let p={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deletePriorityClass.")}if(t!==undefined){c["pretty"]=ObjectSerializer.serialize(t,"string")}if(a!==undefined){c["dryRun"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){c["gracePeriodSeconds"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){c["orphanDependents"]=ObjectSerializer.serialize(s,"boolean")}if(o!==undefined){c["propagationPolicy"]=ObjectSerializer.serialize(o,"string")}Object.assign(d,u.headers);let f=false;let h={method:"DELETE",qs:c,headers:d,uri:l,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(h);this.authentications.default.applyToRequest(h);if(Object.keys(p).length){if(f){h.formData=p}else{h.form=p}}return new Promise((e,t)=>{n(h,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/apis/scheduling.k8s.io/v1beta1/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listPriorityClass(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/scheduling.k8s.io/v1beta1/priorityclasses";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1PriorityClassList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchPriorityClass(e,t,i,a,r={}){const s=this.basePath+"/apis/scheduling.k8s.io/v1beta1/priorityclasses/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchPriorityClass.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling patchPriorityClass.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"any")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1PriorityClass");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readPriorityClass(e,t,i,a,r={}){const s=this.basePath+"/apis/scheduling.k8s.io/v1beta1/priorityclasses/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readPriorityClass.")}if(t!==undefined){o["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){o["exact"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){o["export"]=ObjectSerializer.serialize(a,"boolean")}Object.assign(u,r.headers);let c=false;let d={method:"GET",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1PriorityClass");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replacePriorityClass(e,t,i,a,r={}){const s=this.basePath+"/apis/scheduling.k8s.io/v1beta1/priorityclasses/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replacePriorityClass.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replacePriorityClass.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1beta1PriorityClass")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1PriorityClass");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.SchedulingV1beta1Api=SchedulingV1beta1Api;var se;(function(e){e[e["BearerToken"]=0]="BearerToken"})(se=t.SettingsApiApiKeys||(t.SettingsApiApiKeys={}));class SettingsApi{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[se[e]].apiKey=t}getAPIGroup(e={}){const t=this.basePath+"/apis/settings.k8s.io/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIGroup");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.SettingsApi=SettingsApi;var oe;(function(e){e[e["BearerToken"]=0]="BearerToken"})(oe=t.SettingsV1alpha1ApiApiKeys||(t.SettingsV1alpha1ApiApiKeys={}));class SettingsV1alpha1Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[oe[e]].apiKey=t}createNamespacedPodPreset(e,t,i,a,r,s={}){const o=this.basePath+"/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling createNamespacedPodPreset.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling createNamespacedPodPreset.")}if(i!==undefined){u["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"POST",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1alpha1PodPreset")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1PodPreset");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionNamespacedPodPreset(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteCollectionNamespacedPodPreset.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"DELETE",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteNamespacedPodPreset(e,t,i,a,r,s,o,u,l={}){const c=this.basePath+"/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let d={};let p=Object.assign({},this.defaultHeaders);let f={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteNamespacedPodPreset.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling deleteNamespacedPodPreset.")}if(i!==undefined){d["pretty"]=ObjectSerializer.serialize(i,"string")}if(r!==undefined){d["dryRun"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){d["gracePeriodSeconds"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){d["orphanDependents"]=ObjectSerializer.serialize(o,"boolean")}if(u!==undefined){d["propagationPolicy"]=ObjectSerializer.serialize(u,"string")}Object.assign(p,l.headers);let h=false;let m={method:"DELETE",qs:d,headers:p,uri:c,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(a,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(m);this.authentications.default.applyToRequest(m);if(Object.keys(f).length){if(h){m.formData=f}else{m.form=f}}return new Promise((e,t)=>{n(m,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/apis/settings.k8s.io/v1alpha1/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listNamespacedPodPreset(e,t,i,a,r,s,o,u,l,c,d={}){const p=this.basePath+"/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets".replace("{"+"namespace"+"}",encodeURIComponent(String(e)));let f={};let h=Object.assign({},this.defaultHeaders);let m={};if(e===null||e===undefined){throw new Error("Required parameter namespace was null or undefined when calling listNamespacedPodPreset.")}if(t!==undefined){f["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){f["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){f["continue"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){f["fieldSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){f["labelSelector"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){f["limit"]=ObjectSerializer.serialize(o,"number")}if(u!==undefined){f["resourceVersion"]=ObjectSerializer.serialize(u,"string")}if(l!==undefined){f["timeoutSeconds"]=ObjectSerializer.serialize(l,"number")}if(c!==undefined){f["watch"]=ObjectSerializer.serialize(c,"boolean")}Object.assign(h,d.headers);let b=false;let g={method:"GET",qs:f,headers:h,uri:p,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(g);this.authentications.default.applyToRequest(g);if(Object.keys(m).length){if(b){g.formData=m}else{g.form=m}}return new Promise((e,t)=>{n(g,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1PodPresetList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listPodPresetForAllNamespaces(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/settings.k8s.io/v1alpha1/podpresets";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["continue"]=ObjectSerializer.serialize(e,"string")}if(t!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){p["labelSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["limit"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){p["pretty"]=ObjectSerializer.serialize(s,"string")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1PodPresetList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchNamespacedPodPreset(e,t,i,a,r,s={}){const o=this.basePath+"/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchNamespacedPodPreset.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling patchNamespacedPodPreset.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling patchNamespacedPodPreset.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PATCH",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"any")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1PodPreset");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readNamespacedPodPreset(e,t,i,a,r,s={}){const o=this.basePath+"/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readNamespacedPodPreset.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling readNamespacedPodPreset.")}if(i!==undefined){u["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){u["exact"]=ObjectSerializer.serialize(a,"boolean")}if(r!==undefined){u["export"]=ObjectSerializer.serialize(r,"boolean")}Object.assign(l,s.headers);let d=false;let p={method:"GET",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1PodPreset");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceNamespacedPodPreset(e,t,i,a,r,s={}){const o=this.basePath+"/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e))).replace("{"+"namespace"+"}",encodeURIComponent(String(t)));let u={};let l=Object.assign({},this.defaultHeaders);let c={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceNamespacedPodPreset.")}if(t===null||t===undefined){throw new Error("Required parameter namespace was null or undefined when calling replaceNamespacedPodPreset.")}if(i===null||i===undefined){throw new Error("Required parameter body was null or undefined when calling replaceNamespacedPodPreset.")}if(a!==undefined){u["pretty"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){u["dryRun"]=ObjectSerializer.serialize(r,"string")}Object.assign(l,s.headers);let d=false;let p={method:"PUT",qs:u,headers:l,uri:o,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1alpha1PodPreset")};this.authentications.BearerToken.applyToRequest(p);this.authentications.default.applyToRequest(p);if(Object.keys(c).length){if(d){p.formData=c}else{p.form=c}}return new Promise((e,t)=>{n(p,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1PodPreset");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.SettingsV1alpha1Api=SettingsV1alpha1Api;var ue;(function(e){e[e["BearerToken"]=0]="BearerToken"})(ue=t.StorageApiApiKeys||(t.StorageApiApiKeys={}));class StorageApi{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[ue[e]].apiKey=t}getAPIGroup(e={}){const t=this.basePath+"/apis/storage.k8s.io/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIGroup");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.StorageApi=StorageApi;var le;(function(e){e[e["BearerToken"]=0]="BearerToken"})(le=t.StorageV1ApiApiKeys||(t.StorageV1ApiApiKeys={}));class StorageV1Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[le[e]].apiKey=t}createStorageClass(e,t,i,a,r={}){const s=this.basePath+"/apis/storage.k8s.io/v1/storageclasses";let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter body was null or undefined when calling createStorageClass.")}if(t!==undefined){o["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(e,"V1StorageClass")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1StorageClass");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createVolumeAttachment(e,t,i,a,r={}){const s=this.basePath+"/apis/storage.k8s.io/v1/volumeattachments";let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter body was null or undefined when calling createVolumeAttachment.")}if(t!==undefined){o["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(e,"V1VolumeAttachment")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1VolumeAttachment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionStorageClass(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/storage.k8s.io/v1/storageclasses";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"DELETE",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionVolumeAttachment(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/storage.k8s.io/v1/volumeattachments";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"DELETE",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteStorageClass(e,t,i,a,r,s,o,u={}){const l=this.basePath+"/apis/storage.k8s.io/v1/storageclasses/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let c={};let d=Object.assign({},this.defaultHeaders);let p={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteStorageClass.")}if(t!==undefined){c["pretty"]=ObjectSerializer.serialize(t,"string")}if(a!==undefined){c["dryRun"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){c["gracePeriodSeconds"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){c["orphanDependents"]=ObjectSerializer.serialize(s,"boolean")}if(o!==undefined){c["propagationPolicy"]=ObjectSerializer.serialize(o,"string")}Object.assign(d,u.headers);let f=false;let h={method:"DELETE",qs:c,headers:d,uri:l,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(h);this.authentications.default.applyToRequest(h);if(Object.keys(p).length){if(f){h.formData=p}else{h.form=p}}return new Promise((e,t)=>{n(h,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteVolumeAttachment(e,t,i,a,r,s,o,u={}){const l=this.basePath+"/apis/storage.k8s.io/v1/volumeattachments/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let c={};let d=Object.assign({},this.defaultHeaders);let p={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteVolumeAttachment.")}if(t!==undefined){c["pretty"]=ObjectSerializer.serialize(t,"string")}if(a!==undefined){c["dryRun"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){c["gracePeriodSeconds"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){c["orphanDependents"]=ObjectSerializer.serialize(s,"boolean")}if(o!==undefined){c["propagationPolicy"]=ObjectSerializer.serialize(o,"string")}Object.assign(d,u.headers);let f=false;let h={method:"DELETE",qs:c,headers:d,uri:l,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(h);this.authentications.default.applyToRequest(h);if(Object.keys(p).length){if(f){h.formData=p}else{h.form=p}}return new Promise((e,t)=>{n(h,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/apis/storage.k8s.io/v1/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listStorageClass(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/storage.k8s.io/v1/storageclasses";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1StorageClassList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listVolumeAttachment(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/storage.k8s.io/v1/volumeattachments";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1VolumeAttachmentList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchStorageClass(e,t,i,a,r={}){const s=this.basePath+"/apis/storage.k8s.io/v1/storageclasses/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchStorageClass.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling patchStorageClass.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"any")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1StorageClass");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchVolumeAttachment(e,t,i,a,r={}){const s=this.basePath+"/apis/storage.k8s.io/v1/volumeattachments/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchVolumeAttachment.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling patchVolumeAttachment.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"any")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1VolumeAttachment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchVolumeAttachmentStatus(e,t,i,a,r={}){const s=this.basePath+"/apis/storage.k8s.io/v1/volumeattachments/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchVolumeAttachmentStatus.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling patchVolumeAttachmentStatus.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"any")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1VolumeAttachment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readStorageClass(e,t,i,a,r={}){const s=this.basePath+"/apis/storage.k8s.io/v1/storageclasses/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readStorageClass.")}if(t!==undefined){o["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){o["exact"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){o["export"]=ObjectSerializer.serialize(a,"boolean")}Object.assign(u,r.headers);let c=false;let d={method:"GET",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1StorageClass");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readVolumeAttachment(e,t,i,a,r={}){const s=this.basePath+"/apis/storage.k8s.io/v1/volumeattachments/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readVolumeAttachment.")}if(t!==undefined){o["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){o["exact"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){o["export"]=ObjectSerializer.serialize(a,"boolean")}Object.assign(u,r.headers);let c=false;let d={method:"GET",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1VolumeAttachment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readVolumeAttachmentStatus(e,t,i={}){const a=this.basePath+"/apis/storage.k8s.io/v1/volumeattachments/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e)));let r={};let s=Object.assign({},this.defaultHeaders);let o={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readVolumeAttachmentStatus.")}if(t!==undefined){r["pretty"]=ObjectSerializer.serialize(t,"string")}Object.assign(s,i.headers);let u=false;let l={method:"GET",qs:r,headers:s,uri:a,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(l);this.authentications.default.applyToRequest(l);if(Object.keys(o).length){if(u){l.formData=o}else{l.form=o}}return new Promise((e,t)=>{n(l,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1VolumeAttachment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceStorageClass(e,t,i,a,r={}){const s=this.basePath+"/apis/storage.k8s.io/v1/storageclasses/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceStorageClass.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replaceStorageClass.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1StorageClass")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1StorageClass");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceVolumeAttachment(e,t,i,a,r={}){const s=this.basePath+"/apis/storage.k8s.io/v1/volumeattachments/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceVolumeAttachment.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replaceVolumeAttachment.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1VolumeAttachment")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1VolumeAttachment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceVolumeAttachmentStatus(e,t,i,a,r={}){const s=this.basePath+"/apis/storage.k8s.io/v1/volumeattachments/{name}/status".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceVolumeAttachmentStatus.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replaceVolumeAttachmentStatus.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1VolumeAttachment")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1VolumeAttachment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.StorageV1Api=StorageV1Api;var ce;(function(e){e[e["BearerToken"]=0]="BearerToken"})(ce=t.StorageV1alpha1ApiApiKeys||(t.StorageV1alpha1ApiApiKeys={}));class StorageV1alpha1Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[ce[e]].apiKey=t}createVolumeAttachment(e,t,i,a,r={}){const s=this.basePath+"/apis/storage.k8s.io/v1alpha1/volumeattachments";let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter body was null or undefined when calling createVolumeAttachment.")}if(t!==undefined){o["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(e,"V1alpha1VolumeAttachment")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1VolumeAttachment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionVolumeAttachment(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/storage.k8s.io/v1alpha1/volumeattachments";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"DELETE",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteVolumeAttachment(e,t,i,a,r,s,o,u={}){const l=this.basePath+"/apis/storage.k8s.io/v1alpha1/volumeattachments/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let c={};let d=Object.assign({},this.defaultHeaders);let p={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteVolumeAttachment.")}if(t!==undefined){c["pretty"]=ObjectSerializer.serialize(t,"string")}if(a!==undefined){c["dryRun"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){c["gracePeriodSeconds"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){c["orphanDependents"]=ObjectSerializer.serialize(s,"boolean")}if(o!==undefined){c["propagationPolicy"]=ObjectSerializer.serialize(o,"string")}Object.assign(d,u.headers);let f=false;let h={method:"DELETE",qs:c,headers:d,uri:l,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(h);this.authentications.default.applyToRequest(h);if(Object.keys(p).length){if(f){h.formData=p}else{h.form=p}}return new Promise((e,t)=>{n(h,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/apis/storage.k8s.io/v1alpha1/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listVolumeAttachment(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/storage.k8s.io/v1alpha1/volumeattachments";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1VolumeAttachmentList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchVolumeAttachment(e,t,i,a,r={}){const s=this.basePath+"/apis/storage.k8s.io/v1alpha1/volumeattachments/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchVolumeAttachment.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling patchVolumeAttachment.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"any")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1VolumeAttachment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readVolumeAttachment(e,t,i,a,r={}){const s=this.basePath+"/apis/storage.k8s.io/v1alpha1/volumeattachments/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readVolumeAttachment.")}if(t!==undefined){o["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){o["exact"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){o["export"]=ObjectSerializer.serialize(a,"boolean")}Object.assign(u,r.headers);let c=false;let d={method:"GET",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1VolumeAttachment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceVolumeAttachment(e,t,i,a,r={}){const s=this.basePath+"/apis/storage.k8s.io/v1alpha1/volumeattachments/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceVolumeAttachment.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replaceVolumeAttachment.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1alpha1VolumeAttachment")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1alpha1VolumeAttachment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.StorageV1alpha1Api=StorageV1alpha1Api;var de;(function(e){e[e["BearerToken"]=0]="BearerToken"})(de=t.StorageV1beta1ApiApiKeys||(t.StorageV1beta1ApiApiKeys={}));class StorageV1beta1Api{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[de[e]].apiKey=t}createStorageClass(e,t,i,a,r={}){const s=this.basePath+"/apis/storage.k8s.io/v1beta1/storageclasses";let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter body was null or undefined when calling createStorageClass.")}if(t!==undefined){o["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(e,"V1beta1StorageClass")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1StorageClass");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}createVolumeAttachment(e,t,i,a,r={}){const s=this.basePath+"/apis/storage.k8s.io/v1beta1/volumeattachments";let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter body was null or undefined when calling createVolumeAttachment.")}if(t!==undefined){o["includeUninitialized"]=ObjectSerializer.serialize(t,"boolean")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"POST",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(e,"V1beta1VolumeAttachment")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1VolumeAttachment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionStorageClass(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/storage.k8s.io/v1beta1/storageclasses";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"DELETE",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteCollectionVolumeAttachment(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/storage.k8s.io/v1beta1/volumeattachments";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"DELETE",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteStorageClass(e,t,i,a,r,s,o,u={}){const l=this.basePath+"/apis/storage.k8s.io/v1beta1/storageclasses/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let c={};let d=Object.assign({},this.defaultHeaders);let p={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteStorageClass.")}if(t!==undefined){c["pretty"]=ObjectSerializer.serialize(t,"string")}if(a!==undefined){c["dryRun"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){c["gracePeriodSeconds"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){c["orphanDependents"]=ObjectSerializer.serialize(s,"boolean")}if(o!==undefined){c["propagationPolicy"]=ObjectSerializer.serialize(o,"string")}Object.assign(d,u.headers);let f=false;let h={method:"DELETE",qs:c,headers:d,uri:l,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(h);this.authentications.default.applyToRequest(h);if(Object.keys(p).length){if(f){h.formData=p}else{h.form=p}}return new Promise((e,t)=>{n(h,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}deleteVolumeAttachment(e,t,i,a,r,s,o,u={}){const l=this.basePath+"/apis/storage.k8s.io/v1beta1/volumeattachments/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let c={};let d=Object.assign({},this.defaultHeaders);let p={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling deleteVolumeAttachment.")}if(t!==undefined){c["pretty"]=ObjectSerializer.serialize(t,"string")}if(a!==undefined){c["dryRun"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){c["gracePeriodSeconds"]=ObjectSerializer.serialize(r,"number")}if(s!==undefined){c["orphanDependents"]=ObjectSerializer.serialize(s,"boolean")}if(o!==undefined){c["propagationPolicy"]=ObjectSerializer.serialize(o,"string")}Object.assign(d,u.headers);let f=false;let h={method:"DELETE",qs:c,headers:d,uri:l,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(i,"V1DeleteOptions")};this.authentications.BearerToken.applyToRequest(h);this.authentications.default.applyToRequest(h);if(Object.keys(p).length){if(f){h.formData=p}else{h.form=p}}return new Promise((e,t)=>{n(h,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1Status");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}getAPIResources(e={}){const t=this.basePath+"/apis/storage.k8s.io/v1beta1/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1APIResourceList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listStorageClass(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/storage.k8s.io/v1beta1/storageclasses";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1StorageClassList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}listVolumeAttachment(e,t,i,a,r,s,o,u,l,c={}){const d=this.basePath+"/apis/storage.k8s.io/v1beta1/volumeattachments";let p={};let f=Object.assign({},this.defaultHeaders);let h={};if(e!==undefined){p["includeUninitialized"]=ObjectSerializer.serialize(e,"boolean")}if(t!==undefined){p["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){p["continue"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){p["fieldSelector"]=ObjectSerializer.serialize(a,"string")}if(r!==undefined){p["labelSelector"]=ObjectSerializer.serialize(r,"string")}if(s!==undefined){p["limit"]=ObjectSerializer.serialize(s,"number")}if(o!==undefined){p["resourceVersion"]=ObjectSerializer.serialize(o,"string")}if(u!==undefined){p["timeoutSeconds"]=ObjectSerializer.serialize(u,"number")}if(l!==undefined){p["watch"]=ObjectSerializer.serialize(l,"boolean")}Object.assign(f,c.headers);let m=false;let b={method:"GET",qs:p,headers:f,uri:d,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(b);this.authentications.default.applyToRequest(b);if(Object.keys(h).length){if(m){b.formData=h}else{b.form=h}}return new Promise((e,t)=>{n(b,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1VolumeAttachmentList");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchStorageClass(e,t,i,a,r={}){const s=this.basePath+"/apis/storage.k8s.io/v1beta1/storageclasses/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchStorageClass.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling patchStorageClass.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"any")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1StorageClass");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}patchVolumeAttachment(e,t,i,a,r={}){const s=this.basePath+"/apis/storage.k8s.io/v1beta1/volumeattachments/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling patchVolumeAttachment.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling patchVolumeAttachment.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PATCH",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"any")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1VolumeAttachment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readStorageClass(e,t,i,a,r={}){const s=this.basePath+"/apis/storage.k8s.io/v1beta1/storageclasses/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readStorageClass.")}if(t!==undefined){o["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){o["exact"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){o["export"]=ObjectSerializer.serialize(a,"boolean")}Object.assign(u,r.headers);let c=false;let d={method:"GET",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1StorageClass");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}readVolumeAttachment(e,t,i,a,r={}){const s=this.basePath+"/apis/storage.k8s.io/v1beta1/volumeattachments/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling readVolumeAttachment.")}if(t!==undefined){o["pretty"]=ObjectSerializer.serialize(t,"string")}if(i!==undefined){o["exact"]=ObjectSerializer.serialize(i,"boolean")}if(a!==undefined){o["export"]=ObjectSerializer.serialize(a,"boolean")}Object.assign(u,r.headers);let c=false;let d={method:"GET",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1VolumeAttachment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceStorageClass(e,t,i,a,r={}){const s=this.basePath+"/apis/storage.k8s.io/v1beta1/storageclasses/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceStorageClass.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replaceStorageClass.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1beta1StorageClass")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1StorageClass");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}replaceVolumeAttachment(e,t,i,a,r={}){const s=this.basePath+"/apis/storage.k8s.io/v1beta1/volumeattachments/{name}".replace("{"+"name"+"}",encodeURIComponent(String(e)));let o={};let u=Object.assign({},this.defaultHeaders);let l={};if(e===null||e===undefined){throw new Error("Required parameter name was null or undefined when calling replaceVolumeAttachment.")}if(t===null||t===undefined){throw new Error("Required parameter body was null or undefined when calling replaceVolumeAttachment.")}if(i!==undefined){o["pretty"]=ObjectSerializer.serialize(i,"string")}if(a!==undefined){o["dryRun"]=ObjectSerializer.serialize(a,"string")}Object.assign(u,r.headers);let c=false;let d={method:"PUT",qs:o,headers:u,uri:s,useQuerystring:this._useQuerystring,json:true,body:ObjectSerializer.serialize(t,"V1beta1VolumeAttachment")};this.authentications.BearerToken.applyToRequest(d);this.authentications.default.applyToRequest(d);if(Object.keys(l).length){if(c){d.formData=l}else{d.form=l}}return new Promise((e,t)=>{n(d,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"V1beta1VolumeAttachment");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.StorageV1beta1Api=StorageV1beta1Api;var pe;(function(e){e[e["BearerToken"]=0]="BearerToken"})(pe=t.VersionApiApiKeys||(t.VersionApiApiKeys={}));class VersionApi{constructor(e,t,i){this._basePath=a;this.defaultHeaders={};this._useQuerystring=false;this.authentications={default:new VoidAuth,BearerToken:new ApiKeyAuth("header","authorization")};if(t){if(i){this.basePath=i}}else{if(e){this.basePath=e}}}set useQuerystring(e){this._useQuerystring=e}set basePath(e){this._basePath=e}get basePath(){return this._basePath}setDefaultAuthentication(e){this.authentications.default=e}setApiKey(e,t){this.authentications[pe[e]].apiKey=t}getCode(e={}){const t=this.basePath+"/version/";let i={};let a=Object.assign({},this.defaultHeaders);let r={};Object.assign(a,e.headers);let s=false;let o={method:"GET",qs:i,headers:a,uri:t,useQuerystring:this._useQuerystring,json:true};this.authentications.BearerToken.applyToRequest(o);this.authentications.default.applyToRequest(o);if(Object.keys(r).length){if(s){o.formData=r}else{o.form=r}}return new Promise((e,t)=>{n(o,(i,n,a)=>{if(i){t(i)}else{a=ObjectSerializer.deserialize(a,"VersionInfo");if(n.statusCode&&n.statusCode>=200&&n.statusCode<=299){e({response:n,body:a})}else{t({response:n,body:a})}}})})}}t.VersionApi=VersionApi},,,function(e){e.exports=require("buffer")},,function(e){e.exports=(()=>Math.floor(Date.now()/1e3))},,,function(e,t,i){const n=i(874);const a=(e,t,i)=>n(e,t,i)===0;e.exports=a},,,function(e,t,i){"use strict";const n=i(353);const a=i(903);const r=i(104);const{kStatusCode:s,NOOP:o}=i(799);const u=Buffer.from([0,0,255,255]);const l=Buffer.from([0]);const c=Symbol("permessage-deflate");const d=Symbol("total-length");const p=Symbol("callback");const f=Symbol("buffers");const h=Symbol("error");let m;class PerMessageDeflate{constructor(e,t,i){this._maxPayload=i|0;this._options=e||{};this._threshold=this._options.threshold!==undefined?this._options.threshold:1024;this._isServer=!!t;this._deflate=null;this._inflate=null;this.params=null;if(!m){const e=this._options.concurrencyLimit!==undefined?this._options.concurrencyLimit:10;m=new n({concurrency:e})}}static get extensionName(){return"permessage-deflate"}offer(){const e={};if(this._options.serverNoContextTakeover){e.server_no_context_takeover=true}if(this._options.clientNoContextTakeover){e.client_no_context_takeover=true}if(this._options.serverMaxWindowBits){e.server_max_window_bits=this._options.serverMaxWindowBits}if(this._options.clientMaxWindowBits){e.client_max_window_bits=this._options.clientMaxWindowBits}else if(this._options.clientMaxWindowBits==null){e.client_max_window_bits=true}return e}accept(e){e=this.normalizeParams(e);this.params=this._isServer?this.acceptAsServer(e):this.acceptAsClient(e);return this.params}cleanup(){if(this._inflate){this._inflate.close();this._inflate=null}if(this._deflate){this._deflate.close();this._deflate=null}}acceptAsServer(e){const t=this._options;const i=e.find(e=>{if(t.serverNoContextTakeover===false&&e.server_no_context_takeover||e.server_max_window_bits&&(t.serverMaxWindowBits===false||typeof t.serverMaxWindowBits==="number"&&t.serverMaxWindowBits>e.server_max_window_bits)||typeof t.clientMaxWindowBits==="number"&&!e.client_max_window_bits){return false}return true});if(!i){throw new Error("None of the extension offers can be accepted")}if(t.serverNoContextTakeover){i.server_no_context_takeover=true}if(t.clientNoContextTakeover){i.client_no_context_takeover=true}if(typeof t.serverMaxWindowBits==="number"){i.server_max_window_bits=t.serverMaxWindowBits}if(typeof t.clientMaxWindowBits==="number"){i.client_max_window_bits=t.clientMaxWindowBits}else if(i.client_max_window_bits===true||t.clientMaxWindowBits===false){delete i.client_max_window_bits}return i}acceptAsClient(e){const t=e[0];if(this._options.clientNoContextTakeover===false&&t.client_no_context_takeover){throw new Error('Unexpected parameter "client_no_context_takeover"')}if(!t.client_max_window_bits){if(typeof this._options.clientMaxWindowBits==="number"){t.client_max_window_bits=this._options.clientMaxWindowBits}}else if(this._options.clientMaxWindowBits===false||typeof this._options.clientMaxWindowBits==="number"&&t.client_max_window_bits>this._options.clientMaxWindowBits){throw new Error('Unexpected or invalid parameter "client_max_window_bits"')}return t}normalizeParams(e){e.forEach(e=>{Object.keys(e).forEach(t=>{var i=e[t];if(i.length>1){throw new Error(`Parameter "${t}" must have only a single value`)}i=i[0];if(t==="client_max_window_bits"){if(i!==true){const e=+i;if(!Number.isInteger(e)||e<8||e>15){throw new TypeError(`Invalid value for parameter "${t}": ${i}`)}i=e}else if(!this._isServer){throw new TypeError(`Invalid value for parameter "${t}": ${i}`)}}else if(t==="server_max_window_bits"){const e=+i;if(!Number.isInteger(e)||e<8||e>15){throw new TypeError(`Invalid value for parameter "${t}": ${i}`)}i=e}else if(t==="client_no_context_takeover"||t==="server_no_context_takeover"){if(i!==true){throw new TypeError(`Invalid value for parameter "${t}": ${i}`)}}else{throw new Error(`Unknown parameter "${t}"`)}e[t]=i})});return e}decompress(e,t,i){m.push(n=>{this._decompress(e,t,(e,t)=>{n();i(e,t)})})}compress(e,t,i){m.push(n=>{this._compress(e,t,(e,t)=>{n();i(e,t)})})}_decompress(e,t,i){const n=this._isServer?"client":"server";if(!this._inflate){const e=`${n}_max_window_bits`;const t=typeof this.params[e]!=="number"?a.Z_DEFAULT_WINDOWBITS:this.params[e];this._inflate=a.createInflateRaw(Object.assign({},this._options.zlibInflateOptions,{windowBits:t}));this._inflate[c]=this;this._inflate[d]=0;this._inflate[f]=[];this._inflate.on("error",inflateOnError);this._inflate.on("data",inflateOnData)}this._inflate[p]=i;this._inflate.write(e);if(t)this._inflate.write(u);this._inflate.flush(()=>{const e=this._inflate[h];if(e){this._inflate.close();this._inflate=null;i(e);return}const a=r.concat(this._inflate[f],this._inflate[d]);if(t&&this.params[`${n}_no_context_takeover`]){this._inflate.close();this._inflate=null}else{this._inflate[d]=0;this._inflate[f]=[]}i(null,a)})}_compress(e,t,i){if(!e||e.length===0){process.nextTick(i,null,l);return}const n=this._isServer?"server":"client";if(!this._deflate){const e=`${n}_max_window_bits`;const t=typeof this.params[e]!=="number"?a.Z_DEFAULT_WINDOWBITS:this.params[e];this._deflate=a.createDeflateRaw(Object.assign({},this._options.zlibDeflateOptions,{windowBits:t}));this._deflate[d]=0;this._deflate[f]=[];this._deflate.on("error",o);this._deflate.on("data",deflateOnData)}this._deflate.write(e);this._deflate.flush(a.Z_SYNC_FLUSH,()=>{if(!this._deflate){return}var e=r.concat(this._deflate[f],this._deflate[d]);if(t)e=e.slice(0,e.length-4);if(t&&this.params[`${n}_no_context_takeover`]){this._deflate.close();this._deflate=null}else{this._deflate[d]=0;this._deflate[f]=[]}i(null,e)})}}e.exports=PerMessageDeflate;function deflateOnData(e){this[f].push(e);this[d]+=e.length}function inflateOnData(e){this[d]+=e.length;if(this[c]._maxPayload<1||this[d]<=this[c]._maxPayload){this[f].push(e);return}this[h]=new RangeError("Max payload size exceeded");this[h][s]=1009;this.removeListener("data",inflateOnData);this.reset()}function inflateOnError(e){this[c]._inflate=null;e[s]=1007;this[p](e)}},function(e,t,i){e.exports=realpath;realpath.realpath=realpath;realpath.sync=realpathSync;realpath.realpathSync=realpathSync;realpath.monkeypatch=monkeypatch;realpath.unmonkeypatch=unmonkeypatch;var n=i(747);var a=n.realpath;var r=n.realpathSync;var s=process.version;var o=/^v[0-5]\./.test(s);var u=i(117);function newError(e){return e&&e.syscall==="realpath"&&(e.code==="ELOOP"||e.code==="ENOMEM"||e.code==="ENAMETOOLONG")}function realpath(e,t,i){if(o){return a(e,t,i)}if(typeof t==="function"){i=t;t=null}a(e,t,function(n,a){if(newError(n)){u.realpath(e,t,i)}else{i(n,a)}})}function realpathSync(e,t){if(o){return r(e,t)}try{return r(e,t)}catch(i){if(newError(i)){return u.realpathSync(e,t)}else{throw i}}}function monkeypatch(){n.realpath=realpath;n.realpathSync=realpathSync}function unmonkeypatch(){n.realpath=a;n.realpathSync=r}},function(e,t,i){"use strict";const n=i(614);const a=i(205);const r=e=>{const t={redis:"@keyv/redis",mongodb:"@keyv/mongo",mongo:"@keyv/mongo",sqlite:"@keyv/sqlite",postgresql:"@keyv/postgres",postgres:"@keyv/postgres",mysql:"@keyv/mysql"};if(e.adapter||e.uri){const i=e.adapter||/^[^:]*/.exec(e.uri)[0];return new(require(t[i]))(e)}return new Map};class Keyv extends n{constructor(e,t){super();this.opts=Object.assign({namespace:"keyv",serialize:a.stringify,deserialize:a.parse},typeof e==="string"?{uri:e}:e,t);if(!this.opts.store){const e=Object.assign({},this.opts);this.opts.store=r(e)}if(typeof this.opts.store.on==="function"){this.opts.store.on("error",e=>this.emit("error",e))}this.opts.store.namespace=this.opts.namespace}_getKeyPrefix(e){return`${this.opts.namespace}:${e}`}get(e){e=this._getKeyPrefix(e);const t=this.opts.store;return Promise.resolve().then(()=>t.get(e)).then(t=>{t=typeof t==="string"?this.opts.deserialize(t):t;if(t===undefined){return undefined}if(typeof t.expires==="number"&&Date.now()>t.expires){this.delete(e);return undefined}return t.value})}set(e,t,i){e=this._getKeyPrefix(e);if(typeof i==="undefined"){i=this.opts.ttl}if(i===0){i=undefined}const n=this.opts.store;return Promise.resolve().then(()=>{const a=typeof i==="number"?Date.now()+i:null;t={value:t,expires:a};return n.set(e,this.opts.serialize(t),i)}).then(()=>true)}delete(e){e=this._getKeyPrefix(e);const t=this.opts.store;return Promise.resolve().then(()=>t.delete(e))}clear(){const e=this.opts.store;return Promise.resolve().then(()=>e.clear())}}e.exports=Keyv},,,function(e,t,i){var n=i(896);var a=i(621);e.exports=expandTop;var r="\0SLASH"+Math.random()+"\0";var s="\0OPEN"+Math.random()+"\0";var o="\0CLOSE"+Math.random()+"\0";var u="\0COMMA"+Math.random()+"\0";var l="\0PERIOD"+Math.random()+"\0";function numeric(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function escapeBraces(e){return e.split("\\\\").join(r).split("\\{").join(s).split("\\}").join(o).split("\\,").join(u).split("\\.").join(l)}function unescapeBraces(e){return e.split(r).join("\\").split(s).join("{").split(o).join("}").split(u).join(",").split(l).join(".")}function parseCommaParts(e){if(!e)return[""];var t=[];var i=a("{","}",e);if(!i)return e.split(",");var n=i.pre;var r=i.body;var s=i.post;var o=n.split(",");o[o.length-1]+="{"+r+"}";var u=parseCommaParts(s);if(s.length){o[o.length-1]+=u.shift();o.push.apply(o,u)}t.push.apply(t,o);return t}function expandTop(e){if(!e)return[];if(e.substr(0,2)==="{}"){e="\\{\\}"+e.substr(2)}return expand(escapeBraces(e),true).map(unescapeBraces)}function identity(e){return e}function embrace(e){return"{"+e+"}"}function isPadded(e){return/^-?0\d/.test(e)}function lte(e,t){return e<=t}function gte(e,t){return e>=t}function expand(e,t){var i=[];var r=a("{","}",e);if(!r||/\$$/.test(r.pre))return[e];var s=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(r.body);var u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(r.body);var l=s||u;var c=r.body.indexOf(",")>=0;if(!l&&!c){if(r.post.match(/,.*\}/)){e=r.pre+"{"+r.body+o+r.post;return expand(e)}return[e]}var d;if(l){d=r.body.split(/\.\./)}else{d=parseCommaParts(r.body);if(d.length===1){d=expand(d[0],false).map(embrace);if(d.length===1){var p=r.post.length?expand(r.post,false):[""];return p.map(function(e){return r.pre+d[0]+e})}}}var f=r.pre;var p=r.post.length?expand(r.post,false):[""];var h;if(l){var m=numeric(d[0]);var b=numeric(d[1]);var g=Math.max(d[0].length,d[1].length);var y=d.length==3?Math.abs(numeric(d[2])):1;var S=lte;var w=b0){var k=new Array(O+1).join("0");if(z<0)j="-"+k+j.slice(1);else j=k+j}}}h.push(j)}}else{h=n(d,function(e){return expand(e,false)})}for(var C=0;C{try{t=new n(t,i)}catch(e){return false}return t.test(e)};e.exports=a},,function(e,t,i){const n=i(867);const a=i(696);class Endpoint{constructor(e){this.name=e.name;this.splits=e.splits;this.pathItem=e.pathItem}}class Component{constructor(e){e=Object.assign({splits:[],parameters:[]},e);let t;if(e.templated){t=(i=>{const n=t.splits.concat([i]);const a=new this.constructor({backend:t.backend,getNames:e.getNames,splits:n,parameters:e.parameters.concat([i])});t.templatedEndpoints.forEach(e=>{a._addEndpoint(e)});return a});t.templatedEndpoints=[];Object.setPrototypeOf(t,this.constructor.prototype)}else{t=this;t.templatedEndpoints=null}t.parameters=e.parameters;t.templated=e.templated;t.splits=e.splits.slice();t.backend=e.backend;t.getNames=e.getNames||(e=>[e]);t.children=[];return t}getPath(){return`/${this.splits.join("/")}`}getPathnameParameters(){const e=this.swaggerName.split("/").filter(e=>e.startsWith("{")).map(e=>e.slice(1,-1));return e.reduce((e,t,i)=>{e[t]=this.parameters[i];return e},{})}_addSpec(e){Object.keys(e.paths).map(t=>{const i=/(^\/)|(\/$)/g;const n=t.replace(i,"").split("/");return new Endpoint({name:t,splits:n,pathItem:e.paths[t]})}).sort((e,t)=>{return t.splits.length-e.splits.length}).forEach(e=>{this._addEndpoint(e)})}_addChild(e,t){this.getNames(e,this.splits).forEach(e=>{this[e]=t;this.children.push(e)})}_walkSplits(e){const t=this.splits.slice();const i=e.splits.slice();let n=this;while(i.length){const a=i.shift();t.push(a);let r=null;if(i.length&&i[0].startsWith("{")){r=i.shift().slice(1,-1)}if(!(a in n)){const e=new this.constructor({getNames:this.getNames,backend:this.backend,parameters:this.parameters,templated:Boolean(r),splits:t});n._addChild(a,e)}n=n[a];if(r){if(!n.templated){throw new Error("Created Component, but require templated one. "+"This is a bug. Please report: "+"https://github.com/silasbw/fluent-openapi/issues")}n.templatedEndpoints.push(new Endpoint({name:e.name,splits:i,pathItem:e.pathItem}));return null}}return n}_addEndpoint(e){const t=this._walkSplits(e);if(!t)return null;t.pathItemObject=e.pathItem;t.swaggerName=e.name;const i=["get","put","post","delete","patch"];i.filter(t=>e.pathItem[t]).forEach(e=>{t[e]=t["_"+e];if(e==="get")t.getStream=t._getStream});return t}_requestAsync(e,t){return this.backend.http(Object.assign({method:e,pathItemObject:this.pathItemObject,pathname:this.getPath(),pathnameParameters:this.getPathnameParameters()},t))}_getStream(e){return this._requestAsync("GET",Object.assign({stream:true},e))}_get(e){return this._requestAsync("GET",e)}_delete(e){return this._requestAsync("DELETE",e)}_patch(e){return this._requestAsync("PATCH",n({headers:{"content-type":"application/strategic-merge-patch+json"}},e,{isMergeableObject:a}))}_post(e){return this._requestAsync("POST",n({headers:{"content-type":"application/json"}},e,{isMergeableObject:a}))}_put(e){return this._requestAsync("PUT",n({headers:{"content-type":"application/json"}},e,{isMergeableObject:a}))}}e.exports=Component},function(e,t){function reverse(e){const t={};Object.keys(e).forEach(function(i){if((i|0)==i){i=i|0}const n=e[i];t[n]=i});return t}t.tagClass={0:"universal",1:"application",2:"context",3:"private"};t.tagClassByName=reverse(t.tagClass);t.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"};t.tagByName=reverse(t.tag)},function(e,t,i){const n=i(508);e.exports=n.KubeConfig},function(e){if(typeof Object.create==="function"){e.exports=function inherits(e,t){if(t){e.super_=t;e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}})}}}else{e.exports=function inherits(e,t){if(t){e.super_=t;var i=function(){};i.prototype=t.prototype;e.prototype=new i;e.prototype.constructor=e}}}},,,,function(e){e.exports={$id:"log.json#",$schema:"http://json-schema.org/draft-06/schema#",type:"object",required:["version","creator","entries"],properties:{version:{type:"string"},creator:{$ref:"creator.json#"},browser:{$ref:"browser.json#"},pages:{type:"array",items:{$ref:"page.json#"}},entries:{type:"array",items:{$ref:"entry.json#"}},comment:{type:"string"}}}},function(e,t,i){function __ncc_wildcard$0(e){if(e==="cmd")return i(889);else if(e==="openid")return i(251)}"use strict";const{convertKubeconfig:n}=i(264);const a=i(418)("kubernetes-client");const r=i(262);const s=i(453);const o=i(13);const u=i(878);const l=i(683);const c=i(667);function refreshAuth(e,t){return new Promise((i,n)=>{const a=__ncc_wildcard$0(e);a.refresh(t).then(e=>{const t={bearer:e};return i(t)}).catch(e=>n(e))})}const d=["stdin","stdout","stderr","error","resize"];function isUpgradeRequired(e){return e.status==="Failure"&&e.code===400&&e.message==="Upgrade request required"}function upgradeRequest(e,t){const i=o.stringify(e.qs,{indices:false});const n=l(e.baseUrl,e.uri,`?${i}`);const a="base64.channel.k8s.io";e.headers={...e.headers,authorization:`Bearer ${e.auth.bearer}`};const r=new c(n,a,e);const s=[];r.on("message",e=>{const t=d[e.slice(0,1)];const i=Buffer.from(e.slice(1),"base64").toString("ascii");s.push({channel:t,message:i})});r.on("error",e=>{e.messages=s;t(e,s)});r.on("close",(e,i)=>t(null,{messages:s,body:s.map(({message:e})=>e).join(""),code:e,reason:i}));return r}class Request{constructor(e){this.requestOptions=e.request||{};let t;if(!e.kubeconfig){a("Request() without a .kubeconfig option, see "+"https://github.com/godaddy/kubernetes-client/blob/master/merging-with-kubernetes.md");t=e}else{t=n(e.kubeconfig)}this.requestOptions.qsStringifyOptions={indices:false};this.requestOptions.baseUrl=t.url;this.requestOptions.ca=t.ca;this.requestOptions.cert=t.cert;this.requestOptions.key=t.key;if("insecureSkipTlsVerify"in t){this.requestOptions.strictSSL=!t.insecureSkipTlsVerify}if("timeout"in t){this.requestOptions.timeout=t.timeout}this.authProvider={type:null};if(t.auth){this.requestOptions.auth=t.auth;if(t.auth.provider){this.requestOptions.auth=t.auth.request;this.authProvider=t.auth.provider}}}_request(e,t){const i=this.authProvider;return u(e,(n,a,r)=>{if(n)return t(n);if(r&&isUpgradeRequired(r)){return upgradeRequest(e,t)}if((a.statusCode===401||a.statusCode===403)&&i.type){return refreshAuth(i.type,i.config).then(i=>{this.requestOptions.auth=i;e.auth=i;return u(e,(e,i,n)=>{if(e)return t(e);return t(null,{statusCode:i.statusCode,body:n})})}).catch(e=>t(e))}return t(null,{statusCode:a.statusCode,body:r})})}async getLogByteStream(e){return this.http(Object.assign({stream:true},e))}async getWatchObjectStream(e){const t=new r;const i=this.http(Object.assign({stream:true},e));s(i,t);return t}async getWebSocket(e){throw new Error("Request.getWebSocket not implemented")}http(e){const t=e.pathname;const i=Object.assign({method:e.method,uri:t,body:e.body,json:"json"in e?Boolean(e.json):true,qs:e.parameters||e.qs,headers:e.headers},this.requestOptions);if(e.noAuth){delete i.auth}if(e.stream)return u(i);return new Promise((e,t)=>{this._request(i,(i,n)=>{if(i)return t(i);if(n.statusCode<200||n.statusCode>299){const e=new Error(n.body.message||n.body);e.code=n.statusCode;e.statusCode=n.statusCode;return t(e)}e(n)})})}}e.exports=Request},function(e){"use strict";e.exports=((e,t=1,i)=>{i={indent:" ",includeEmptyLines:false,...i};if(typeof e!=="string"){throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``)}if(typeof t!=="number"){throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``)}if(typeof i.indent!=="string"){throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof i.indent}\``)}if(t===0){return e}const n=i.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return e.replace(n,i.indent.repeat(t))})},function(e,t,i){const n=i(466);const a=i(849);const r=i(592);const{KeyStore:s}=i(926);e.exports=((e,t=false)=>{if(e instanceof a){return e}if(e instanceof s){if(!t){throw new TypeError("key argument for this operation must not be a JWKS.KeyStore instance")}return e}try{return r(e)}catch(e){if(e instanceof n.JOSEError&&!(e instanceof n.JWKImportFailed)){throw e}let i;if(t){i="key must be an instance of a key instantiated by JWK.asKey, a valid JWK.asKey input, or a JWKS.KeyStore instance"}else{i="key must be an instance of a key instantiated by JWK.asKey, or a valid JWK.asKey input"}throw new TypeError(i)}})},function(e,t,i){const n=i(462);const a=(e,t,i)=>n(e,t,"<",i);e.exports=a},,function(e,t,i){var n=i(249);e.exports={Ber:n,BerReader:n.Reader,BerWriter:n.Writer}},function(e){e.exports={$id:"cookie.json#",$schema:"http://json-schema.org/draft-06/schema#",type:"object",required:["name","value"],properties:{name:{type:"string"},value:{type:"string"},path:{type:"string"},domain:{type:"string"},expires:{type:["string","null"],format:"date-time"},httpOnly:{type:"boolean"},secure:{type:"boolean"},comment:{type:"string"}}}},,,,function(e){"use strict";const t=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0];function push(e,t,i){if(Object.prototype.hasOwnProperty.call(e,t))e[t].push(i);else e[t]=[i]}function parse(e){const i={};if(e===undefined||e==="")return i;var n={};var a=false;var r=false;var s=false;var o;var u;var l=-1;var c=-1;for(var d=0;d{var i=e[t];if(!Array.isArray(i))i=[i];return i.map(e=>{return[t].concat(Object.keys(e).map(t=>{var i=e[t];if(!Array.isArray(i))i=[i];return i.map(e=>e===true?t:`${t}=${e}`).join("; ")})).join("; ")}).join(", ")}).join(", ")}e.exports={format:format,parse:parse}},function(e,t,i){const n=i(274);const a=i(38);const r=i(0);const s=i(322);const o=i(570);const u=i(518).isString.bind(undefined,TypeError);const l=e=>{if(typeof e.iat!=="boolean"){throw new TypeError("options.iat must be a boolean")}if(typeof e.kid!=="boolean"){throw new TypeError("options.kid must be a boolean")}u(e.subject,"options.subject");u(e.issuer,"options.issuer");if(e.audience!==undefined&&((typeof e.audience!=="string"||!e.audience)&&(!Array.isArray(e.audience)||e.audience.length===0||e.audience.some(e=>!e||typeof e!=="string")))){throw new TypeError("options.audience must be a string or an array of strings")}if(!n(e.header)){throw new TypeError("options.header must be an object")}u(e.algorithm,"options.algorithm");u(e.expiresIn,"options.expiresIn");u(e.notBefore,"options.notBefore");u(e.jti,"options.jti");u(e.nonce,"options.nonce");if(e.now!==undefined&&(!(e.now instanceof Date)||!e.now.getTime())){throw new TypeError("options.now must be a valid Date object")}};e.exports=((e,t,i={})=>{if(!n(i)){throw new TypeError("options must be an object")}const{algorithm:u,audience:c,expiresIn:d,header:p={},iat:f=true,issuer:h,jti:m,kid:b=true,nonce:g,notBefore:y,subject:S,now:w}=i;l({algorithm:u,audience:c,expiresIn:d,header:p,iat:f,issuer:h,jti:m,kid:b,nonce:g,notBefore:y,now:w,subject:S});if(!n(e)){throw new TypeError("payload must be an object")}let v;if(d||y||f){v=r(w||new Date)}e={...e,sub:S||e.sub,aud:c||e.aud,iss:h||e.iss,jti:m||e.jti,iat:f?v:e.iat,nonce:g||e.nonce,exp:d?v+a(d):e.exp,nbf:y?v+a(y):e.nbf};t=s(t);let z;if(typeof i.kid==="boolean"){z=b}else{z=!t.secret}return o.sign(JSON.stringify(e),t,{...p,alg:u||p.alg,kid:z?t.kid:p.kid})})},,,function(e,t,i){e.exports={parallel:i(424),serial:i(91),serialOrdered:i(892)}},function(e,t,i){const{inherits:n}=i(669);const{Reporter:a}=i(410);function DecoderBuffer(e,t){a.call(this,t);if(!Buffer.isBuffer(e)){this.error("Input not Buffer");return}this.base=e;this.offset=0;this.length=e.length}n(DecoderBuffer,a);DecoderBuffer.isDecoderBuffer=function isDecoderBuffer(e){if(e instanceof DecoderBuffer){return true}const t=typeof e==="object"&&Buffer.isBuffer(e.base)&&e.constructor.name==="DecoderBuffer"&&typeof e.offset==="number"&&typeof e.length==="number"&&typeof e.save==="function"&&typeof e.restore==="function"&&typeof e.isEmpty==="function"&&typeof e.readUInt8==="function"&&typeof e.skip==="function"&&typeof e.raw==="function";return t};DecoderBuffer.prototype.save=function save(){return{offset:this.offset,reporter:a.prototype.save.call(this)}};DecoderBuffer.prototype.restore=function restore(e){const t=new DecoderBuffer(this.base);t.offset=e.offset;t.length=this.offset;this.offset=e.offset;a.prototype.restore.call(this,e.reporter);return t};DecoderBuffer.prototype.isEmpty=function isEmpty(){return this.offset===this.length};DecoderBuffer.prototype.readUInt8=function readUInt8(e){if(this.offset+1<=this.length){return this.base.readUInt8(this.offset++,true)}else{return this.error(e||"DecoderBuffer overrun")}};DecoderBuffer.prototype.skip=function skip(e,t){if(!(this.offset+e<=this.length)){return this.error(t||"DecoderBuffer overrun")}const i=new DecoderBuffer(this.base);i._reporterState=this._reporterState;i.offset=this.offset;i.length=this.offset+e;this.offset+=e;return i};DecoderBuffer.prototype.raw=function raw(e){return this.base.slice(e?e.offset:this.offset,this.length)};function EncoderBuffer(e,t){if(Array.isArray(e)){this.length=0;this.value=e.map(function(e){if(!EncoderBuffer.isEncoderBuffer(e)){e=new EncoderBuffer(e,t)}this.length+=e.length;return e},this)}else if(typeof e==="number"){if(!(e>=0&&e<=255)){return t.error("non-byte EncoderBuffer value")}this.value=e;this.length=1}else if(typeof e==="string"){this.value=e;this.length=Buffer.byteLength(e)}else if(Buffer.isBuffer(e)){this.value=e;this.length=e.length}else{return t.error(`Unsupported type: ${typeof e}`)}}EncoderBuffer.isEncoderBuffer=function isEncoderBuffer(e){if(e instanceof EncoderBuffer){return true}const t=typeof e==="object"&&e.constructor.name==="EncoderBuffer"&&typeof e.length==="number"&&typeof e.join==="function";return t};EncoderBuffer.prototype.join=function join(e,t){if(!e){e=Buffer.alloc(this.length)}if(!t){t=0}if(this.length===0){return e}if(Array.isArray(this.value)){this.value.forEach(function(i){i.join(e,t);t+=i.length})}else{if(typeof this.value==="number"){e[t]=this.value}else if(typeof this.value==="string"){e.write(this.value,t)}else if(Buffer.isBuffer(this.value)){this.value.copy(e,t)}t+=this.length}return e};e.exports={DecoderBuffer:DecoderBuffer,EncoderBuffer:EncoderBuffer}},,function(e){e.exports={$schema:"http://json-schema.org/draft-06/schema#",$id:"http://json-schema.org/draft-06/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:true,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},title:{type:"string"},description:{type:"string"},default:{},examples:{type:"array",items:{}},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:false},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:{},enum:{type:"array",minItems:1,uniqueItems:true},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:true}]},format:{type:"string"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:{}}},function(e,t,i){"use strict";const n=i(774);const a=i(794);const r=i(916);const s=i(523);const o=i(821);const u=i(879);const l=e=>e.stream?a(e):r(e);const c=["get","post","put","patch","head","delete"];const d=e=>{e=o({},e);s.preNormalize(e.options);if(!e.handler){e.handler=((e,t)=>t(e))}function got(t,i){try{return e.handler(s(t,i,e),l)}catch(e){if(i&&i.stream){throw e}else{return Promise.reject(e)}}}got.create=d;got.extend=(t=>{let i;if(t&&Reflect.has(t,"mutableDefaults")){i=t.mutableDefaults;delete t.mutableDefaults}else{i=e.mutableDefaults}return d({options:o.options(e.options,t),handler:e.handler,mutableDefaults:i})});got.mergeInstances=((...e)=>d(o.instances(e)));got.stream=((e,t)=>got(e,{...t,stream:true}));for(const e of c){got[e]=((t,i)=>got(t,{...i,method:e}));got.stream[e]=((t,i)=>got.stream(t,{...i,method:e}))}Object.assign(got,{...n,mergeOptions:o.options});Object.defineProperty(got,"defaults",{value:e.mutableDefaults?e:u(e),writable:e.mutableDefaults,configurable:e.mutableDefaults,enumerable:true});return got};e.exports=d},function(e){e.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON Schema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:false}},function(e,t,i){var n=i(602);var a=i(747);n.register("sort",_sort,{canReceivePipe:true,cmdOptions:{r:"reverse",n:"numerical"}});function parseNumber(e){var t=e.match(/^\s*(\d*)\s*(.*)$/);return{num:Number(t[1]),value:t[2]}}function unixCmp(e,t){var i=e.toLowerCase();var n=t.toLowerCase();return i===n?-1*e.localeCompare(t):i.localeCompare(n)}function numericalCmp(e,t){var i=parseNumber(e);var n=parseNumber(t);if(i.hasOwnProperty("num")&&n.hasOwnProperty("num")){return i.num!==n.num?i.num-n.num:unixCmp(i.value,n.value)}else{return unixCmp(i.value,n.value)}}function _sort(e,t){var i=n.readFromPipe();if(!t&&!i)n.error("no files given");t=[].slice.call(arguments,1);if(i){t.unshift("-")}var r=t.reduce(function(e,t){if(t!=="-"){if(!a.existsSync(t)){n.error("no such file or directory: "+t,{continue:true});return e}else if(n.statFollowLinks(t).isDirectory()){n.error("read failed: "+t+": Is a directory",{continue:true});return e}}var r=t==="-"?i:a.readFileSync(t,"utf8");return e.concat(r.trimRight().split("\n"))},[]);var s=r.sort(e.numerical?numericalCmp:unixCmp);if(e.reverse){s=s.reverse()}return s.join("\n")+"\n"}e.exports=_sort},function(e){"use strict";e.exports=function generate__limit(e,t,i){var n=" ";var a=e.level;var r=e.dataLevel;var s=e.schema[t];var o=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var l=!e.opts.allErrors;var c;var d="data"+(r||"");var p=e.opts.$data&&s&&s.$data,f;if(p){n+=" var schema"+a+" = "+e.util.getData(s.$data,r,e.dataPathArr)+"; ";f="schema"+a}else{f=s}var h=t=="maximum",m=h?"exclusiveMaximum":"exclusiveMinimum",b=e.schema[m],g=e.opts.$data&&b&&b.$data,y=h?"<":">",S=h?">":"<",c=undefined;if(!(p||typeof s=="number"||s===undefined)){throw new Error(t+" must be number")}if(!(g||b===undefined||typeof b=="number"||typeof b=="boolean")){throw new Error(m+" must be number or boolean")}if(g){var w=e.util.getData(b.$data,r,e.dataPathArr),v="exclusive"+a,z="exclType"+a,j="exclIsNumber"+a,O="op"+a,k="' + "+O+" + '";n+=" var schemaExcl"+a+" = "+w+"; ";w="schemaExcl"+a;n+=" var "+v+"; var "+z+" = typeof "+w+"; if ("+z+" != 'boolean' && "+z+" != 'undefined' && "+z+" != 'number') { ";var c=m;var C=C||[];C.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+(c||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ";if(e.opts.messages!==false){n+=" , message: '"+m+" should be boolean' "}if(e.opts.verbose){n+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}n+=" } "}else{n+=" {} "}var T=n;n=C.pop();if(!e.compositeRule&&l){if(e.async){n+=" throw new ValidationError(["+T+"]); "}else{n+=" validate.errors = ["+T+"]; return false; "}}else{n+=" var err = "+T+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+=" } else if ( ";if(p){n+=" ("+f+" !== undefined && typeof "+f+" != 'number') || "}n+=" "+z+" == 'number' ? ( ("+v+" = "+f+" === undefined || "+w+" "+y+"= "+f+") ? "+d+" "+S+"= "+w+" : "+d+" "+S+" "+f+" ) : ( ("+v+" = "+w+" === true) ? "+d+" "+S+"= "+f+" : "+d+" "+S+" "+f+" ) || "+d+" !== "+d+") { var op"+a+" = "+v+" ? '"+y+"' : '"+y+"='; ";if(s===undefined){c=m;u=e.errSchemaPath+"/"+m;f=w;p=g}}else{var j=typeof b=="number",k=y;if(j&&p){var O="'"+k+"'";n+=" if ( ";if(p){n+=" ("+f+" !== undefined && typeof "+f+" != 'number') || "}n+=" ( "+f+" === undefined || "+b+" "+y+"= "+f+" ? "+d+" "+S+"= "+b+" : "+d+" "+S+" "+f+" ) || "+d+" !== "+d+") { "}else{if(j&&s===undefined){v=true;c=m;u=e.errSchemaPath+"/"+m;f=b;S+="="}else{if(j)f=Math[h?"min":"max"](b,s);if(b===(j?f:true)){v=true;c=m;u=e.errSchemaPath+"/"+m;S+="="}else{v=false;k+="="}}var O="'"+k+"'";n+=" if ( ";if(p){n+=" ("+f+" !== undefined && typeof "+f+" != 'number') || "}n+=" "+d+" "+S+" "+f+" || "+d+" !== "+d+") { "}}c=c||t;var C=C||[];C.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+(c||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { comparison: "+O+", limit: "+f+", exclusive: "+v+" } ";if(e.opts.messages!==false){n+=" , message: 'should be "+k+" ";if(p){n+="' + "+f}else{n+=""+f+"'"}}if(e.opts.verbose){n+=" , schema: ";if(p){n+="validate.schema"+o}else{n+=""+s}n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}n+=" } "}else{n+=" {} "}var T=n;n=C.pop();if(!e.compositeRule&&l){if(e.async){n+=" throw new ValidationError(["+T+"]); "}else{n+=" validate.errors = ["+T+"]; return false; "}}else{n+=" var err = "+T+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+=" } ";if(l){n+=" else { "}return n}},function(e,t,i){var n=i(872);var a=i(669);var r=i(909);var s=r.HASH_ALGOS;var o=r.PK_ALGOS;var u=r.HttpSignatureError;var l=r.InvalidAlgorithmError;var c=r.validateAlgorithm;var d={New:0,Params:1};var p={Name:0,Quote:1,Value:2,Comma:3};function ExpiredRequestError(e){u.call(this,e,ExpiredRequestError)}a.inherits(ExpiredRequestError,u);function InvalidHeaderError(e){u.call(this,e,InvalidHeaderError)}a.inherits(InvalidHeaderError,u);function InvalidParamsError(e){u.call(this,e,InvalidParamsError)}a.inherits(InvalidParamsError,u);function MissingHeaderError(e){u.call(this,e,MissingHeaderError)}a.inherits(MissingHeaderError,u);function StrictParsingError(e){u.call(this,e,StrictParsingError)}a.inherits(StrictParsingError,u);e.exports={parseRequest:function parseRequest(e,t){n.object(e,"request");n.object(e.headers,"request.headers");if(t===undefined){t={}}if(t.headers===undefined){t.headers=[e.headers["x-date"]?"x-date":"date"]}n.object(t,"options");n.arrayOfString(t.headers,"options.headers");n.optionalFinite(t.clockSkew,"options.clockSkew");var i=t.authorizationHeaderName||"authorization";if(!e.headers[i]){throw new MissingHeaderError("no "+i+" header "+"present in the request")}t.clockSkew=t.clockSkew||300;var a=0;var r=d.New;var s=p.Name;var o="";var u="";var f={scheme:"",params:{},signingString:""};var h=e.headers[i];for(a=0;a=65&&b<=90||b>=97&&b<=122){o+=m}else if(m==="="){if(o.length===0)throw new InvalidHeaderError("bad param format");s=p.Quote}else{throw new InvalidHeaderError("bad param format")}break;case p.Quote:if(m==='"'){u="";s=p.Value}else{throw new InvalidHeaderError("bad param format")}break;case p.Value:if(m==='"'){f.params[o]=u;s=p.Comma}else{u+=m}break;case p.Comma:if(m===","){o="";s=p.Name}else{throw new InvalidHeaderError("bad param format")}break;default:throw new Error("Invalid substate")}break;default:throw new Error("Invalid substate")}}if(!f.params.headers||f.params.headers===""){if(e.headers["x-date"]){f.params.headers=["x-date"]}else{f.params.headers=["date"]}}else{f.params.headers=f.params.headers.split(" ")}if(!f.scheme||f.scheme!=="Signature")throw new InvalidHeaderError('scheme was not "Signature"');if(!f.params.keyId)throw new InvalidHeaderError("keyId was not specified");if(!f.params.algorithm)throw new InvalidHeaderError("algorithm was not specified");if(!f.params.signature)throw new InvalidHeaderError("signature was not specified");f.params.algorithm=f.params.algorithm.toLowerCase();try{c(f.params.algorithm)}catch(e){if(e instanceof l)throw new InvalidParamsError(f.params.algorithm+" is not "+"supported");else throw e}for(a=0;at.clockSkew*1e3){throw new ExpiredRequestError("clock skew of "+v/1e3+"s was greater than "+t.clockSkew+"s")}}t.headers.forEach(function(e){if(f.params.headers.indexOf(e.toLowerCase())<0)throw new MissingHeaderError(e+" was not a signed header")});if(t.algorithms){if(t.algorithms.indexOf(f.params.algorithm)===-1)throw new InvalidParamsError(f.params.algorithm+" is not a supported algorithm")}f.algorithm=f.params.algorithm.toUpperCase();f.keyId=f.params.keyId;return f}}},function(e){"use strict";e.exports=function generate_properties(e,t,i){var n=" ";var a=e.level;var r=e.dataLevel;var s=e.schema[t];var o=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var l=!e.opts.allErrors;var c="data"+(r||"");var d="errs__"+a;var p=e.util.copy(e);var f="";p.level++;var h="valid"+p.level;var m="key"+a,b="idx"+a,g=p.dataLevel=e.dataLevel+1,y="data"+g,S="dataProperties"+a;var w=Object.keys(s||{}).filter(notProto),v=e.schema.patternProperties||{},z=Object.keys(v).filter(notProto),j=e.schema.additionalProperties,O=w.length||z.length,k=j===false,C=typeof j=="object"&&Object.keys(j).length,T=e.opts.removeAdditional,R=k||C||T,E=e.opts.ownProperties,A=e.baseId;var x=e.schema.required;if(x&&!(e.opts.$data&&x.$data)&&x.length8){n+=" || validate.schema"+o+".hasOwnProperty("+m+") "}else{var V=w;if(V){var P,D=-1,I=V.length-1;while(D0:e.util.schemaHasRules($,e.RULES.all)){var ee=e.util.getProperty(P),K=c+ee,te=F&&$.default!==undefined;p.schema=$;p.schemaPath=o+ee;p.errSchemaPath=u+"/"+e.util.escapeFragment(P);p.errorPath=e.util.getPath(e.errorPath,P,e.opts.jsonPointers);p.dataPathArr[g]=e.util.toQuotedString(P);var J=e.validate(p);p.baseId=A;if(e.util.varOccurences(J,y)<2){J=e.util.varReplace(J,y,K);var ie=K}else{var ie=y;n+=" var "+y+" = "+K+"; "}if(te){n+=" "+J+" "}else{if(N&&N[P]){n+=" if ( "+ie+" === undefined ";if(E){n+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(P)+"') "}n+=") { "+h+" = false; ";var U=e.errorPath,H=u,ne=e.util.escapeQuotes(P);if(e.opts._errorDataPathProperty){e.errorPath=e.util.getPath(U,P,e.opts.jsonPointers)}u=e.errSchemaPath+"/required";var Q=Q||[];Q.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+"required"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+ne+"' } ";if(e.opts.messages!==false){n+=" , message: '";if(e.opts._errorDataPathProperty){n+="is a required property"}else{n+="should have required property \\'"+ne+"\\'"}n+="' "}if(e.opts.verbose){n+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}n+=" } "}else{n+=" {} "}var W=n;n=Q.pop();if(!e.compositeRule&&l){if(e.async){n+=" throw new ValidationError(["+W+"]); "}else{n+=" validate.errors = ["+W+"]; return false; "}}else{n+=" var err = "+W+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}u=H;e.errorPath=U;n+=" } else { "}else{if(l){n+=" if ( "+ie+" === undefined ";if(E){n+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(P)+"') "}n+=") { "+h+" = true; } else { "}else{n+=" if ("+ie+" !== undefined ";if(E){n+=" && Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(P)+"') "}n+=" ) { "}}n+=" "+J+" } "}}if(l){n+=" if ("+h+") { ";f+="}"}}}}if(z.length){var ae=z;if(ae){var q,re=-1,se=ae.length-1;while(re0:e.util.schemaHasRules($,e.RULES.all)){p.schema=$;p.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(q);p.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(q);if(E){n+=" "+S+" = "+S+" || Object.keys("+c+"); for (var "+b+"=0; "+b+"<"+S+".length; "+b+"++) { var "+m+" = "+S+"["+b+"]; "}else{n+=" for (var "+m+" in "+c+") { "}n+=" if ("+e.usePattern(q)+".test("+m+")) { ";p.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers);var K=c+"["+m+"]";p.dataPathArr[g]=m;var J=e.validate(p);p.baseId=A;if(e.util.varOccurences(J,y)<2){n+=" "+e.util.varReplace(J,y,K)+" "}else{n+=" var "+y+" = "+K+"; "+J+" "}if(l){n+=" if (!"+h+") break; "}n+=" } ";if(l){n+=" else "+h+" = true; "}n+=" } ";if(l){n+=" if ("+h+") { ";f+="}"}}}}}if(l){n+=" "+f+" if ("+d+" == errors) {"}return n}},,,,,function(e,t,i){var n=i(872);var a=i(669);var r=i(697);var s=i(956);var o=i(703);t.deepCopy=deepCopy;t.deepEqual=deepEqual;t.isEmpty=isEmpty;t.hasKey=hasKey;t.forEachKey=forEachKey;t.pluck=pluck;t.flattenObject=flattenObject;t.flattenIter=flattenIter;t.validateJsonObject=validateJsonObjectJS;t.validateJsonObjectJS=validateJsonObjectJS;t.randElt=randElt;t.extraProperties=extraProperties;t.mergeObjects=mergeObjects;t.startsWith=startsWith;t.endsWith=endsWith;t.parseInteger=parseInteger;t.iso8601=iso8601;t.rfc1123=rfc1123;t.parseDateTime=parseDateTime;t.hrtimediff=hrtimeDiff;t.hrtimeDiff=hrtimeDiff;t.hrtimeAccum=hrtimeAccum;t.hrtimeAdd=hrtimeAdd;t.hrtimeNanosec=hrtimeNanosec;t.hrtimeMicrosec=hrtimeMicrosec;t.hrtimeMillisec=hrtimeMillisec;function deepCopy(e){var t,i;var n="__deepCopy";if(e&&e[n])throw new Error("attempted deep copy of cyclic object");if(e&&e.constructor==Object){t={};e[n]=true;for(i in e){if(i==n)continue;t[i]=deepCopy(e[i])}delete e[n];return t}if(e&&e.constructor==Array){t=[];e[n]=true;for(i=0;i=0);for(s in e){r=i.slice(0);r.push(s);doFlattenIter(e[s],t-1,r,a)}}function flattenObject(e,t){if(t===0)return[e];n.ok(e!==null);n.equal(typeof e,"object");n.equal(typeof t,"number");n.ok(t>=0);var i=[];var a;for(a in e){flattenObject(e[a],t-1).forEach(function(e){i.push([a].concat(e))})}return i}function startsWith(e,t){return e.substr(0,t.length)==t}function endsWith(e,t){return e.substr(e.length-t.length,t.length)==t}function iso8601(e){if(typeof e=="number")e=new Date(e);n.ok(e.constructor===Date);return r.sprintf("%4d-%02d-%02dT%02d:%02d:%02d.%03dZ",e.getUTCFullYear(),e.getUTCMonth()+1,e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())}var u=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];var l=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];function rfc1123(e){return r.sprintf("%s, %02d %s %04d %02d:%02d:%02d GMT",l[e.getUTCDay()],e.getUTCDate(),u[e.getUTCMonth()],e.getUTCFullYear(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds())}function parseDateTime(e){var t=+e;if(!isNaN(t)){return new Date(t)}else{return new Date(e)}}var c=Number.MAX_SAFE_INTEGER||9007199254740991;var d=Number.MIN_SAFE_INTEGER||-9007199254740991;var p={base:10,allowSign:true,allowPrefix:false,allowTrailing:false,allowImprecise:false,trimWhitespace:false,leadingZeroIsOctal:false};var f=48;var h=57;var m=65;var b=66;var g=79;var y=84;var S=88;var w=90;var v=97;var z=98;var j=111;var O=116;var k=120;var C=122;var T=48;var R=55;var E=87;function parseInteger(e,t){n.string(e,"str");n.optionalObject(t,"options");var i=false;var a=p;if(t){i=hasKey(t,"base");a=mergeObjects(a,t);n.number(a.base,"options.base");n.ok(a.base>=2,"options.base >= 2");n.ok(a.base<=36,"options.base <= 36");n.bool(a.allowSign,"options.allowSign");n.bool(a.allowPrefix,"options.allowPrefix");n.bool(a.allowTrailing,"options.allowTrailing");n.bool(a.allowImprecise,"options.allowImprecise");n.bool(a.trimWhitespace,"options.trimWhitespace");n.bool(a.leadingZeroIsOctal,"options.leadingZeroIsOctal");if(a.leadingZeroIsOctal){n.ok(!i,'"base" and "leadingZeroIsOctal" are '+"mutually exclusive")}}var r;var s=-1;var o=a.base;var u;var l=1;var f=0;var h=0;var m=e.length;if(a.trimWhitespace){while(hc||b=f&&e<=h){return e-T}else if(e>=m&&e<=w){return e-R}else if(e>=v&&e<=C){return e-E}else{return-1}}function isSpace(e){return e===32||e>=9&&e<=13||e===160||e===5760||e===6158||e>=8192&&e<=8202||e===8232||e===8233||e===8239||e===8287||e===12288||e===65279}function prefixToBase(e){if(e===z||e===b){return 2}else if(e===j||e===g){return 8}else if(e===O||e===y){return 10}else if(e===k||e===S){return 16}else{return-1}}function validateJsonObjectJS(e,t){var i=o.validate(t,e);if(i.errors.length===0)return null;var n=i.errors[0];var a=n["property"];var r=n["message"].toLowerCase();var u,l;if((u=r.indexOf("the property "))!=-1&&(l=r.indexOf(" is not defined in the schema and the "+"schema does not allow additional properties"))!=-1){u+="the property ".length;if(a==="")a=r.substr(u,l-u);else a=a+"."+r.substr(u,l-u);r="unsupported property"}var c=new s.VError('property "%s": %s',a,r);c.jsv_details=n;return c}function randElt(e){n.ok(Array.isArray(e)&&e.length>0,"randElt argument must be a non-empty array");return e[Math.floor(Math.random()*e.length)]}function assertHrtime(e){n.ok(e[0]>=0&&e[1]>=0,"negative numbers not allowed in hrtimes");n.ok(e[1]<1e9,"nanoseconds column overflow")}function hrtimeDiff(e,t){assertHrtime(e);assertHrtime(t);n.ok(e[0]>t[0]||e[0]==t[0]&&e[1]>=t[1],"negative differences not allowed");var i=[e[0]-t[0],0];if(e[1]>=t[1]){i[1]=e[1]-t[1]}else{i[0]--;i[1]=1e9-(t[1]-e[1])}return i}function hrtimeNanosec(e){assertHrtime(e);return Math.floor(e[0]*1e9+e[1])}function hrtimeMicrosec(e){assertHrtime(e);return Math.floor(e[0]*1e6+e[1]/1e3)}function hrtimeMillisec(e){assertHrtime(e);return Math.floor(e[0]*1e3+e[1]/1e6)}function hrtimeAccum(e,t){assertHrtime(e);assertHrtime(t);e[1]+=t[1];if(e[1]>=1e9){e[0]++;e[1]-=1e9}e[0]+=t[0];return e}function hrtimeAdd(e,t){assertHrtime(e);var i=[e[0],e[1]];return hrtimeAccum(i,t)}function extraProperties(e,t){n.ok(typeof e==="object"&&e!==null,"obj argument must be a non-null object");n.ok(Array.isArray(t),"allowed argument must be an array of strings");for(var i=0;i{if(e.length===t){return e}const i=Buffer.alloc(t);e.copy(i);return i};const r=(e,t)=>{const i=Math.max(e.length,t.length);return n(a(e,i),a(t,i))};e.exports=r},,function(e){e.exports=require("assert")},function(e,t,i){const n=i(232);function defaults(e,t,...i){for(const a of i){if(!n(a)){continue}for(const[i,r]of Object.entries(a)){if(i==="__proto__"||i==="constructor"){continue}if(typeof t[i]==="undefined"&&typeof r!=="undefined"){t[i]=r}if(e&&n(t[i])&&n(r)){defaults(true,t[i],r)}}}return t}e.exports=defaults.bind(undefined,false);e.exports.deep=defaults.bind(undefined,true)},function(e,t,i){var n=i(622);var a=i(602);a.register("pwd",_pwd,{allowGlobbing:false});function _pwd(){var e=n.resolve(process.cwd());return e}e.exports=_pwd},,,function(e){e.exports={EOC:0,Boolean:1,Integer:2,BitString:3,OctetString:4,Null:5,OID:6,ObjectDescriptor:7,External:8,Real:9,Enumeration:10,PDV:11,Utf8String:12,RelativeOID:13,Sequence:16,Set:17,NumericString:18,PrintableString:19,T61String:20,VideotexString:21,IA5String:22,UTCTime:23,GeneralizedTime:24,GraphicString:25,VisibleString:26,GeneralString:28,UniversalString:29,CharacterString:30,BMPString:31,Constructor:32,Context:128}},function(e){e.exports=require("http")},,function(e,t,i){"use strict";const{Transform:n}=i(413);e.exports={download(e,t,i){let a=0;return new n({transform(e,n,r){a+=e.length;const s=i?a/i:0;if(s<1){t.emit("downloadProgress",{percent:s,transferred:a,total:i})}r(null,e)},flush(e){t.emit("downloadProgress",{percent:1,transferred:a,total:i});e()}})},upload(e,t,i){const n=150;let a=0;let r;t.emit("uploadProgress",{percent:0,transferred:0,total:i});e.once("error",()=>{clearInterval(r)});e.once("response",()=>{clearInterval(r);t.emit("uploadProgress",{percent:1,transferred:a,total:i})});e.once("socket",s=>{const o=()=>{r=setInterval(()=>{const n=a;const r=e._header?Buffer.byteLength(e._header):0;a=s.bytesWritten-r;if(a===n||a===i){return}t.emit("uploadProgress",{percent:i?a/i:0,transferred:a,total:i})},n)};if(s.connecting){s.once("connect",o)}else if(s.writable){o()}})}}},function(e){"use strict";var t=e.exports=function Cache(){this._cache={}};t.prototype.put=function Cache_put(e,t){this._cache[e]=t};t.prototype.get=function Cache_get(e){return this._cache[e]};t.prototype.del=function Cache_del(e){delete this._cache[e]};t.prototype.clear=function Cache_clear(){this._cache={}}},,function(e,t,i){const{createHash:n,randomBytes:a}=i(373);const{encode:r}=i(549);const s=(e=32)=>r(a(e));e.exports={random:s,state:s,nonce:s,codeVerifier:s,codeChallenge:e=>r(n("sha256").update(e).digest())}},function(e){"use strict";e.exports=function generate_dependencies(e,t,i){var n=" ";var a=e.level;var r=e.dataLevel;var s=e.schema[t];var o=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var l=!e.opts.allErrors;var c="data"+(r||"");var d="errs__"+a;var p=e.util.copy(e);var f="";p.level++;var h="valid"+p.level;var m={},b={},g=e.opts.ownProperties;for(v in s){if(v=="__proto__")continue;var y=s[v];var S=Array.isArray(y)?b:m;S[v]=y}n+="var "+d+" = errors;";var w=e.errorPath;n+="var missing"+a+";";for(var v in b){S=b[v];if(S.length){n+=" if ( "+c+e.util.getProperty(v)+" !== undefined ";if(g){n+=" && Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(v)+"') "}if(l){n+=" && ( ";var z=S;if(z){var j,O=-1,k=z.length-1;while(O0:e.util.schemaHasRules(y,e.RULES.all)){n+=" "+h+" = true; if ( "+c+e.util.getProperty(v)+" !== undefined ";if(g){n+=" && Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(v)+"') "}n+=") { ";p.schema=y;p.schemaPath=o+e.util.getProperty(v);p.errSchemaPath=u+"/"+e.util.escapeFragment(v);n+=" "+e.validate(p)+" ";p.baseId=D;n+=" } ";if(l){n+=" if ("+h+") { ";f+="}"}}}if(l){n+=" "+f+" if ("+d+" == errors) {"}return n}},,,function(e,t,i){const{inflateRawSync:n}=i(903);const a=i(208);const r=i(322);const{KeyStore:s}=i(851);const o=i(466);const{check:u,decrypt:l,keyManagementDecrypt:c}=i(179);const d=i(715);const{createSecretKey:p}=i(40);const f=i(201);const h=i(17);const{detect:m}=i(975);const b=new Set(["compact","flattened"]);const g=(e={},t={},i={})=>{if(typeof e==="string"){e=a.JSON.decode(e)}const n=e.p2s||t.p2s||i.p2s;const r=e.apu||t.apu||i.apu;const s=e.apv||t.apv||i.apv;const o=e.iv||t.iv||i.iv;const u=e.tag||t.tag||i.tag;return{...e,...t,...i,...typeof n==="string"?{p2s:a.decodeToBuffer(n)}:undefined,...typeof r==="string"?{apu:a.decodeToBuffer(r)}:undefined,...typeof s==="string"?{apv:a.decodeToBuffer(s)}:undefined,...typeof o==="string"?{iv:a.decodeToBuffer(o)}:undefined,...typeof u==="string"?{tag:a.decodeToBuffer(u)}:undefined}};const y=(e,t,i,S,{crit:w=[],complete:v=false,algorithms:z}={})=>{S=r(S,true);if(z!==undefined&&(!Array.isArray(z)||z.some(e=>typeof e!=="string"||!e))){throw new TypeError('"algorithms" option must be an array of non-empty strings')}else if(z){z=new Set(z)}if(!Array.isArray(w)||w.some(e=>typeof e!=="string"||!e)){throw new TypeError('"crit" option must be an array of non-empty strings')}if(!t){t=m(i)}let j,O,k,C,T,R,E,A,x,N,V,P;if(t==="general"&&i.recipients.length===1){t="flattened";const{recipients:e,...n}=i;i={...n,...e[0]}}if(b.has(t)){if(t==="compact"){[E,C,T,O,A]=i.split(".")}else{({protected:E,encrypted_key:C,iv:T,ciphertext:O,tag:A,unprotected:x,aad:V,header:P}=i)}if(!e){h(E,x,[{header:P}],true,w)}R=g(E,x,P);({alg:j,enc:k}=R);if(z&&!z.has(j==="dir"?k:j)){throw new o.JOSEAlgNotWhitelisted("alg not whitelisted")}if(S instanceof s){const e=S;let n;if(R.alg==="dir"){n=e.all({kid:R.kid,alg:R.enc,key_ops:["decrypt"]})}else{n=e.all({kid:R.kid,alg:R.alg,key_ops:["unwrapKey"]})}switch(n.length){case 0:throw new o.JWKSNoMatchingKey;case 1:S=n[0];break;default:{const e=[];for(const a of n){try{return y(true,t,i,a,{crit:w,complete:v,algorithms:z?[...z]:undefined})}catch(t){e.push(t);continue}}const a=new o.JOSEMultiError(e);if([...a].some(e=>e instanceof o.JWEDecryptionFailed)){throw new o.JWEDecryptionFailed}throw a}}}u(S,...j==="dir"?["decrypt",k]:["keyManagementDecrypt",j]);try{if(j==="dir"){N=d.asKey(S,{alg:k,use:"enc"})}else if(j==="ECDH-ES"){const e=c(j,S,undefined,R);N=d.asKey(p(e),{alg:k,use:"enc"})}else{const e=c(j,S,a.decodeToBuffer(C),R);N=d.asKey(p(e),{alg:k,use:"enc"})}}catch(e){N=f(k)}let r;if(V){r=Buffer.concat([Buffer.from(E||""),Buffer.from("."),Buffer.from(V)])}else{r=Buffer.from(E||"")}try{T=a.decodeToBuffer(T)}catch(e){}try{A=a.decodeToBuffer(A)}catch(e){}let m=l(k,N,a.decodeToBuffer(O),{iv:T,tag:A,aad:r});if(R.zip){m=n(m)}if(v){const e={cleartext:m,key:S,cek:N};if(V)e.aad=V;if(P)e.header=P;if(x)e.unprotected=x;if(E)e.protected=a.JSON.decode(E);return e}return m}h(i.protected,i.unprotected,i.recipients.map(({header:e})=>({header:e})),true,w);const{recipients:D,...I}=i;const _=[];for(const e of D){try{return y(true,"flattened",{...I,...e},S,{crit:w,complete:v,algorithms:z?[...z]:undefined})}catch(e){_.push(e);continue}}const q=new o.JOSEMultiError(_);if([...q].some(e=>e instanceof o.JWEDecryptionFailed)){throw new o.JWEDecryptionFailed}else if([...q].every(e=>e instanceof o.JWKSNoMatchingKey)){throw new o.JWKSNoMatchingKey}throw q};e.exports=y.bind(undefined,false,undefined)},function(e){e.exports=require("crypto")},function(e){"use strict";var t=Object.prototype.hasOwnProperty;var i=Object.prototype.toString;var n=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var r=function isArray(e){if(typeof Array.isArray==="function"){return Array.isArray(e)}return i.call(e)==="[object Array]"};var s=function isPlainObject(e){if(!e||i.call(e)!=="[object Object]"){return false}var n=t.call(e,"constructor");var a=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!a){return false}var r;for(r in e){}return typeof r==="undefined"||t.call(e,r)};var o=function setProperty(e,t){if(n&&t.name==="__proto__"){n(e,t.name,{enumerable:true,configurable:true,value:t.newValue,writable:true})}else{e[t.name]=t.newValue}};var u=function getProperty(e,i){if(i==="__proto__"){if(!t.call(e,i)){return void 0}else if(a){return a(e,i).value}}return e[i]};e.exports=function extend(){var e,t,i,n,a,l;var c=arguments[0];var d=1;var p=arguments.length;var f=false;if(typeof c==="boolean"){f=c;c=arguments[1]||{};d=2}if(c==null||typeof c!=="object"&&typeof c!=="function"){c={}}for(;d{e={...e};const{array:t}=e;let{encoding:i}=e;const a=i==="buffer";let r=false;if(t){r=!(i||a)}else{i=i||"utf8"}if(a){i=null}const s=new n({objectMode:r});if(i){s.setEncoding(i)}let o=0;const u=[];s.on("data",e=>{u.push(e);if(r){o=u.length}else{o+=e.length}});s.getBufferedValue=(()=>{if(t){return u}return a?Buffer.concat(u,o):u.join("")});s.getBufferedLength=(()=>o);return s})},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=i(262);const a=i(878);class DefaultRequest{webRequest(e,t){return a(e,t)}}t.DefaultRequest=DefaultRequest;class Watch{constructor(e,t){this.config=e;if(t){this.requestImpl=t}else{this.requestImpl=new DefaultRequest}}watch(e,t,i,a){const r=this.config.getCurrentCluster();if(!r){throw new Error("No currently active cluster")}const s=r.server+e;t.watch=true;const o={};const u={method:"GET",qs:t,headers:o,uri:s,useQuerystring:true,json:true};this.config.applyToRequest(u);const l=new n;l.on("data",e=>i(e.type,e.object));const c=this.requestImpl.webRequest(u,(e,t,i)=>{if(e){a(e)}else{a(null)}});c.pipe(l);return c}}t.Watch=Watch},,function(e,t,i){e.exports=Identity;var n=i(872);var a=i(98);var r=i(373);var s=i(400);var o=i(575);var u=i(753);var l=i(669);var c=i(270);var d=i(325);var p=i(215).Buffer;var f=/^([*]|[a-z0-9][a-z0-9\-]{0,62})(?:\.([*]|[a-z0-9][a-z0-9\-]{0,62}))*$/i;var h={};h.cn="2.5.4.3";h.o="2.5.4.10";h.ou="2.5.4.11";h.l="2.5.4.7";h.s="2.5.4.8";h.c="2.5.4.6";h.sn="2.5.4.4";h.postalCode="2.5.4.17";h.serialNumber="2.5.4.5";h.street="2.5.4.9";h.x500UniqueIdentifier="2.5.4.45";h.role="2.5.4.72";h.telephoneNumber="2.5.4.20";h.description="2.5.4.13";h.dc="0.9.2342.19200300.100.1.25";h.uid="0.9.2342.19200300.100.1.1";h.mail="0.9.2342.19200300.100.1.3";h.title="2.5.4.12";h.gn="2.5.4.42";h.initials="2.5.4.43";h.pseudonym="2.5.4.65";h.emailAddress="1.2.840.113549.1.9.1";var m={};Object.keys(h).forEach(function(e){m[h[e]]=e});function Identity(e){var t=this;n.object(e,"options");n.arrayOfObject(e.components,"options.components");this.components=e.components;this.componentLookup={};this.components.forEach(function(e){if(e.name&&!e.oid)e.oid=h[e.name];if(e.oid&&!e.name)e.name=m[e.oid];if(t.componentLookup[e.name]===undefined)t.componentLookup[e.name]=[];t.componentLookup[e.name].push(e)});if(this.componentLookup.cn&&this.componentLookup.cn.length>0){this.cn=this.componentLookup.cn[0].value}n.optionalString(e.type,"options.type");if(e.type===undefined){if(this.components.length===1&&this.componentLookup.cn&&this.componentLookup.cn.length===1&&this.componentLookup.cn[0].value.match(f)){this.type="host";this.hostname=this.componentLookup.cn[0].value}else if(this.componentLookup.dc&&this.components.length===this.componentLookup.dc.length){this.type="host";this.hostname=this.componentLookup.dc.map(function(e){return e.value}).join(".")}else if(this.componentLookup.uid&&this.components.length===this.componentLookup.uid.length){this.type="user";this.uid=this.componentLookup.uid[0].value}else if(this.componentLookup.cn&&this.componentLookup.cn.length===1&&this.componentLookup.cn[0].value.match(f)){this.type="host";this.hostname=this.componentLookup.cn[0].value}else if(this.componentLookup.uid&&this.componentLookup.uid.length===1){this.type="user";this.uid=this.componentLookup.uid[0].value}else if(this.componentLookup.mail&&this.componentLookup.mail.length===1){this.type="email";this.email=this.componentLookup.mail[0].value}else if(this.componentLookup.cn&&this.componentLookup.cn.length===1){this.type="user";this.uid=this.componentLookup.cn[0].value}else{this.type="unknown"}}else{this.type=e.type;if(this.type==="host")this.hostname=e.hostname;else if(this.type==="user")this.uid=e.uid;else if(this.type==="email")this.email=e.email;else throw new Error("Unknown type "+this.type)}}Identity.prototype.toString=function(){return this.components.map(function(e){var t=e.name.toUpperCase();t=t.replace(/=/g,"\\=");var i=e.value;i=i.replace(/,/g,"\\,");return t+"="+i}).join(", ")};Identity.prototype.get=function(e,t){n.string(e,"name");var i=this.componentLookup[e];if(i===undefined||i.length===0)return undefined;if(!t&&i.length>1)throw new Error("Multiple values for attribute "+e);if(!t)return i[0].value;return i.map(function(e){return e.value})};Identity.prototype.toArray=function(e){return this.components.map(function(e){return{name:e.name,value:e.value}})};var b=/[^a-zA-Z0-9 '(),+.\/:=?-]/;var g=/[^\x00-\x7f]/;Identity.prototype.toAsn1=function(e,t){e.startSequence(t);this.components.forEach(function(t){e.startSequence(d.Ber.Constructor|d.Ber.Set);e.startSequence();e.writeOID(t.oid);if(t.asn1type===d.Ber.Utf8String||t.value.match(g)){var i=p.from(t.value,"utf8");e.writeBuffer(i,d.Ber.Utf8String)}else if(t.asn1type===d.Ber.IA5String||t.value.match(b)){e.writeString(t.value,d.Ber.IA5String)}else{var n=d.Ber.PrintableString;if(t.asn1type!==undefined)n=t.asn1type;e.writeString(t.value,n)}e.endSequence();e.endSequence()});e.endSequence()};function globMatch(e,t){if(e==="**"||t==="**")return true;var i=e.split(".");var n=t.split(".");if(i.length!==n.length)return false;for(var a=0;a0){var r;if((r=/^,/.exec(a))!==null){t[++i]="";a=a.slice(r[0].length)}else if((r=/^\\,/.exec(a))!==null){t[i]+=",";a=a.slice(r[0].length)}else if((r=/^\\./.exec(a))!==null){t[i]+=r[0];a=a.slice(r[0].length)}else if((r=/^[^\\,]+/.exec(a))!==null){t[i]+=r[0];a=a.slice(r[0].length)}else{throw new Error("Failed to parse DN")}}var s=t.map(function(e){e=e.trim();var t=e.indexOf("=");while(t>0&&e.charAt(t-1)==="\\")t=e.indexOf("=",t+1);if(t===-1){throw new Error("Failed to parse DN")}var i=e.slice(0,t).toLowerCase().replace(/\\=/g,"=");var n=e.slice(t+1);return{name:i,value:n}});return new Identity({components:s})};Identity.fromArray=function(e){n.arrayOfObject(e,"components");e.forEach(function(e){n.object(e,"component");n.string(e.name,"component.name");if(!p.isBuffer(e.value)&&!(typeof e.value==="string")){throw new Error("Invalid component value")}});return new Identity({components:e})};Identity.parseAsn1=function(e,t){var i=[];e.readSequence(t);var n=e.offset+e.length;while(e.offset 1e-"+e.opts.multipleOfPrecision+" "}else{n+=" division"+a+" !== parseInt(division"+a+") "}n+=" ) ";if(d){n+=" ) "}n+=" ) { ";var f=f||[];f.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+"multipleOf"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { multipleOf: "+p+" } ";if(e.opts.messages!==false){n+=" , message: 'should be multiple of ";if(d){n+="' + "+p}else{n+=""+p+"'"}}if(e.opts.verbose){n+=" , schema: ";if(d){n+="validate.schema"+o}else{n+=""+s}n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}n+=" } "}else{n+=" {} "}var h=n;n=f.pop();if(!e.compositeRule&&l){if(e.async){n+=" throw new ValidationError(["+h+"]); "}else{n+=" validate.errors = ["+h+"]; return false; "}}else{n+=" var err = "+h+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+="} ";if(l){n+=" else { "}return n}},,,function(e,t,i){e.exports=Fingerprint;var n=i(872);var a=i(215).Buffer;var r=i(98);var s=i(373);var o=i(753);var u=i(852);var l=i(502);var c=i(966);var d=i(270);var p=o.FingerprintFormatError;var f=o.InvalidAlgorithmError;function Fingerprint(e){n.object(e,"options");n.string(e.type,"options.type");n.buffer(e.hash,"options.hash");n.string(e.algorithm,"options.algorithm");this.algorithm=e.algorithm.toLowerCase();if(r.hashAlgs[this.algorithm]!==true)throw new f(this.algorithm);this.hash=e.hash;this.type=e.type;this.hashType=e.hashType}Fingerprint.prototype.toString=function(e){if(e===undefined){if(this.algorithm==="md5"||this.hashType==="spki")e="hex";else e="base64"}n.string(e);switch(e){case"hex":if(this.hashType==="spki")return this.hash.toString("hex");return addColons(this.hash.toString("hex"));case"base64":if(this.hashType==="spki")return this.hash.toString("base64");return sshBase64Format(this.algorithm,this.hash.toString("base64"));default:throw new p(undefined,e)}};Fingerprint.prototype.matches=function(e){n.object(e,"key or certificate");if(this.type==="key"&&this.hashType!=="ssh"){d.assertCompatible(e,u,[1,7],"key with spki");if(l.isPrivateKey(e)){d.assertCompatible(e,l,[1,6],"privatekey with spki support")}}else if(this.type==="key"){d.assertCompatible(e,u,[1,0],"key")}else{d.assertCompatible(e,c,[1,0],"certificate")}var t=e.hash(this.algorithm,this.hashType);var i=s.createHash(this.algorithm).update(t).digest("base64");if(this.hash2===undefined)this.hash2=s.createHash(this.algorithm).update(this.hash).digest("base64");return this.hash2===i};var h=/^[A-Za-z0-9+\/=]+$/;var m=/^[a-fA-F0-9]+$/;Fingerprint.parse=function(e,t){n.string(e,"fingerprint");var i,s,o;if(Array.isArray(t)){o=t;t={}}n.optionalObject(t,"options");if(t===undefined)t={};if(t.enAlgs!==undefined)o=t.enAlgs;if(t.algorithms!==undefined)o=t.algorithms;n.optionalArrayOfString(o,"algorithms");var u="ssh";if(t.hashType!==undefined)u=t.hashType;n.string(u,"options.hashType");var l=e.split(":");if(l.length==2){i=l[0].toLowerCase();if(!h.test(l[1]))throw new p(e);try{s=a.from(l[1],"base64")}catch(t){throw new p(e)}}else if(l.length>2){i="md5";if(l[0].toLowerCase()==="md5")l=l.slice(1);l=l.map(function(t){while(t.length<2)t="0"+t;if(t.length>2)throw new p(e);return t});l=l.join("");if(!m.test(l)||l.length%2!==0)throw new p(e);try{s=a.from(l,"hex")}catch(t){throw new p(e)}}else{if(m.test(e)){s=a.from(e,"hex")}else if(h.test(e)){s=a.from(e,"base64")}else{throw new p(e)}switch(s.length){case 32:i="sha256";break;case 16:i="md5";break;case 20:i="sha1";break;case 64:i="sha512";break;default:throw new p(e)}if(t.hashType===undefined)u="spki"}if(i===undefined)throw new p(e);if(r.hashAlgs[i]===undefined)throw new f(i);if(o!==undefined){o=o.map(function(e){return e.toLowerCase()});if(o.indexOf(i)===-1)throw new f(i)}return new Fingerprint({algorithm:i,hash:s,type:t.type||"key",hashType:u})};function addColons(e){return e.replace(/(.{2})(?=.)/g,"$1:")}function base64Strip(e){return e.replace(/=*$/,"")}function sshBase64Format(e,t){return e.toUpperCase()+":"+base64Strip(t)}Fingerprint.isFingerprint=function(e,t){return d.isCompatible(e,Fingerprint,t)};Fingerprint.prototype._sshpkApiVersion=[1,2];Fingerprint._oldVersionDetect=function(e){n.func(e.toString);n.func(e.matches);return[1,0]}},function(e,t,i){const n=i(255);e.exports=function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").explicit(0).optional().choice({namedCurve:this.objid(n)}),this.key("publicKey").explicit(1).optional().bitstr())}},function(e,t,i){e.exports=glob;var n=i(747);var a=i(302);var r=i(595);var s=r.Minimatch;var o=i(689);var u=i(614).EventEmitter;var l=i(622);var c=i(357);var d=i(681);var p=i(245);var f=i(856);var h=f.alphasort;var m=f.alphasorti;var b=f.setopts;var g=f.ownProp;var y=i(674);var S=i(669);var w=f.childrenIgnored;var v=f.isIgnored;var z=i(49);function glob(e,t,i){if(typeof t==="function")i=t,t={};if(!t)t={};if(t.sync){if(i)throw new TypeError("callback provided to sync glob");return p(e,t)}return new Glob(e,t,i)}glob.sync=p;var j=glob.GlobSync=p.GlobSync;glob.glob=glob;function extend(e,t){if(t===null||typeof t!=="object"){return e}var i=Object.keys(t);var n=i.length;while(n--){e[i[n]]=t[i[n]]}return e}glob.hasMagic=function(e,t){var i=extend({},t);i.noprocess=true;var n=new Glob(e,i);var a=n.minimatch.set;if(!e)return false;if(a.length>1)return true;for(var r=0;rthis.maxLength)return t();if(!this.stat&&g(this.cache,i)){var r=this.cache[i];if(Array.isArray(r))r="DIR";if(!a||r==="DIR")return t(null,r);if(a&&r==="FILE")return t()}var s;var o=this.statCache[i];if(o!==undefined){if(o===false)return t(null,o);else{var u=o.isDirectory()?"DIR":"FILE";if(a&&u==="FILE")return t();else return t(null,u,o)}}var l=this;var c=y("stat\0"+i,lstatcb_);if(c)n.lstat(i,c);function lstatcb_(a,r){if(r&&r.isSymbolicLink()){return n.stat(i,function(n,a){if(n)l._stat2(e,i,null,r,t);else l._stat2(e,i,n,a,t)})}else{l._stat2(e,i,a,r,t)}}};Glob.prototype._stat2=function(e,t,i,n,a){if(i&&(i.code==="ENOENT"||i.code==="ENOTDIR")){this.statCache[t]=false;return a()}var r=e.slice(-1)==="/";this.statCache[t]=n;if(t.slice(-1)==="/"&&n&&!n.isDirectory())return a(null,false,n);var s=true;if(n)s=n.isDirectory()?"DIR":"FILE";this.cache[t]=this.cache[t]||s;if(r&&s==="FILE")return a();return a(null,s,n)}},function(e,t,i){const n=i(232);function merge(e,...t){for(const i of t){if(!n(i)){continue}for(const[t,a]of Object.entries(i)){if(t==="__proto__"||t==="constructor"){continue}if(n(e[t])&&n(a)){e[t]=merge(e[t],a)}else if(typeof a!=="undefined"){e[t]=a}}}return e}e.exports=merge},,,,,function(e,t,i){const{createCipheriv:n,createDecipheriv:a,getCiphers:r}=i(373);const{KEYOBJECT:s}=i(771);const{JWEInvalid:o,JWEDecryptionFailed:u}=i(466);const{asInput:l}=i(40);const c=function(e,t,i){if(t.length!==12){throw new o("invalid iv")}if(arguments.length===3){if(i.length!==16){throw new o("invalid tag")}}};const d=(e,{[s]:t},i,{iv:a,aad:r=Buffer.alloc(0)})=>{const o=l(t,false);c(e,a);const u=n(`aes-${e}-gcm`,o,a,{authTagLength:16});u.setAAD(r);const d=Buffer.concat([u.update(i),u.final()]);const p=u.getAuthTag();return{ciphertext:d,tag:p}};const p=(e,{[s]:t},i,{iv:n,tag:r=Buffer.alloc(0),aad:o=Buffer.alloc(0)})=>{const d=l(t,false);c(e,n,r);try{const t=a(`aes-${e}-gcm`,d,n,{authTagLength:16});t.setAuthTag(r);t.setAAD(o);return Buffer.concat([t.update(i),t.final()])}catch(e){throw new u}};e.exports=((e,t)=>{["A128GCM","A192GCM","A256GCM"].forEach(i=>{const n=parseInt(i.substr(1,3),10);if(r().includes(`aes-${n}-gcm`)){e.encrypt.set(i,d.bind(undefined,n));e.decrypt.set(i,p.bind(undefined,n));t.oct.encrypt[i]=t.oct.decrypt[i]=(e=>(e.use==="enc"||e.use===undefined)&&e.length===n)}})})},function(){},function(e,t,i){const{inherits:n}=i(669);function Reporter(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}Reporter.prototype.isError=function isError(e){return e instanceof ReporterError};Reporter.prototype.save=function save(){const e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}};Reporter.prototype.restore=function restore(e){const t=this._reporterState;t.obj=e.obj;t.path=t.path.slice(0,e.pathLen)};Reporter.prototype.enterKey=function enterKey(e){return this._reporterState.path.push(e)};Reporter.prototype.exitKey=function exitKey(e){const t=this._reporterState;t.path=t.path.slice(0,e-1)};Reporter.prototype.leaveKey=function leaveKey(e,t,i){const n=this._reporterState;this.exitKey(e);if(n.obj!==null){n.obj[t]=i}};Reporter.prototype.path=function path(){return this._reporterState.path.join("/")};Reporter.prototype.enterObject=function enterObject(){const e=this._reporterState;const t=e.obj;e.obj={};return t};Reporter.prototype.leaveObject=function leaveObject(e){const t=this._reporterState;const i=t.obj;t.obj=e;return i};Reporter.prototype.error=function error(e){let t;const i=this._reporterState;const n=e instanceof ReporterError;if(n){t=e}else{t=new ReporterError(i.path.map(function(e){return`[${JSON.stringify(e)}]`}).join(""),e.message||e,e.stack)}if(!i.options.partial){throw t}if(!n){i.errors.push(t)}return t};Reporter.prototype.wrapResult=function wrapResult(e){const t=this._reporterState;if(!t.options.partial){return e}return{result:this.isError(e)?null:e,errors:t.errors}};function ReporterError(e,t){this.path=e;this.rethrow(t)}n(ReporterError,Error);ReporterError.prototype.rethrow=function rethrow(e){this.message=`${e} at: ${this.path||"(shallow)"}`;if(Error.captureStackTrace){Error.captureStackTrace(this,ReporterError)}if(!this.stack){try{throw new Error(this.message)}catch(e){this.stack=e.stack}}return this};t.Reporter=Reporter},,,function(e){e.exports=require("stream")},function(e,t,i){"use strict";var n=i(819);e.exports=n},,function(e,t,i){"use strict";var n=i(747);var a=i(191);var r=i(846);var s=i(374);function Har(e){this.request=e}Har.prototype.reducer=function(e,t){if(e[t.name]===undefined){e[t.name]=t.value;return e}var i=[e[t.name],t.value];e[t.name]=i;return e};Har.prototype.prep=function(e){e.queryObj={};e.headersObj={};e.postData.jsonObj=false;e.postData.paramsObj=false;if(e.queryString&&e.queryString.length){e.queryObj=e.queryString.reduce(this.reducer,{})}if(e.headers&&e.headers.length){e.headersObj=e.headers.reduceRight(function(e,t){e[t.name]=t.value;return e},{})}if(e.cookies&&e.cookies.length){var t=e.cookies.map(function(e){return e.name+"="+e.value});if(t.length){e.headersObj.cookie=t.join("; ")}}function some(t){return t.some(function(t){return e.postData.mimeType.indexOf(t)===0})}if(some(["multipart/mixed","multipart/related","multipart/form-data","multipart/alternative"])){e.postData.mimeType="multipart/form-data"}else if(some(["application/x-www-form-urlencoded"])){if(!e.postData.params){e.postData.text=""}else{e.postData.paramsObj=e.postData.params.reduce(this.reducer,{});e.postData.text=a.stringify(e.postData.paramsObj)}}else if(some(["text/json","text/x-json","application/json","application/x-json"])){e.postData.mimeType="application/json";if(e.postData.text){try{e.postData.jsonObj=JSON.parse(e.postData.text)}catch(t){this.request.debug(t);e.postData.mimeType="text/plain"}}}return e};Har.prototype.options=function(e){if(!e.har){return e}var t={};s(t,e.har);if(t.log&&t.log.entries){t=t.log.entries[0]}t.url=t.url||e.url||e.uri||e.baseUrl||"/";t.httpVersion=t.httpVersion||"HTTP/1.1";t.queryString=t.queryString||[];t.headers=t.headers||[];t.cookies=t.cookies||[];t.postData=t.postData||{};t.postData.mimeType=t.postData.mimeType||"application/octet-stream";t.bodySize=0;t.headersSize=0;t.postData.size=0;if(!r.request(t)){return e}var i=this.prep(t);if(i.url){e.url=i.url}if(i.method){e.method=i.method}if(Object.keys(i.queryObj).length){e.qs=i.queryObj}if(Object.keys(i.headersObj).length){e.headers=i.headersObj}function test(e){return i.postData.mimeType.indexOf(e)===0}if(test("application/x-www-form-urlencoded")){e.form=i.postData.paramsObj}else if(test("application/json")){if(i.postData.jsonObj){e.body=i.postData.jsonObj;e.json=true}}else if(test("multipart/form-data")){e.formData={};i.postData.params.forEach(function(t){var i={};if(!t.fileName&&!t.contentType){e.formData[t.name]=t.value;return}if(t.fileName&&!t.value){i.value=n.createReadStream(t.fileName)}else if(t.value){i.value=t.value}if(t.fileName){i.options={filename:t.fileName,contentType:t.contentType?t.contentType:null}}e.formData[t.name]=i})}else{if(i.postData.text){e.body=i.postData.text}}return e};t.Har=Har},function(e,t,i){"use strict";var n=i(128);var a=i(945);var r=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?"+"|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?"+"|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*"+"|[-+]?\\.(?:inf|Inf|INF)"+"|\\.(?:nan|NaN|NAN))$");function resolveYamlFloat(e){if(e===null)return false;if(!r.test(e)||e[e.length-1]==="_"){return false}return true}function constructYamlFloat(e){var t,i,n,a;t=e.replace(/_/g,"").toLowerCase();i=t[0]==="-"?-1:1;a=[];if("+-".indexOf(t[0])>=0){t=t.slice(1)}if(t===".inf"){return i===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY}else if(t===".nan"){return NaN}else if(t.indexOf(":")>=0){t.split(":").forEach(function(e){a.unshift(parseFloat(e,10))});t=0;n=1;a.forEach(function(e){t+=e*n;n*=60});return i*t}return i*parseFloat(t,10)}var s=/^[-+]?[0-9]+e/;function representYamlFloat(e,t){var i;if(isNaN(e)){switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}}else if(Number.POSITIVE_INFINITY===e){switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}}else if(Number.NEGATIVE_INFINITY===e){switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}}else if(n.isNegativeZero(e)){return"-0.0"}i=e.toString(10);return s.test(i)?i.replace("e",".e"):i}function isFloat(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||n.isNegativeZero(e))}e.exports=new a("tag:yaml.org,2002:float",{kind:"scalar",resolve:resolveYamlFloat,construct:constructYamlFloat,predicate:isFloat,represent:representYamlFloat,defaultStyle:"lowercase"})},function(e,t,i){var n=i(622).relative;e.exports=depd;var a=process.cwd();function containsNamespace(e,t){var i=e.split(/[ ,]+/);var n=String(t).toLowerCase();for(var a=0;a0}function isignored(e){if(process.noDeprecation){return true}var t=process.env.NO_DEPRECATION||"";return containsNamespace(t,e)}function istraced(e){if(process.traceDeprecation){return true}var t=process.env.TRACE_DEPRECATION||"";return containsNamespace(t,e)}function log(e,t){var i=eehaslisteners(process,"deprecation");if(!i&&this._ignored){return}var n;var a;var r;var s;var o=0;var u=false;var l=getStack();var c=this._file;if(t){s=t;r=callSiteLocation(l[1]);r.name=s.name;c=r[0]}else{o=2;s=callSiteLocation(l[o]);r=s}for(;o";var i=e.getLineNumber();var n=e.getColumnNumber();if(e.isEval()){t=e.getEvalOrigin()+", "+t}var a=[t,i,n];a.callSite=e;a.name=e.getFunctionName();return a}function defaultMessage(e){var t=e.callSite;var i=e.name;if(!i){i=""}var n=t.getThis();var a=n&&t.getTypeName();if(a==="Object"){a=undefined}if(a==="Function"){a=n.name||a}return a&&t.getMethodName()?a+"."+i:i}function formatPlain(e,t,i){var n=(new Date).toUTCString();var a=n+" "+this._namespace+" deprecated "+e;if(this._traced){for(var r=0;r=0;o--)if(s=e[o])r=(a<3?s(r):a>3?s(t,i,r):s(t,i))||r;return a>3&&r&&Object.defineProperty(t,i,r),r};r=function(e,t){return function(i,n){t(i,n,e)}};s=function(e,t){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(e,t)};o=function(e,t,i,n){function adopt(e){return e instanceof i?e:new i(function(t){t(e)})}return new(i||(i=Promise))(function(i,a){function fulfilled(e){try{step(n.next(e))}catch(e){a(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){a(e)}}function step(e){e.done?i(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};u=function(e,t){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,a,r,s;return s={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function verb(e){return function(t){return step([e,t])}}function step(s){if(n)throw new TypeError("Generator is already executing.");while(i)try{if(n=1,a&&(r=s[0]&2?a["return"]:s[0]?a["throw"]||((r=a["return"])&&r.call(a),0):a.next)&&!(r=r.call(a,s[1])).done)return r;if(a=0,r)s=[s[0]&2,r.value];switch(s[0]){case 0:case 1:r=s;break;case 4:i.label++;return{value:s[1],done:false};case 5:i.label++;a=s[1];s=[0];continue;case 7:s=i.ops.pop();i.trys.pop();continue;default:if(!(r=i.trys,r=r.length>0&&r[r.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!r||s[1]>r[0]&&s[1]=e.length)e=void 0;return{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};d=function(e,t){var i=typeof Symbol==="function"&&e[Symbol.iterator];if(!i)return e;var n=i.call(e),a,r=[],s;try{while((t===void 0||t-- >0)&&!(a=n.next()).done)r.push(a.value)}catch(e){s={error:e}}finally{try{if(a&&!a.done&&(i=n["return"]))i.call(n)}finally{if(s)throw s.error}}return r};p=function(){for(var e=[],t=0;t1||resume(e,t)})}}function resume(e,t){try{step(n[e](t))}catch(e){settle(r[0][3],e)}}function step(e){e.value instanceof h?Promise.resolve(e.value.v).then(fulfill,reject):settle(r[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,t){if(e(t),r.shift(),r.length)resume(r[0][0],r[0][1])}};b=function(e){var t,i;return t={},verb("next"),verb("throw",function(e){throw e}),verb("return"),t[Symbol.iterator]=function(){return this},t;function verb(n,a){t[n]=e[n]?function(t){return(i=!i)?{value:h(e[n](t)),done:n==="return"}:a?a(t):t}:a}};g=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],i;return t?t.call(e):(e=typeof c==="function"?c(e):e[Symbol.iterator](),i={},verb("next"),verb("throw"),verb("return"),i[Symbol.asyncIterator]=function(){return this},i);function verb(t){i[t]=e[t]&&function(i){return new Promise(function(n,a){i=e[t](i),settle(n,a,i.done,i.value)})}}function settle(e,t,i,n){Promise.resolve(n).then(function(t){e({value:t,done:i})},t)}};y=function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};S=function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)if(Object.hasOwnProperty.call(e,i))t[i]=e[i];t["default"]=e;return t};w=function(e){return e&&e.__esModule?e:{default:e}};v=function(e,t){if(!t.has(e)){throw new TypeError("attempted to get private field on non-instance")}return t.get(e)};z=function(e,t,i){if(!t.has(e)){throw new TypeError("attempted to set private field on non-instance")}t.set(e,i);return i};e("__extends",t);e("__assign",i);e("__rest",n);e("__decorate",a);e("__param",r);e("__metadata",s);e("__awaiter",o);e("__generator",u);e("__exportStar",l);e("__createBinding",j);e("__values",c);e("__read",d);e("__spread",p);e("__spreadArrays",f);e("__await",h);e("__asyncGenerator",m);e("__asyncDelegator",b);e("__asyncValues",g);e("__makeTemplateObject",y);e("__importStar",S);e("__importDefault",w);e("__classPrivateFieldGet",v);e("__classPrivateFieldSet",z)})},,function(e,t,i){var n=i(157),a=i(147),r=i(939);e.exports=parallel;function parallel(e,t,i){var s=a(e);while(s.index<(s["keyedList"]||e).length){n(e,t,s,function(e,t){if(e){i(e,t);return}if(Object.keys(s.jobs).length===0){i(null,s.results);return}});s.index++}return r.bind(s,i)}},,,,function(e,t,i){var n=i(872);var a=i(373);var r=i(650);var s=i(909);var o=s.HASH_ALGOS;var u=s.PK_ALGOS;var l=s.InvalidAlgorithmError;var c=s.HttpSignatureError;var d=s.validateAlgorithm;e.exports={verifySignature:function verifySignature(e,t){n.object(e,"parsedSignature");if(typeof t==="string"||Buffer.isBuffer(t))t=r.parseKey(t);n.ok(r.Key.isKey(t,[1,1]),"pubkey must be a sshpk.Key");var i=d(e.algorithm);if(i[0]==="hmac"||i[0]!==t.type)return false;var a=t.createVerify(i[1]);a.update(e.signingString);return a.verify(e.params.signature,"base64")},verifyHMAC:function verifyHMAC(e,t){n.object(e,"parsedHMAC");n.string(t,"secret");var i=d(e.algorithm);if(i[0]!=="hmac")return false;var r=i[1].toUpperCase();var s=a.createHmac(r,t);s.update(e.signingString);var o=a.createHmac(r,t);o.update(s.digest());o=o.digest();var u=a.createHmac(r,t);u.update(new Buffer(e.params.signature,"base64"));u=u.digest();if(typeof o==="string")return o===u;if(Buffer.isBuffer(o)&&!o.equals)return o.toString("binary")===u.toString("binary");return o.equals(u)}}},,,function(e,t,i){"use strict";var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)if(Object.hasOwnProperty.call(e,i))t[i]=e[i];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const a=n(i(87));const r=i(82);function issueCommand(e,t,i){const n=new Command(e,t,i);process.stdout.write(n.toString()+a.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const s="::";class Command{constructor(e,t,i){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=i}toString(){let e=s+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const i in this.properties){if(this.properties.hasOwnProperty(i)){const n=this.properties[i];if(n){if(t){t=false}else{e+=","}e+=`${i}=${escapeProperty(n)}`}}}}e+=`${s}${escapeData(this.message)}`;return e}}function escapeData(e){return r.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return r.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},function(e,t,i){const{improvedDH:n}=i(915);const{KEYLENGTHS:a}=i(962);const{generateSync:r}=i(626);const{name:s}=i(997);const o=i(68);const u=(e,t,{enc:i})=>{const n=r(e.kty,e.crv);const s=o(i,a.get(i),n,e);return{wrapped:s,header:{epk:{kty:e.kty,crv:e.crv,x:n.x,y:n.y}}}};const l=(e,t,i)=>{const{enc:n,epk:r}=i;return o(n,a.get(n),e,r,i)};e.exports=((e,t)=>{e.keyManagementEncrypt.set("ECDH-ES",u);e.keyManagementDecrypt.set("ECDH-ES",l);t.EC.deriveKey["ECDH-ES"]=(e=>(e.use==="enc"||e.use===undefined)&&e.crv!==s);if(n){t.OKP.deriveKey["ECDH-ES"]=(e=>(e.use==="enc"||e.use===undefined)&&e.keyObject.asymmetricKeyType.startsWith("x"))}})},function(e){"use strict";e.exports=["beforeError","init","beforeRequest","beforeRedirect","beforeRetry","afterResponse"]},function(e){"use strict";e.exports=function generate_uniqueItems(e,t,i){var n=" ";var a=e.level;var r=e.dataLevel;var s=e.schema[t];var o=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var l=!e.opts.allErrors;var c="data"+(r||"");var d="valid"+a;var p=e.opts.$data&&s&&s.$data,f;if(p){n+=" var schema"+a+" = "+e.util.getData(s.$data,r,e.dataPathArr)+"; ";f="schema"+a}else{f=s}if((s||p)&&e.opts.uniqueItems!==false){if(p){n+=" var "+d+"; if ("+f+" === false || "+f+" === undefined) "+d+" = true; else if (typeof "+f+" != 'boolean') "+d+" = false; else { "}n+=" var i = "+c+".length , "+d+" = true , j; if (i > 1) { ";var h=e.schema.items&&e.schema.items.type,m=Array.isArray(h);if(!h||h=="object"||h=="array"||m&&(h.indexOf("object")>=0||h.indexOf("array")>=0)){n+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+c+"[i], "+c+"[j])) { "+d+" = false; break outer; } } } "}else{n+=" var itemIndices = {}, item; for (;i--;) { var item = "+c+"[i]; ";var b="checkDataType"+(m?"s":"");n+=" if ("+e.util[b](h,"item",e.opts.strictNumbers,true)+") continue; ";if(m){n+=" if (typeof item == 'string') item = '\"' + item; "}n+=" if (typeof itemIndices[item] == 'number') { "+d+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}n+=" } ";if(p){n+=" } "}n+=" if (!"+d+") { ";var g=g||[];g.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+"uniqueItems"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { i: i, j: j } ";if(e.opts.messages!==false){n+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "}if(e.opts.verbose){n+=" , schema: ";if(p){n+="validate.schema"+o}else{n+=""+s}n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}n+=" } "}else{n+=" {} "}var y=n;n=g.pop();if(!e.compositeRule&&l){if(e.async){n+=" throw new ValidationError(["+y+"]); "}else{n+=" validate.errors = ["+y+"]; return false; "}}else{n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+=" } ";if(l){n+=" else { "}}else{if(l){n+=" if (true) { "}}return n}},function(e,t,i){"use strict";const n=i(534);e.exports=(e=>{const t={protocol:e.protocol,hostname:e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,href:e.href};if(n.string(e.port)&&e.port.length>0){t.port=Number(e.port)}if(e.username||e.password){t.auth=`${e.username}:${e.password}`}t.path=n.null(e.search)?e.pathname:`${e.pathname}${e.search}`;return t})},,,function(e){"use strict";e.exports=function generate_pattern(e,t,i){var n=" ";var a=e.level;var r=e.dataLevel;var s=e.schema[t];var o=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var l=!e.opts.allErrors;var c="data"+(r||"");var d=e.opts.$data&&s&&s.$data,p;if(d){n+=" var schema"+a+" = "+e.util.getData(s.$data,r,e.dataPathArr)+"; ";p="schema"+a}else{p=s}var f=d?"(new RegExp("+p+"))":e.usePattern(s);n+="if ( ";if(d){n+=" ("+p+" !== undefined && typeof "+p+" != 'string') || "}n+=" !"+f+".test("+c+") ) { ";var h=h||[];h.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+"pattern"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { pattern: ";if(d){n+=""+p}else{n+=""+e.util.toQuotedString(s)}n+=" } ";if(e.opts.messages!==false){n+=" , message: 'should match pattern \"";if(d){n+="' + "+p+" + '"}else{n+=""+e.util.escapeQuotes(s)}n+="\"' "}if(e.opts.verbose){n+=" , schema: ";if(d){n+="validate.schema"+o}else{n+=""+e.util.toQuotedString(s)}n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}n+=" } "}else{n+=" {} "}var m=n;n=h.pop();if(!e.compositeRule&&l){if(e.async){n+=" throw new ValidationError(["+m+"]); "}else{n+=" validate.errors = ["+m+"]; return false; "}}else{n+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+="} ";if(l){n+=" else { "}return n}},,function(e){"use strict";class Event{constructor(e,t){this.target=t;this.type=e}}class MessageEvent extends Event{constructor(e,t){super("message",t);this.data=e}}class CloseEvent extends Event{constructor(e,t,i){super("close",i);this.wasClean=i._closeFrameReceived&&i._closeFrameSent;this.reason=t;this.code=e}}class OpenEvent extends Event{constructor(e){super("open",e)}}class ErrorEvent extends Event{constructor(e,t){super("error",t);this.message=e.message;this.error=e}}const t={addEventListener(e,t,i){if(typeof t!=="function")return;function onMessage(e){t.call(this,new MessageEvent(e,this))}function onClose(e,i){t.call(this,new CloseEvent(e,i,this))}function onError(e){t.call(this,new ErrorEvent(e,this))}function onOpen(){t.call(this,new OpenEvent(this))}const n=i&&i.once?"once":"on";if(e==="message"){onMessage._listener=t;this[n](e,onMessage)}else if(e==="close"){onClose._listener=t;this[n](e,onClose)}else if(e==="error"){onError._listener=t;this[n](e,onError)}else if(e==="open"){onOpen._listener=t;this[n](e,onOpen)}else{this[n](e,t)}},removeEventListener(e,t){const i=this.listeners(e);for(let n=0;n{if(!e.name){throw new Error(`clusters[${t}].name is missing`)}if(!e.cluster){throw new Error(`clusters[${t}].cluster is missing`)}if(!e.cluster.server){throw new Error(`clusters[${t}].cluster.server is missing`)}return{caData:e.cluster["certificate-authority-data"],caFile:e.cluster["certificate-authority"],name:e.name,server:e.cluster.server,skipTLSVerify:e.cluster["insecure-skip-tls-verify"]===true}}}function newUsers(e){return a.map(e,userIterator())}t.newUsers=newUsers;function userIterator(){return(e,t,i)=>{if(!e.name){throw new Error(`users[${t}].name is missing`)}return{authProvider:e.user?e.user["auth-provider"]:null,certData:e.user?e.user["client-certificate-data"]:null,certFile:e.user?e.user["client-certificate"]:null,exec:e.user?e.user.exec:null,keyData:e.user?e.user["client-key-data"]:null,keyFile:e.user?e.user["client-key"]:null,name:e.name,token:findToken(e.user),password:e.user?e.user.password:null,username:e.user?e.user.username:null}}}function findToken(e){if(e){if(e.token){return e.token}if(e["token-file"]){return n.readFileSync(e["token-file"]).toString()}}}function newContexts(e){return a.map(e,contextIterator())}t.newContexts=newContexts;function contextIterator(){return(e,t,i)=>{if(!e.name){throw new Error(`contexts[${t}].name is missing`)}if(!e.context){throw new Error(`contexts[${t}].context is missing`)}if(!e.context.cluster){throw new Error(`contexts[${t}].context.cluster is missing`)}return{cluster:e.context.cluster,name:e.name,user:e.context.user||undefined,namespace:e.context.namespace||undefined}}}},,,,,function(e,t,i){e.exports={read:read,readPkcs1:readPkcs1,write:write,writePkcs1:writePkcs1};var n=i(872);var a=i(325);var r=i(215).Buffer;var s=i(98);var o=i(270);var u=i(852);var l=i(502);var c=i(268);var d=i(707);var p=d.readECDSACurve;function read(e,t){return c.read(e,t,"pkcs1")}function write(e,t){return c.write(e,t,"pkcs1")}function readMPInt(e,t){n.strictEqual(e.peek(),a.Ber.Integer,t+" is not an Integer");return o.mpNormalize(e.readString(a.Ber.Integer,true))}function readPkcs1(e,t,i){switch(e){case"RSA":if(t==="public")return readPkcs1RSAPublic(i);else if(t==="private")return readPkcs1RSAPrivate(i);throw new Error("Unknown key type: "+t);case"DSA":if(t==="public")return readPkcs1DSAPublic(i);else if(t==="private")return readPkcs1DSAPrivate(i);throw new Error("Unknown key type: "+t);case"EC":case"ECDSA":if(t==="private")return readPkcs1ECDSAPrivate(i);else if(t==="public")return readPkcs1ECDSAPublic(i);throw new Error("Unknown key type: "+t);case"EDDSA":case"EdDSA":if(t==="private")return readPkcs1EdDSAPrivate(i);throw new Error(t+" keys not supported with EdDSA");default:throw new Error("Unknown key algo: "+e)}}function readPkcs1RSAPublic(e){var t=readMPInt(e,"modulus");var i=readMPInt(e,"exponent");var n={type:"rsa",parts:[{name:"e",data:i},{name:"n",data:t}]};return new u(n)}function readPkcs1RSAPrivate(e){var t=readMPInt(e,"version");n.strictEqual(t[0],0);var i=readMPInt(e,"modulus");var a=readMPInt(e,"public exponent");var r=readMPInt(e,"private exponent");var s=readMPInt(e,"prime1");var o=readMPInt(e,"prime2");var u=readMPInt(e,"exponent1");var c=readMPInt(e,"exponent2");var d=readMPInt(e,"iqmp");var p={type:"rsa",parts:[{name:"n",data:i},{name:"e",data:a},{name:"d",data:r},{name:"iqmp",data:d},{name:"p",data:s},{name:"q",data:o},{name:"dmodp",data:u},{name:"dmodq",data:c}]};return new l(p)}function readPkcs1DSAPrivate(e){var t=readMPInt(e,"version");n.strictEqual(t.readUInt8(0),0);var i=readMPInt(e,"p");var a=readMPInt(e,"q");var r=readMPInt(e,"g");var s=readMPInt(e,"y");var o=readMPInt(e,"x");var u={type:"dsa",parts:[{name:"p",data:i},{name:"q",data:a},{name:"g",data:r},{name:"y",data:s},{name:"x",data:o}]};return new l(u)}function readPkcs1EdDSAPrivate(e){var t=readMPInt(e,"version");n.strictEqual(t.readUInt8(0),1);var i=e.readString(a.Ber.OctetString,true);e.readSequence(160);var r=e.readOID();n.strictEqual(r,"1.3.101.112","the ed25519 curve identifier");e.readSequence(161);var s=o.readBitString(e);var u={type:"ed25519",parts:[{name:"A",data:o.zeroPadToLength(s,32)},{name:"k",data:i}]};return new l(u)}function readPkcs1DSAPublic(e){var t=readMPInt(e,"y");var i=readMPInt(e,"p");var n=readMPInt(e,"q");var a=readMPInt(e,"g");var r={type:"dsa",parts:[{name:"y",data:t},{name:"p",data:i},{name:"q",data:n},{name:"g",data:a}]};return new u(r)}function readPkcs1ECDSAPublic(e){e.readSequence();var t=e.readOID();n.strictEqual(t,"1.2.840.10045.2.1","must be ecPublicKey");var i=e.readOID();var l;var c=Object.keys(s.curves);for(var d=0;d=1e9){throw new Error(`Generated versionCode ${i} is dangerously close to the maximum allowed number 2100000000. Consider a different versioning scheme to be able to continue updating your application.`)}Object(s.info)(`Using android versionCode ${i}`);return i}}class Platform{static get default(){return Platform.types.StandaloneWindows64}static get types(){return{StandaloneOSX:"StandaloneOSX",StandaloneWindows:"StandaloneWindows",StandaloneWindows64:"StandaloneWindows64",StandaloneLinux64:"StandaloneLinux64",iOS:"iOS",Android:"Android",WebGL:"WebGL",WSAPlayer:"WSAPlayer",PS4:"PS4",XboxOne:"XboxOne",tvOS:"tvOS",Switch:"Switch",Lumin:"Lumin",BJM:"BJM",Stadia:"Stadia",Facebook:"Facebook",NoTarget:"NoTarget",Test:"Test"}}static isWindows(e){switch(e){case Platform.types.StandaloneWindows:case Platform.types.StandaloneWindows64:return true;default:return false}}static isAndroid(e){switch(e){case Platform.types.Android:return true;default:return false}}}var u=Platform;const l=i(470);class input_Input{static get unityVersion(){return l.getInput("unityVersion")}static get customImage(){return l.getInput("customImage")}static get targetPlatform(){return l.getInput("targetPlatform")||u.default}static get projectPath(){const e=l.getInput("projectPath")||".";return e.replace(/\/$/,"")}static get buildName(){return l.getInput("buildName")||this.targetPlatform}static get buildsPath(){return l.getInput("buildsPath")||"build"}static get buildMethod(){return l.getInput("buildMethod")}static get versioningStrategy(){return l.getInput("versioning")||"Semantic"}static get specifiedVersion(){return l.getInput("version")||""}static get androidVersionCode(){return l.getInput("androidVersionCode")}static get androidAppBundle(){const e=l.getInput("androidAppBundle")||false;return e==="true"}static get androidKeystoreName(){return l.getInput("androidKeystoreName")||""}static get androidKeystoreBase64(){return l.getInput("androidKeystoreBase64")||""}static get androidKeystorePass(){return l.getInput("androidKeystorePass")||""}static get androidKeyaliasName(){return l.getInput("androidKeyaliasName")||""}static get androidKeyaliasPass(){return l.getInput("androidKeyaliasPass")||""}static get allowDirtyBuild(){const e=l.getInput("allowDirtyBuild")||false;return e==="true"}static get customParameters(){return l.getInput("customParameters")||""}static get kubeConfig(){return l.getInput("kubeConfig")||""}static get githubToken(){return l.getInput("githubToken")||""}static get kubeContainerMemory(){return l.getInput("kubeContainerMemory")||"800M"}static get kubeContainerCPU(){return l.getInput("kubeContainerCPU")||"0.25"}static get kubeVolumeSize(){return l.getInput("kubeVolumeSize")||"5Gi"}static get kubeVolume(){return l.getInput("kubeVolume")||""}}var c=input_Input;class NotImplementedException extends Error{constructor(e){super(e);this.name="NotImplementedException"}}var d=NotImplementedException;class ValidationError extends Error{constructor(e){super(e);this.name="ValidationError"}}var p=ValidationError;var f=i(986);class system_System{static async run(e,t,i){let n="";let a="";let r="";const o={stdout:e=>{n+=e.toString()},stderr:e=>{a+=e.toString()},debug:e=>{r+=e.toString()}};const u=()=>{if(r!==""){Object(s.debug)(r)}if(n!==""){Object(s.info)(n)}if(a!==""){Object(s.warning)(a)}};const l=i=>{let n=e;if(Array.isArray(t)){n+=` ${t.join(" ")}`}else if(typeof t==="string"){n+=` ${t}`}throw new Error(`Failed to run "${n}".\n ${i}`)};try{const n=await Object(f.exec)(e,t,{silent:true,listeners:o,...i});u();if(n!==0){l(`Command returned non-zero exit code.\nError: ${a}`)}}catch(e){u();l(`In-command error caught: ${e}`)}return n}}var h=system_System;class versioning_Versioning{static get projectPath(){return c.projectPath}static get isDirtyAllowed(){return c.allowDirtyBuild}static get strategies(){return{None:"None",Semantic:"Semantic",Tag:"Tag",Custom:"Custom"}}static get branch(){return this.headRef||this.ref&&this.ref.slice(11)}static get headRef(){return process.env.GITHUB_HEAD_REF}static get ref(){return process.env.GITHUB_REF}static get sha(){return process.env.GITHUB_SHA}static get maxDiffLines(){return 60}static async logDiff(){const e=`git --no-pager diff | head -n ${this.maxDiffLines.toString()}`;await h.run("sh",undefined,{input:Buffer.from(e),silent:true})}static get descriptionRegex(){return/^v([\d.]+)-(\d+)-g(\w+)-?(\w+)*/g}static async determineVersion(e,t){if(!Object.hasOwnProperty.call(this.strategies,e)){throw new p(`Versioning strategy should be one of ${Object.values(this.strategies).join(", ")}.`)}let i;switch(e){case this.strategies.None:i="none";break;case this.strategies.Custom:i=t;break;case this.strategies.Semantic:i=await this.generateSemanticVersion();break;case this.strategies.Tag:i=await this.generateTagVersion();break;default:throw new d(`Strategy ${e} is not implemented.`)}return i}static async generateSemanticVersion(){await this.fetch();await this.logDiff();if(await this.isDirty()&&!this.isDirtyAllowed){throw new Error("Branch is dirty. Refusing to base semantic version on uncommitted changes")}if(!await this.hasAnyVersionTags()){const e=`0.0.${await this.getTotalNumberOfCommits()}`;Object(s.info)(`Generated version ${e} (no version tags found).`);return e}const{tag:e,commits:t,hash:i}=await this.parseSemanticVersion();Object(s.info)(`Found semantic version ${e}.${t} for ${this.branch}@${i}`);return`${e}.${t}`}static async generateTagVersion(){let e=await this.getTag();if(e.charAt(0)==="v"){e=e.slice(1)}return e}static async parseSemanticVersion(){const e=await this.getVersionDescription();try{const[t,i,n,a]=this.descriptionRegex.exec(e);return{match:t,tag:i,commits:n,hash:a}}catch(t){throw new Error(`Failed to parse git describe output: "${e}".`)}}static async fetch(){try{await this.git(["fetch","--unshallow"])}catch(e){Object(s.warning)(`Fetch --unshallow caught: ${e}`);await this.git(["fetch"])}}static async getVersionDescription(){return this.git(["describe","--long","--tags","--always","--debug",this.sha])}static async isDirty(){const e=await this.git(["status","--porcelain"]);return e!==""}static async getTag(){return this.git(["tag","--points-at","HEAD"])}static async hasAnyVersionTags(){const e=await h.run("sh",undefined,{input:Buffer.from("git tag --list --merged HEAD | grep v[0-9]* | wc -l"),silent:false});const t=Number.parseInt(e,10);return t!==0}static async getTotalNumberOfCommits(){const e=await this.git(["rev-list","--count",this.sha]);return Number.parseInt(e,10)}static async git(e,t={}){return h.run("git",e,{cwd:this.projectPath,...t})}}class build_parameters_BuildParameters{static async create(){const e=this.parseBuildFile(c.buildName,c.targetPlatform,c.androidAppBundle);const t=await versioning_Versioning.determineVersion(c.versioningStrategy,c.specifiedVersion);const i=android_versioning_AndroidVersioning.determineVersionCode(t,c.androidVersionCode);return{version:c.unityVersion,customImage:c.customImage,runnerTempPath:process.env.RUNNER_TEMP,platform:c.targetPlatform,projectPath:c.projectPath,buildName:c.buildName,buildPath:`${c.buildsPath}/${c.targetPlatform}`,buildFile:e,buildMethod:c.buildMethod,buildVersion:t,androidVersionCode:i,androidKeystoreName:c.androidKeystoreName,androidKeystoreBase64:c.androidKeystoreBase64,androidKeystorePass:c.androidKeystorePass,androidKeyaliasName:c.androidKeyaliasName,androidKeyaliasPass:c.androidKeyaliasPass,customParameters:c.customParameters,kubeConfig:c.kubeConfig,githubToken:c.githubToken,kubeContainerMemory:c.kubeContainerMemory,kubeContainerCPU:c.kubeContainerCPU,kubeVolumeSize:c.kubeVolumeSize,kubeVolume:c.kubeVolume}}static parseBuildFile(e,t,i){if(u.isWindows(t)){return`${e}.exe`}if(u.isAndroid(t)){return i?`${e}.aab`:`${e}.apk`}return e}}var m=build_parameters_BuildParameters;var b=i(747);var g=i.n(b);class Unity{static get libraryFolder(){return"Library"}}var y=Unity;class project_Project{static get relativePath(){const{projectPath:e}=c;return`${e}`}static get absolutePath(){const{workspace:e}=r;return`${e}/${this.relativePath}`}static get libraryFolder(){return`${this.relativePath}/${y.libraryFolder}`}}var S=project_Project;class cache_Cache{static verify(){if(!g().existsSync(S.libraryFolder)){this.notifyAboutCachingPossibility()}}static notifyAboutCachingPossibility(){if(r.isRunningLocally){return}Object(s.warning)(`\n Library folder does not exist.\n Consider setting up caching to speed up your workflow,\n if this is not your first build.\n `)}}var w=cache_Cache;var v=typeof global=="object"&&global&&global.Object===Object&&global;var z=v;var j=typeof self=="object"&&self&&self.Object===Object&&self;var O=z||j||Function("return this")();var k=O;var C=k.Symbol;var T=C;var R=Object.prototype;var E=R.hasOwnProperty;var A=R.toString;var x=T?T.toStringTag:undefined;function getRawTag(e){var t=E.call(e,x),i=e[x];try{e[x]=undefined;var n=true}catch(e){}var a=A.call(e);if(n){if(t){e[x]=i}else{delete e[x]}}return a}var N=getRawTag;var V=Object.prototype;var P=V.toString;function objectToString(e){return P.call(e)}var D=objectToString;var I="[object Null]",_="[object Undefined]";var q=T?T.toStringTag:undefined;function baseGetTag(e){if(e==null){return e===undefined?_:I}return q&&q in Object(e)?N(e):D(e)}var B=baseGetTag;function isObjectLike(e){return e!=null&&typeof e=="object"}var M=isObjectLike;var U="[object Symbol]";function isSymbol(e){return typeof e=="symbol"||M(e)&&B(e)==U}var L=isSymbol;var H=0/0;function baseToNumber(e){if(typeof e=="number"){return e}if(L(e)){return H}return+e}var Q=baseToNumber;function arrayMap(e,t){var i=-1,n=e==null?0:e.length,a=Array(n);while(++i0){if(++t>=wt){return arguments[0]}}else{t=0}return e.apply(undefined,arguments)}}var jt=shortOut;var Ot=jt(He);var kt=Ot;var Ct=/\{\n\/\* \[wrapped with (.+)\] \*/,Tt=/,? & /;function getWrapDetails(e){var t=e.match(Ct);return t?t[1].split(Tt):[]}var Rt=getWrapDetails;var Et=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function insertWrapDetails(e,t){var i=t.length;if(!i){return e}var n=i-1;t[n]=(i>1?"& ":"")+t[n];t=t.join(i>2?", ":" ");return e.replace(Et,"{\n/* [wrapped with "+t+"] */\n")}var At=insertWrapDetails;function constant(e){return function(){return e}}var xt=constant;var Nt=function(){try{var e=_e(Object,"defineProperty");e({},"",{});return e}catch(e){}}();var Vt=Nt;var Pt=!Vt?me:function(e,t){return Vt(e,"toString",{configurable:true,enumerable:false,value:xt(t),writable:true})};var Dt=Pt;var It=jt(Dt);var _t=It;function arrayEach(e,t){var i=-1,n=e==null?0:e.length;while(++i-1}var Ht=arrayIncludes;var Qt=1,Wt=2,Gt=8,Kt=16,Jt=32,Ft=64,Yt=128,Xt=256,Zt=512;var $t=[["ary",Yt],["bind",Qt],["bindKey",Wt],["curry",Gt],["curryRight",Kt],["flip",Zt],["partial",Jt],["partialRight",Ft],["rearg",Xt]];function updateWrapDetails(e,t){qt($t,function(i){var n="_."+i[0];if(t&i[1]&&!Ht(e,n)){e.push(n)}});return e.sort()}var ei=updateWrapDetails;function setWrapToString(e,t,i){var n=t+"";return _t(e,At(n,ei(Rt(n),i)))}var ti=setWrapToString;var ii=1,ni=2,ai=4,ri=8,si=32,oi=64;function createRecurry(e,t,i,n,a,r,s,o,u,l){var c=t&ri,d=c?s:undefined,p=c?undefined:s,f=c?r:undefined,h=c?undefined:r;t|=c?si:oi;t&=~(c?oi:si);if(!(t&ai)){t&=~(ii|ni)}var m=[e,t,a,f,d,h,p,o,u,l];var b=i.apply(undefined,m);if(St(e)){kt(b,m)}b.placeholder=n;return ti(b,e,t)}var ui=createRecurry;function getHolder(e){var t=e;return t.placeholder}var li=getHolder;var ci=9007199254740991;var di=/^(?:0|[1-9]\d*)$/;function isIndex(e,t){var i=typeof e;t=t==null?ci:t;return!!t&&(i=="number"||i!="symbol"&&di.test(e))&&(e>-1&&e%1==0&&e1){g.reverse()}if(c&&u-1&&e%1==0&&e<=nn}var an=isLength;function isArrayLike(e){return e!=null&&an(e.length)&&!we(e)}var rn=isArrayLike;function isIterateeCall(e,t,i){if(!te(i)){return false}var n=typeof t;if(n=="number"?rn(i)&&pi(t,i.length):n=="string"&&t in i){return Ji(i[t],e)}return false}var sn=isIterateeCall;function createAssigner(e){return tn(function(t,i){var n=-1,a=i.length,r=a>1?i[a-1]:undefined,s=a>2?i[2]:undefined;r=e.length>3&&typeof r=="function"?(a--,r):undefined;if(s&&sn(i[0],i[1],s)){r=a<3?undefined:r;a=1}t=Object(t);while(++n-1}var ir=listCacheHas;function listCacheSet(e,t){var i=this.__data__,n=Xa(i,e);if(n<0){++this.size;i.push([e,t])}else{i[n][1]=t}return this}var nr=listCacheSet;function ListCache(e){var t=-1,i=e==null?0:e.length;this.clear();while(++t0&&i(o)){if(t>1){baseFlatten(o,t-1,i,n,a)}else{Ar(a,o)}}else if(!n){a[a.length]=o}}return a}var Vr=baseFlatten;function flatten(e){var t=e==null?0:e.length;return t?Vr(e,1):[]}var Pr=flatten;function flatRest(e){return _t(en(e,undefined,Pr),e+"")}var Dr=flatRest;var Ir=Dr(Er);var _r=Ir;var qr=da(Object.getPrototypeOf,Object);var Br=qr;var Mr="[object Object]";var Ur=Function.prototype,Lr=Object.prototype;var Hr=Ur.toString;var Qr=Lr.hasOwnProperty;var Wr=Hr.call(Object);function isPlainObject(e){if(!M(e)||B(e)!=Mr){return false}var t=Br(e);if(t===null){return true}var i=Qr.call(t,"constructor")&&t.constructor;return typeof i=="function"&&i instanceof i&&Hr.call(i)==Wr}var Gr=isPlainObject;var Kr="[object DOMException]",Jr="[object Error]";function isError(e){if(!M(e)){return false}var t=B(e);return t==Jr||t==Kr||typeof e.message=="string"&&typeof e.name=="string"&&!Gr(e)}var Fr=isError;var Yr=tn(function(e,t){try{return Ye(e,undefined,t)}catch(e){return Fr(e)?e:new Error(e)}});var Xr=Yr;var Zr="Expected a function";function before(e,t){var i;if(typeof t!="function"){throw new TypeError(Zr)}e=pe(e);return function(){if(--e>0){i=t.apply(this,arguments)}if(e<=1){t=undefined}return i}}var $r=before;var es=1,ts=32;var is=tn(function(e,t,i){var n=es;if(i.length){var a=bi(i,li(is));n|=ts}return Qi(e,n,t,i,a)});is.placeholder={};var ns=is;var as=Dr(function(e,t){qt(t,function(t){t=Cr(t);Ki(e,t,ns(e[t],e))});return e});var rs=as;var ss=1,os=2,us=32;var ls=tn(function(e,t,i){var n=ss|os;if(i.length){var a=bi(i,li(ls));n|=us}return Qi(t,n,e,i,a)});ls.placeholder={};var cs=ls;function baseSlice(e,t,i){var n=-1,a=e.length;if(t<0){t=-t>a?0:a+t}i=i>a?a:i;if(i<0){i+=a}a=t>i?0:i-t>>>0;t>>>=0;var r=Array(a);while(++n=n?e:ds(e,t,i)}var ps=castSlice;var fs="\\ud800-\\udfff",hs="\\u0300-\\u036f",ms="\\ufe20-\\ufe2f",bs="\\u20d0-\\u20ff",gs=hs+ms+bs,ys="\\ufe0e\\ufe0f";var Ss="\\u200d";var ws=RegExp("["+Ss+fs+gs+ys+"]");function hasUnicode(e){return ws.test(e)}var vs=hasUnicode;function asciiToArray(e){return e.split("")}var zs=asciiToArray;var js="\\ud800-\\udfff",Os="\\u0300-\\u036f",ks="\\ufe20-\\ufe2f",Cs="\\u20d0-\\u20ff",Ts=Os+ks+Cs,Rs="\\ufe0e\\ufe0f";var Es="["+js+"]",As="["+Ts+"]",xs="\\ud83c[\\udffb-\\udfff]",Ns="(?:"+As+"|"+xs+")",Vs="[^"+js+"]",Ps="(?:\\ud83c[\\udde6-\\uddff]){2}",Ds="[\\ud800-\\udbff][\\udc00-\\udfff]",Is="\\u200d";var _s=Ns+"?",qs="["+Rs+"]?",Bs="(?:"+Is+"(?:"+[Vs,Ps,Ds].join("|")+")"+qs+_s+")*",Ms=qs+_s+Bs,Us="(?:"+[Vs+As+"?",As,Ps,Ds,Es].join("|")+")";var Ls=RegExp(xs+"(?="+xs+")|"+Us+Ms,"g");function unicodeToArray(e){return e.match(Ls)||[]}var Hs=unicodeToArray;function stringToArray(e){return vs(e)?Hs(e):zs(e)}var Qs=stringToArray;function createCaseFirst(e){return function(t){t=jr(t);var i=vs(t)?Qs(t):undefined;var n=i?i[0]:t.charAt(0);var a=i?ps(i,1).join(""):t.slice(1);return n[e]()+a}}var Ws=createCaseFirst;var Gs=Ws("toUpperCase");var Ks=Gs;function capitalize(e){return Ks(jr(e).toLowerCase())}var Js=capitalize;function arrayReduce(e,t,i,n){var a=-1,r=e==null?0:e.length;if(n&&r){i=e[++a]}while(++a=t?e:t}}return e}var bu=baseClamp;function clamp(e,t,i){if(i===undefined){i=t;t=undefined}if(i!==undefined){i=ue(i);i=i===i?i:0}if(t!==undefined){t=ue(t);t=t===t?t:0}return bu(ue(e),t,i)}var gu=clamp;function stackClear(){this.__data__=new ar;this.size=0}var yu=stackClear;function stackDelete(e){var t=this.__data__,i=t["delete"](e);this.size=t.size;return i}var Su=stackDelete;function stackGet(e){return this.__data__.get(e)}var wu=stackGet;function stackHas(e){return this.__data__.has(e)}var vu=stackHas;var zu=200;function stackSet(e,t){var i=this.__data__;if(i instanceof ar){var n=i.__data__;if(!sr||n.lengtho)){return false}var l=r.get(e);if(l&&r.get(t)){return l==t}var c=-1,d=true,p=i&ed?new Yc:undefined;r.set(e,t);r.set(t,e);while(++c=t||i<0||d&&n>=r}function timerExpired(){var e=zp();if(shouldInvoke(e)){return trailingEdge(e)}o=setTimeout(timerExpired,remainingWait(e))}function trailingEdge(e){o=undefined;if(p&&n){return invokeFunc(e)}n=a=undefined;return s}function cancel(){if(o!==undefined){clearTimeout(o)}l=0;n=u=a=o=undefined}function flush(){return o===undefined?s:trailingEdge(zp())}function debounced(){var e=zp(),i=shouldInvoke(e);n=arguments;a=this;u=e;if(i){if(o===undefined){return leadingEdge(u)}if(d){clearTimeout(o);o=setTimeout(timerExpired,t);return invokeFunc(u)}}if(o===undefined){o=setTimeout(timerExpired,t)}return s}debounced.cancel=cancel;debounced.flush=flush;return debounced}var Cp=debounce;function defaultTo(e,t){return e==null||e!==e?t:e}var Tp=defaultTo;var Rp=Object.prototype;var Ep=Rp.hasOwnProperty;var Ap=tn(function(e,t){e=Object(e);var i=-1;var n=t.length;var a=n>2?t[2]:undefined;if(a&&sn(t[0],t[1],a)){n=1}while(++i=Yp){r=Zc;s=false;t=new Yc(t)}e:while(++a=0&&e.slice(i,a)==t}var zf=endsWith;function baseToPairs(e,t){return W(t,function(t){return[t,e[t]]})}var jf=baseToPairs;function setToPairs(e){var t=-1,i=Array(e.size);e.forEach(function(e){i[++t]=[e,e]});return i}var Of=setToPairs;var kf="[object Map]",Cf="[object Set]";function createToPairs(e){return function(t){var i=pl(t);if(i==kf){return id(t)}if(i==Cf){return Of(t)}return jf(t,e(t))}}var Tf=createToPairs;var Rf=Tf(ga);var Ef=Rf;var Af=Tf(Ca);var xf=Af;var Nf={"&":"&","<":"<",">":">",'"':""","'":"'"};var Vf=Ys(Nf);var Pf=Vf;var Df=/[&<>"']/g,If=RegExp(Df.source);function escape_escape(e){e=jr(e);return e&&If.test(e)?e.replace(Df,Pf):e}var _f=escape_escape;var qf=/[\\^$.*+?()[\]{}|]/g,Bf=RegExp(qf.source);function escapeRegExp(e){e=jr(e);return e&&Bf.test(e)?e.replace(qf,"\\$&"):e}var Mf=escapeRegExp;function arrayEvery(e,t){var i=-1,n=e==null?0:e.length;while(++ia?0:a+i}n=n===undefined||n>a?a:pe(n);if(n<0){n+=a}n=i>n?0:Wf(n);while(i-1?a[r?t[s]:s]:undefined}}var Yf=createFind;var Xf=Math.max;function findIndex(e,t,i){var n=e==null?0:e.length;if(!n){return-1}var a=i==null?0:pe(i);if(a<0){a=Xf(n+a,0)}return Bt(e,Jd(t,3),a)}var Zf=findIndex;var $f=Yf(Zf);var eh=$f;function baseFindKey(e,t,i){var n;i(e,function(e,i,a){if(t(e,i,a)){n=i;return false}});return n}var th=baseFindKey;function findKey(e,t){return th(e,Jd(t,3),sp)}var ih=findKey;var nh=Math.max,ah=Math.min;function findLastIndex(e,t,i){var n=e==null?0:e.length;if(!n){return-1}var a=n-1;if(i!==undefined){a=pe(i);a=i<0?nh(n+a,0):ah(a,n-1)}return Bt(e,Jd(t,3),a,true)}var rh=findLastIndex;var sh=Yf(rh);var oh=sh;function findLastKey(e,t){return th(e,Jd(t,3),yf)}var uh=findLastKey;function head(e){return e&&e.length?e[0]:undefined}var lh=head;function baseMap(e,t){var i=-1,n=rn(e)?Array(e.length):[];lp(e,function(e,a,r){n[++i]=t(e,a,r)});return n}var ch=baseMap;function map_map(e,t){var i=K(e)?W:ch;return i(e,Jd(t,3))}var dh=map_map;function flatMap(e,t){return Vr(dh(e,t),1)}var ph=flatMap;var fh=1/0;function flatMapDeep(e,t){return Vr(dh(e,t),fh)}var hh=flatMapDeep;function flatMapDepth(e,t,i){i=i===undefined?1:pe(i);return Vr(dh(e,t),i)}var mh=flatMapDepth;var bh=1/0;function flattenDeep(e){var t=e==null?0:e.length;return t?Vr(e,bh):[]}var gh=flattenDeep;function flattenDepth(e,t){var i=e==null?0:e.length;if(!i){return[]}t=t===undefined?1:pe(t);return Vr(e,t)}var yh=flattenDepth;var Sh=512;function flip(e){return Qi(e,Sh)}var wh=flip;var vh=lu("floor");var zh=vh;var jh="Expected a function";var Oh=8,kh=32,Ch=128,Th=256;function createFlow(e){return Dr(function(t){var i=t.length,n=i,a=ft.prototype.thru;if(e){t.reverse()}while(n--){var r=t[n];if(typeof r!="function"){throw new TypeError(jh)}if(a&&!s&&pt(r)=="wrapper"){var s=new ft([],true)}}n=s?n:i;while(++nt}var Wh=baseGt;function createRelationalOperation(e){return function(t,i){if(!(typeof t=="string"&&typeof i=="string")){t=ue(t);i=ue(i)}return e(t,i)}}var Gh=createRelationalOperation;var Kh=Gh(Wh);var Jh=Kh;var Fh=Gh(function(e,t){return e>=t});var Yh=Fh;var Xh=Object.prototype;var Zh=Xh.hasOwnProperty;function baseHas(e,t){return e!=null&&Zh.call(e,t)}var $h=baseHas;function has(e,t){return e!=null&&Md(e,t,$h)}var em=has;var tm=Math.max,im=Math.min;function baseInRange(e,t,i){return e>=im(t,i)&&e-1:!!a&&Lt(e,t,i)>-1}var cm=includes_includes;var dm=Math.max;function indexOf_indexOf(e,t,i){var n=e==null?0:e.length;if(!n){return-1}var a=i==null?0:pe(i);if(a<0){a=dm(n+a,0)}return Lt(e,t,a)}var pm=indexOf_indexOf;function initial(e){var t=e==null?0:e.length;return t?ds(e,0,-1):[]}var fm=initial;var hm=Math.min;function baseIntersection(e,t,i){var n=i?Fp:Ht,a=e[0].length,r=e.length,s=r,o=Array(r),u=Infinity,l=[];while(s--){var c=e[s];if(s&&t){c=W(c,Zn(t))}u=hm(c.length,u);o[s]=!i&&(t||a>=120&&c.length>=120)?new Yc(s&&c):undefined}c=e[0];var d=-1,p=o[0];e:while(++d=-kb&&e<=kb}var Cb=isSafeInteger;function isUndefined(e){return e===undefined}var Tb=isUndefined;var Rb="[object WeakMap]";function isWeakMap(e){return M(e)&&pl(e)==Rb}var Eb=isWeakMap;var Ab="[object WeakSet]";function isWeakSet(e){return M(e)&&B(e)==Ab}var xb=isWeakSet;var Nb=1;function iteratee_iteratee(e){return Jd(typeof e=="function"?e:Vc(e,Nb))}var Vb=iteratee_iteratee;var Pb=Array.prototype;var Db=Pb.join;function join(e,t){return e==null?"":Db.call(e,t)}var Ib=join;var _b=nu(function(e,t,i){return e+(i?"-":"")+t.toLowerCase()});var qb=_b;var Bb=dp(function(e,t,i){Ki(e,i,t)});var Mb=Bb;function strictLastIndexOf(e,t,i){var n=i+1;while(n--){if(e[n]===t){return n}}return n}var Ub=strictLastIndexOf;var Lb=Math.max,Hb=Math.min;function lastIndexOf(e,t,i){var n=e==null?0:e.length;if(!n){return-1}var a=n;if(i!==undefined){a=pe(i);a=a<0?Lb(n+a,0):Hb(a,n-1)}return t===t?Ub(e,t,a):Bt(e,Mt,a,true)}var Qb=lastIndexOf;var Wb=nu(function(e,t,i){return e+(i?" ":"")+t.toLowerCase()});var Gb=Wb;var Kb=Ws("toLowerCase");var Jb=Kb;function baseLt(e,t){return e=this.__values__.length,t=e?undefined:this.__values__[this.__index__++];return{done:e,value:t}}var Ng=wrapperNext;function baseNth(e,t){var i=e.length;if(!i){return}t+=t<0?i:0;return pi(t,i)?e[t]:undefined}var Vg=baseNth;function nth(e,t){return e&&e.length?Vg(e,pe(t)):undefined}var Pg=nth;function nthArg(e){e=pe(e);return tn(function(t){return Vg(t,e)})}var Dg=nthArg;function baseUnset(e,t){t=Or(t,e);e=Pm(e,t);return e==null||delete e[Cr(ef(t))]}var Ig=baseUnset;function customOmitClone(e){return Gr(e)?undefined:e}var _g=customOmitClone;var qg=1,Bg=2,Mg=4;var Ug=Dr(function(e,t){var i={};if(e==null){return i}var n=false;t=W(t,function(t){t=Or(t,e);n||(n=t.length>1);return t});Zi(e,Ku(e),i);if(n){i=Vc(i,qg|Bg|Mg,_g)}var a=t.length;while(a--){Ig(i,t[a])}return i});var Lg=Ug;function baseSet(e,t,i,n){if(!te(e)){return e}t=Or(t,e);var a=-1,r=t.length,s=r-1,o=e;while(o!=null&&++at||r&&s&&u&&!o&&!l||n&&s&&u||!i&&u||!a){return 1}if(!n&&!r&&!l&&e=o){return u}var l=i[n];return u*(l=="desc"?-1:1)}}return e.index-t.index}var Yg=compareMultiple;function baseOrderBy(e,t,i){var n=-1;t=W(t.length?t:[me],Zn(Jd));var a=ch(e,function(e,i,a){var r=W(t,function(t){return t(e)});return{criteria:r,index:++n,value:e}});return Jg(a,function(e,t){return Yg(e,t,i)})}var Xg=baseOrderBy;function orderBy(e,t,i,n){if(e==null){return[]}if(!K(t)){t=t==null?[]:[t]}i=n?undefined:i;if(!K(i)){i=i==null?[]:[i]}return Xg(e,t,i)}var Zg=orderBy;function createOver(e){return Dr(function(t){t=W(t,Zn(Jd));return tn(function(i){var n=this;return e(t,function(e){return Ye(e,n,i)})})})}var $g=createOver;var ey=$g(W);var ty=ey;var iy=tn;var ny=iy;var ay=Math.min;var ry=ny(function(e,t){t=t.length==1&&K(t[0])?W(t[0],Zn(Jd)):W(Vr(t,1),Zn(Jd));var i=t.length;return tn(function(n){var a=-1,r=ay(n.length,i);while(++ady){return i}do{if(t%2){i+=e}t=py(t/2);if(t){e+=e}}while(t);return i}var fy=baseRepeat;var hy=Wd("length");var my=hy;var by="\\ud800-\\udfff",gy="\\u0300-\\u036f",yy="\\ufe20-\\ufe2f",Sy="\\u20d0-\\u20ff",wy=gy+yy+Sy,vy="\\ufe0e\\ufe0f";var zy="["+by+"]",jy="["+wy+"]",Oy="\\ud83c[\\udffb-\\udfff]",ky="(?:"+jy+"|"+Oy+")",Cy="[^"+by+"]",Ty="(?:\\ud83c[\\udde6-\\uddff]){2}",Ry="[\\ud800-\\udbff][\\udc00-\\udfff]",Ey="\\u200d";var Ay=ky+"?",xy="["+vy+"]?",Ny="(?:"+Ey+"(?:"+[Cy,Ty,Ry].join("|")+")"+xy+Ay+")*",Vy=xy+Ay+Ny,Py="(?:"+[Cy+jy+"?",jy,Ty,Ry,zy].join("|")+")";var Dy=RegExp(Oy+"(?="+Oy+")|"+Py+Vy,"g");function unicodeSize(e){var t=Dy.lastIndex=0;while(Dy.test(e)){++t}return t}var Iy=unicodeSize;function stringSize(e){return vs(e)?Iy(e):my(e)}var _y=stringSize;var qy=Math.ceil;function createPadding(e,t){t=t===undefined?" ":X(t);var i=t.length;if(i<2){return i?fy(t,e):t}var n=fy(t,qy(e/_y(t)));return vs(t)?ps(Qs(n),0,e).join(""):n.slice(0,e)}var By=createPadding;var My=Math.ceil,Uy=Math.floor;function pad(e,t,i){e=jr(e);t=pe(t);var n=t?_y(e):0;if(!t||n>=t){return e}var a=(t-n)/2;return By(Uy(a),i)+e+By(My(a),i)}var Ly=pad;function padEnd(e,t,i){e=jr(e);t=pe(t);var n=t?_y(e):0;return t&&n-1){if(o!==e){lS.call(o,u,1)}lS.call(e,u,1)}}return e}var cS=basePullAll;function pullAll(e,t){return e&&e.length&&t&&t.length?cS(e,t):e}var dS=pullAll;var pS=tn(dS);var fS=pS;function pullAllBy(e,t,i){return e&&e.length&&t&&t.length?cS(e,t,Jd(i,2)):e}var hS=pullAllBy;function pullAllWith(e,t,i){return e&&e.length&&t&&t.length?cS(e,t,undefined,i):e}var mS=pullAllWith;var bS=Array.prototype;var gS=bS.splice;function basePullAt(e,t){var i=e?t.length:0,n=i-1;while(i--){var a=t[i];if(i==n||a!==r){var r=a;if(pi(a)){gS.call(e,a,1)}else{Ig(e,a)}}}return e}var yS=basePullAt;var SS=Dr(function(e,t){var i=e==null?0:e.length,n=Er(e,t);yS(e,W(t,function(e){return pi(e,i)?+e:e}).sort(Fg));return n});var wS=SS;var vS=Math.floor,zS=Math.random;function baseRandom(e,t){return e+vS(zS()*(t-e+1))}var jS=baseRandom;var OS=parseFloat;var kS=Math.min,CS=Math.random;function random(e,t,i){if(i&&typeof i!="boolean"&&sn(e,t,i)){t=i=undefined}if(i===undefined){if(typeof t=="boolean"){i=t;t=undefined}else if(typeof e=="boolean"){i=e;e=undefined}}if(e===undefined&&t===undefined){e=0;t=1}else{e=de(e);if(t===undefined){t=e;e=0}else{t=de(t)}}if(e>t){var n=e;e=t;t=n}if(i||e%1||t%1){var a=CS();return kS(e+a*(t-e+OS("1e-"+((a+"").length-1))),t)}return jS(e,t)}var TS=random;var RS=Math.ceil,ES=Math.max;function baseRange(e,t,i,n){var a=-1,r=ES(RS((t-e)/(i||1)),0),s=Array(r);while(r--){s[n?r:++a]=e;e+=i}return s}var AS=baseRange;function createRange(e){return function(t,i,n){if(n&&typeof n!="number"&&sn(t,i,n)){i=n=undefined}t=de(t);if(i===undefined){i=t;t=0}else{i=de(i)}n=n===undefined?t1&&sn(e,t[0],t[1])){t=[]}else if(i>2&&sn(t[0],t[1],t[2])){t=[t[0]]}return Xg(e,Vr(t,1),[])});var zw=vw;var jw=4294967295,Ow=jw-1;var kw=Math.floor,Cw=Math.min;function baseSortedIndexBy(e,t,i,n){t=i(t);var a=0,r=e==null?0:e.length,s=t!==t,o=t===null,u=L(t),l=t===undefined;while(a>>1;function baseSortedIndex(e,t,i){var n=0,a=e==null?n:e.length;if(typeof t=="number"&&t===t&&a<=Ew){while(n>>1,s=e[r];if(s!==null&&!L(s)&&(i?s<=t:s>>0;if(!i){return[]}e=jr(e);if(e&&(typeof t=="string"||t!=null&&!Ob(t))){t=X(t);if(!t&&vs(e)){return ps(Qs(e),0,i)}}return e.split(t,i)}var Uw=split;var Lw="Expected a function";var Hw=Math.max;function spread(e,t){if(typeof e!="function"){throw new TypeError(Lw)}t=t==null?0:Hw(pe(t),0);return tn(function(i){var n=i[t],a=ps(i,0,t);if(n){Ar(a,n)}return Ye(e,this,a)})}var Qw=spread;var Ww=nu(function(e,t,i){return e+(i?" ":"")+Ks(t)});var Gw=Ww;function startsWith(e,t,i){e=jr(e);i=i==null?0:bu(pe(i),0,e.length);t=X(t);return e.slice(i,i+t.length)==t}var Kw=startsWith;function stubObject(){return{}}var Jw=stubObject;function stubString(){return""}var Fw=stubString;function stubTrue(){return true}var Yw=stubTrue;var Xw=Z(function(e,t){return e-t},0);var Zw=Xw;function sum(e){return e&&e.length?lg(e,me):0}var $w=sum;function sumBy(e,t){return e&&e.length?lg(e,Jd(t,2)):0}var ev=sumBy;function tail(e){var t=e==null?0:e.length;return t?ds(e,1,t):[]}var tv=tail;function take(e,t,i){if(!(e&&e.length)){return[]}t=i||t===undefined?1:pe(t);return ds(e,0,t<0?0:t)}var iv=take;function takeRight(e,t,i){var n=e==null?0:e.length;if(!n){return[]}t=i||t===undefined?1:pe(t);t=n-t;return ds(e,t<0?0:t,n)}var nv=takeRight;function takeRightWhile(e,t){return e&&e.length?cf(e,Jd(t,3),false,true):[]}var av=takeRightWhile;function takeWhile(e,t){return e&&e.length?cf(e,Jd(t,3)):[]}var rv=takeWhile;function tap(e,t){t(e);return e}var sv=tap;var ov=Object.prototype;var uv=ov.hasOwnProperty;function customDefaultsAssignIn(e,t,i,n){if(e===undefined||Ji(e,ov[i])&&!uv.call(n,i)){return t}return e}var lv=customDefaultsAssignIn;var cv={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function escapeStringChar(e){return"\\"+cv[e]}var dv=escapeStringChar;var pv=/<%=([\s\S]+?)%>/g;var fv=pv;var hv=/<%-([\s\S]+?)%>/g;var mv=hv;var bv=/<%([\s\S]+?)%>/g;var gv=bv;var yv={escape:mv,evaluate:gv,interpolate:fv,variable:"",imports:{_:{escape:_f}}};var Sv=yv;var wv=/\b__p \+= '';/g,vv=/\b(__p \+=) '' \+/g,zv=/(__e\(.*?\)|\b__t\)) \+\n'';/g;var jv=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;var Ov=/($^)/;var kv=/['\n\r\u2028\u2029\\]/g;var Cv=Object.prototype;var Tv=Cv.hasOwnProperty;function template(e,t,i){var n=Sv.imports._.templateSettings||Sv;if(i&&sn(e,t,i)){t=undefined}e=jr(e);t=Aa({},t,n,lv);var a=Aa({},t.imports,n.imports,lv),r=ga(a),s=om(a,r);var o,u,l=0,c=t.interpolate||Ov,d="__p += '";var p=RegExp((t.escape||Ov).source+"|"+c.source+"|"+(c===fv?jv:Ov).source+"|"+(t.evaluate||Ov).source+"|$","g");var f=Tv.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/[\r\n]/g," ")+"\n":"";e.replace(p,function(t,i,n,a,r,s){n||(n=a);d+=e.slice(l,s).replace(kv,dv);if(i){o=true;d+="' +\n__e("+i+") +\n'"}if(r){u=true;d+="';\n"+r+";\n__p += '"}if(n){d+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"}l=s+t.length;return t});d+="';\n";var h=Tv.call(t,"variable")&&t.variable;if(!h){d="with (obj) {\n"+d+"\n}\n"}d=(u?d.replace(wv,""):d).replace(vv,"$1").replace(zv,"$1;");d="function("+(h||"obj")+") {\n"+(h?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(u?", __j = Array.prototype.join;\n"+"function print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var m=Xr(function(){return Function(r,f+"return "+d).apply(undefined,s)});m.source=d;if(Fr(m)){throw m}return m}var Rv=template;var Ev="Expected a function";function throttle(e,t,i){var n=true,a=true;if(typeof e!="function"){throw new TypeError(Ev)}if(te(i)){n="leading"in i?!!i.leading:n;a="trailing"in i?!!i.trailing:a}return Cp(e,t,{leading:n,maxWait:t,trailing:a})}var Av=throttle;function thru(e,t){return t(e)}var xv=thru;var Nv=9007199254740991;var Vv=4294967295;var Pv=Math.min;function times(e,t){e=pe(e);if(e<1||e>Nv){return[]}var i=Vv,n=Pv(e,Vv);t=ff(t);e-=Vv;var a=cn(n,t);while(++i-1){}return i}var Wv=charsEndIndex;function charsStartIndex(e,t){var i=-1,n=e.length;while(++i-1){}return i}var Gv=charsStartIndex;var Kv=/^\s+|\s+$/g;function trim(e,t,i){e=jr(e);if(e&&(i||t===undefined)){return e.replace(Kv,"")}if(!e||!(t=X(t))){return e}var n=Qs(e),a=Qs(t),r=Gv(n,a),s=Wv(n,a)+1;return ps(n,r,s).join("")}var Jv=trim;var Fv=/\s+$/;function trimEnd(e,t,i){e=jr(e);if(e&&(i||t===undefined)){return e.replace(Fv,"")}if(!e||!(t=X(t))){return e}var n=Qs(e),a=Wv(n,Qs(t))+1;return ps(n,0,a).join("")}var Yv=trimEnd;var Xv=/^\s+/;function trimStart(e,t,i){e=jr(e);if(e&&(i||t===undefined)){return e.replace(Xv,"")}if(!e||!(t=X(t))){return e}var n=Qs(e),a=Gv(n,Qs(t));return ps(n,a).join("")}var Zv=trimStart;var $v=30,ez="...";var tz=/\w*$/;function truncate(e,t){var i=$v,n=ez;if(te(t)){var a="separator"in t?t.separator:a;i="length"in t?pe(t.length):i;n="omission"in t?X(t.omission):n}e=jr(e);var r=e.length;if(vs(e)){var s=Qs(e);r=s.length}if(i>=r){return e}var o=i-_y(n);if(o<1){return n}var u=s?ps(s,0,o).join(""):e.slice(0,o);if(a===undefined){return u+n}if(s){o+=u.length-o}if(Ob(a)){if(e.slice(o).search(a)){var l,c=u;if(!a.global){a=RegExp(a.source,jr(tz.exec(a))+"g")}a.lastIndex=0;while(l=a.exec(c)){var d=l.index}u=u.slice(0,d===undefined?o:d)}}else if(e.indexOf(X(a),o)!=o){var p=u.lastIndexOf(a);if(p>-1){u=u.slice(0,p)}}return u+n}var iz=truncate;function unary(e){return Gi(e,1)}var nz=unary;var az={"&":"&","<":"<",">":">",""":'"',"'":"'"};var rz=Ys(az);var sz=rz;var oz=/&(?:amp|lt|gt|quot|#39);/g,uz=RegExp(oz.source);function unescape_unescape(e){e=jr(e);return e&&uz.test(e)?e.replace(oz,sz):e}var lz=unescape_unescape;var cz=1/0;var dz=!($u&&1/nd(new $u([,-0]))[1]==cz)?rt:function(e){return new $u(e)};var pz=dz;var fz=200;function baseUniq(e,t,i){var n=-1,a=Ht,r=e.length,s=true,o=[],u=o;if(i){s=false;a=Fp}else if(r>=fz){var l=t?null:pz(e);if(l){return nd(l)}s=false;a=Zc;u=new Yc}else{u=t?[]:o}e:while(++n1||this.__actions__.length||!(n instanceof at)||!pi(i)){return this.thru(a)}n=n.slice(i,+i+(t?1:0));n.__actions__.push({func:xv,args:[a],thisArg:undefined});return new ft(n,this.__chain__).thru(function(e){if(t&&!e.length){e.push(undefined)}return e})});var Mz=Bz;function wrapperChain(){return pu(this)}var Uz=wrapperChain;function wrapperReverse(){var e=this.__wrapped__;if(e instanceof at){var t=e;if(this.__actions__.length){t=new at(this)}t=t.reverse();t.__actions__.push({func:xv,args:[ZS],thisArg:undefined});return new ft(t,this.__chain__)}return this.thru(ZS)}var Lz=wrapperReverse;function baseXor(e,t,i){var n=e.length;if(n<2){return n?hz(e[0]):[]}var a=-1,r=Array(n);while(++a1?e[t-1]:undefined;i=typeof i=="function"?(e.pop(),i):undefined;return Ez(e,i)});var ij=tj;var nj={chunk:mu,compact:Wc,concat:Gc,difference:$p,differenceBy:nf,differenceWith:rf,drop:uf,dropRight:lf,dropRightWhile:df,dropWhile:pf,fill:Kf,findIndex:Zf,findLastIndex:rh,first:lh,flatten:Pr,flattenDeep:gh,flattenDepth:yh,fromPairs:_h,head:lh,indexOf:pm,initial:fm,intersection:ym,intersectionBy:wm,intersectionWith:zm,join:Ib,last:ef,lastIndexOf:Qb,nth:Pg,pull:fS,pullAll:dS,pullAllBy:hS,pullAllWith:mS,pullAt:wS,remove:QS,reverse:ZS,slice:bw,sortedIndex:xw,sortedIndexBy:Nw,sortedIndexOf:Vw,sortedLastIndex:Pw,sortedLastIndexBy:Dw,sortedLastIndexOf:Iw,sortedUniq:qw,sortedUniqBy:Bw,tail:tv,take:iv,takeRight:nv,takeRightWhile:av,takeWhile:rv,union:bz,unionBy:yz,unionWith:wz,uniq:vz,uniqBy:zz,uniqWith:jz,unzip:Rz,unzipWith:Ez,without:_z,xor:Wz,xorBy:Kz,xorWith:Fz,zip:Xz,zipObject:$z,zipObjectDeep:ej,zipWith:ij};var aj={countBy:mp,each:hf,eachRight:vf,every:Hf,filter:Ff,find:eh,findLast:oh,flatMap:ph,flatMapDeep:hh,flatMapDepth:mh,forEach:hf,forEachRight:vf,groupBy:Qh,includes:cm,invokeMap:Bm,keyBy:Mb,map:dh,orderBy:Zg,partition:tS,reduce:MS,reduceRight:LS,reject:HS,sample:nw,sampleSize:ow,shuffle:pw,size:mw,some:ww,sortBy:zw};var rj={now:zp};var sj={after:he,ary:Gi,before:$r,bind:ns,bindKey:cs,curry:yp,curryRight:wp,debounce:Cp,defer:Gp,delay:Jp,flip:wh,memoize:br,negate:Cg,once:Kg,overArgs:sy,partial:Yy,partialRight:$y,rearg:qS,rest:JS,spread:Qw,throttle:Av,unary:nz,wrap:qz};var oj={castArray:su,clone:Dc,cloneDeep:qc,cloneDeepWith:Uc,cloneWith:Hc,conformsTo:tp,eq:Ji,gt:Jh,gte:Yh,isArguments:gn,isArray:K,isArrayBuffer:Qm,isArrayLike:rn,isArrayLikeObject:Vp,isBoolean:Gm,isBuffer:kn,isDate:Xm,isElement:Zm,isEmpty:nb,isEqual:ab,isEqualWith:rb,isError:Fr,isFinite:ob,isFunction:we,isInteger:ub,isLength:an,isMap:Xl,isMatch:lb,isMatchWith:cb,isNaN:fb,isNative:gb,isNil:yb,isNull:Sb,isNumber:pb,isObject:te,isObjectLike:M,isPlainObject:Gr,isRegExp:Ob,isSafeInteger:Cb,isSet:ic,isString:sm,isSymbol:L,isTypedArray:oa,isUndefined:Tb,isWeakMap:Eb,isWeakSet:xb,lt:Xb,lte:$b,toArray:xg,toFinite:de,toInteger:pe,toLength:Wf,toNumber:ue,toPlainObject:Dp,toSafeInteger:Lv,toString:jr};var uj={add:ee,ceil:du,divide:of,floor:zh,max:og,maxBy:ug,mean:pg,meanBy:fg,min:wg,minBy:vg,multiply:Og,round:ew,subtract:Zw,sum:$w,sumBy:ev};var lj={clamp:gu,inRange:am,random:TS};var cj={assign:va,assignIn:Ra,assignInWith:Aa,assignWith:Na,at:_r,create:bp,defaults:xp,defaultsDeep:Lp,entries:Ef,entriesIn:xf,extend:Ra,extendWith:Aa,findKey:ih,findLastKey:uh,forIn:Vh,forInRight:Ph,forOwn:Dh,forOwnRight:Ih,functions:Bh,functionsIn:Mh,get:Rr,has:em,hasIn:Ud,invert:Rm,invertBy:Vm,invoke:_m,keys:ga,keysIn:Ca,mapKeys:eg,mapValues:tg,merge:mg,mergeWith:Mp,omit:Lg,omitBy:Gg,pick:aS,pickBy:Wg,result:FS,set:uw,setWith:lw,toPairs:Ef,toPairsIn:xf,transform:Qv,unset:Cz,update:xz,updateWith:Nz,values:um,valuesIn:Dz};var dj={at:Mz,chain:pu,commit:Qc,lodash:yt,next:Ng,plant:rS,reverse:Lz,tap:sv,thru:xv,toIterator:Iv,toJSON:qv,value:qv,valueOf:qv,wrapperChain:Uz};var pj={camelCase:ru,capitalize:Js,deburr:oo,endsWith:zf,escape:_f,escapeRegExp:Mf,kebabCase:qb,lowerCase:Gb,lowerFirst:Jb,pad:Ly,padEnd:Hy,padStart:Qy,parseInt:Ky,repeat:WS,replace:GS,snakeCase:yw,split:Uw,startCase:Gw,startsWith:Kw,template:Rv,templateSettings:Sv,toLower:Bv,toUpper:Hv,trim:Jv,trimEnd:Yv,trimStart:Zv,truncate:iz,unescape:lz,upperCase:Pz,upperFirst:Ks,words:eu};var fj={attempt:Xr,bindAll:rs,cond:Yd,conforms:ep,constant:xt,defaultTo:Tp,flow:Ah,flowRight:Nh,identity:me,iteratee:Vb,matches:ng,matchesProperty:rg,method:gg,methodOf:Sg,mixin:zg,noop:rt,nthArg:Dg,over:ty,overEvery:uy,overSome:cy,property:Kd,propertyOf:sS,range:VS,rangeRight:DS,stubArray:Pu,stubFalse:yn,stubObject:Jw,stubString:Fw,stubTrue:Yw,times:Dv,toPath:Mv,uniqueId:kz};function lazyClone(){var e=new at(this.__wrapped__);e.__actions__=ht(this.__actions__);e.__dir__=this.__dir__;e.__filtered__=this.__filtered__;e.__iteratees__=ht(this.__iteratees__);e.__takeCount__=this.__takeCount__;e.__views__=ht(this.__views__);return e}var hj=lazyClone;function lazyReverse(){if(this.__filtered__){var e=new at(this);e.__dir__=-1;e.__filtered__=true}else{e=this.clone();e.__dir__*=-1}return e}var mj=lazyReverse;var bj=Math.max,gj=Math.min;function getView(e,t,i){var n=-1,a=i.length;while(++n0||t<0)){return new at(i)}if(e<0){i=i.takeRight(-e)}else if(e){i=i.drop(e)}if(t!==undefined){t=pe(t);i=t<0?i.dropRight(-t):i.take(t-e)}return i};at.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()};at.prototype.toArray=function(){return this.take(Tj)};sp(at.prototype,function(e,t){var i=/^(?:filter|find|map|reject)|While$/.test(t),n=/^(?:head|last)$/.test(t),a=yt[n?"take"+(t=="last"?"Right":""):t],r=n||/^find/.test(t);if(!a){return}yt.prototype[t]=function(){var t=this.__wrapped__,s=n?[1]:arguments,o=t instanceof at,u=s[0],l=o||K(t);var c=function(e){var t=a.apply(yt,Ar([e],s));return n&&d?t[0]:t};if(l&&i&&typeof u=="function"&&u.length!=1){o=l=false}var d=this.__chain__,p=!!this.__actions__.length,f=r&&!d,h=o&&!p;if(!r&&l){t=h?t:new at(this);var m=e.apply(t,s);m.__actions__.push({func:xv,args:[c],thisArg:undefined});return new ft(m,d)}if(f&&h){return e.apply(this,s)}m=this.thru(c);return f?n?m.value()[0]:m.value():m}});qt(["pop","push","shift","sort","splice","unshift"],function(e){var t=Rj[e],i=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);yt.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var a=this.value();return t.apply(K(a)?a:[],e)}return this[i](function(i){return t.apply(K(i)?i:[],e)})}});sp(at.prototype,function(e,t){var i=yt[t];if(i){var n=i.name+"";if(!Aj.call(lt,n)){lt[n]=[]}lt[n].push({name:t,func:i})}});lt[ji(undefined,Oj).name]=[{name:"wrapper",func:undefined}];at.prototype.clone=hj;at.prototype.reverse=mj;at.prototype.value=zj;yt.prototype.at=dj.at;yt.prototype.chain=dj.wrapperChain;yt.prototype.commit=dj.commit;yt.prototype.next=dj.next;yt.prototype.plant=dj.plant;yt.prototype.reverse=dj.reverse;yt.prototype.toJSON=yt.prototype.valueOf=yt.prototype.value=dj.value;yt.prototype.first=yt.prototype.head;if(xj){yt.prototype[xj]=dj.toIterator}var Dj=yt;class image_tag_ImageTag{constructor(e){const{repository:t="unityci",name:i="editor",version:n="2019.2.11f1",platform:a,customImage:r}=e;if(!image_tag_ImageTag.versionPattern.test(n)){throw new Error(`Invalid version "${n}".`)}const s=image_tag_ImageTag.getTargetPlatformToImageSuffixMap(a,n);Object.assign(this,{repository:t,name:i,version:n,platform:a,builderPlatform:s,customImage:r})}static get versionPattern(){return/^20\d{2}\.\d\.\w{3,4}|3$/}static get imageSuffixes(){return{generic:"",webgl:"webgl",mac:"mac-mono",windows:"windows-mono",linux:"base",linuxIl2cpp:"linux-il2cpp",android:"android",ios:"ios",facebook:"facebook"}}static getTargetPlatformToImageSuffixMap(e,t){const{generic:i,webgl:n,mac:a,windows:r,linux:s,linuxIl2cpp:o,android:l,ios:c,facebook:d}=image_tag_ImageTag.imageSuffixes;const[p,f]=t.split(".");switch(e){case u.types.StandaloneOSX:return a;case u.types.StandaloneWindows:return r;case u.types.StandaloneWindows64:return r;case u.types.StandaloneLinux64:{if(p>=2020||p===2019&&f>=3){return o}return s}case u.types.iOS:return c;case u.types.Android:return l;case u.types.WebGL:return n;case u.types.WSAPlayer:return r;case u.types.PS4:return r;case u.types.XboxOne:return r;case u.types.tvOS:return r;case u.types.Switch:return r;case u.types.Lumin:return r;case u.types.BJM:return r;case u.types.Stadia:return r;case u.types.Facebook:return d;case u.types.NoTarget:return i;case u.types.Test:return i;default:throw new Error(`\n Platform must be one of the ones described in the documentation.\n "${e}" is currently not supported.`)}}get tag(){return Yv(`${this.version}-${this.builderPlatform}`,"-")}get image(){return Zv(`${this.repository}/${this.name}`,"/")}toString(){const{image:e,tag:t}=this;if(this.customImage&&this.customImage!==""){return this.customImage}return`${e}:${t}-0`}}var Ij=image_tag_ImageTag;class docker_Docker{static async build(e,t=false){const{path:i,dockerfile:n,baseImage:a}=e;const{version:r,platform:s}=a;const o=new Ij({repository:"",name:"unity-builder",version:r,platform:s});const u=`docker build ${i} --file ${n} --build-arg IMAGE=${a} --tag ${o}`;await Object(f.exec)(u,undefined,{silent:t});return o}static async run(e,t,i=false){const{version:n,workspace:a,runnerTempPath:r,platform:s,projectPath:o,buildName:u,buildPath:l,buildFile:c,buildMethod:d,buildVersion:p,androidVersionCode:h,androidKeystoreName:m,androidKeystoreBase64:b,androidKeystorePass:g,androidKeyaliasName:y,androidKeyaliasPass:S,customParameters:w}=t;const v=`docker run --workdir /github/workspace --rm --env UNITY_LICENSE --env UNITY_LICENSE_FILE --env UNITY_EMAIL --env UNITY_PASSWORD --env UNITY_SERIAL --env UNITY_VERSION="${n}" --env PROJECT_PATH="${o}" --env BUILD_TARGET="${s}" --env BUILD_NAME="${u}" --env BUILD_PATH="${l}" --env BUILD_FILE="${c}" --env BUILD_METHOD="${d}" --env VERSION="${p}" --env ANDROID_VERSION_CODE="${h}" --env ANDROID_KEYSTORE_NAME="${m}" --env ANDROID_KEYSTORE_BASE64="${b}" --env ANDROID_KEYSTORE_PASS="${g}" --env ANDROID_KEYALIAS_NAME="${y}" --env ANDROID_KEYALIAS_PASS="${S}" --env CUSTOM_PARAMETERS="${w}" --env HOME=/github/home --env GITHUB_REF --env GITHUB_SHA --env GITHUB_REPOSITORY --env GITHUB_ACTOR --env GITHUB_WORKFLOW --env GITHUB_HEAD_REF --env GITHUB_BASE_REF --env GITHUB_EVENT_NAME --env GITHUB_WORKSPACE=/github/workspace --env GITHUB_ACTION --env GITHUB_EVENT_PATH --env RUNNER_OS --env RUNNER_TOOL_CACHE --env RUNNER_TEMP --env RUNNER_WORKSPACE --volume "/var/run/docker.sock":"/var/run/docker.sock" --volume "${r}/_github_home":"/github/home" --volume "${r}/_github_workflow":"/github/workflow" --volume "${a}":"/github/workspace" ${e}`;await Object(f.exec)(v,undefined,{silent:i})}}var _j=docker_Docker;const qj=i(470);class Output{static async setBuildVersion(e){await qj.setOutput("buildVersion",e)}}var Bj=Output;var Mj=i(868);var Uj=i(610);var Lj=i.n(Uj);const Hj=i(470);const Qj=i(870);const Wj=1e4;class kubernetes_Kubernetes{static async runBuildJob(e,t){const i=new Mj.KubeConfig;i.loadFromString(Qj.decode(e.kubeConfig));const n=new Lj.a({kubeconfig:i});const a=new Mj.Client(n);await a.loadSpec();const r=kubernetes_Kubernetes.uuidv4();const s=`unity-builder-pvc-${r}`;const o=`build-credentials-${r}`;const u=`unity-builder-job-${r}`;const l="default";Object.assign(this,{kubeClient:a,buildId:r,buildParameters:e,baseImage:t,pvcName:s,secretName:o,jobName:u,namespace:l});await kubernetes_Kubernetes.createSecret();await kubernetes_Kubernetes.createPersistentVolumeClaim();await kubernetes_Kubernetes.scheduleBuildJob();await kubernetes_Kubernetes.watchBuildJobUntilFinished();await kubernetes_Kubernetes.cleanup();Hj.setOutput("volume",s)}static async createSecret(){const e={apiVersion:"v1",kind:"Secret",metadata:{name:this.secretName},type:"Opaque",data:{GITHUB_TOKEN:Qj.encode(this.buildParameters.githubToken),UNITY_LICENSE:Qj.encode(process.env.UNITY_LICENSE),ANDROID_KEYSTORE_BASE64:Qj.encode(this.buildParameters.androidKeystoreBase64),ANDROID_KEYSTORE_PASS:Qj.encode(this.buildParameters.androidKeystorePass),ANDROID_KEYALIAS_PASS:Qj.encode(this.buildParameters.androidKeyaliasPass)}};await this.kubeClient.api.v1.namespaces(this.namespace).secrets.post({body:e})}static async createPersistentVolumeClaim(){if(this.buildParameters.kubeVolume){Hj.info(this.buildParameters.kubeVolume);this.pvcName=this.buildParameters.kubeVolume;return}const e={apiVersion:"v1",kind:"PersistentVolumeClaim",metadata:{name:this.pvcName},spec:{accessModes:["ReadWriteOnce"],volumeMode:"Filesystem",resources:{requests:{storage:this.buildParameters.kubeVolumeSize}}}};await this.kubeClient.api.v1.namespaces(this.namespace).persistentvolumeclaims.post({body:e});Hj.info("Persistent Volume created, waiting for ready state...");await kubernetes_Kubernetes.watchPersistentVolumeClaimUntilReady();Hj.info("Persistent Volume ready for claims")}static async watchPersistentVolumeClaimUntilReady(){await new Promise(e=>setTimeout(e,Wj));const e=await this.kubeClient.api.v1.namespaces(this.namespace).persistentvolumeclaims(this.pvcName).get();if(e.body.status.phase==="Pending"){await kubernetes_Kubernetes.watchPersistentVolumeClaimUntilReady()}}static async scheduleBuildJob(){Hj.info("Creating build job");const e={apiVersion:"batch/v1",kind:"Job",metadata:{name:this.jobName,labels:{app:"unity-builder"}},spec:{template:{backoffLimit:1,spec:{volumes:[{name:"data",persistentVolumeClaim:{claimName:this.pvcName}},{name:"credentials",secret:{secretName:this.secretName}}],initContainers:[{name:"clone",image:"alpine/git",command:["/bin/sh","-c",`apk update;\n apk add git-lfs;\n export GITHUB_TOKEN=$(cat /credentials/GITHUB_TOKEN);\n cd /data;\n git clone https://github.com/${process.env.GITHUB_REPOSITORY}.git repo;\n git clone https://github.com/webbertakken/unity-builder.git builder;\n cd repo;\n git checkout $GITHUB_SHA;\n ls`],volumeMounts:[{name:"data",mountPath:"/data"},{name:"credentials",mountPath:"/credentials",readOnly:true}],env:[{name:"GITHUB_SHA",value:this.buildId}]}],containers:[{name:"main",image:`${this.baseImage.toString()}`,command:["bin/bash","-c",`for f in ./credentials/*; do export $(basename $f)="$(cat $f)"; done\n cp -r /data/builder/action/default-build-script /UnityBuilderAction\n cp -r /data/builder/action/entrypoint.sh /entrypoint.sh\n cp -r /data/builder/action/steps /steps\n chmod -R +x /entrypoint.sh;\n chmod -R +x /steps;\n /entrypoint.sh;\n `],resources:{requests:{memory:this.buildParameters.kubeContainerMemory,cpu:this.buildParameters.kubeContainerCPU}},env:[{name:"GITHUB_WORKSPACE",value:"/data/repo"},{name:"PROJECT_PATH",value:this.buildParameters.projectPath},{name:"BUILD_PATH",value:this.buildParameters.buildPath},{name:"BUILD_FILE",value:this.buildParameters.buildFile},{name:"BUILD_NAME",value:this.buildParameters.buildName},{name:"BUILD_METHOD",value:this.buildParameters.buildMethod},{name:"CUSTOM_PARAMETERS",value:this.buildParameters.customParameters},{name:"BUILD_TARGET",value:this.buildParameters.platform},{name:"ANDROID_VERSION_CODE",value:this.buildParameters.androidVersionCode.toString()},{name:"ANDROID_KEYSTORE_NAME",value:this.buildParameters.androidKeystoreName},{name:"ANDROID_KEYALIAS_NAME",value:this.buildParameters.androidKeyaliasName}],volumeMounts:[{name:"data",mountPath:"/data"},{name:"credentials",mountPath:"/credentials",readOnly:true}],lifeCycle:{preStop:{exec:{command:["bin/bash","-c",`cd /data/builder/action/steps;\n chmod +x /return_license.sh;\n /return_license.sh;`]}}}}],restartPolicy:"Never"}}}};await this.kubeClient.apis.batch.v1.namespaces(this.namespace).jobs.post({body:e});Hj.info("Job created")}static async watchBuildJobUntilFinished(){let e;let t=false;while(!t){await new Promise(e=>setTimeout(e,Wj));const i=await this.kubeClient.api.v1.namespaces(this.namespace).pods.get();for(let n=0;nsetTimeout(e,Wj));const t=await this.kubeClient.api.v1.namespaces(this.namespace).pod(e).get();if(t.body.status.phase!=="Running"){n=true}const a=await this.kubeClient.api.v1.namespaces(this.namespace).pod(e).log.get({qs:{sinceTime:i,timestamps:true}});if(a.body!==undefined){const e=a.body.match(/[^\n\r]+/g).reverse();for(let t=0;t{const t=Math.random()*16|0;const i=e==="x"?t:t&3|8;return i.toString(16)})}}var Gj=kubernetes_Kubernetes;const Kj=i(470);async function src_action(){r.checkCompatibility();w.verify();const{dockerfile:e,workspace:t,actionFolder:i}=r;const n=await m.create();const a=new Ij(n);if(n.kubeConfig){Kj.info("Building with Kubernetes");await Gj.runBuildJob(n,a)}else{const r=await _j.build({path:i,dockerfile:e,baseImage:a});await _j.run(r,{workspace:t,...n})}await Bj.setBuildVersion(n.buildVersion)}src_action().catch(e=>{Kj.setFailed(e.message)})},function(e,t,i){var n=i(49);var a=i(3);var r=i(747);var s=function(){};var o=/^v?\.0/.test(process.version);var u=function(e){return typeof e==="function"};var l=function(e){if(!o)return false;if(!r)return false;return(e instanceof(r.ReadStream||s)||e instanceof(r.WriteStream||s))&&u(e.close)};var c=function(e){return e.setHeader&&u(e.abort)};var d=function(e,t,i,r){r=n(r);var o=false;e.on("close",function(){o=true});a(e,{readable:t,writable:i},function(e){if(e)return r(e);o=true;r()});var d=false;return function(t){if(o)return;if(d)return;d=true;if(l(e))return e.close(s);if(c(e))return e.abort();if(u(e.destroy))return e.destroy();r(t||new Error("stream was destroyed"))}};var p=function(e){e()};var f=function(e,t){return e.pipe(t)};var h=function(){var e=Array.prototype.slice.call(arguments);var t=u(e[e.length-1]||s)&&e.pop()||s;if(Array.isArray(e[0]))e=e[0];if(e.length<2)throw new Error("pump requires two streams per minimum");var i;var n=e.map(function(a,r){var s=r0;return d(a,s,o,function(e){if(!i)i=e;if(e)n.forEach(p);if(s)return;n.forEach(p);t(i)})});return e.reduce(f)};e.exports=h},,function(e,t,i){"use strict";var n=i(363);var a=i(211);var r=i(835);var s=i(669);var o=i(413);var u=i(903);var l=i(942);var c=i(658);var d=i(789);var p=i(779);var f=i(254);var h=i(792);var m=i(172);var b=i(374);var g=i(382);var y=i(944).strict;var S=i(810);var w=i(35);var v=i(721);var z=i(902).Querystring;var j=i(416).Har;var O=i(220).Auth;var k=i(287).OAuth;var C=i(964);var T=i(469).Multipart;var R=i(552).Redirect;var E=i(461).Tunnel;var A=i(742);var x=i(727).Buffer;var N=S.safeStringify;var V=S.isReadStream;var P=S.toBase64;var D=S.defer;var I=S.copy;var _=S.version;var q=w.jar();var B={};function filterForNonReserved(e,t){var i={};for(var n in t){var a=e.indexOf(n)===-1;if(a){i[n]=t[n]}}return i}function filterOutReservedFunctions(e,t){var i={};for(var n in t){var a=!(e.indexOf(n)===-1);var r=typeof t[n]==="function";if(!(a&&r)){i[n]=t[n]}}return i}function requestToJSON(){var e=this;return{uri:e.uri,method:e.method,headers:e.headers}}function responseToJSON(){var e=this;return{statusCode:e.statusCode,body:e.body,headers:e.headers,request:requestToJSON.call(e.request)}}function Request(e){var t=this;if(e.har){t._har=new j(t);e=t._har.options(e)}o.Stream.call(t);var i=Object.keys(Request.prototype);var n=filterForNonReserved(i,e);b(t,n);e=filterOutReservedFunctions(i,e);t.readable=true;t.writable=true;if(e.method){t.explicitMethod=true}t._qs=new z(t);t._auth=new O(t);t._oauth=new k(t);t._multipart=new T(t);t._redirect=new R(t);t._tunnel=new E(t);t.init(e)}s.inherits(Request,o.Stream);Request.debug=process.env.NODE_DEBUG&&/\brequest\b/.test(process.env.NODE_DEBUG);function debug(){if(Request.debug){console.error("REQUEST %s",s.format.apply(s,arguments))}}Request.prototype.debug=debug;Request.prototype.init=function(e){var t=this;if(!e){e={}}t.headers=t.headers?I(t.headers):{};for(var i in t.headers){if(typeof t.headers[i]==="undefined"){delete t.headers[i]}}f.httpify(t,t.headers);if(!t.method){t.method=e.method||"GET"}if(!t.localAddress){t.localAddress=e.localAddress}t._qs.init(e);debug(e);if(!t.pool&&t.pool!==false){t.pool=B}t.dests=t.dests||[];t.__isRequestRequest=true;if(!t._callback&&t.callback){t._callback=t.callback;t.callback=function(){if(t._callbackCalled){return}t._callbackCalled=true;t._callback.apply(t,arguments)};t.on("error",t.callback.bind());t.on("complete",t.callback.bind(t,null))}if(!t.uri&&t.url){t.uri=t.url;delete t.url}if(t.baseUrl){if(typeof t.baseUrl!=="string"){return t.emit("error",new Error("options.baseUrl must be a string"))}if(typeof t.uri!=="string"){return t.emit("error",new Error("options.uri must be a string when using options.baseUrl"))}if(t.uri.indexOf("//")===0||t.uri.indexOf("://")!==-1){return t.emit("error",new Error("options.uri must be a path when using options.baseUrl"))}var s=t.baseUrl.lastIndexOf("/")===t.baseUrl.length-1;var o=t.uri.indexOf("/")===0;if(s&&o){t.uri=t.baseUrl+t.uri.slice(1)}else if(s||o){t.uri=t.baseUrl+t.uri}else if(t.uri===""){t.uri=t.baseUrl}else{t.uri=t.baseUrl+"/"+t.uri}delete t.baseUrl}if(!t.uri){return t.emit("error",new Error("options.uri is a required argument"))}if(typeof t.uri==="string"){t.uri=r.parse(t.uri)}if(!t.uri.href){t.uri.href=r.format(t.uri)}if(t.uri.protocol==="unix:"){return t.emit("error",new Error("`unix://` URL scheme is no longer supported. Please use the format `http://unix:SOCKET:PATH`"))}if(t.uri.host==="unix"){t.enableUnixSocket()}if(t.strictSSL===false){t.rejectUnauthorized=false}if(!t.uri.pathname){t.uri.pathname="/"}if(!(t.uri.host||t.uri.hostname&&t.uri.port)&&!t.uri.isUnix){var u=r.format(t.uri);var l='Invalid URI "'+u+'"';if(Object.keys(e).length===0){l+=". This can be caused by a crappy redirection."}t.abort();return t.emit("error",new Error(l))}if(!t.hasOwnProperty("proxy")){t.proxy=v(t.uri)}t.tunnel=t._tunnel.isEnabled();if(t.proxy){t._tunnel.setup(e)}t._redirect.onRequest(e);t.setHost=false;if(!t.hasHeader("host")){var c=t.originalHostHeaderName||"host";t.setHeader(c,t.uri.host);if(t.uri.port){if(t.uri.port==="80"&&t.uri.protocol==="http:"||t.uri.port==="443"&&t.uri.protocol==="https:"){t.setHeader(c,t.uri.hostname)}}t.setHost=true}t.jar(t._jar||e.jar);if(!t.uri.port){if(t.uri.protocol==="http:"){t.uri.port=80}else if(t.uri.protocol==="https:"){t.uri.port=443}}if(t.proxy&&!t.tunnel){t.port=t.proxy.port;t.host=t.proxy.hostname}else{t.port=t.uri.port;t.host=t.uri.hostname}if(e.form){t.form(e.form)}if(e.formData){var d=e.formData;var m=t.form();var b=function(e,t){if(t&&t.hasOwnProperty("value")&&t.hasOwnProperty("options")){m.append(e,t.value,t.options)}else{m.append(e,t)}};for(var S in d){if(d.hasOwnProperty(S)){var w=d[S];if(w instanceof Array){for(var z=0;z=100&&e<200||e===204||e===304};var l;if(t.gzip&&!o(e.statusCode)){var c=e.headers["content-encoding"]||"identity";c=c.trim().toLowerCase();var d={flush:u.Z_SYNC_FLUSH,finishFlush:u.Z_SYNC_FLUSH};if(c==="gzip"){l=u.createGunzip(d);e.pipe(l)}else if(c==="deflate"){l=u.createInflate(d);e.pipe(l)}else{if(c!=="identity"){debug("ignoring unrecognized Content-Encoding "+c)}l=e}}else{l=e}if(t.encoding){if(t.dests.length!==0){console.error("Ignoring encoding parameter as this stream is being piped to another stream which makes the encoding option invalid.")}else{l.setEncoding(t.encoding)}}if(t._paused){l.pause()}t.responseContent=l;t.emit("response",e);t.dests.forEach(function(e){t.pipeDest(e)});l.on("data",function(i){if(t.timing&&!t.responseStarted){t.responseStartTime=(new Date).getTime();e.responseStartTime=t.responseStartTime}t._destdata=true;t.emit("data",i)});l.once("end",function(e){t.emit("end",e)});l.on("error",function(e){t.emit("error",e)});l.on("close",function(){t.emit("close")});if(t.callback){t.readResponseBody(e)}else{t.on("end",function(){if(t._aborted){debug("aborted",t.uri.href);return}t.emit("complete",e)})}}debug("finish init function",t.uri.href)};Request.prototype.readResponseBody=function(e){var t=this;debug("reading response's body");var i=[];var n=0;var a=[];t.on("data",function(e){if(!x.isBuffer(e)){a.push(e)}else if(e.length){n+=e.length;i.push(e)}});t.on("end",function(){debug("end event",t.uri.href);if(t._aborted){debug("aborted",t.uri.href);i=[];n=0;return}if(n){debug("has body",t.uri.href,n);e.body=x.concat(i,n);if(t.encoding!==null){e.body=e.body.toString(t.encoding)}i=[];n=0}else if(a.length){if(t.encoding==="utf8"&&a[0].length>0&&a[0][0]==="\ufeff"){a[0]=a[0].substring(1)}e.body=a.join("")}if(t._json){try{e.body=JSON.parse(e.body,t._jsonReviver)}catch(e){debug("invalid JSON received",t.uri.href)}}debug("emitting complete",t.uri.href);if(typeof e.body==="undefined"&&!t._json){e.body=t.encoding===null?x.alloc(0):""}t.emit("complete",e,e.body)})};Request.prototype.abort=function(){var e=this;e._aborted=true;if(e.req){e.req.abort()}else if(e.response){e.response.destroy()}e.clearTimeout();e.emit("abort")};Request.prototype.pipeDest=function(e){var t=this;var i=t.response;if(e.headers&&!e.headersSent){if(i.caseless.has("content-type")){var n=i.caseless.has("content-type");if(e.setHeader){e.setHeader(n,i.headers[n])}else{e.headers[n]=i.headers[n]}}if(i.caseless.has("content-length")){var a=i.caseless.has("content-length");if(e.setHeader){e.setHeader(a,i.headers[a])}else{e.headers[a]=i.headers[a]}}}if(e.setHeader&&!e.headersSent){for(var r in i.headers){if(!t.gzip||r!=="content-encoding"){e.setHeader(r,i.headers[r])}}e.statusCode=i.statusCode}if(t.pipefilter){t.pipefilter(i,e)}};Request.prototype.qs=function(e,t){var i=this;var n;if(!t&&i.uri.query){n=i._qs.parse(i.uri.query)}else{n={}}for(var a in e){n[a]=e[a]}var s=i._qs.stringify(n);if(s===""){return i}i.uri=r.parse(i.uri.href.split("?")[0]+"?"+s);i.url=i.uri;i.path=i.uri.path;if(i.uri.host==="unix"){i.enableUnixSocket()}return i};Request.prototype.form=function(e){var t=this;if(e){if(!/^application\/x-www-form-urlencoded\b/.test(t.getHeader("content-type"))){t.setHeader("content-type","application/x-www-form-urlencoded")}t.body=typeof e==="string"?t._qs.rfc3986(e.toString("utf8")):t._qs.stringify(e).toString("utf8");return t}t._form=new m;t._form.on("error",function(e){e.message="form-data: "+e.message;t.emit("error",e);t.abort()});return t._form};Request.prototype.multipart=function(e){var t=this;t._multipart.onRequest(e);if(!t._multipart.chunked){t.body=t._multipart.body}return t};Request.prototype.json=function(e){var t=this;if(!t.hasHeader("accept")){t.setHeader("accept","application/json")}if(typeof t.jsonReplacer==="function"){t._jsonReplacer=t.jsonReplacer}t._json=true;if(typeof e==="boolean"){if(t.body!==undefined){if(!/^application\/x-www-form-urlencoded\b/.test(t.getHeader("content-type"))){t.body=N(t.body,t._jsonReplacer)}else{t.body=t._qs.rfc3986(t.body)}if(!t.hasHeader("content-type")){t.setHeader("content-type","application/json")}}}else{t.body=N(e,t._jsonReplacer);if(!t.hasHeader("content-type")){t.setHeader("content-type","application/json")}}if(typeof t.jsonReviver==="function"){t._jsonReviver=t.jsonReviver}return t};Request.prototype.getHeader=function(e,t){var i=this;var n,a,r;if(!t){t=i.headers}Object.keys(t).forEach(function(i){if(i.length!==e.length){return}a=new RegExp(e,"i");r=i.match(a);if(r){n=t[i]}});return n};Request.prototype.enableUnixSocket=function(){var e=this.uri.path.split(":");var t=e[0];var i=e[1];this.socketPath=t;this.uri.pathname=i;this.uri.path=i;this.uri.host=t;this.uri.hostname=t;this.uri.isUnix=true};Request.prototype.auth=function(e,t,i,n){var a=this;a._auth.onRequest(e,t,i,n);return a};Request.prototype.aws=function(e,t){var i=this;if(!t){i._aws=e;return i}if(e.sign_version===4||e.sign_version==="4"){var n={host:i.uri.host,path:i.uri.path,method:i.method,headers:i.headers,body:i.body};if(e.service){n.service=e.service}var a=c.sign(n,{accessKeyId:e.key,secretAccessKey:e.secret,sessionToken:e.session});i.setHeader("authorization",a.headers.Authorization);i.setHeader("x-amz-date",a.headers["X-Amz-Date"]);if(a.headers["X-Amz-Security-Token"]){i.setHeader("x-amz-security-token",a.headers["X-Amz-Security-Token"])}}else{var r=new Date;i.setHeader("date",r.toUTCString());var s={key:e.key,secret:e.secret,verb:i.method.toUpperCase(),date:r,contentType:i.getHeader("content-type")||"",md5:i.getHeader("content-md5")||"",amazonHeaders:l.canonicalizeHeaders(i.headers)};var o=i.uri.path;if(e.bucket&&o){s.resource="/"+e.bucket+o}else if(e.bucket&&!o){s.resource="/"+e.bucket}else if(!e.bucket&&o){s.resource=o}else if(!e.bucket&&!o){s.resource="/"}s.resource=l.canonicalizeResource(s.resource);i.setHeader("authorization",l.authorization(s))}return i};Request.prototype.httpSignature=function(e){var t=this;d.signRequest({getHeader:function(e){return t.getHeader(e,t.headers)},setHeader:function(e,i){t.setHeader(e,i)},method:t.method,path:t.path},e);debug("httpSignature authorization",t.getHeader("authorization"));return t};Request.prototype.hawk=function(e){var t=this;t.setHeader("Authorization",C.header(t.uri,t.method,e))};Request.prototype.oauth=function(e){var t=this;t._oauth.onRequest(e);return t};Request.prototype.jar=function(e){var t=this;var i;if(t._redirect.redirectsFollowed===0){t.originalCookieHeader=t.getHeader("cookie")}if(!e){i=false;t._disableCookies=true}else{var n=e.getCookieString?e:q;var a=t.uri.href;if(n){i=n.getCookieString(a)}}if(i&&i.length){if(t.originalCookieHeader){t.setHeader("cookie",t.originalCookieHeader+"; "+i)}else{t.setHeader("cookie",i)}}t._jar=e;return t};Request.prototype.pipe=function(e,t){var i=this;if(i.response){if(i._destdata){i.emit("error",new Error("You cannot pipe after data has been emitted from the response."))}else if(i._ended){i.emit("error",new Error("You cannot pipe after the response has been ended."))}else{o.Stream.prototype.pipe.call(i,e,t);i.pipeDest(e);return e}}else{i.dests.push(e);o.Stream.prototype.pipe.call(i,e,t);return e}};Request.prototype.write=function(){var e=this;if(e._aborted){return}if(!e._started){e.start()}if(e.req){return e.req.write.apply(e.req,arguments)}};Request.prototype.end=function(e){var t=this;if(t._aborted){return}if(e){t.write(e)}if(!t._started){t.start()}if(t.req){t.req.end()}};Request.prototype.pause=function(){var e=this;if(!e.responseContent){e._paused=true}else{e.responseContent.pause.apply(e.responseContent,arguments)}};Request.prototype.resume=function(){var e=this;if(!e.responseContent){e._paused=false}else{e.responseContent.resume.apply(e.responseContent,arguments)}};Request.prototype.destroy=function(){var e=this;this.clearTimeout();if(!e._ended){e.end()}else if(e.response){e.response.destroy()}};Request.prototype.clearTimeout=function(){if(this.timeoutTimer){clearTimeout(this.timeoutTimer);this.timeoutTimer=null}};Request.defaultProxyHeaderWhiteList=E.defaultProxyHeaderWhiteList.slice();Request.defaultProxyHeaderExclusiveList=E.defaultProxyHeaderExclusiveList.slice();Request.prototype.toJSON=requestToJSON;e.exports=Request},function(e,t,i){const{randomBytes:n}=i(373);const{IVLENGTHS:a}=i(962);e.exports=(e=>n(a.get(e)/8))},function(e,t,i){"use strict";var n=i(128);var a=i(556);var r=i(93);var s=i(723);var o=i(910);var u=Object.prototype.hasOwnProperty;var l=1;var c=2;var d=3;var p=4;var f=1;var h=2;var m=3;var b=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;var g=/[\x85\u2028\u2029]/;var y=/[,\[\]\{\}]/;var S=/^(?:!|!!|![a-z\-]+!)$/i;var w=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function _class(e){return Object.prototype.toString.call(e)}function is_EOL(e){return e===10||e===13}function is_WHITE_SPACE(e){return e===9||e===32}function is_WS_OR_EOL(e){return e===9||e===32||e===10||e===13}function is_FLOW_INDICATOR(e){return e===44||e===91||e===93||e===123||e===125}function fromHexCode(e){var t;if(48<=e&&e<=57){return e-48}t=e|32;if(97<=t&&t<=102){return t-97+10}return-1}function escapedHexLen(e){if(e===120){return 2}if(e===117){return 4}if(e===85){return 8}return 0}function fromDecimalCode(e){if(48<=e&&e<=57){return e-48}return-1}function simpleEscapeSequence(e){return e===48?"\0":e===97?"":e===98?"\b":e===116?"\t":e===9?"\t":e===110?"\n":e===118?"\v":e===102?"\f":e===114?"\r":e===101?"":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"…":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function charFromCodepoint(e){if(e<=65535){return String.fromCharCode(e)}return String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var v=new Array(256);var z=new Array(256);for(var j=0;j<256;j++){v[j]=simpleEscapeSequence(j)?1:0;z[j]=simpleEscapeSequence(j)}function State(e,t){this.input=e;this.filename=t["filename"]||null;this.schema=t["schema"]||o;this.onWarning=t["onWarning"]||null;this.legacy=t["legacy"]||false;this.json=t["json"]||false;this.listener=t["listener"]||null;this.implicitTypes=this.schema.compiledImplicit;this.typeMap=this.schema.compiledTypeMap;this.length=e.length;this.position=0;this.line=0;this.lineStart=0;this.lineIndent=0;this.documents=[]}function generateError(e,t){return new a(t,new r(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function throwError(e,t){throw generateError(e,t)}function throwWarning(e,t){if(e.onWarning){e.onWarning.call(null,generateError(e,t))}}var O={YAML:function handleYamlDirective(e,t,i){var n,a,r;if(e.version!==null){throwError(e,"duplication of %YAML directive")}if(i.length!==1){throwError(e,"YAML directive accepts exactly one argument")}n=/^([0-9]+)\.([0-9]+)$/.exec(i[0]);if(n===null){throwError(e,"ill-formed argument of the YAML directive")}a=parseInt(n[1],10);r=parseInt(n[2],10);if(a!==1){throwError(e,"unacceptable YAML version of the document")}e.version=i[0];e.checkLineBreaks=r<2;if(r!==1&&r!==2){throwWarning(e,"unsupported YAML version of the document")}},TAG:function handleTagDirective(e,t,i){var n,a;if(i.length!==2){throwError(e,"TAG directive accepts exactly two arguments")}n=i[0];a=i[1];if(!S.test(n)){throwError(e,"ill-formed tag handle (first argument) of the TAG directive")}if(u.call(e.tagMap,n)){throwError(e,'there is a previously declared suffix for "'+n+'" tag handle')}if(!w.test(a)){throwError(e,"ill-formed tag prefix (second argument) of the TAG directive")}e.tagMap[n]=a}};function captureSegment(e,t,i,n){var a,r,s,o;if(t1){e.result+=n.repeat("\n",t-1)}}function readPlainScalar(e,t,i){var n,a,r,s,o,u,l,c,d=e.kind,p=e.result,f;f=e.input.charCodeAt(e.position);if(is_WS_OR_EOL(f)||is_FLOW_INDICATOR(f)||f===35||f===38||f===42||f===33||f===124||f===62||f===39||f===34||f===37||f===64||f===96){return false}if(f===63||f===45){a=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(a)||i&&is_FLOW_INDICATOR(a)){return false}}e.kind="scalar";e.result="";r=s=e.position;o=false;while(f!==0){if(f===58){a=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(a)||i&&is_FLOW_INDICATOR(a)){break}}else if(f===35){n=e.input.charCodeAt(e.position-1);if(is_WS_OR_EOL(n)){break}}else if(e.position===e.lineStart&&testDocumentSeparator(e)||i&&is_FLOW_INDICATOR(f)){break}else if(is_EOL(f)){u=e.line;l=e.lineStart;c=e.lineIndent;skipSeparationSpace(e,false,-1);if(e.lineIndent>=t){o=true;f=e.input.charCodeAt(e.position);continue}else{e.position=s;e.line=u;e.lineStart=l;e.lineIndent=c;break}}if(o){captureSegment(e,r,s,false);writeFoldedLines(e,e.line-u);r=s=e.position;o=false}if(!is_WHITE_SPACE(f)){s=e.position+1}f=e.input.charCodeAt(++e.position)}captureSegment(e,r,s,false);if(e.result){return true}e.kind=d;e.result=p;return false}function readSingleQuotedScalar(e,t){var i,n,a;i=e.input.charCodeAt(e.position);if(i!==39){return false}e.kind="scalar";e.result="";e.position++;n=a=e.position;while((i=e.input.charCodeAt(e.position))!==0){if(i===39){captureSegment(e,n,e.position,true);i=e.input.charCodeAt(++e.position);if(i===39){n=e.position;e.position++;a=e.position}else{return true}}else if(is_EOL(i)){captureSegment(e,n,a,true);writeFoldedLines(e,skipSeparationSpace(e,false,t));n=a=e.position}else if(e.position===e.lineStart&&testDocumentSeparator(e)){throwError(e,"unexpected end of the document within a single quoted scalar")}else{e.position++;a=e.position}}throwError(e,"unexpected end of the stream within a single quoted scalar")}function readDoubleQuotedScalar(e,t){var i,n,a,r,s,o;o=e.input.charCodeAt(e.position);if(o!==34){return false}e.kind="scalar";e.result="";e.position++;i=n=e.position;while((o=e.input.charCodeAt(e.position))!==0){if(o===34){captureSegment(e,i,e.position,true);e.position++;return true}else if(o===92){captureSegment(e,i,e.position,true);o=e.input.charCodeAt(++e.position);if(is_EOL(o)){skipSeparationSpace(e,false,t)}else if(o<256&&v[o]){e.result+=z[o];e.position++}else if((s=escapedHexLen(o))>0){a=s;r=0;for(;a>0;a--){o=e.input.charCodeAt(++e.position);if((s=fromHexCode(o))>=0){r=(r<<4)+s}else{throwError(e,"expected hexadecimal character")}}e.result+=charFromCodepoint(r);e.position++}else{throwError(e,"unknown escape sequence")}i=n=e.position}else if(is_EOL(o)){captureSegment(e,i,n,true);writeFoldedLines(e,skipSeparationSpace(e,false,t));i=n=e.position}else if(e.position===e.lineStart&&testDocumentSeparator(e)){throwError(e,"unexpected end of the document within a double quoted scalar")}else{e.position++;n=e.position}}throwError(e,"unexpected end of the stream within a double quoted scalar")}function readFlowCollection(e,t){var i=true,n,a=e.tag,r,s=e.anchor,o,u,c,d,p,f={},h,m,b,g;g=e.input.charCodeAt(e.position);if(g===91){u=93;p=false;r=[]}else if(g===123){u=125;p=true;r={}}else{return false}if(e.anchor!==null){e.anchorMap[e.anchor]=r}g=e.input.charCodeAt(++e.position);while(g!==0){skipSeparationSpace(e,true,t);g=e.input.charCodeAt(e.position);if(g===u){e.position++;e.tag=a;e.anchor=s;e.kind=p?"mapping":"sequence";e.result=r;return true}else if(!i){throwError(e,"missed comma between flow collection entries")}m=h=b=null;c=d=false;if(g===63){o=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(o)){c=d=true;e.position++;skipSeparationSpace(e,true,t)}}n=e.line;composeNode(e,t,l,false,true);m=e.tag;h=e.result;skipSeparationSpace(e,true,t);g=e.input.charCodeAt(e.position);if((d||e.line===n)&&g===58){c=true;g=e.input.charCodeAt(++e.position);skipSeparationSpace(e,true,t);composeNode(e,t,l,false,true);b=e.result}if(p){storeMappingPair(e,r,f,m,h,b)}else if(c){r.push(storeMappingPair(e,null,f,m,h,b))}else{r.push(h)}skipSeparationSpace(e,true,t);g=e.input.charCodeAt(e.position);if(g===44){i=true;g=e.input.charCodeAt(++e.position)}else{i=false}}throwError(e,"unexpected end of the stream within a flow collection")}function readBlockScalar(e,t){var i,a,r=f,s=false,o=false,u=t,l=0,c=false,d,p;p=e.input.charCodeAt(e.position);if(p===124){a=false}else if(p===62){a=true}else{return false}e.kind="scalar";e.result="";while(p!==0){p=e.input.charCodeAt(++e.position);if(p===43||p===45){if(f===r){r=p===43?m:h}else{throwError(e,"repeat of a chomping mode identifier")}}else if((d=fromDecimalCode(p))>=0){if(d===0){throwError(e,"bad explicit indentation width of a block scalar; it cannot be less than one")}else if(!o){u=t+d-1;o=true}else{throwError(e,"repeat of an indentation width identifier")}}else{break}}if(is_WHITE_SPACE(p)){do{p=e.input.charCodeAt(++e.position)}while(is_WHITE_SPACE(p));if(p===35){do{p=e.input.charCodeAt(++e.position)}while(!is_EOL(p)&&p!==0)}}while(p!==0){readLineBreak(e);e.lineIndent=0;p=e.input.charCodeAt(e.position);while((!o||e.lineIndentu){u=e.lineIndent}if(is_EOL(p)){l++;continue}if(e.lineIndentt)&&u!==0){throwError(e,"bad indentation of a sequence entry")}else if(e.lineIndentt){if(composeNode(e,t,p,true,a)){if(b){h=e.result}else{m=e.result}}if(!b){storeMappingPair(e,l,d,f,h,m,r,s);f=h=m=null}skipSeparationSpace(e,true,-1);y=e.input.charCodeAt(e.position)}if(e.lineIndent>t&&y!==0){throwError(e,"bad indentation of a mapping entry")}else if(e.lineIndentt){f=1}else if(e.lineIndent===t){f=0}else if(e.lineIndentt){f=1}else if(e.lineIndent===t){f=0}else if(e.lineIndent tag; it should be "scalar", not "'+e.kind+'"')}for(b=0,g=e.implicitTypes.length;b tag; it should be "'+y.kind+'", not "'+e.kind+'"')}if(!y.resolve(e.result)){throwError(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}else{e.result=y.construct(e.result);if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}}}else{throwError(e,"unknown tag !<"+e.tag+">")}}if(e.listener!==null){e.listener("close",e)}return e.tag!==null||e.anchor!==null||m}function readDocument(e){var t=e.position,i,n,a,r=false,s;e.version=null;e.checkLineBreaks=e.legacy;e.tagMap={};e.anchorMap={};while((s=e.input.charCodeAt(e.position))!==0){skipSeparationSpace(e,true,-1);s=e.input.charCodeAt(e.position);if(e.lineIndent>0||s!==37){break}r=true;s=e.input.charCodeAt(++e.position);i=e.position;while(s!==0&&!is_WS_OR_EOL(s)){s=e.input.charCodeAt(++e.position)}n=e.input.slice(i,e.position);a=[];if(n.length<1){throwError(e,"directive name must not be less than one character in length")}while(s!==0){while(is_WHITE_SPACE(s)){s=e.input.charCodeAt(++e.position)}if(s===35){do{s=e.input.charCodeAt(++e.position)}while(s!==0&&!is_EOL(s));break}if(is_EOL(s))break;i=e.position;while(s!==0&&!is_WS_OR_EOL(s)){s=e.input.charCodeAt(++e.position)}a.push(e.input.slice(i,e.position))}if(s!==0)readLineBreak(e);if(u.call(O,n)){O[n](e,n,a)}else{throwWarning(e,'unknown document directive "'+n+'"')}}skipSeparationSpace(e,true,-1);if(e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45){e.position+=3;skipSeparationSpace(e,true,-1)}else if(r){throwError(e,"directives end mark is expected")}composeNode(e,e.lineIndent-1,p,false,true);skipSeparationSpace(e,true,-1);if(e.checkLineBreaks&&g.test(e.input.slice(t,e.position))){throwWarning(e,"non-ASCII line breaks are interpreted as content")}e.documents.push(e.result);if(e.position===e.lineStart&&testDocumentSeparator(e)){if(e.input.charCodeAt(e.position)===46){e.position+=3;skipSeparationSpace(e,true,-1)}return}if(e.position{e=new n(e,p);t=new s(t,p);let f,h,m,b,g;switch(i){case">":f=u;h=c;m=l;b=">";g=">=";break;case"<":f=l;h=d;m=u;b="<";g="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(o(e,t,p)){return false}for(let i=0;i{if(e.semver===r){e=new a(">=0.0.0")}s=s||e;o=o||e;if(f(e.semver,s.semver,p)){s=e}else if(m(e.semver,o.semver,p)){o=e}});if(s.operator===b||s.operator===g){return false}if((!o.operator||o.operator===b)&&h(e,o.semver)){return false}else if(o.operator===g&&m(e,o.semver)){return false}}return true};e.exports=p},function(e,t,i){"use strict";const n=i(273);const a=i(557);class FilterError extends Error{}const r=(e,t)=>new a((i,a,r)=>{const{count:s,filter:o=(()=>true)}=t;if(!Number.isFinite(s)){a(new TypeError(`Expected a finite number, got ${typeof t.count}`));return}const u=[];const l=[];let c=0;let d=false;const p=new Set;const f=()=>{if(u.length===s){i(u);d=true}if(c-l.length{for(const t of e){if(!p.has(t)&&typeof t.cancel==="function"){t.cancel()}}};r(h);for(const t of e){c++;(async()=>{try{const e=await t;if(d){return}if(!o(e)){throw new FilterError("Value does not satisfy filter")}u.push(e)}catch(e){l.push(e)}finally{p.add(t);if(!d&&f()){h()}}})()}if(s>c){a(new RangeError(`Expected input to contain at least ${t.count} items, but contains ${c} items`));h()}});e.exports=r;e.exports.AggregateError=n;e.exports.FilterError=FilterError},,,function(e){const t={JOSEAlgNotWhitelisted:"ERR_JOSE_ALG_NOT_WHITELISTED",JOSECritNotUnderstood:"ERR_JOSE_CRIT_NOT_UNDERSTOOD",JOSEInvalidEncoding:"ERR_JOSE_INVALID_ENCODING",JOSEMultiError:"ERR_JOSE_MULTIPLE_ERRORS",JOSENotSupported:"ERR_JOSE_NOT_SUPPORTED",JWEDecryptionFailed:"ERR_JWE_DECRYPTION_FAILED",JWEInvalid:"ERR_JWE_INVALID",JWKImportFailed:"ERR_JWK_IMPORT_FAILED",JWKInvalid:"ERR_JWK_INVALID",JWKKeySupport:"ERR_JWK_KEY_SUPPORT",JWKSNoMatchingKey:"ERR_JWKS_NO_MATCHING_KEY",JWSInvalid:"ERR_JWS_INVALID",JWSVerificationFailed:"ERR_JWS_VERIFICATION_FAILED",JWTClaimInvalid:"ERR_JWT_CLAIM_INVALID",JWTExpired:"ERR_JWT_EXPIRED",JWTMalformed:"ERR_JWT_MALFORMED"};const i={JWEDecryptionFailed:"decryption operation failed",JWEInvalid:"JWE invalid",JWKSNoMatchingKey:"no matching key found in the KeyStore",JWSInvalid:"JWS invalid",JWSVerificationFailed:"signature verification failed"};class JOSEError extends Error{constructor(e){super(e);if(e===undefined){this.message=i[this.constructor.name]}this.name=this.constructor.name;this.code=t[this.constructor.name];Error.captureStackTrace(this,this.constructor)}}const n=e=>e instanceof JOSEMultiError;class JOSEMultiError extends JOSEError{constructor(e){super();let t;while((t=e.findIndex(n))&&t!==-1){e.splice(t,1,...e[t])}Object.defineProperty(this,"errors",{value:e})}*[Symbol.iterator](){for(const e of this.errors){yield e}}}e.exports.JOSEError=JOSEError;e.exports.JOSEAlgNotWhitelisted=class JOSEAlgNotWhitelisted extends JOSEError{};e.exports.JOSECritNotUnderstood=class JOSECritNotUnderstood extends JOSEError{};e.exports.JOSEInvalidEncoding=class JOSEInvalidEncoding extends JOSEError{};e.exports.JOSEMultiError=JOSEMultiError;e.exports.JOSENotSupported=class JOSENotSupported extends JOSEError{};e.exports.JWEDecryptionFailed=class JWEDecryptionFailed extends JOSEError{};e.exports.JWEInvalid=class JWEInvalid extends JOSEError{};e.exports.JWKImportFailed=class JWKImportFailed extends JOSEError{};e.exports.JWKInvalid=class JWKInvalid extends JOSEError{};e.exports.JWKKeySupport=class JWKKeySupport extends JOSEError{};e.exports.JWKSNoMatchingKey=class JWKSNoMatchingKey extends JOSEError{};e.exports.JWSInvalid=class JWSInvalid extends JOSEError{};e.exports.JWSVerificationFailed=class JWSVerificationFailed extends JOSEError{};class JWTClaimInvalid extends JOSEError{constructor(e,t="unspecified",i="unspecified"){super(e);this.claim=t;this.reason=i}}e.exports.JWTClaimInvalid=JWTClaimInvalid;e.exports.JWTExpired=class JWTExpired extends JWTClaimInvalid{};e.exports.JWTMalformed=class JWTMalformed extends JOSEError{}},,function(e){const t="/.well-known/openid-configuration";const i="/.well-known/oauth-authorization-server";const n="/.well-known/webfinger";const a="http://openid.net/specs/connect/1.0/issuer";const r=[`https://login.microsoftonline.com/common${t}`,`https://login.microsoftonline.com/common/v2.0${t}`,`https://login.microsoftonline.com/organizations/v2.0${t}`,`https://login.microsoftonline.com/consumers/v2.0${t}`];const s={grant_types:["authorization_code"],id_token_signed_response_alg:"RS256",authorization_signed_response_alg:"RS256",response_types:["code"],token_endpoint_auth_method:"client_secret_basic"};const o={claim_types_supported:["normal"],claims_parameter_supported:false,grant_types_supported:["authorization_code","implicit"],request_parameter_supported:false,request_uri_parameter_supported:true,require_request_uri_registration:false,response_modes_supported:["query","fragment"],token_endpoint_auth_methods_supported:["client_secret_basic"]};const u=["access_token","code","error","error_description","error_uri","expires_in","id_token","state","token_type","session_state","response"];const l=/^application\/jwt/;const c=Symbol("openid-client.custom.http-options");const d=Symbol("openid-client.custom.clock-tolerance");e.exports={AAD_MULTITENANT_DISCOVERY:r,CALLBACK_PROPERTIES:u,CLIENT_DEFAULTS:s,CLOCK_TOLERANCE:d,HTTP_OPTIONS:c,ISSUER_DEFAULTS:o,JWT_CONTENT:l,OAUTH2_DISCOVERY:i,OIDC_DISCOVERY:t,REL:a,WEBFINGER:n}},function(e,t,i){"use strict";var n=i(826);var a=i(547);var r=i(382);var s=i(727).Buffer;function Multipart(e){this.request=e;this.boundary=n();this.chunked=false;this.body=null}Multipart.prototype.isChunked=function(e){var t=this;var i=false;var n=e.data||e;if(!n.forEach){t.request.emit("error",new Error("Argument error, options.multipart."))}if(e.chunked!==undefined){i=e.chunked}if(t.request.getHeader("transfer-encoding")==="chunked"){i=true}if(!i){n.forEach(function(e){if(typeof e.body==="undefined"){t.request.emit("error",new Error("Body attribute missing in multipart."))}if(r(e.body)){i=true}})}return i};Multipart.prototype.setHeaders=function(e){var t=this;if(e&&!t.request.hasHeader("transfer-encoding")){t.request.setHeader("transfer-encoding","chunked")}var i=t.request.getHeader("content-type");if(!i||i.indexOf("multipart")===-1){t.request.setHeader("content-type","multipart/related; boundary="+t.boundary)}else{if(i.indexOf("boundary")!==-1){t.boundary=i.replace(/.*boundary=([^\s;]+).*/,"$1")}else{t.request.setHeader("content-type",i+"; boundary="+t.boundary)}}};Multipart.prototype.build=function(e,t){var i=this;var n=t?new a:[];function add(e){if(typeof e==="number"){e=e.toString()}return t?n.append(e):n.push(s.from(e))}if(i.request.preambleCRLF){add("\r\n")}e.forEach(function(e){var t="--"+i.boundary+"\r\n";Object.keys(e).forEach(function(i){if(i==="body"){return}t+=i+": "+e[i]+"\r\n"});t+="\r\n";add(t);add(e.body);add("\r\n")});add("--"+i.boundary+"--");if(i.request.postambleCRLF){add("\r\n")}return n};Multipart.prototype.onRequest=function(e){var t=this;var i=t.isChunked(e);var n=e.data||e;t.setHeaders(i);t.chunked=i;t.body=t.build(n,i)};t.Multipart=Multipart},function(e,t,i){"use strict";var n=this&&this.__awaiter||function(e,t,i,n){function adopt(e){return e instanceof i?e:new i(function(t){t(e)})}return new(i||(i=Promise))(function(i,a){function fulfilled(e){try{step(n.next(e))}catch(e){a(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){a(e)}}function step(e){e.done?i(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)if(Object.hasOwnProperty.call(e,i))t[i]=e[i];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const r=i(431);const s=i(102);const o=i(82);const u=a(i(87));const l=a(i(622));var c;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(c=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const i=o.toCommandValue(t);process.env[e]=i;const n=process.env["GITHUB_ENV"]||"";if(n){const t="_GitHubActionsFileCommandDelimeter_";const n=`${e}<<${t}${u.EOL}${i}${u.EOL}${t}`;s.issueCommand("ENV",n)}else{r.issueCommand("set-env",{name:e},i)}}t.exportVariable=exportVariable;function setSecret(e){r.issueCommand("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){s.issueCommand("PATH",e)}else{r.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${l.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const i=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!i){throw new Error(`Input required and not supplied: ${e}`)}return i.trim()}t.getInput=getInput;function setOutput(e,t){r.issueCommand("set-output",{name:e},t)}t.setOutput=setOutput;function setCommandEcho(e){r.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=c.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){r.issueCommand("debug",{},e)}t.debug=debug;function error(e){r.issue("error",e instanceof Error?e.toString():e)}t.error=error;function warning(e){r.issue("warning",e instanceof Error?e.toString():e)}t.warning=warning;function info(e){process.stdout.write(e+u.EOL)}t.info=info;function startGroup(e){r.issue("group",e)}t.startGroup=startGroup;function endGroup(){r.issue("endgroup")}t.endGroup=endGroup;function group(e,t){return n(this,void 0,void 0,function*(){startGroup(e);let i;try{i=yield t()}finally{endGroup()}return i})}t.group=group;function saveState(e,t){r.issueCommand("save-state",{name:e},t)}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState},,function(e,t,i){"use strict";var n=i(373);t=e.exports=objectHash;function objectHash(e,t){t=applyDefaults(e,t);return hash(e,t)}t.sha1=function(e){return objectHash(e)};t.keys=function(e){return objectHash(e,{excludeValues:true,algorithm:"sha1",encoding:"hex"})};t.MD5=function(e){return objectHash(e,{algorithm:"md5",encoding:"hex"})};t.keysMD5=function(e){return objectHash(e,{algorithm:"md5",encoding:"hex",excludeValues:true})};var a=n.getHashes?n.getHashes().slice():["sha1","md5"];a.push("passthrough");var r=["buffer","hex","binary","base64"];function applyDefaults(e,t){t=t||{};var i={};i.algorithm=t.algorithm||"sha1";i.encoding=t.encoding||"hex";i.excludeValues=t.excludeValues?true:false;i.algorithm=i.algorithm.toLowerCase();i.encoding=i.encoding.toLowerCase();i.ignoreUnknown=t.ignoreUnknown!==true?false:true;i.respectType=t.respectType===false?false:true;i.respectFunctionNames=t.respectFunctionNames===false?false:true;i.respectFunctionProperties=t.respectFunctionProperties===false?false:true;i.unorderedArrays=t.unorderedArrays!==true?false:true;i.unorderedSets=t.unorderedSets===false?false:true;i.unorderedObjects=t.unorderedObjects===false?false:true;i.replacer=t.replacer||undefined;i.excludeKeys=t.excludeKeys||undefined;if(typeof e==="undefined"){throw new Error("Object argument required.")}for(var n=0;n=0){return this.dispatch("[CIRCULAR:"+o+"]")}else{i.push(t)}if(typeof Buffer!=="undefined"&&Buffer.isBuffer&&Buffer.isBuffer(t)){n("buffer:");return n(t)}if(s!=="object"&&s!=="function"&&s!=="asyncfunction"){if(this["_"+s]){this["_"+s](t)}else if(e.ignoreUnknown){return n("["+s+"]")}else{throw new Error('Unknown object type "'+s+'"')}}else{var u=Object.keys(t);if(e.unorderedObjects){u=u.sort()}if(e.respectType!==false&&!isNativeFunction(t)){u.splice(0,0,"prototype","__proto__","constructor")}if(e.excludeKeys){u=u.filter(function(t){return!e.excludeKeys(t)})}n("object:"+u.length+":");var l=this;return u.forEach(function(i){l.dispatch(i);n(":");if(!e.excludeValues){l.dispatch(t[i])}n(",")})}},_array:function(t,a){a=typeof a!=="undefined"?a:e.unorderedArrays!==false;var r=this;n("array:"+t.length+":");if(!a||t.length<=1){return t.forEach(function(e){return r.dispatch(e)})}var s=[];var o=t.map(function(t){var n=new PassThrough;var a=i.slice();var r=typeHasher(e,n,a);r.dispatch(t);s=s.concat(a.slice(i.length));return n.read().toString()});i=i.concat(s);o.sort();return this._array(o,false)},_date:function(e){return n("date:"+e.toJSON())},_symbol:function(e){return n("symbol:"+e.toString())},_error:function(e){return n("error:"+e.toString())},_boolean:function(e){return n("bool:"+e.toString())},_string:function(e){n("string:"+e.length+":");n(e.toString())},_function:function(t){n("fn:");if(isNativeFunction(t)){this.dispatch("[native]")}else{this.dispatch(t.toString())}if(e.respectFunctionNames!==false){this.dispatch("function-name:"+String(t.name))}if(e.respectFunctionProperties){this._object(t)}},_number:function(e){return n("number:"+e.toString())},_xml:function(e){return n("xml:"+e.toString())},_null:function(){return n("Null")},_undefined:function(){return n("Undefined")},_regexp:function(e){return n("regex:"+e.toString())},_uint8array:function(e){n("uint8array:");return this.dispatch(Array.prototype.slice.call(e))},_uint8clampedarray:function(e){n("uint8clampedarray:");return this.dispatch(Array.prototype.slice.call(e))},_int8array:function(e){n("uint8array:");return this.dispatch(Array.prototype.slice.call(e))},_uint16array:function(e){n("uint16array:");return this.dispatch(Array.prototype.slice.call(e))},_int16array:function(e){n("uint16array:");return this.dispatch(Array.prototype.slice.call(e))},_uint32array:function(e){n("uint32array:");return this.dispatch(Array.prototype.slice.call(e))},_int32array:function(e){n("uint32array:");return this.dispatch(Array.prototype.slice.call(e))},_float32array:function(e){n("float32array:");return this.dispatch(Array.prototype.slice.call(e))},_float64array:function(e){n("float64array:");return this.dispatch(Array.prototype.slice.call(e))},_arraybuffer:function(e){n("arraybuffer:");return this.dispatch(new Uint8Array(e))},_url:function(e){return n("url:"+e.toString(),"utf8")},_map:function(t){n("map:");var i=Array.from(t);return this._array(i,e.unorderedSets!==false)},_set:function(t){n("set:");var i=Array.from(t);return this._array(i,e.unorderedSets!==false)},_blob:function(){if(e.ignoreUnknown){return n("[blob]")}throw Error("Hashing Blob objects is currently not supported\n"+"(see https://github.com/puleos/object-hash/issues/26)\n"+'Use "options.replacer" or "options.ignoreUnknown"\n')},_domwindow:function(){return n("domwindow")},_process:function(){return n("process")},_timer:function(){return n("timer")},_pipe:function(){return n("pipe")},_tcp:function(){return n("tcp")},_udp:function(){return n("udp")},_tty:function(){return n("tty")},_statwatcher:function(){return n("statwatcher")},_securecontext:function(){return n("securecontext")},_connection:function(){return n("connection")},_zlib:function(){return n("zlib")},_context:function(){return n("context")},_nodescript:function(){return n("nodescript")},_httpparser:function(){return n("httpparser")},_dataview:function(){return n("dataview")},_signal:function(){return n("signal")},_fsevent:function(){return n("fsevent")},_tlswrap:function(){return n("tlswrap")}}}function PassThrough(){return{buf:"",write:function(e){this.buf+=e},end:function(e){this.buf+=e},read:function(){return this.buf}}}},,function(e,t,i){e.exports={der:i(768),pem:i(782)}},function(e,t,i){"use strict";const n=i(482);const a=i(338);const r={options:{retry:{retries:2,methods:["GET","PUT","HEAD","DELETE","OPTIONS","TRACE"],statusCodes:[408,413,429,500,502,503,504],errorCodes:["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"]},headers:{"user-agent":`${n.name}/${n.version} (https://github.com/sindresorhus/got)`},hooks:{beforeRequest:[],beforeRedirect:[],beforeRetry:[],afterResponse:[]},decompress:true,throwHttpErrors:true,followRedirect:true,stream:false,form:false,json:false,cache:false,useElectronNet:false},mutableDefaults:false};const s=a(r);e.exports=s},,function(e,t,i){var n=i(602);var a=i(747);var r=i(622);var s=function(e){return{OTHER_EXEC:e.EXEC,OTHER_WRITE:e.WRITE,OTHER_READ:e.READ,GROUP_EXEC:e.EXEC<<3,GROUP_WRITE:e.WRITE<<3,GROUP_READ:e.READ<<3,OWNER_EXEC:e.EXEC<<6,OWNER_WRITE:e.WRITE<<6,OWNER_READ:e.READ<<6,STICKY:parseInt("01000",8),SETGID:parseInt("02000",8),SETUID:parseInt("04000",8),TYPE_MASK:parseInt("0770000",8)}}({EXEC:1,WRITE:2,READ:4});n.register("chmod",_chmod,{});function _chmod(e,t,i){if(!i){if(e.length>0&&e.charAt(0)==="-"){[].unshift.call(arguments,"")}else{n.error("You must specify a file.")}}e=n.parseOptions(e,{R:"recursive",c:"changes",v:"verbose"});i=[].slice.call(arguments,2);var o;if(e.recursive){o=[];i.forEach(function addFile(e){var t=n.statNoFollowLinks(e);if(!t.isSymbolicLink()){o.push(e);if(t.isDirectory()){a.readdirSync(e).forEach(function(t){addFile(e+"/"+t)})}}})}else{o=i}o.forEach(function innerChmod(i){i=r.resolve(i);if(!a.existsSync(i)){n.error("File not found: "+i)}if(e.recursive&&n.statNoFollowLinks(i).isSymbolicLink()){return}var o=n.statFollowLinks(i);var u=o.isDirectory();var l=o.mode;var c=l&s.TYPE_MASK;var d=l;if(isNaN(parseInt(t,8))){t.split(",").forEach(function(t){var r=/([ugoa]*)([=\+-])([rwxXst]*)/i;var o=r.exec(t);if(o){var p=o[1];var f=o[2];var h=o[3];var m=p.indexOf("u")!==-1||p==="a"||p==="";var b=p.indexOf("g")!==-1||p==="a"||p==="";var g=p.indexOf("o")!==-1||p==="a"||p==="";var y=h.indexOf("r")!==-1;var S=h.indexOf("w")!==-1;var w=h.indexOf("x")!==-1;var v=h.indexOf("X")!==-1;var z=h.indexOf("t")!==-1;var j=h.indexOf("s")!==-1;if(v&&u){w=true}var O=0;if(m){O|=(y?s.OWNER_READ:0)+(S?s.OWNER_WRITE:0)+(w?s.OWNER_EXEC:0)+(j?s.SETUID:0)}if(b){O|=(y?s.GROUP_READ:0)+(S?s.GROUP_WRITE:0)+(w?s.GROUP_EXEC:0)+(j?s.SETGID:0)}if(g){O|=(y?s.OTHER_READ:0)+(S?s.OTHER_WRITE:0)+(w?s.OTHER_EXEC:0)}if(z){O|=s.STICKY}switch(f){case"+":d|=O;break;case"-":d&=~O;break;case"=":d=c+O;if(n.statFollowLinks(i).isDirectory()){d|=s.SETUID+s.SETGID&l}break;default:n.error("Could not recognize operator: `"+f+"`")}if(e.verbose){console.log(i+" -> "+d.toString(8))}if(l!==d){if(!e.verbose&&e.changes){console.log(i+" -> "+d.toString(8))}a.chmodSync(i,d);l=d}}else{n.error("Invalid symbolic mode change: "+t)}})}else{d=c+parseInt(t,8);if(n.statFollowLinks(i).isDirectory()){d|=s.SETUID+s.SETGID&l}a.chmodSync(i,d)}});return""}e.exports=_chmod},,function(e){"use strict";e.exports=function generate_if(e,t,i){var n=" ";var a=e.level;var r=e.dataLevel;var s=e.schema[t];var o=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var l=!e.opts.allErrors;var c="data"+(r||"");var d="valid"+a;var p="errs__"+a;var f=e.util.copy(e);f.level++;var h="valid"+f.level;var m=e.schema["then"],b=e.schema["else"],g=m!==undefined&&(e.opts.strictKeywords?typeof m=="object"&&Object.keys(m).length>0:e.util.schemaHasRules(m,e.RULES.all)),y=b!==undefined&&(e.opts.strictKeywords?typeof b=="object"&&Object.keys(b).length>0:e.util.schemaHasRules(b,e.RULES.all)),S=f.baseId;if(g||y){var w;f.createErrors=false;f.schema=s;f.schemaPath=o;f.errSchemaPath=u;n+=" var "+p+" = errors; var "+d+" = true; ";var v=e.compositeRule;e.compositeRule=f.compositeRule=true;n+=" "+e.validate(f)+" ";f.baseId=S;f.createErrors=true;n+=" errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } ";e.compositeRule=f.compositeRule=v;if(g){n+=" if ("+h+") { ";f.schema=e.schema["then"];f.schemaPath=e.schemaPath+".then";f.errSchemaPath=e.errSchemaPath+"/then";n+=" "+e.validate(f)+" ";f.baseId=S;n+=" "+d+" = "+h+"; ";if(g&&y){w="ifClause"+a;n+=" var "+w+" = 'then'; "}else{w="'then'"}n+=" } ";if(y){n+=" else { "}}else{n+=" if (!"+h+") { "}if(y){f.schema=e.schema["else"];f.schemaPath=e.schemaPath+".else";f.errSchemaPath=e.errSchemaPath+"/else";n+=" "+e.validate(f)+" ";f.baseId=S;n+=" "+d+" = "+h+"; ";if(g&&y){w="ifClause"+a;n+=" var "+w+" = 'else'; "}else{w="'else'"}n+=" } "}n+=" if (!"+d+") { var err = ";if(e.createErrors!==false){n+=" { keyword: '"+"if"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { failingKeyword: "+w+" } ";if(e.opts.messages!==false){n+=" , message: 'should match \"' + "+w+" + '\" schema' "}if(e.opts.verbose){n+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}n+=" } "}else{n+=" {} "}n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(!e.compositeRule&&l){if(e.async){n+=" throw new ValidationError(vErrors); "}else{n+=" validate.errors = vErrors; return false; "}}n+=" } ";if(l){n+=" else { "}}else{if(l){n+=" if (true) { "}}return n}},function(e,t,i){const n=i(124);const a=(e,t)=>{try{return new n(e,t).range||"*"}catch(e){return null}};e.exports=a},function(e){e.exports=((e,t)=>(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(e),this.key("privateKey").use(t))}))},function(e){e.exports={name:"got",version:"9.6.0",description:"Simplified HTTP requests",license:"MIT",repository:"sindresorhus/got",main:"source",engines:{node:">=8.6"},scripts:{test:"xo && nyc ava",release:"np"},files:["source"],keywords:["http","https","get","got","url","uri","request","util","utility","simple","curl","wget","fetch","net","network","electron"],dependencies:{"@sindresorhus/is":"^0.14.0","@szmarczak/http-timer":"^1.1.2","cacheable-request":"^6.0.0","decompress-response":"^3.3.0",duplexer3:"^0.1.4","get-stream":"^4.1.0","lowercase-keys":"^1.0.1","mimic-response":"^1.0.1","p-cancelable":"^1.0.0","to-readable-stream":"^1.0.0","url-parse-lax":"^3.0.0"},devDependencies:{ava:"^1.1.0",coveralls:"^3.0.0",delay:"^4.1.0","form-data":"^2.3.3","get-port":"^4.0.0",np:"^3.1.0",nyc:"^13.1.0","p-event":"^2.1.0",pem:"^1.13.2",proxyquire:"^2.0.1",sinon:"^7.2.2","slow-stream":"0.0.4",tempfile:"^2.0.0",tempy:"^0.2.1","tough-cookie":"^3.0.0",xo:"^0.24.0"},ava:{concurrency:4},browser:{"decompress-response":false,electron:false}}},,,,function(e,t,i){const n=i(874);const a=(e,t,i)=>n(e,t,i)>0;e.exports=a},,,function(e,t,i){const n=i(65);const a=(e,t)=>new n(e,t).patch;e.exports=a},function(e){e.exports=((e={},t={})=>{const i=Object.keys(e);const n=new Set(Object.keys(t));return!i.some(e=>n.has(e))})},,,function(e){e.exports={name:"openid-client",version:"3.15.9",description:"OpenID Connect Relying Party (RP, Client) implementation for Node.js runtime, supports passportjs",keywords:["auth","authentication","basic","certified","client","connect","dynamic","electron","hybrid","identity","implicit","oauth","oauth2","oidc","openid","passport","relying party","strategy"],homepage:"https://github.com/panva/node-openid-client",repository:"panva/node-openid-client",license:"MIT",author:"Filip Skokan ",files:["lib","types/index.d.ts"],funding:"https://github.com/sponsors/panva",main:"lib/index.js",types:"types/index.d.ts",scripts:{coverage:"nyc mocha test/**/*.test.js",lint:"eslint lib test","lint-ts":"npx typescript@~3.6.0 --build types","lint-fix":"eslint lib test --fix",test:"mocha test/**/*.test.js"},dependencies:{"@types/got":"^9.6.9",base64url:"^3.0.1",got:"^9.6.0",jose:"^1.27.1","lru-cache":"^6.0.0","make-error":"^1.3.6","object-hash":"^2.0.1","oidc-token-hash":"^5.0.0","p-any":"^3.0.0"},devDependencies:{"@commitlint/cli":"^9.1.1","@commitlint/config-conventional":"^9.1.1","@types/passport":"^1.0.4",chai:"^4.2.0",eslint:"^7.4.0","eslint-config-airbnb-base":"^14.2.0","eslint-plugin-import":"^2.21.2",husky:"^4.0.0",mocha:"^8.0.1",nock:"^13.0.2",nyc:"^15.1.0","readable-mock-req":"^0.2.2",sinon:"^9.0.0",timekeeper:"^2.2.0"},engines:{node:"^10.13.0 || >=12.0.0"},commitlint:{extends:["@commitlint/config-conventional"]},husky:{hooks:{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},nyc:{reporter:["lcov","text-summary"]}}},,,function(e,t,i){"use strict";var n=i(894),a=i(855).toHash;e.exports=function rules(){var e=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}];var t=["type","$comment"];var i=["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"];var r=["number","integer","string","array","object","boolean","null"];e.all=a(t);e.types=a(r);e.forEach(function(i){i.rules=i.rules.map(function(i){var a;if(typeof i=="object"){var r=Object.keys(i)[0];a=i[r];i=r;a.forEach(function(i){t.push(i);e.all[i]=true})}t.push(i);var s=e.all[i]={keyword:i,code:n[i],implements:a};return s});e.all.$comment={keyword:"$comment",code:n.$comment};if(i.type)e.types[i.type]=i});e.keywords=a(t.concat(i));e.custom={};return e}},,,function(e,t,i){const n=i(65);const a=i(830);const{re:r,t:s}=i(976);const o=(e,t)=>{if(e instanceof n){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}t=t||{};let i=null;if(!t.rtl){i=e.match(r[s.COERCE])}else{let t;while((t=r[s.COERCERTL].exec(e))&&(!i||i.index+i[0].length!==e.length)){if(!i||t.index+t[0].length!==i.index+i[0].length){i=t}r[s.COERCERTL].lastIndex=t.index+t[1].length+t[2].length}r[s.COERCERTL].lastIndex=-1}if(i===null)return null;return a(`${i[2]}.${i[3]||"0"}.${i[4]||"0"}`,t)};e.exports=o},function(e){e.exports=defer;function defer(e){var t=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;if(t){t(e)}else{setTimeout(e,0)}}},,function(e,t,i){e.exports=PrivateKey;var n=i(872);var a=i(215).Buffer;var r=i(98);var s=i(373);var o=i(400);var u=i(575);var l=i(753);var c=i(669);var d=i(270);var p=i(532);var f=p.generateECDSA;var h=p.generateED25519;var m=i(635);var b=i(196);var g=i(852);var y=l.InvalidAlgorithmError;var S=l.KeyParseError;var w=l.KeyEncryptedError;var v={};v["auto"]=i(241);v["pem"]=i(268);v["pkcs1"]=i(449);v["pkcs8"]=i(707);v["rfc4253"]=i(538);v["ssh-private"]=i(78);v["openssh"]=v["ssh-private"];v["ssh"]=v["ssh-private"];v["dnssec"]=i(982);function PrivateKey(e){n.object(e,"options");g.call(this,e);this._pubCache=undefined}c.inherits(PrivateKey,g);PrivateKey.formats=v;PrivateKey.prototype.toBuffer=function(e,t){if(e===undefined)e="pkcs1";n.string(e,"format");n.object(v[e],"formats[format]");n.optionalObject(t,"options");return v[e].write(this,t)};PrivateKey.prototype.hash=function(e,t){return this.toPublic().hash(e,t)};PrivateKey.prototype.fingerprint=function(e,t){return this.toPublic().fingerprint(e,t)};PrivateKey.prototype.toPublic=function(){if(this._pubCache)return this._pubCache;var e=r.info[this.type];var t=[];for(var i=0;i{const i=n(e.trim().replace(/^[=v]+/,""),t);return i?i.version:null};e.exports=a},function(e,t,i){"use strict";const n=i(534);e.exports=(e=>n.nodeStream(e)&&n.function(e.getBoundary))},function(e,t,i){var n=i(602);var a=i(747);n.register("touch",_touch,{cmdOptions:{a:"atime_only",c:"no_create",d:"date",m:"mtime_only",r:"reference"}});function _touch(e,t){if(!t){n.error("no files given")}else if(typeof t==="string"){t=[].slice.call(arguments,1)}else{n.error("file arg should be a string file path or an Array of string file paths")}t.forEach(function(t){touchFile(e,t)});return""}function touchFile(e,t){var i=tryStatFile(t);if(i&&i.isDirectory()){return}if(!i&&e.no_create){return}a.closeSync(a.openSync(t,"a"));var r=new Date;var s=e.date||r;var o=e.date||r;if(e.reference){var u=tryStatFile(e.reference);if(!u){n.error("failed to get attributess of "+e.reference)}s=u.mtime;o=u.atime}else if(e.date){s=e.date;o=e.date}if(e.atime_only&&e.mtime_only){}else if(e.atime_only){s=i.mtime}else if(e.mtime_only){o=i.atime}a.utimesSync(t,o,s)}e.exports=_touch;function tryStatFile(e){try{return n.statFollowLinks(e)}catch(e){return null}}},,function(e,t,i){const n=i(456);const a=i(208);e.exports=((e,t)=>{["A128GCMKW","A192GCMKW","A256GCMKW"].forEach(i=>{const r=i.substr(0,7);const s=parseInt(i.substr(1,3),10);const o=e.encrypt.get(r);const u=e.decrypt.get(r);if(o&&u){e.keyManagementEncrypt.set(i,(e,t)=>{const r=n(i);const{ciphertext:s,tag:u}=o(e,t,{iv:r});return{wrapped:s,header:{tag:a.encodeBuffer(u),iv:a.encodeBuffer(r)}}});e.keyManagementDecrypt.set(i,u);t.oct.wrapKey[i]=t.oct.unwrapKey[i]=(e=>(e.use==="enc"||e.use===undefined)&&e.length===s)}})})},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=i(422);n.__exportStar(i(587),t);n.__exportStar(i(920),t);n.__exportStar(i(290),t);n.__exportStar(i(125),t);n.__exportStar(i(376),t);n.__exportStar(i(525),t);n.__exportStar(i(19),t);n.__exportStar(i(971),t);n.__exportStar(i(636),t);n.__exportStar(i(695),t)},function(e,t,i){"use strict";const n=i(614);const{createHash:a}=i(373);const{createServer:r,STATUS_CODES:s}=i(363);const o=i(850);const u=i(925);const{format:l,parse:c}=i(271);const{GUID:d,kWebSocket:p}=i(60);const f=/^[+\/0-9A-Za-z]{22}==$/;class WebSocketServer extends n{constructor(e,t){super();e={maxPayload:100*1024*1024,perMessageDeflate:false,handleProtocols:null,clientTracking:true,verifyClient:null,noServer:false,backlog:null,server:null,host:null,path:null,port:null,...e};if(e.port==null&&!e.server&&!e.noServer){throw new TypeError('One of the "port", "server", or "noServer" options must be specified')}if(e.port!=null){this._server=r((e,t)=>{const i=s[426];t.writeHead(426,{"Content-Length":i.length,"Content-Type":"text/plain"});t.end(i)});this._server.listen(e.port,e.host,e.backlog,t)}else if(e.server){this._server=e.server}if(this._server){this._removeListeners=addListeners(this._server,{listening:this.emit.bind(this,"listening"),error:this.emit.bind(this,"error"),upgrade:(e,t,i)=>{this.handleUpgrade(e,t,i,t=>{this.emit("connection",t,e)})}})}if(e.perMessageDeflate===true)e.perMessageDeflate={};if(e.clientTracking)this.clients=new Set;this.options=e}address(){if(this.options.noServer){throw new Error('The server is operating in "noServer" mode')}if(!this._server)return null;return this._server.address()}close(e){if(e)this.once("close",e);if(this.clients){for(const e of this.clients)e.terminate()}const t=this._server;if(t){this._removeListeners();this._removeListeners=this._server=null;if(this.options.port!=null){t.close(()=>this.emit("close"));return}}process.nextTick(emitClose,this)}shouldHandle(e){if(this.options.path){const t=e.url.indexOf("?");const i=t!==-1?e.url.slice(0,t):e.url;if(i!==this.options.path)return false}return true}handleUpgrade(e,t,i,n){t.on("error",socketOnError);const a=e.headers["sec-websocket-key"]!==undefined?e.headers["sec-websocket-key"].trim():false;const r=+e.headers["sec-websocket-version"];const s={};if(e.method!=="GET"||e.headers.upgrade.toLowerCase()!=="websocket"||!a||!f.test(a)||r!==8&&r!==13||!this.shouldHandle(e)){return abortHandshake(t,400)}if(this.options.perMessageDeflate){const i=new o(this.options.perMessageDeflate,true,this.options.maxPayload);try{const n=c(e.headers["sec-websocket-extensions"]);if(n[o.extensionName]){i.accept(n[o.extensionName]);s[o.extensionName]=i}}catch(e){return abortHandshake(t,400)}}if(this.options.verifyClient){const o={origin:e.headers[`${r===8?"sec-websocket-origin":"origin"}`],secure:!!(e.connection.authorized||e.connection.encrypted),req:e};if(this.options.verifyClient.length===2){this.options.verifyClient(o,(r,o,u,l)=>{if(!r){return abortHandshake(t,o||401,u,l)}this.completeUpgrade(a,s,e,t,i,n)});return}if(!this.options.verifyClient(o))return abortHandshake(t,401)}this.completeUpgrade(a,s,e,t,i,n)}completeUpgrade(e,t,i,n,r,s){if(!n.readable||!n.writable)return n.destroy();if(n[p]){throw new Error("server.handleUpgrade() was called more than once with the same "+"socket, possibly due to a misconfiguration")}const c=a("sha1").update(e+d).digest("base64");const f=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${c}`];const h=new u(null);let m=i.headers["sec-websocket-protocol"];if(m){m=m.trim().split(/ *, */);if(this.options.handleProtocols){m=this.options.handleProtocols(m,i)}else{m=m[0]}if(m){f.push(`Sec-WebSocket-Protocol: ${m}`);h.protocol=m}}if(t[o.extensionName]){const e=t[o.extensionName].params;const i=l({[o.extensionName]:[e]});f.push(`Sec-WebSocket-Extensions: ${i}`);h._extensions=t}this.emit("headers",f,i);n.write(f.concat("\r\n").join("\r\n"));n.removeListener("error",socketOnError);h.setSocket(n,r,this.options.maxPayload);if(this.clients){this.clients.add(h);h.on("close",()=>this.clients.delete(h))}s(h)}}e.exports=WebSocketServer;function addListeners(e,t){for(const i of Object.keys(t))e.on(i,t[i]);return function removeListeners(){for(const i of Object.keys(t)){e.removeListener(i,t[i])}}}function emitClose(e){e.emit("close")}function socketOnError(){this.destroy()}function abortHandshake(e,t,i,n){if(e.writable){i=i||s[t];n={Connection:"close","Content-Type":"text/html","Content-Length":Buffer.byteLength(i),...n};e.write(`HTTP/1.1 ${t} ${s[t]}\r\n`+Object.keys(n).map(e=>`${e}: ${n[e]}`).join("\r\n")+"\r\n\r\n"+i)}e.removeListener("error",socketOnError);e.destroy()}},function(e,t,i){const{deflateRawSync:n}=i(903);const{KEYOBJECT:a}=i(771);const r=i(456);const s=i(208);const o=i(322);const u=i(274);const{createSecretKey:l}=i(40);const c=i(545);const d=i(592);const{JWEInvalid:p}=i(466);const{check:f,keyManagementEncrypt:h,encrypt:m}=i(179);const b=i(975);const g=i(201);const y=i(17);const S=Symbol("PROCESS_RECIPIENT");class Encrypt{constructor(e,t,i,n){if(!Buffer.isBuffer(e)&&typeof e!=="string"){throw new TypeError("cleartext argument must be a Buffer or a string")}e=Buffer.from(e);if(n!==undefined&&!Buffer.isBuffer(n)&&typeof n!=="string"){throw new TypeError("aad argument must be a Buffer or a string when provided")}n=n?Buffer.from(n):undefined;if(t!==undefined&&!u(t)){throw new TypeError("protectedHeader argument must be a plain object when provided")}if(i!==undefined&&!u(i)){throw new TypeError("unprotectedHeader argument must be a plain object when provided")}this._recipients=[];this._cleartext=e;this._aad=n;this._unprotected=i?c(i):undefined;this._protected=t?c(t):undefined}recipient(e,t){e=o(e);if(t!==undefined&&!u(t)){throw new TypeError("header argument must be a plain object when provided")}this._recipients.push({key:e,header:t?c(t):undefined});return this}[S](e){const t=this._unprotected;const i=this._protected;const{length:n}=this._recipients;const r={...i,...t,...e.header};const{key:o}=e;const u=r.enc;let c=r.alg;if(o.use==="sig"){throw new TypeError('a key with "use":"sig" is not usable for encryption')}if(c==="dir"){f(o,"encrypt",u)}else if(c){f(o,"keyManagementEncrypt",c)}else{c=o.alg||[...o.algorithms("wrapKey")][0]||[...o.algorithms("deriveKey")][0];if(c==="ECDH-ES"&&n!==1){c=[...o.algorithms("deriveKey")][1]}if(!c){throw new p('could not resolve a usable "alg" for a recipient')}if(n===1){if(i){i.alg=c}else{this._protected={alg:c}}}else{if(e.header){e.header.alg=c}else{e.header={alg:c}}}}let m;let b;if(o.kty==="oct"&&c==="dir"){this._cek=d(o[a],{use:"enc",alg:u})}else{f(this._cek,"encrypt",u);({wrapped:m,header:b}=h(c,o,this._cek[a].export(),{enc:u,alg:c}));if(c==="ECDH-ES"){this._cek=d(l(m),{use:"enc",alg:u})}}if(c==="dir"||c==="ECDH-ES"){e.encrypted_key=""}else{e.encrypted_key=s.encodeBuffer(m)}if(b){e.generatedHeader=b}}encrypt(e){const t=b[e];if(!t){throw new TypeError('serialization must be one of "compact", "flattened", "general"')}if(!this._recipients.length){throw new p("missing recipients")}t.validate(this._protected,this._unprotected,this._aad,this._recipients);let i=y(this._protected,this._unprotected,this._recipients,false,this._protected?this._protected.crit:undefined);if(!i){i="A128CBC-HS256";if(this._protected){this._protected.enc=i}else{this._protected={enc:i}}}const a={};this._cek=g(i);for(const e of this._recipients){this[S](e)}const o=r(i);a.iv=s.encodeBuffer(o);if(this._recipients.length===1&&this._recipients[0].generatedHeader){const[{generatedHeader:e}]=this._recipients;delete this._recipients[0].generatedHeader;this._protected={...this._protected,...e}}if(this._protected){a.protected=s.JSON.encode(this._protected)}a.unprotected=this._unprotected;let u;if(this._aad){a.aad=s.encode(this._aad);u=Buffer.concat([Buffer.from(a.protected||""),Buffer.from("."),Buffer.from(a.aad)])}else{u=Buffer.from(a.protected||"")}let l=this._cleartext;if(this._protected&&"zip"in this._protected){l=n(l)}const{ciphertext:c,tag:d}=m(i,this._cek,l,{iv:o,aad:u});a.tag=s.encodeBuffer(d);a.ciphertext=s.encodeBuffer(c);return t(a,this._recipients)}}e.exports=Encrypt},,function(e){e.exports={"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana",charset:"UTF-8",compressible:true},"application/3gpp-ims+xml":{source:"iana",compressible:true},"application/a2l":{source:"iana"},"application/activemessage":{source:"iana"},"application/activity+json":{source:"iana",compressible:true},"application/alto-costmap+json":{source:"iana",compressible:true},"application/alto-costmapfilter+json":{source:"iana",compressible:true},"application/alto-directory+json":{source:"iana",compressible:true},"application/alto-endpointcost+json":{source:"iana",compressible:true},"application/alto-endpointcostparams+json":{source:"iana",compressible:true},"application/alto-endpointprop+json":{source:"iana",compressible:true},"application/alto-endpointpropparams+json":{source:"iana",compressible:true},"application/alto-error+json":{source:"iana",compressible:true},"application/alto-networkmap+json":{source:"iana",compressible:true},"application/alto-networkmapfilter+json":{source:"iana",compressible:true},"application/alto-updatestreamcontrol+json":{source:"iana",compressible:true},"application/alto-updatestreamparams+json":{source:"iana",compressible:true},"application/aml":{source:"iana"},"application/andrew-inset":{source:"iana",extensions:["ez"]},"application/applefile":{source:"iana"},"application/applixware":{source:"apache",extensions:["aw"]},"application/atf":{source:"iana"},"application/atfx":{source:"iana"},"application/atom+xml":{source:"iana",compressible:true,extensions:["atom"]},"application/atomcat+xml":{source:"iana",compressible:true,extensions:["atomcat"]},"application/atomdeleted+xml":{source:"iana",compressible:true,extensions:["atomdeleted"]},"application/atomicmail":{source:"iana"},"application/atomsvc+xml":{source:"iana",compressible:true,extensions:["atomsvc"]},"application/atsc-dwd+xml":{source:"iana",compressible:true,extensions:["dwd"]},"application/atsc-dynamic-event-message":{source:"iana"},"application/atsc-held+xml":{source:"iana",compressible:true,extensions:["held"]},"application/atsc-rdt+json":{source:"iana",compressible:true},"application/atsc-rsat+xml":{source:"iana",compressible:true,extensions:["rsat"]},"application/atxml":{source:"iana"},"application/auth-policy+xml":{source:"iana",compressible:true},"application/bacnet-xdd+zip":{source:"iana",compressible:false},"application/batch-smtp":{source:"iana"},"application/bdoc":{compressible:false,extensions:["bdoc"]},"application/beep+xml":{source:"iana",charset:"UTF-8",compressible:true},"application/calendar+json":{source:"iana",compressible:true},"application/calendar+xml":{source:"iana",compressible:true,extensions:["xcs"]},"application/call-completion":{source:"iana"},"application/cals-1840":{source:"iana"},"application/cap+xml":{source:"iana",charset:"UTF-8",compressible:true},"application/cbor":{source:"iana"},"application/cbor-seq":{source:"iana"},"application/cccex":{source:"iana"},"application/ccmp+xml":{source:"iana",compressible:true},"application/ccxml+xml":{source:"iana",compressible:true,extensions:["ccxml"]},"application/cdfx+xml":{source:"iana",compressible:true,extensions:["cdfx"]},"application/cdmi-capability":{source:"iana",extensions:["cdmia"]},"application/cdmi-container":{source:"iana",extensions:["cdmic"]},"application/cdmi-domain":{source:"iana",extensions:["cdmid"]},"application/cdmi-object":{source:"iana",extensions:["cdmio"]},"application/cdmi-queue":{source:"iana",extensions:["cdmiq"]},"application/cdni":{source:"iana"},"application/cea":{source:"iana"},"application/cea-2018+xml":{source:"iana",compressible:true},"application/cellml+xml":{source:"iana",compressible:true},"application/cfw":{source:"iana"},"application/clue+xml":{source:"iana",compressible:true},"application/clue_info+xml":{source:"iana",compressible:true},"application/cms":{source:"iana"},"application/cnrp+xml":{source:"iana",compressible:true},"application/coap-group+json":{source:"iana",compressible:true},"application/coap-payload":{source:"iana"},"application/commonground":{source:"iana"},"application/conference-info+xml":{source:"iana",compressible:true},"application/cose":{source:"iana"},"application/cose-key":{source:"iana"},"application/cose-key-set":{source:"iana"},"application/cpl+xml":{source:"iana",compressible:true},"application/csrattrs":{source:"iana"},"application/csta+xml":{source:"iana",compressible:true},"application/cstadata+xml":{source:"iana",compressible:true},"application/csvm+json":{source:"iana",compressible:true},"application/cu-seeme":{source:"apache",extensions:["cu"]},"application/cwt":{source:"iana"},"application/cybercash":{source:"iana"},"application/dart":{compressible:true},"application/dash+xml":{source:"iana",compressible:true,extensions:["mpd"]},"application/dashdelta":{source:"iana"},"application/davmount+xml":{source:"iana",compressible:true,extensions:["davmount"]},"application/dca-rft":{source:"iana"},"application/dcd":{source:"iana"},"application/dec-dx":{source:"iana"},"application/dialog-info+xml":{source:"iana",compressible:true},"application/dicom":{source:"iana"},"application/dicom+json":{source:"iana",compressible:true},"application/dicom+xml":{source:"iana",compressible:true},"application/dii":{source:"iana"},"application/dit":{source:"iana"},"application/dns":{source:"iana"},"application/dns+json":{source:"iana",compressible:true},"application/dns-message":{source:"iana"},"application/docbook+xml":{source:"apache",compressible:true,extensions:["dbk"]},"application/dots+cbor":{source:"iana"},"application/dskpp+xml":{source:"iana",compressible:true},"application/dssc+der":{source:"iana",extensions:["dssc"]},"application/dssc+xml":{source:"iana",compressible:true,extensions:["xdssc"]},"application/dvcs":{source:"iana"},"application/ecmascript":{source:"iana",compressible:true,extensions:["ecma","es"]},"application/edi-consent":{source:"iana"},"application/edi-x12":{source:"iana",compressible:false},"application/edifact":{source:"iana",compressible:false},"application/efi":{source:"iana"},"application/emergencycalldata.comment+xml":{source:"iana",compressible:true},"application/emergencycalldata.control+xml":{source:"iana",compressible:true},"application/emergencycalldata.deviceinfo+xml":{source:"iana",compressible:true},"application/emergencycalldata.ecall.msd":{source:"iana"},"application/emergencycalldata.providerinfo+xml":{source:"iana",compressible:true},"application/emergencycalldata.serviceinfo+xml":{source:"iana",compressible:true},"application/emergencycalldata.subscriberinfo+xml":{source:"iana",compressible:true},"application/emergencycalldata.veds+xml":{source:"iana",compressible:true},"application/emma+xml":{source:"iana",compressible:true,extensions:["emma"]},"application/emotionml+xml":{source:"iana",compressible:true,extensions:["emotionml"]},"application/encaprtp":{source:"iana"},"application/epp+xml":{source:"iana",compressible:true},"application/epub+zip":{source:"iana",compressible:false,extensions:["epub"]},"application/eshop":{source:"iana"},"application/exi":{source:"iana",extensions:["exi"]},"application/expect-ct-report+json":{source:"iana",compressible:true},"application/fastinfoset":{source:"iana"},"application/fastsoap":{source:"iana"},"application/fdt+xml":{source:"iana",compressible:true,extensions:["fdt"]},"application/fhir+json":{source:"iana",charset:"UTF-8",compressible:true},"application/fhir+xml":{source:"iana",charset:"UTF-8",compressible:true},"application/fido.trusted-apps+json":{compressible:true},"application/fits":{source:"iana"},"application/flexfec":{source:"iana"},"application/font-sfnt":{source:"iana"},"application/font-tdpfr":{source:"iana",extensions:["pfr"]},"application/font-woff":{source:"iana",compressible:false},"application/framework-attributes+xml":{source:"iana",compressible:true},"application/geo+json":{source:"iana",compressible:true,extensions:["geojson"]},"application/geo+json-seq":{source:"iana"},"application/geopackage+sqlite3":{source:"iana"},"application/geoxacml+xml":{source:"iana",compressible:true},"application/gltf-buffer":{source:"iana"},"application/gml+xml":{source:"iana",compressible:true,extensions:["gml"]},"application/gpx+xml":{source:"apache",compressible:true,extensions:["gpx"]},"application/gxf":{source:"apache",extensions:["gxf"]},"application/gzip":{source:"iana",compressible:false,extensions:["gz"]},"application/h224":{source:"iana"},"application/held+xml":{source:"iana",compressible:true},"application/hjson":{extensions:["hjson"]},"application/http":{source:"iana"},"application/hyperstudio":{source:"iana",extensions:["stk"]},"application/ibe-key-request+xml":{source:"iana",compressible:true},"application/ibe-pkg-reply+xml":{source:"iana",compressible:true},"application/ibe-pp-data":{source:"iana"},"application/iges":{source:"iana"},"application/im-iscomposing+xml":{source:"iana",charset:"UTF-8",compressible:true},"application/index":{source:"iana"},"application/index.cmd":{source:"iana"},"application/index.obj":{source:"iana"},"application/index.response":{source:"iana"},"application/index.vnd":{source:"iana"},"application/inkml+xml":{source:"iana",compressible:true,extensions:["ink","inkml"]},"application/iotp":{source:"iana"},"application/ipfix":{source:"iana",extensions:["ipfix"]},"application/ipp":{source:"iana"},"application/isup":{source:"iana"},"application/its+xml":{source:"iana",compressible:true,extensions:["its"]},"application/java-archive":{source:"apache",compressible:false,extensions:["jar","war","ear"]},"application/java-serialized-object":{source:"apache",compressible:false,extensions:["ser"]},"application/java-vm":{source:"apache",compressible:false,extensions:["class"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:true,extensions:["js","mjs"]},"application/jf2feed+json":{source:"iana",compressible:true},"application/jose":{source:"iana"},"application/jose+json":{source:"iana",compressible:true},"application/jrd+json":{source:"iana",compressible:true},"application/json":{source:"iana",charset:"UTF-8",compressible:true,extensions:["json","map"]},"application/json-patch+json":{source:"iana",compressible:true},"application/json-seq":{source:"iana"},"application/json5":{extensions:["json5"]},"application/jsonml+json":{source:"apache",compressible:true,extensions:["jsonml"]},"application/jwk+json":{source:"iana",compressible:true},"application/jwk-set+json":{source:"iana",compressible:true},"application/jwt":{source:"iana"},"application/kpml-request+xml":{source:"iana",compressible:true},"application/kpml-response+xml":{source:"iana",compressible:true},"application/ld+json":{source:"iana",compressible:true,extensions:["jsonld"]},"application/lgr+xml":{source:"iana",compressible:true,extensions:["lgr"]},"application/link-format":{source:"iana"},"application/load-control+xml":{source:"iana",compressible:true},"application/lost+xml":{source:"iana",compressible:true,extensions:["lostxml"]},"application/lostsync+xml":{source:"iana",compressible:true},"application/lpf+zip":{source:"iana",compressible:false},"application/lxf":{source:"iana"},"application/mac-binhex40":{source:"iana",extensions:["hqx"]},"application/mac-compactpro":{source:"apache",extensions:["cpt"]},"application/macwriteii":{source:"iana"},"application/mads+xml":{source:"iana",compressible:true,extensions:["mads"]},"application/manifest+json":{charset:"UTF-8",compressible:true,extensions:["webmanifest"]},"application/marc":{source:"iana",extensions:["mrc"]},"application/marcxml+xml":{source:"iana",compressible:true,extensions:["mrcx"]},"application/mathematica":{source:"iana",extensions:["ma","nb","mb"]},"application/mathml+xml":{source:"iana",compressible:true,extensions:["mathml"]},"application/mathml-content+xml":{source:"iana",compressible:true},"application/mathml-presentation+xml":{source:"iana",compressible:true},"application/mbms-associated-procedure-description+xml":{source:"iana",compressible:true},"application/mbms-deregister+xml":{source:"iana",compressible:true},"application/mbms-envelope+xml":{source:"iana",compressible:true},"application/mbms-msk+xml":{source:"iana",compressible:true},"application/mbms-msk-response+xml":{source:"iana",compressible:true},"application/mbms-protection-description+xml":{source:"iana",compressible:true},"application/mbms-reception-report+xml":{source:"iana",compressible:true},"application/mbms-register+xml":{source:"iana",compressible:true},"application/mbms-register-response+xml":{source:"iana",compressible:true},"application/mbms-schedule+xml":{source:"iana",compressible:true},"application/mbms-user-service-description+xml":{source:"iana",compressible:true},"application/mbox":{source:"iana",extensions:["mbox"]},"application/media-policy-dataset+xml":{source:"iana",compressible:true},"application/media_control+xml":{source:"iana",compressible:true},"application/mediaservercontrol+xml":{source:"iana",compressible:true,extensions:["mscml"]},"application/merge-patch+json":{source:"iana",compressible:true},"application/metalink+xml":{source:"apache",compressible:true,extensions:["metalink"]},"application/metalink4+xml":{source:"iana",compressible:true,extensions:["meta4"]},"application/mets+xml":{source:"iana",compressible:true,extensions:["mets"]},"application/mf4":{source:"iana"},"application/mikey":{source:"iana"},"application/mipc":{source:"iana"},"application/mmt-aei+xml":{source:"iana",compressible:true,extensions:["maei"]},"application/mmt-usd+xml":{source:"iana",compressible:true,extensions:["musd"]},"application/mods+xml":{source:"iana",compressible:true,extensions:["mods"]},"application/moss-keys":{source:"iana"},"application/moss-signature":{source:"iana"},"application/mosskey-data":{source:"iana"},"application/mosskey-request":{source:"iana"},"application/mp21":{source:"iana",extensions:["m21","mp21"]},"application/mp4":{source:"iana",extensions:["mp4s","m4p"]},"application/mpeg4-generic":{source:"iana"},"application/mpeg4-iod":{source:"iana"},"application/mpeg4-iod-xmt":{source:"iana"},"application/mrb-consumer+xml":{source:"iana",compressible:true,extensions:["xdf"]},"application/mrb-publish+xml":{source:"iana",compressible:true,extensions:["xdf"]},"application/msc-ivr+xml":{source:"iana",charset:"UTF-8",compressible:true},"application/msc-mixer+xml":{source:"iana",charset:"UTF-8",compressible:true},"application/msword":{source:"iana",compressible:false,extensions:["doc","dot"]},"application/mud+json":{source:"iana",compressible:true},"application/multipart-core":{source:"iana"},"application/mxf":{source:"iana",extensions:["mxf"]},"application/n-quads":{source:"iana",extensions:["nq"]},"application/n-triples":{source:"iana",extensions:["nt"]},"application/nasdata":{source:"iana"},"application/news-checkgroups":{source:"iana",charset:"US-ASCII"},"application/news-groupinfo":{source:"iana",charset:"US-ASCII"},"application/news-transmission":{source:"iana"},"application/nlsml+xml":{source:"iana",compressible:true},"application/node":{source:"iana",extensions:["cjs"]},"application/nss":{source:"iana"},"application/ocsp-request":{source:"iana"},"application/ocsp-response":{source:"iana"},"application/octet-stream":{source:"iana",compressible:false,extensions:["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{source:"iana",extensions:["oda"]},"application/odm+xml":{source:"iana",compressible:true},"application/odx":{source:"iana"},"application/oebps-package+xml":{source:"iana",compressible:true,extensions:["opf"]},"application/ogg":{source:"iana",compressible:false,extensions:["ogx"]},"application/omdoc+xml":{source:"apache",compressible:true,extensions:["omdoc"]},"application/onenote":{source:"apache",extensions:["onetoc","onetoc2","onetmp","onepkg"]},"application/oscore":{source:"iana"},"application/oxps":{source:"iana",extensions:["oxps"]},"application/p2p-overlay+xml":{source:"iana",compressible:true,extensions:["relo"]},"application/parityfec":{source:"iana"},"application/passport":{source:"iana"},"application/patch-ops-error+xml":{source:"iana",compressible:true,extensions:["xer"]},"application/pdf":{source:"iana",compressible:false,extensions:["pdf"]},"application/pdx":{source:"iana"},"application/pem-certificate-chain":{source:"iana"},"application/pgp-encrypted":{source:"iana",compressible:false,extensions:["pgp"]},"application/pgp-keys":{source:"iana"},"application/pgp-signature":{source:"iana",extensions:["asc","sig"]},"application/pics-rules":{source:"apache",extensions:["prf"]},"application/pidf+xml":{source:"iana",charset:"UTF-8",compressible:true},"application/pidf-diff+xml":{source:"iana",charset:"UTF-8",compressible:true},"application/pkcs10":{source:"iana",extensions:["p10"]},"application/pkcs12":{source:"iana"},"application/pkcs7-mime":{source:"iana",extensions:["p7m","p7c"]},"application/pkcs7-signature":{source:"iana",extensions:["p7s"]},"application/pkcs8":{source:"iana",extensions:["p8"]},"application/pkcs8-encrypted":{source:"iana"},"application/pkix-attr-cert":{source:"iana",extensions:["ac"]},"application/pkix-cert":{source:"iana",extensions:["cer"]},"application/pkix-crl":{source:"iana",extensions:["crl"]},"application/pkix-pkipath":{source:"iana",extensions:["pkipath"]},"application/pkixcmp":{source:"iana",extensions:["pki"]},"application/pls+xml":{source:"iana",compressible:true,extensions:["pls"]},"application/poc-settings+xml":{source:"iana",charset:"UTF-8",compressible:true},"application/postscript":{source:"iana",compressible:true,extensions:["ai","eps","ps"]},"application/ppsp-tracker+json":{source:"iana",compressible:true},"application/problem+json":{source:"iana",compressible:true},"application/problem+xml":{source:"iana",compressible:true},"application/provenance+xml":{source:"iana",compressible:true,extensions:["provx"]},"application/prs.alvestrand.titrax-sheet":{source:"iana"},"application/prs.cww":{source:"iana",extensions:["cww"]},"application/prs.hpub+zip":{source:"iana",compressible:false},"application/prs.nprend":{source:"iana"},"application/prs.plucker":{source:"iana"},"application/prs.rdf-xml-crypt":{source:"iana"},"application/prs.xsf+xml":{source:"iana",compressible:true},"application/pskc+xml":{source:"iana",compressible:true,extensions:["pskcxml"]},"application/pvd+json":{source:"iana",compressible:true},"application/qsig":{source:"iana"},"application/raml+yaml":{compressible:true,extensions:["raml"]},"application/raptorfec":{source:"iana"},"application/rdap+json":{source:"iana",compressible:true},"application/rdf+xml":{source:"iana",compressible:true,extensions:["rdf","owl"]},"application/reginfo+xml":{source:"iana",compressible:true,extensions:["rif"]},"application/relax-ng-compact-syntax":{source:"iana",extensions:["rnc"]},"application/remote-printing":{source:"iana"},"application/reputon+json":{source:"iana",compressible:true},"application/resource-lists+xml":{source:"iana",compressible:true,extensions:["rl"]},"application/resource-lists-diff+xml":{source:"iana",compressible:true,extensions:["rld"]},"application/rfc+xml":{source:"iana",compressible:true},"application/riscos":{source:"iana"},"application/rlmi+xml":{source:"iana",compressible:true},"application/rls-services+xml":{source:"iana",compressible:true,extensions:["rs"]},"application/route-apd+xml":{source:"iana",compressible:true,extensions:["rapd"]},"application/route-s-tsid+xml":{source:"iana",compressible:true,extensions:["sls"]},"application/route-usd+xml":{source:"iana",compressible:true,extensions:["rusd"]},"application/rpki-ghostbusters":{source:"iana",extensions:["gbr"]},"application/rpki-manifest":{source:"iana",extensions:["mft"]},"application/rpki-publication":{source:"iana"},"application/rpki-roa":{source:"iana",extensions:["roa"]},"application/rpki-updown":{source:"iana"},"application/rsd+xml":{source:"apache",compressible:true,extensions:["rsd"]},"application/rss+xml":{source:"apache",compressible:true,extensions:["rss"]},"application/rtf":{source:"iana",compressible:true,extensions:["rtf"]},"application/rtploopback":{source:"iana"},"application/rtx":{source:"iana"},"application/samlassertion+xml":{source:"iana",compressible:true},"application/samlmetadata+xml":{source:"iana",compressible:true},"application/sbe":{source:"iana"},"application/sbml+xml":{source:"iana",compressible:true,extensions:["sbml"]},"application/scaip+xml":{source:"iana",compressible:true},"application/scim+json":{source:"iana",compressible:true},"application/scvp-cv-request":{source:"iana",extensions:["scq"]},"application/scvp-cv-response":{source:"iana",extensions:["scs"]},"application/scvp-vp-request":{source:"iana",extensions:["spq"]},"application/scvp-vp-response":{source:"iana",extensions:["spp"]},"application/sdp":{source:"iana",extensions:["sdp"]},"application/secevent+jwt":{source:"iana"},"application/senml+cbor":{source:"iana"},"application/senml+json":{source:"iana",compressible:true},"application/senml+xml":{source:"iana",compressible:true,extensions:["senmlx"]},"application/senml-etch+cbor":{source:"iana"},"application/senml-etch+json":{source:"iana",compressible:true},"application/senml-exi":{source:"iana"},"application/sensml+cbor":{source:"iana"},"application/sensml+json":{source:"iana",compressible:true},"application/sensml+xml":{source:"iana",compressible:true,extensions:["sensmlx"]},"application/sensml-exi":{source:"iana"},"application/sep+xml":{source:"iana",compressible:true},"application/sep-exi":{source:"iana"},"application/session-info":{source:"iana"},"application/set-payment":{source:"iana"},"application/set-payment-initiation":{source:"iana",extensions:["setpay"]},"application/set-registration":{source:"iana"},"application/set-registration-initiation":{source:"iana",extensions:["setreg"]},"application/sgml":{source:"iana"},"application/sgml-open-catalog":{source:"iana"},"application/shf+xml":{source:"iana",compressible:true,extensions:["shf"]},"application/sieve":{source:"iana",extensions:["siv","sieve"]},"application/simple-filter+xml":{source:"iana",compressible:true},"application/simple-message-summary":{source:"iana"},"application/simplesymbolcontainer":{source:"iana"},"application/sipc":{source:"iana"},"application/slate":{source:"iana"},"application/smil":{source:"iana"},"application/smil+xml":{source:"iana",compressible:true,extensions:["smi","smil"]},"application/smpte336m":{source:"iana"},"application/soap+fastinfoset":{source:"iana"},"application/soap+xml":{source:"iana",compressible:true},"application/sparql-query":{source:"iana",extensions:["rq"]},"application/sparql-results+xml":{source:"iana",compressible:true,extensions:["srx"]},"application/spirits-event+xml":{source:"iana",compressible:true},"application/sql":{source:"iana"},"application/srgs":{source:"iana",extensions:["gram"]},"application/srgs+xml":{source:"iana",compressible:true,extensions:["grxml"]},"application/sru+xml":{source:"iana",compressible:true,extensions:["sru"]},"application/ssdl+xml":{source:"apache",compressible:true,extensions:["ssdl"]},"application/ssml+xml":{source:"iana",compressible:true,extensions:["ssml"]},"application/stix+json":{source:"iana",compressible:true},"application/swid+xml":{source:"iana",compressible:true,extensions:["swidtag"]},"application/tamp-apex-update":{source:"iana"},"application/tamp-apex-update-confirm":{source:"iana"},"application/tamp-community-update":{source:"iana"},"application/tamp-community-update-confirm":{source:"iana"},"application/tamp-error":{source:"iana"},"application/tamp-sequence-adjust":{source:"iana"},"application/tamp-sequence-adjust-confirm":{source:"iana"},"application/tamp-status-query":{source:"iana"},"application/tamp-status-response":{source:"iana"},"application/tamp-update":{source:"iana"},"application/tamp-update-confirm":{source:"iana"},"application/tar":{compressible:true},"application/taxii+json":{source:"iana",compressible:true},"application/td+json":{source:"iana",compressible:true},"application/tei+xml":{source:"iana",compressible:true,extensions:["tei","teicorpus"]},"application/tetra_isi":{source:"iana"},"application/thraud+xml":{source:"iana",compressible:true,extensions:["tfi"]},"application/timestamp-query":{source:"iana"},"application/timestamp-reply":{source:"iana"},"application/timestamped-data":{source:"iana",extensions:["tsd"]},"application/tlsrpt+gzip":{source:"iana"},"application/tlsrpt+json":{source:"iana",compressible:true},"application/tnauthlist":{source:"iana"},"application/toml":{compressible:true,extensions:["toml"]},"application/trickle-ice-sdpfrag":{source:"iana"},"application/trig":{source:"iana"},"application/ttml+xml":{source:"iana",compressible:true,extensions:["ttml"]},"application/tve-trigger":{source:"iana"},"application/tzif":{source:"iana"},"application/tzif-leap":{source:"iana"},"application/ulpfec":{source:"iana"},"application/urc-grpsheet+xml":{source:"iana",compressible:true},"application/urc-ressheet+xml":{source:"iana",compressible:true,extensions:["rsheet"]},"application/urc-targetdesc+xml":{source:"iana",compressible:true},"application/urc-uisocketdesc+xml":{source:"iana",compressible:true},"application/vcard+json":{source:"iana",compressible:true},"application/vcard+xml":{source:"iana",compressible:true},"application/vemmi":{source:"iana"},"application/vividence.scriptfile":{source:"apache"},"application/vnd.1000minds.decision-model+xml":{source:"iana",compressible:true,extensions:["1km"]},"application/vnd.3gpp-prose+xml":{source:"iana",compressible:true},"application/vnd.3gpp-prose-pc3ch+xml":{source:"iana",compressible:true},"application/vnd.3gpp-v2x-local-service-information":{source:"iana"},"application/vnd.3gpp.access-transfer-events+xml":{source:"iana",compressible:true},"application/vnd.3gpp.bsf+xml":{source:"iana",compressible:true},"application/vnd.3gpp.gmop+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mc-signalling-ear":{source:"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcdata-info+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcdata-payload":{source:"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcdata-signalling":{source:"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcdata-user-profile+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcptt-floor-request+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcptt-info+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcptt-location-info+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcptt-service-config+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcptt-signed+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcptt-ue-config+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcptt-user-profile+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcvideo-info+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcvideo-location-info+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcvideo-service-config+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mid-call+xml":{source:"iana",compressible:true},"application/vnd.3gpp.pic-bw-large":{source:"iana",extensions:["plb"]},"application/vnd.3gpp.pic-bw-small":{source:"iana",extensions:["psb"]},"application/vnd.3gpp.pic-bw-var":{source:"iana",extensions:["pvb"]},"application/vnd.3gpp.sms":{source:"iana"},"application/vnd.3gpp.sms+xml":{source:"iana",compressible:true},"application/vnd.3gpp.srvcc-ext+xml":{source:"iana",compressible:true},"application/vnd.3gpp.srvcc-info+xml":{source:"iana",compressible:true},"application/vnd.3gpp.state-and-event-info+xml":{source:"iana",compressible:true},"application/vnd.3gpp.ussd+xml":{source:"iana",compressible:true},"application/vnd.3gpp2.bcmcsinfo+xml":{source:"iana",compressible:true},"application/vnd.3gpp2.sms":{source:"iana"},"application/vnd.3gpp2.tcap":{source:"iana",extensions:["tcap"]},"application/vnd.3lightssoftware.imagescal":{source:"iana"},"application/vnd.3m.post-it-notes":{source:"iana",extensions:["pwn"]},"application/vnd.accpac.simply.aso":{source:"iana",extensions:["aso"]},"application/vnd.accpac.simply.imp":{source:"iana",extensions:["imp"]},"application/vnd.acucobol":{source:"iana",extensions:["acu"]},"application/vnd.acucorp":{source:"iana",extensions:["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{source:"apache",compressible:false,extensions:["air"]},"application/vnd.adobe.flash.movie":{source:"iana"},"application/vnd.adobe.formscentral.fcdt":{source:"iana",extensions:["fcdt"]},"application/vnd.adobe.fxp":{source:"iana",extensions:["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{source:"iana"},"application/vnd.adobe.xdp+xml":{source:"iana",compressible:true,extensions:["xdp"]},"application/vnd.adobe.xfdf":{source:"iana",extensions:["xfdf"]},"application/vnd.aether.imp":{source:"iana"},"application/vnd.afpc.afplinedata":{source:"iana"},"application/vnd.afpc.afplinedata-pagedef":{source:"iana"},"application/vnd.afpc.foca-charset":{source:"iana"},"application/vnd.afpc.foca-codedfont":{source:"iana"},"application/vnd.afpc.foca-codepage":{source:"iana"},"application/vnd.afpc.modca":{source:"iana"},"application/vnd.afpc.modca-formdef":{source:"iana"},"application/vnd.afpc.modca-mediummap":{source:"iana"},"application/vnd.afpc.modca-objectcontainer":{source:"iana"},"application/vnd.afpc.modca-overlay":{source:"iana"},"application/vnd.afpc.modca-pagesegment":{source:"iana"},"application/vnd.ah-barcode":{source:"iana"},"application/vnd.ahead.space":{source:"iana",extensions:["ahead"]},"application/vnd.airzip.filesecure.azf":{source:"iana",extensions:["azf"]},"application/vnd.airzip.filesecure.azs":{source:"iana",extensions:["azs"]},"application/vnd.amadeus+json":{source:"iana",compressible:true},"application/vnd.amazon.ebook":{source:"apache",extensions:["azw"]},"application/vnd.amazon.mobi8-ebook":{source:"iana"},"application/vnd.americandynamics.acc":{source:"iana",extensions:["acc"]},"application/vnd.amiga.ami":{source:"iana",extensions:["ami"]},"application/vnd.amundsen.maze+xml":{source:"iana",compressible:true},"application/vnd.android.ota":{source:"iana"},"application/vnd.android.package-archive":{source:"apache",compressible:false,extensions:["apk"]},"application/vnd.anki":{source:"iana"},"application/vnd.anser-web-certificate-issue-initiation":{source:"iana",extensions:["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{source:"apache",extensions:["fti"]},"application/vnd.antix.game-component":{source:"iana",extensions:["atx"]},"application/vnd.apache.thrift.binary":{source:"iana"},"application/vnd.apache.thrift.compact":{source:"iana"},"application/vnd.apache.thrift.json":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:true},"application/vnd.aplextor.warrp+json":{source:"iana",compressible:true},"application/vnd.apothekende.reservation+json":{source:"iana",compressible:true},"application/vnd.apple.installer+xml":{source:"iana",compressible:true,extensions:["mpkg"]},"application/vnd.apple.keynote":{source:"iana",extensions:["keynote"]},"application/vnd.apple.mpegurl":{source:"iana",extensions:["m3u8"]},"application/vnd.apple.numbers":{source:"iana",extensions:["numbers"]},"application/vnd.apple.pages":{source:"iana",extensions:["pages"]},"application/vnd.apple.pkpass":{compressible:false,extensions:["pkpass"]},"application/vnd.arastra.swi":{source:"iana"},"application/vnd.aristanetworks.swi":{source:"iana",extensions:["swi"]},"application/vnd.artisan+json":{source:"iana",compressible:true},"application/vnd.artsquare":{source:"iana"},"application/vnd.astraea-software.iota":{source:"iana",extensions:["iota"]},"application/vnd.audiograph":{source:"iana",extensions:["aep"]},"application/vnd.autopackage":{source:"iana"},"application/vnd.avalon+json":{source:"iana",compressible:true},"application/vnd.avistar+xml":{source:"iana",compressible:true},"application/vnd.balsamiq.bmml+xml":{source:"iana",compressible:true,extensions:["bmml"]},"application/vnd.balsamiq.bmpr":{source:"iana"},"application/vnd.banana-accounting":{source:"iana"},"application/vnd.bbf.usp.error":{source:"iana"},"application/vnd.bbf.usp.msg":{source:"iana"},"application/vnd.bbf.usp.msg+json":{source:"iana",compressible:true},"application/vnd.bekitzur-stech+json":{source:"iana",compressible:true},"application/vnd.bint.med-content":{source:"iana"},"application/vnd.biopax.rdf+xml":{source:"iana",compressible:true},"application/vnd.blink-idb-value-wrapper":{source:"iana"},"application/vnd.blueice.multipass":{source:"iana",extensions:["mpm"]},"application/vnd.bluetooth.ep.oob":{source:"iana"},"application/vnd.bluetooth.le.oob":{source:"iana"},"application/vnd.bmi":{source:"iana",extensions:["bmi"]},"application/vnd.bpf":{source:"iana"},"application/vnd.bpf3":{source:"iana"},"application/vnd.businessobjects":{source:"iana",extensions:["rep"]},"application/vnd.byu.uapi+json":{source:"iana",compressible:true},"application/vnd.cab-jscript":{source:"iana"},"application/vnd.canon-cpdl":{source:"iana"},"application/vnd.canon-lips":{source:"iana"},"application/vnd.capasystems-pg+json":{source:"iana",compressible:true},"application/vnd.cendio.thinlinc.clientconf":{source:"iana"},"application/vnd.century-systems.tcp_stream":{source:"iana"},"application/vnd.chemdraw+xml":{source:"iana",compressible:true,extensions:["cdxml"]},"application/vnd.chess-pgn":{source:"iana"},"application/vnd.chipnuts.karaoke-mmd":{source:"iana",extensions:["mmd"]},"application/vnd.ciedi":{source:"iana"},"application/vnd.cinderella":{source:"iana",extensions:["cdy"]},"application/vnd.cirpack.isdn-ext":{source:"iana"},"application/vnd.citationstyles.style+xml":{source:"iana",compressible:true,extensions:["csl"]},"application/vnd.claymore":{source:"iana",extensions:["cla"]},"application/vnd.cloanto.rp9":{source:"iana",extensions:["rp9"]},"application/vnd.clonk.c4group":{source:"iana",extensions:["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{source:"iana",extensions:["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:"iana",extensions:["c11amz"]},"application/vnd.coffeescript":{source:"iana"},"application/vnd.collabio.xodocuments.document":{source:"iana"},"application/vnd.collabio.xodocuments.document-template":{source:"iana"},"application/vnd.collabio.xodocuments.presentation":{source:"iana"},"application/vnd.collabio.xodocuments.presentation-template":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:"iana"},"application/vnd.collection+json":{source:"iana",compressible:true},"application/vnd.collection.doc+json":{source:"iana",compressible:true},"application/vnd.collection.next+json":{source:"iana",compressible:true},"application/vnd.comicbook+zip":{source:"iana",compressible:false},"application/vnd.comicbook-rar":{source:"iana"},"application/vnd.commerce-battelle":{source:"iana"},"application/vnd.commonspace":{source:"iana",extensions:["csp"]},"application/vnd.contact.cmsg":{source:"iana",extensions:["cdbcmsg"]},"application/vnd.coreos.ignition+json":{source:"iana",compressible:true},"application/vnd.cosmocaller":{source:"iana",extensions:["cmc"]},"application/vnd.crick.clicker":{source:"iana",extensions:["clkx"]},"application/vnd.crick.clicker.keyboard":{source:"iana",extensions:["clkk"]},"application/vnd.crick.clicker.palette":{source:"iana",extensions:["clkp"]},"application/vnd.crick.clicker.template":{source:"iana",extensions:["clkt"]},"application/vnd.crick.clicker.wordbank":{source:"iana",extensions:["clkw"]},"application/vnd.criticaltools.wbs+xml":{source:"iana",compressible:true,extensions:["wbs"]},"application/vnd.cryptii.pipe+json":{source:"iana",compressible:true},"application/vnd.crypto-shade-file":{source:"iana"},"application/vnd.ctc-posml":{source:"iana",extensions:["pml"]},"application/vnd.ctct.ws+xml":{source:"iana",compressible:true},"application/vnd.cups-pdf":{source:"iana"},"application/vnd.cups-postscript":{source:"iana"},"application/vnd.cups-ppd":{source:"iana",extensions:["ppd"]},"application/vnd.cups-raster":{source:"iana"},"application/vnd.cups-raw":{source:"iana"},"application/vnd.curl":{source:"iana"},"application/vnd.curl.car":{source:"apache",extensions:["car"]},"application/vnd.curl.pcurl":{source:"apache",extensions:["pcurl"]},"application/vnd.cyan.dean.root+xml":{source:"iana",compressible:true},"application/vnd.cybank":{source:"iana"},"application/vnd.d2l.coursepackage1p0+zip":{source:"iana",compressible:false},"application/vnd.dart":{source:"iana",compressible:true,extensions:["dart"]},"application/vnd.data-vision.rdz":{source:"iana",extensions:["rdz"]},"application/vnd.datapackage+json":{source:"iana",compressible:true},"application/vnd.dataresource+json":{source:"iana",compressible:true},"application/vnd.dbf":{source:"iana"},"application/vnd.debian.binary-package":{source:"iana"},"application/vnd.dece.data":{source:"iana",extensions:["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{source:"iana",compressible:true,extensions:["uvt","uvvt"]},"application/vnd.dece.unspecified":{source:"iana",extensions:["uvx","uvvx"]},"application/vnd.dece.zip":{source:"iana",extensions:["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{source:"iana",extensions:["fe_launch"]},"application/vnd.desmume.movie":{source:"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{source:"iana"},"application/vnd.dm.delegation+xml":{source:"iana",compressible:true},"application/vnd.dna":{source:"iana",extensions:["dna"]},"application/vnd.document+json":{source:"iana",compressible:true},"application/vnd.dolby.mlp":{source:"apache",extensions:["mlp"]},"application/vnd.dolby.mobile.1":{source:"iana"},"application/vnd.dolby.mobile.2":{source:"iana"},"application/vnd.doremir.scorecloud-binary-document":{source:"iana"},"application/vnd.dpgraph":{source:"iana",extensions:["dpg"]},"application/vnd.dreamfactory":{source:"iana",extensions:["dfac"]},"application/vnd.drive+json":{source:"iana",compressible:true},"application/vnd.ds-keypoint":{source:"apache",extensions:["kpxx"]},"application/vnd.dtg.local":{source:"iana"},"application/vnd.dtg.local.flash":{source:"iana"},"application/vnd.dtg.local.html":{source:"iana"},"application/vnd.dvb.ait":{source:"iana",extensions:["ait"]},"application/vnd.dvb.dvbisl+xml":{source:"iana",compressible:true},"application/vnd.dvb.dvbj":{source:"iana"},"application/vnd.dvb.esgcontainer":{source:"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess2":{source:"iana"},"application/vnd.dvb.ipdcesgpdd":{source:"iana"},"application/vnd.dvb.ipdcroaming":{source:"iana"},"application/vnd.dvb.iptv.alfec-base":{source:"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{source:"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{source:"iana",compressible:true},"application/vnd.dvb.notif-container+xml":{source:"iana",compressible:true},"application/vnd.dvb.notif-generic+xml":{source:"iana",compressible:true},"application/vnd.dvb.notif-ia-msglist+xml":{source:"iana",compressible:true},"application/vnd.dvb.notif-ia-registration-request+xml":{source:"iana",compressible:true},"application/vnd.dvb.notif-ia-registration-response+xml":{source:"iana",compressible:true},"application/vnd.dvb.notif-init+xml":{source:"iana",compressible:true},"application/vnd.dvb.pfr":{source:"iana"},"application/vnd.dvb.service":{source:"iana",extensions:["svc"]},"application/vnd.dxr":{source:"iana"},"application/vnd.dynageo":{source:"iana",extensions:["geo"]},"application/vnd.dzr":{source:"iana"},"application/vnd.easykaraoke.cdgdownload":{source:"iana"},"application/vnd.ecdis-update":{source:"iana"},"application/vnd.ecip.rlp":{source:"iana"},"application/vnd.ecowin.chart":{source:"iana",extensions:["mag"]},"application/vnd.ecowin.filerequest":{source:"iana"},"application/vnd.ecowin.fileupdate":{source:"iana"},"application/vnd.ecowin.series":{source:"iana"},"application/vnd.ecowin.seriesrequest":{source:"iana"},"application/vnd.ecowin.seriesupdate":{source:"iana"},"application/vnd.efi.img":{source:"iana"},"application/vnd.efi.iso":{source:"iana"},"application/vnd.emclient.accessrequest+xml":{source:"iana",compressible:true},"application/vnd.enliven":{source:"iana",extensions:["nml"]},"application/vnd.enphase.envoy":{source:"iana"},"application/vnd.eprints.data+xml":{source:"iana",compressible:true},"application/vnd.epson.esf":{source:"iana",extensions:["esf"]},"application/vnd.epson.msf":{source:"iana",extensions:["msf"]},"application/vnd.epson.quickanime":{source:"iana",extensions:["qam"]},"application/vnd.epson.salt":{source:"iana",extensions:["slt"]},"application/vnd.epson.ssf":{source:"iana",extensions:["ssf"]},"application/vnd.ericsson.quickcall":{source:"iana"},"application/vnd.espass-espass+zip":{source:"iana",compressible:false},"application/vnd.eszigno3+xml":{source:"iana",compressible:true,extensions:["es3","et3"]},"application/vnd.etsi.aoc+xml":{source:"iana",compressible:true},"application/vnd.etsi.asic-e+zip":{source:"iana",compressible:false},"application/vnd.etsi.asic-s+zip":{source:"iana",compressible:false},"application/vnd.etsi.cug+xml":{source:"iana",compressible:true},"application/vnd.etsi.iptvcommand+xml":{source:"iana",compressible:true},"application/vnd.etsi.iptvdiscovery+xml":{source:"iana",compressible:true},"application/vnd.etsi.iptvprofile+xml":{source:"iana",compressible:true},"application/vnd.etsi.iptvsad-bc+xml":{source:"iana",compressible:true},"application/vnd.etsi.iptvsad-cod+xml":{source:"iana",compressible:true},"application/vnd.etsi.iptvsad-npvr+xml":{source:"iana",compressible:true},"application/vnd.etsi.iptvservice+xml":{source:"iana",compressible:true},"application/vnd.etsi.iptvsync+xml":{source:"iana",compressible:true},"application/vnd.etsi.iptvueprofile+xml":{source:"iana",compressible:true},"application/vnd.etsi.mcid+xml":{source:"iana",compressible:true},"application/vnd.etsi.mheg5":{source:"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:"iana",compressible:true},"application/vnd.etsi.pstn+xml":{source:"iana",compressible:true},"application/vnd.etsi.sci+xml":{source:"iana",compressible:true},"application/vnd.etsi.simservs+xml":{source:"iana",compressible:true},"application/vnd.etsi.timestamp-token":{source:"iana"},"application/vnd.etsi.tsl+xml":{source:"iana",compressible:true},"application/vnd.etsi.tsl.der":{source:"iana"},"application/vnd.eudora.data":{source:"iana"},"application/vnd.evolv.ecig.profile":{source:"iana"},"application/vnd.evolv.ecig.settings":{source:"iana"},"application/vnd.evolv.ecig.theme":{source:"iana"},"application/vnd.exstream-empower+zip":{source:"iana",compressible:false},"application/vnd.exstream-package":{source:"iana"},"application/vnd.ezpix-album":{source:"iana",extensions:["ez2"]},"application/vnd.ezpix-package":{source:"iana",extensions:["ez3"]},"application/vnd.f-secure.mobile":{source:"iana"},"application/vnd.fastcopy-disk-image":{source:"iana"},"application/vnd.fdf":{source:"iana",extensions:["fdf"]},"application/vnd.fdsn.mseed":{source:"iana",extensions:["mseed"]},"application/vnd.fdsn.seed":{source:"iana",extensions:["seed","dataless"]},"application/vnd.ffsns":{source:"iana"},"application/vnd.ficlab.flb+zip":{source:"iana",compressible:false},"application/vnd.filmit.zfc":{source:"iana"},"application/vnd.fints":{source:"iana"},"application/vnd.firemonkeys.cloudcell":{source:"iana"},"application/vnd.flographit":{source:"iana",extensions:["gph"]},"application/vnd.fluxtime.clip":{source:"iana",extensions:["ftc"]},"application/vnd.font-fontforge-sfd":{source:"iana"},"application/vnd.framemaker":{source:"iana",extensions:["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{source:"iana",extensions:["fnc"]},"application/vnd.frogans.ltf":{source:"iana",extensions:["ltf"]},"application/vnd.fsc.weblaunch":{source:"iana",extensions:["fsc"]},"application/vnd.fujitsu.oasys":{source:"iana",extensions:["oas"]},"application/vnd.fujitsu.oasys2":{source:"iana",extensions:["oa2"]},"application/vnd.fujitsu.oasys3":{source:"iana",extensions:["oa3"]},"application/vnd.fujitsu.oasysgp":{source:"iana",extensions:["fg5"]},"application/vnd.fujitsu.oasysprs":{source:"iana",extensions:["bh2"]},"application/vnd.fujixerox.art-ex":{source:"iana"},"application/vnd.fujixerox.art4":{source:"iana"},"application/vnd.fujixerox.ddd":{source:"iana",extensions:["ddd"]},"application/vnd.fujixerox.docuworks":{source:"iana",extensions:["xdw"]},"application/vnd.fujixerox.docuworks.binder":{source:"iana",extensions:["xbd"]},"application/vnd.fujixerox.docuworks.container":{source:"iana"},"application/vnd.fujixerox.hbpl":{source:"iana"},"application/vnd.fut-misnet":{source:"iana"},"application/vnd.futoin+cbor":{source:"iana"},"application/vnd.futoin+json":{source:"iana",compressible:true},"application/vnd.fuzzysheet":{source:"iana",extensions:["fzs"]},"application/vnd.genomatix.tuxedo":{source:"iana",extensions:["txd"]},"application/vnd.gentics.grd+json":{source:"iana",compressible:true},"application/vnd.geo+json":{source:"iana",compressible:true},"application/vnd.geocube+xml":{source:"iana",compressible:true},"application/vnd.geogebra.file":{source:"iana",extensions:["ggb"]},"application/vnd.geogebra.tool":{source:"iana",extensions:["ggt"]},"application/vnd.geometry-explorer":{source:"iana",extensions:["gex","gre"]},"application/vnd.geonext":{source:"iana",extensions:["gxt"]},"application/vnd.geoplan":{source:"iana",extensions:["g2w"]},"application/vnd.geospace":{source:"iana",extensions:["g3w"]},"application/vnd.gerber":{source:"iana"},"application/vnd.globalplatform.card-content-mgt":{source:"iana"},"application/vnd.globalplatform.card-content-mgt-response":{source:"iana"},"application/vnd.gmx":{source:"iana",extensions:["gmx"]},"application/vnd.google-apps.document":{compressible:false,extensions:["gdoc"]},"application/vnd.google-apps.presentation":{compressible:false,extensions:["gslides"]},"application/vnd.google-apps.spreadsheet":{compressible:false,extensions:["gsheet"]},"application/vnd.google-earth.kml+xml":{source:"iana",compressible:true,extensions:["kml"]},"application/vnd.google-earth.kmz":{source:"iana",compressible:false,extensions:["kmz"]},"application/vnd.gov.sk.e-form+xml":{source:"iana",compressible:true},"application/vnd.gov.sk.e-form+zip":{source:"iana",compressible:false},"application/vnd.gov.sk.xmldatacontainer+xml":{source:"iana",compressible:true},"application/vnd.grafeq":{source:"iana",extensions:["gqf","gqs"]},"application/vnd.gridmp":{source:"iana"},"application/vnd.groove-account":{source:"iana",extensions:["gac"]},"application/vnd.groove-help":{source:"iana",extensions:["ghf"]},"application/vnd.groove-identity-message":{source:"iana",extensions:["gim"]},"application/vnd.groove-injector":{source:"iana",extensions:["grv"]},"application/vnd.groove-tool-message":{source:"iana",extensions:["gtm"]},"application/vnd.groove-tool-template":{source:"iana",extensions:["tpl"]},"application/vnd.groove-vcard":{source:"iana",extensions:["vcg"]},"application/vnd.hal+json":{source:"iana",compressible:true},"application/vnd.hal+xml":{source:"iana",compressible:true,extensions:["hal"]},"application/vnd.handheld-entertainment+xml":{source:"iana",compressible:true,extensions:["zmm"]},"application/vnd.hbci":{source:"iana",extensions:["hbci"]},"application/vnd.hc+json":{source:"iana",compressible:true},"application/vnd.hcl-bireports":{source:"iana"},"application/vnd.hdt":{source:"iana"},"application/vnd.heroku+json":{source:"iana",compressible:true},"application/vnd.hhe.lesson-player":{source:"iana",extensions:["les"]},"application/vnd.hp-hpgl":{source:"iana",extensions:["hpgl"]},"application/vnd.hp-hpid":{source:"iana",extensions:["hpid"]},"application/vnd.hp-hps":{source:"iana",extensions:["hps"]},"application/vnd.hp-jlyt":{source:"iana",extensions:["jlt"]},"application/vnd.hp-pcl":{source:"iana",extensions:["pcl"]},"application/vnd.hp-pclxl":{source:"iana",extensions:["pclxl"]},"application/vnd.httphone":{source:"iana"},"application/vnd.hydrostatix.sof-data":{source:"iana",extensions:["sfd-hdstx"]},"application/vnd.hyper+json":{source:"iana",compressible:true},"application/vnd.hyper-item+json":{source:"iana",compressible:true},"application/vnd.hyperdrive+json":{source:"iana",compressible:true},"application/vnd.hzn-3d-crossword":{source:"iana"},"application/vnd.ibm.afplinedata":{source:"iana"},"application/vnd.ibm.electronic-media":{source:"iana"},"application/vnd.ibm.minipay":{source:"iana",extensions:["mpy"]},"application/vnd.ibm.modcap":{source:"iana",extensions:["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{source:"iana",extensions:["irm"]},"application/vnd.ibm.secure-container":{source:"iana",extensions:["sc"]},"application/vnd.iccprofile":{source:"iana",extensions:["icc","icm"]},"application/vnd.ieee.1905":{source:"iana"},"application/vnd.igloader":{source:"iana",extensions:["igl"]},"application/vnd.imagemeter.folder+zip":{source:"iana",compressible:false},"application/vnd.imagemeter.image+zip":{source:"iana",compressible:false},"application/vnd.immervision-ivp":{source:"iana",extensions:["ivp"]},"application/vnd.immervision-ivu":{source:"iana",extensions:["ivu"]},"application/vnd.ims.imsccv1p1":{source:"iana"},"application/vnd.ims.imsccv1p2":{source:"iana"},"application/vnd.ims.imsccv1p3":{source:"iana"},"application/vnd.ims.lis.v2.result+json":{source:"iana",compressible:true},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:"iana",compressible:true},"application/vnd.ims.lti.v2.toolproxy+json":{source:"iana",compressible:true},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:"iana",compressible:true},"application/vnd.ims.lti.v2.toolsettings+json":{source:"iana",compressible:true},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:"iana",compressible:true},"application/vnd.informedcontrol.rms+xml":{source:"iana",compressible:true},"application/vnd.informix-visionary":{source:"iana"},"application/vnd.infotech.project":{source:"iana"},"application/vnd.infotech.project+xml":{source:"iana",compressible:true},"application/vnd.innopath.wamp.notification":{source:"iana"},"application/vnd.insors.igm":{source:"iana",extensions:["igm"]},"application/vnd.intercon.formnet":{source:"iana",extensions:["xpw","xpx"]},"application/vnd.intergeo":{source:"iana",extensions:["i2g"]},"application/vnd.intertrust.digibox":{source:"iana"},"application/vnd.intertrust.nncp":{source:"iana"},"application/vnd.intu.qbo":{source:"iana",extensions:["qbo"]},"application/vnd.intu.qfx":{source:"iana",extensions:["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{source:"iana",compressible:true},"application/vnd.iptc.g2.conceptitem+xml":{source:"iana",compressible:true},"application/vnd.iptc.g2.knowledgeitem+xml":{source:"iana",compressible:true},"application/vnd.iptc.g2.newsitem+xml":{source:"iana",compressible:true},"application/vnd.iptc.g2.newsmessage+xml":{source:"iana",compressible:true},"application/vnd.iptc.g2.packageitem+xml":{source:"iana",compressible:true},"application/vnd.iptc.g2.planningitem+xml":{source:"iana",compressible:true},"application/vnd.ipunplugged.rcprofile":{source:"iana",extensions:["rcprofile"]},"application/vnd.irepository.package+xml":{source:"iana",compressible:true,extensions:["irp"]},"application/vnd.is-xpr":{source:"iana",extensions:["xpr"]},"application/vnd.isac.fcs":{source:"iana",extensions:["fcs"]},"application/vnd.iso11783-10+zip":{source:"iana",compressible:false},"application/vnd.jam":{source:"iana",extensions:["jam"]},"application/vnd.japannet-directory-service":{source:"iana"},"application/vnd.japannet-jpnstore-wakeup":{source:"iana"},"application/vnd.japannet-payment-wakeup":{source:"iana"},"application/vnd.japannet-registration":{source:"iana"},"application/vnd.japannet-registration-wakeup":{source:"iana"},"application/vnd.japannet-setstore-wakeup":{source:"iana"},"application/vnd.japannet-verification":{source:"iana"},"application/vnd.japannet-verification-wakeup":{source:"iana"},"application/vnd.jcp.javame.midlet-rms":{source:"iana",extensions:["rms"]},"application/vnd.jisp":{source:"iana",extensions:["jisp"]},"application/vnd.joost.joda-archive":{source:"iana",extensions:["joda"]},"application/vnd.jsk.isdn-ngn":{source:"iana"},"application/vnd.kahootz":{source:"iana",extensions:["ktz","ktr"]},"application/vnd.kde.karbon":{source:"iana",extensions:["karbon"]},"application/vnd.kde.kchart":{source:"iana",extensions:["chrt"]},"application/vnd.kde.kformula":{source:"iana",extensions:["kfo"]},"application/vnd.kde.kivio":{source:"iana",extensions:["flw"]},"application/vnd.kde.kontour":{source:"iana",extensions:["kon"]},"application/vnd.kde.kpresenter":{source:"iana",extensions:["kpr","kpt"]},"application/vnd.kde.kspread":{source:"iana",extensions:["ksp"]},"application/vnd.kde.kword":{source:"iana",extensions:["kwd","kwt"]},"application/vnd.kenameaapp":{source:"iana",extensions:["htke"]},"application/vnd.kidspiration":{source:"iana",extensions:["kia"]},"application/vnd.kinar":{source:"iana",extensions:["kne","knp"]},"application/vnd.koan":{source:"iana",extensions:["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{source:"iana",extensions:["sse"]},"application/vnd.las":{source:"iana"},"application/vnd.las.las+json":{source:"iana",compressible:true},"application/vnd.las.las+xml":{source:"iana",compressible:true,extensions:["lasxml"]},"application/vnd.laszip":{source:"iana"},"application/vnd.leap+json":{source:"iana",compressible:true},"application/vnd.liberty-request+xml":{source:"iana",compressible:true},"application/vnd.llamagraphics.life-balance.desktop":{source:"iana",extensions:["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:"iana",compressible:true,extensions:["lbe"]},"application/vnd.logipipe.circuit+zip":{source:"iana",compressible:false},"application/vnd.loom":{source:"iana"},"application/vnd.lotus-1-2-3":{source:"iana",extensions:["123"]},"application/vnd.lotus-approach":{source:"iana",extensions:["apr"]},"application/vnd.lotus-freelance":{source:"iana",extensions:["pre"]},"application/vnd.lotus-notes":{source:"iana",extensions:["nsf"]},"application/vnd.lotus-organizer":{source:"iana",extensions:["org"]},"application/vnd.lotus-screencam":{source:"iana",extensions:["scm"]},"application/vnd.lotus-wordpro":{source:"iana",extensions:["lwp"]},"application/vnd.macports.portpkg":{source:"iana",extensions:["portpkg"]},"application/vnd.mapbox-vector-tile":{source:"iana"},"application/vnd.marlin.drm.actiontoken+xml":{source:"iana",compressible:true},"application/vnd.marlin.drm.conftoken+xml":{source:"iana",compressible:true},"application/vnd.marlin.drm.license+xml":{source:"iana",compressible:true},"application/vnd.marlin.drm.mdcf":{source:"iana"},"application/vnd.mason+json":{source:"iana",compressible:true},"application/vnd.maxmind.maxmind-db":{source:"iana"},"application/vnd.mcd":{source:"iana",extensions:["mcd"]},"application/vnd.medcalcdata":{source:"iana",extensions:["mc1"]},"application/vnd.mediastation.cdkey":{source:"iana",extensions:["cdkey"]},"application/vnd.meridian-slingshot":{source:"iana"},"application/vnd.mfer":{source:"iana",extensions:["mwf"]},"application/vnd.mfmp":{source:"iana",extensions:["mfm"]},"application/vnd.micro+json":{source:"iana",compressible:true},"application/vnd.micrografx.flo":{source:"iana",extensions:["flo"]},"application/vnd.micrografx.igx":{source:"iana",extensions:["igx"]},"application/vnd.microsoft.portable-executable":{source:"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{source:"iana"},"application/vnd.miele+json":{source:"iana",compressible:true},"application/vnd.mif":{source:"iana",extensions:["mif"]},"application/vnd.minisoft-hp3000-save":{source:"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{source:"iana"},"application/vnd.mobius.daf":{source:"iana",extensions:["daf"]},"application/vnd.mobius.dis":{source:"iana",extensions:["dis"]},"application/vnd.mobius.mbk":{source:"iana",extensions:["mbk"]},"application/vnd.mobius.mqy":{source:"iana",extensions:["mqy"]},"application/vnd.mobius.msl":{source:"iana",extensions:["msl"]},"application/vnd.mobius.plc":{source:"iana",extensions:["plc"]},"application/vnd.mobius.txf":{source:"iana",extensions:["txf"]},"application/vnd.mophun.application":{source:"iana",extensions:["mpn"]},"application/vnd.mophun.certificate":{source:"iana",extensions:["mpc"]},"application/vnd.motorola.flexsuite":{source:"iana"},"application/vnd.motorola.flexsuite.adsi":{source:"iana"},"application/vnd.motorola.flexsuite.fis":{source:"iana"},"application/vnd.motorola.flexsuite.gotap":{source:"iana"},"application/vnd.motorola.flexsuite.kmr":{source:"iana"},"application/vnd.motorola.flexsuite.ttc":{source:"iana"},"application/vnd.motorola.flexsuite.wem":{source:"iana"},"application/vnd.motorola.iprm":{source:"iana"},"application/vnd.mozilla.xul+xml":{source:"iana",compressible:true,extensions:["xul"]},"application/vnd.ms-3mfdocument":{source:"iana"},"application/vnd.ms-artgalry":{source:"iana",extensions:["cil"]},"application/vnd.ms-asf":{source:"iana"},"application/vnd.ms-cab-compressed":{source:"iana",extensions:["cab"]},"application/vnd.ms-color.iccprofile":{source:"apache"},"application/vnd.ms-excel":{source:"iana",compressible:false,extensions:["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{source:"iana",extensions:["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:"iana",extensions:["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:"iana",extensions:["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{source:"iana",extensions:["xltm"]},"application/vnd.ms-fontobject":{source:"iana",compressible:true,extensions:["eot"]},"application/vnd.ms-htmlhelp":{source:"iana",extensions:["chm"]},"application/vnd.ms-ims":{source:"iana",extensions:["ims"]},"application/vnd.ms-lrm":{source:"iana",extensions:["lrm"]},"application/vnd.ms-office.activex+xml":{source:"iana",compressible:true},"application/vnd.ms-officetheme":{source:"iana",extensions:["thmx"]},"application/vnd.ms-opentype":{source:"apache",compressible:true},"application/vnd.ms-outlook":{compressible:false,extensions:["msg"]},"application/vnd.ms-package.obfuscated-opentype":{source:"apache"},"application/vnd.ms-pki.seccat":{source:"apache",extensions:["cat"]},"application/vnd.ms-pki.stl":{source:"apache",extensions:["stl"]},"application/vnd.ms-playready.initiator+xml":{source:"iana",compressible:true},"application/vnd.ms-powerpoint":{source:"iana",compressible:false,extensions:["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:"iana",extensions:["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:"iana",extensions:["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:"iana",extensions:["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:"iana",extensions:["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:"iana",extensions:["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{source:"iana",compressible:true},"application/vnd.ms-printing.printticket+xml":{source:"apache",compressible:true},"application/vnd.ms-printschematicket+xml":{source:"iana",compressible:true},"application/vnd.ms-project":{source:"iana",extensions:["mpp","mpt"]},"application/vnd.ms-tnef":{source:"iana"},"application/vnd.ms-windows.devicepairing":{source:"iana"},"application/vnd.ms-windows.nwprinting.oob":{source:"iana"},"application/vnd.ms-windows.printerpairing":{source:"iana"},"application/vnd.ms-windows.wsd.oob":{source:"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.lic-resp":{source:"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.meter-resp":{source:"iana"},"application/vnd.ms-word.document.macroenabled.12":{source:"iana",extensions:["docm"]},"application/vnd.ms-word.template.macroenabled.12":{source:"iana",extensions:["dotm"]},"application/vnd.ms-works":{source:"iana",extensions:["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{source:"iana",extensions:["wpl"]},"application/vnd.ms-xpsdocument":{source:"iana",compressible:false,extensions:["xps"]},"application/vnd.msa-disk-image":{source:"iana"},"application/vnd.mseq":{source:"iana",extensions:["mseq"]},"application/vnd.msign":{source:"iana"},"application/vnd.multiad.creator":{source:"iana"},"application/vnd.multiad.creator.cif":{source:"iana"},"application/vnd.music-niff":{source:"iana"},"application/vnd.musician":{source:"iana",extensions:["mus"]},"application/vnd.muvee.style":{source:"iana",extensions:["msty"]},"application/vnd.mynfc":{source:"iana",extensions:["taglet"]},"application/vnd.ncd.control":{source:"iana"},"application/vnd.ncd.reference":{source:"iana"},"application/vnd.nearst.inv+json":{source:"iana",compressible:true},"application/vnd.nervana":{source:"iana"},"application/vnd.netfpx":{source:"iana"},"application/vnd.neurolanguage.nlu":{source:"iana",extensions:["nlu"]},"application/vnd.nimn":{source:"iana"},"application/vnd.nintendo.nitro.rom":{source:"iana"},"application/vnd.nintendo.snes.rom":{source:"iana"},"application/vnd.nitf":{source:"iana",extensions:["ntf","nitf"]},"application/vnd.noblenet-directory":{source:"iana",extensions:["nnd"]},"application/vnd.noblenet-sealer":{source:"iana",extensions:["nns"]},"application/vnd.noblenet-web":{source:"iana",extensions:["nnw"]},"application/vnd.nokia.catalogs":{source:"iana"},"application/vnd.nokia.conml+wbxml":{source:"iana"},"application/vnd.nokia.conml+xml":{source:"iana",compressible:true},"application/vnd.nokia.iptv.config+xml":{source:"iana",compressible:true},"application/vnd.nokia.isds-radio-presets":{source:"iana"},"application/vnd.nokia.landmark+wbxml":{source:"iana"},"application/vnd.nokia.landmark+xml":{source:"iana",compressible:true},"application/vnd.nokia.landmarkcollection+xml":{source:"iana",compressible:true},"application/vnd.nokia.n-gage.ac+xml":{source:"iana",compressible:true,extensions:["ac"]},"application/vnd.nokia.n-gage.data":{source:"iana",extensions:["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{source:"iana",extensions:["n-gage"]},"application/vnd.nokia.ncd":{source:"iana"},"application/vnd.nokia.pcd+wbxml":{source:"iana"},"application/vnd.nokia.pcd+xml":{source:"iana",compressible:true},"application/vnd.nokia.radio-preset":{source:"iana",extensions:["rpst"]},"application/vnd.nokia.radio-presets":{source:"iana",extensions:["rpss"]},"application/vnd.novadigm.edm":{source:"iana",extensions:["edm"]},"application/vnd.novadigm.edx":{source:"iana",extensions:["edx"]},"application/vnd.novadigm.ext":{source:"iana",extensions:["ext"]},"application/vnd.ntt-local.content-share":{source:"iana"},"application/vnd.ntt-local.file-transfer":{source:"iana"},"application/vnd.ntt-local.ogw_remote-access":{source:"iana"},"application/vnd.ntt-local.sip-ta_remote":{source:"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:"iana"},"application/vnd.oasis.opendocument.chart":{source:"iana",extensions:["odc"]},"application/vnd.oasis.opendocument.chart-template":{source:"iana",extensions:["otc"]},"application/vnd.oasis.opendocument.database":{source:"iana",extensions:["odb"]},"application/vnd.oasis.opendocument.formula":{source:"iana",extensions:["odf"]},"application/vnd.oasis.opendocument.formula-template":{source:"iana",extensions:["odft"]},"application/vnd.oasis.opendocument.graphics":{source:"iana",compressible:false,extensions:["odg"]},"application/vnd.oasis.opendocument.graphics-template":{source:"iana",extensions:["otg"]},"application/vnd.oasis.opendocument.image":{source:"iana",extensions:["odi"]},"application/vnd.oasis.opendocument.image-template":{source:"iana",extensions:["oti"]},"application/vnd.oasis.opendocument.presentation":{source:"iana",compressible:false,extensions:["odp"]},"application/vnd.oasis.opendocument.presentation-template":{source:"iana",extensions:["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{source:"iana",compressible:false,extensions:["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:"iana",extensions:["ots"]},"application/vnd.oasis.opendocument.text":{source:"iana",compressible:false,extensions:["odt"]},"application/vnd.oasis.opendocument.text-master":{source:"iana",extensions:["odm"]},"application/vnd.oasis.opendocument.text-template":{source:"iana",extensions:["ott"]},"application/vnd.oasis.opendocument.text-web":{source:"iana",extensions:["oth"]},"application/vnd.obn":{source:"iana"},"application/vnd.ocf+cbor":{source:"iana"},"application/vnd.oci.image.manifest.v1+json":{source:"iana",compressible:true},"application/vnd.oftn.l10n+json":{source:"iana",compressible:true},"application/vnd.oipf.contentaccessdownload+xml":{source:"iana",compressible:true},"application/vnd.oipf.contentaccessstreaming+xml":{source:"iana",compressible:true},"application/vnd.oipf.cspg-hexbinary":{source:"iana"},"application/vnd.oipf.dae.svg+xml":{source:"iana",compressible:true},"application/vnd.oipf.dae.xhtml+xml":{source:"iana",compressible:true},"application/vnd.oipf.mippvcontrolmessage+xml":{source:"iana",compressible:true},"application/vnd.oipf.pae.gem":{source:"iana"},"application/vnd.oipf.spdiscovery+xml":{source:"iana",compressible:true},"application/vnd.oipf.spdlist+xml":{source:"iana",compressible:true},"application/vnd.oipf.ueprofile+xml":{source:"iana",compressible:true},"application/vnd.oipf.userprofile+xml":{source:"iana",compressible:true},"application/vnd.olpc-sugar":{source:"iana",extensions:["xo"]},"application/vnd.oma-scws-config":{source:"iana"},"application/vnd.oma-scws-http-request":{source:"iana"},"application/vnd.oma-scws-http-response":{source:"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:"iana",compressible:true},"application/vnd.oma.bcast.drm-trigger+xml":{source:"iana",compressible:true},"application/vnd.oma.bcast.imd+xml":{source:"iana",compressible:true},"application/vnd.oma.bcast.ltkm":{source:"iana"},"application/vnd.oma.bcast.notification+xml":{source:"iana",compressible:true},"application/vnd.oma.bcast.provisioningtrigger":{source:"iana"},"application/vnd.oma.bcast.sgboot":{source:"iana"},"application/vnd.oma.bcast.sgdd+xml":{source:"iana",compressible:true},"application/vnd.oma.bcast.sgdu":{source:"iana"},"application/vnd.oma.bcast.simple-symbol-container":{source:"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:"iana",compressible:true},"application/vnd.oma.bcast.sprov+xml":{source:"iana",compressible:true},"application/vnd.oma.bcast.stkm":{source:"iana"},"application/vnd.oma.cab-address-book+xml":{source:"iana",compressible:true},"application/vnd.oma.cab-feature-handler+xml":{source:"iana",compressible:true},"application/vnd.oma.cab-pcc+xml":{source:"iana",compressible:true},"application/vnd.oma.cab-subs-invite+xml":{source:"iana",compressible:true},"application/vnd.oma.cab-user-prefs+xml":{source:"iana",compressible:true},"application/vnd.oma.dcd":{source:"iana"},"application/vnd.oma.dcdc":{source:"iana"},"application/vnd.oma.dd2+xml":{source:"iana",compressible:true,extensions:["dd2"]},"application/vnd.oma.drm.risd+xml":{source:"iana",compressible:true},"application/vnd.oma.group-usage-list+xml":{source:"iana",compressible:true},"application/vnd.oma.lwm2m+json":{source:"iana",compressible:true},"application/vnd.oma.lwm2m+tlv":{source:"iana"},"application/vnd.oma.pal+xml":{source:"iana",compressible:true},"application/vnd.oma.poc.detailed-progress-report+xml":{source:"iana",compressible:true},"application/vnd.oma.poc.final-report+xml":{source:"iana",compressible:true},"application/vnd.oma.poc.groups+xml":{source:"iana",compressible:true},"application/vnd.oma.poc.invocation-descriptor+xml":{source:"iana",compressible:true},"application/vnd.oma.poc.optimized-progress-report+xml":{source:"iana",compressible:true},"application/vnd.oma.push":{source:"iana"},"application/vnd.oma.scidm.messages+xml":{source:"iana",compressible:true},"application/vnd.oma.xcap-directory+xml":{source:"iana",compressible:true},"application/vnd.omads-email+xml":{source:"iana",charset:"UTF-8",compressible:true},"application/vnd.omads-file+xml":{source:"iana",charset:"UTF-8",compressible:true},"application/vnd.omads-folder+xml":{source:"iana",charset:"UTF-8",compressible:true},"application/vnd.omaloc-supl-init":{source:"iana"},"application/vnd.onepager":{source:"iana"},"application/vnd.onepagertamp":{source:"iana"},"application/vnd.onepagertamx":{source:"iana"},"application/vnd.onepagertat":{source:"iana"},"application/vnd.onepagertatp":{source:"iana"},"application/vnd.onepagertatx":{source:"iana"},"application/vnd.openblox.game+xml":{source:"iana",compressible:true,extensions:["obgx"]},"application/vnd.openblox.game-binary":{source:"iana"},"application/vnd.openeye.oeb":{source:"iana"},"application/vnd.openofficeorg.extension":{source:"apache",extensions:["oxt"]},"application/vnd.openstreetmap.data+xml":{source:"iana",compressible:true,extensions:["osm"]},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",compressible:false,extensions:["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:"iana",extensions:["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:"iana",extensions:["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:"iana",extensions:["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",compressible:false,extensions:["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:"iana",extensions:["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.theme+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",compressible:false,extensions:["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:"iana",extensions:["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-package.core-properties+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-package.relationships+xml":{source:"iana",compressible:true},"application/vnd.oracle.resource+json":{source:"iana",compressible:true},"application/vnd.orange.indata":{source:"iana"},"application/vnd.osa.netdeploy":{source:"iana"},"application/vnd.osgeo.mapguide.package":{source:"iana",extensions:["mgp"]},"application/vnd.osgi.bundle":{source:"iana"},"application/vnd.osgi.dp":{source:"iana",extensions:["dp"]},"application/vnd.osgi.subsystem":{source:"iana",extensions:["esa"]},"application/vnd.otps.ct-kip+xml":{source:"iana",compressible:true},"application/vnd.oxli.countgraph":{source:"iana"},"application/vnd.pagerduty+json":{source:"iana",compressible:true},"application/vnd.palm":{source:"iana",extensions:["pdb","pqa","oprc"]},"application/vnd.panoply":{source:"iana"},"application/vnd.paos.xml":{source:"iana"},"application/vnd.patentdive":{source:"iana"},"application/vnd.patientecommsdoc":{source:"iana"},"application/vnd.pawaafile":{source:"iana",extensions:["paw"]},"application/vnd.pcos":{source:"iana"},"application/vnd.pg.format":{source:"iana",extensions:["str"]},"application/vnd.pg.osasli":{source:"iana",extensions:["ei6"]},"application/vnd.piaccess.application-licence":{source:"iana"},"application/vnd.picsel":{source:"iana",extensions:["efif"]},"application/vnd.pmi.widget":{source:"iana",extensions:["wg"]},"application/vnd.poc.group-advertisement+xml":{source:"iana",compressible:true},"application/vnd.pocketlearn":{source:"iana",extensions:["plf"]},"application/vnd.powerbuilder6":{source:"iana",extensions:["pbd"]},"application/vnd.powerbuilder6-s":{source:"iana"},"application/vnd.powerbuilder7":{source:"iana"},"application/vnd.powerbuilder7-s":{source:"iana"},"application/vnd.powerbuilder75":{source:"iana"},"application/vnd.powerbuilder75-s":{source:"iana"},"application/vnd.preminet":{source:"iana"},"application/vnd.previewsystems.box":{source:"iana",extensions:["box"]},"application/vnd.proteus.magazine":{source:"iana",extensions:["mgz"]},"application/vnd.psfs":{source:"iana"},"application/vnd.publishare-delta-tree":{source:"iana",extensions:["qps"]},"application/vnd.pvi.ptid1":{source:"iana",extensions:["ptid"]},"application/vnd.pwg-multiplexed":{source:"iana"},"application/vnd.pwg-xhtml-print+xml":{source:"iana",compressible:true},"application/vnd.qualcomm.brew-app-res":{source:"iana"},"application/vnd.quarantainenet":{source:"iana"},"application/vnd.quark.quarkxpress":{source:"iana",extensions:["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{source:"iana"},"application/vnd.radisys.moml+xml":{source:"iana",compressible:true},"application/vnd.radisys.msml+xml":{source:"iana",compressible:true},"application/vnd.radisys.msml-audit+xml":{source:"iana",compressible:true},"application/vnd.radisys.msml-audit-conf+xml":{source:"iana",compressible:true},"application/vnd.radisys.msml-audit-conn+xml":{source:"iana",compressible:true},"application/vnd.radisys.msml-audit-dialog+xml":{source:"iana",compressible:true},"application/vnd.radisys.msml-audit-stream+xml":{source:"iana",compressible:true},"application/vnd.radisys.msml-conf+xml":{source:"iana",compressible:true},"application/vnd.radisys.msml-dialog+xml":{source:"iana",compressible:true},"application/vnd.radisys.msml-dialog-base+xml":{source:"iana",compressible:true},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:"iana",compressible:true},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:"iana",compressible:true},"application/vnd.radisys.msml-dialog-group+xml":{source:"iana",compressible:true},"application/vnd.radisys.msml-dialog-speech+xml":{source:"iana",compressible:true},"application/vnd.radisys.msml-dialog-transform+xml":{source:"iana",compressible:true},"application/vnd.rainstor.data":{source:"iana"},"application/vnd.rapid":{source:"iana"},"application/vnd.rar":{source:"iana"},"application/vnd.realvnc.bed":{source:"iana",extensions:["bed"]},"application/vnd.recordare.musicxml":{source:"iana",extensions:["mxl"]},"application/vnd.recordare.musicxml+xml":{source:"iana",compressible:true,extensions:["musicxml"]},"application/vnd.renlearn.rlprint":{source:"iana"},"application/vnd.restful+json":{source:"iana",compressible:true},"application/vnd.rig.cryptonote":{source:"iana",extensions:["cryptonote"]},"application/vnd.rim.cod":{source:"apache",extensions:["cod"]},"application/vnd.rn-realmedia":{source:"apache",extensions:["rm"]},"application/vnd.rn-realmedia-vbr":{source:"apache",extensions:["rmvb"]},"application/vnd.route66.link66+xml":{source:"iana",compressible:true,extensions:["link66"]},"application/vnd.rs-274x":{source:"iana"},"application/vnd.ruckus.download":{source:"iana"},"application/vnd.s3sms":{source:"iana"},"application/vnd.sailingtracker.track":{source:"iana",extensions:["st"]},"application/vnd.sar":{source:"iana"},"application/vnd.sbm.cid":{source:"iana"},"application/vnd.sbm.mid2":{source:"iana"},"application/vnd.scribus":{source:"iana"},"application/vnd.sealed.3df":{source:"iana"},"application/vnd.sealed.csf":{source:"iana"},"application/vnd.sealed.doc":{source:"iana"},"application/vnd.sealed.eml":{source:"iana"},"application/vnd.sealed.mht":{source:"iana"},"application/vnd.sealed.net":{source:"iana"},"application/vnd.sealed.ppt":{source:"iana"},"application/vnd.sealed.tiff":{source:"iana"},"application/vnd.sealed.xls":{source:"iana"},"application/vnd.sealedmedia.softseal.html":{source:"iana"},"application/vnd.sealedmedia.softseal.pdf":{source:"iana"},"application/vnd.seemail":{source:"iana",extensions:["see"]},"application/vnd.sema":{source:"iana",extensions:["sema"]},"application/vnd.semd":{source:"iana",extensions:["semd"]},"application/vnd.semf":{source:"iana",extensions:["semf"]},"application/vnd.shade-save-file":{source:"iana"},"application/vnd.shana.informed.formdata":{source:"iana",extensions:["ifm"]},"application/vnd.shana.informed.formtemplate":{source:"iana",extensions:["itp"]},"application/vnd.shana.informed.interchange":{source:"iana",extensions:["iif"]},"application/vnd.shana.informed.package":{source:"iana",extensions:["ipk"]},"application/vnd.shootproof+json":{source:"iana",compressible:true},"application/vnd.shopkick+json":{source:"iana",compressible:true},"application/vnd.shp":{source:"iana"},"application/vnd.shx":{source:"iana"},"application/vnd.sigrok.session":{source:"iana"},"application/vnd.simtech-mindmapper":{source:"iana",extensions:["twd","twds"]},"application/vnd.siren+json":{source:"iana",compressible:true},"application/vnd.smaf":{source:"iana",extensions:["mmf"]},"application/vnd.smart.notebook":{source:"iana"},"application/vnd.smart.teacher":{source:"iana",extensions:["teacher"]},"application/vnd.snesdev-page-table":{source:"iana"},"application/vnd.software602.filler.form+xml":{source:"iana",compressible:true,extensions:["fo"]},"application/vnd.software602.filler.form-xml-zip":{source:"iana"},"application/vnd.solent.sdkm+xml":{source:"iana",compressible:true,extensions:["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{source:"iana",extensions:["dxp"]},"application/vnd.spotfire.sfs":{source:"iana",extensions:["sfs"]},"application/vnd.sqlite3":{source:"iana"},"application/vnd.sss-cod":{source:"iana"},"application/vnd.sss-dtf":{source:"iana"},"application/vnd.sss-ntf":{source:"iana"},"application/vnd.stardivision.calc":{source:"apache",extensions:["sdc"]},"application/vnd.stardivision.draw":{source:"apache",extensions:["sda"]},"application/vnd.stardivision.impress":{source:"apache",extensions:["sdd"]},"application/vnd.stardivision.math":{source:"apache",extensions:["smf"]},"application/vnd.stardivision.writer":{source:"apache",extensions:["sdw","vor"]},"application/vnd.stardivision.writer-global":{source:"apache",extensions:["sgl"]},"application/vnd.stepmania.package":{source:"iana",extensions:["smzip"]},"application/vnd.stepmania.stepchart":{source:"iana",extensions:["sm"]},"application/vnd.street-stream":{source:"iana"},"application/vnd.sun.wadl+xml":{source:"iana",compressible:true,extensions:["wadl"]},"application/vnd.sun.xml.calc":{source:"apache",extensions:["sxc"]},"application/vnd.sun.xml.calc.template":{source:"apache",extensions:["stc"]},"application/vnd.sun.xml.draw":{source:"apache",extensions:["sxd"]},"application/vnd.sun.xml.draw.template":{source:"apache",extensions:["std"]},"application/vnd.sun.xml.impress":{source:"apache",extensions:["sxi"]},"application/vnd.sun.xml.impress.template":{source:"apache",extensions:["sti"]},"application/vnd.sun.xml.math":{source:"apache",extensions:["sxm"]},"application/vnd.sun.xml.writer":{source:"apache",extensions:["sxw"]},"application/vnd.sun.xml.writer.global":{source:"apache",extensions:["sxg"]},"application/vnd.sun.xml.writer.template":{source:"apache",extensions:["stw"]},"application/vnd.sus-calendar":{source:"iana",extensions:["sus","susp"]},"application/vnd.svd":{source:"iana",extensions:["svd"]},"application/vnd.swiftview-ics":{source:"iana"},"application/vnd.symbian.install":{source:"apache",extensions:["sis","sisx"]},"application/vnd.syncml+xml":{source:"iana",charset:"UTF-8",compressible:true,extensions:["xsm"]},"application/vnd.syncml.dm+wbxml":{source:"iana",charset:"UTF-8",extensions:["bdm"]},"application/vnd.syncml.dm+xml":{source:"iana",charset:"UTF-8",compressible:true,extensions:["xdm"]},"application/vnd.syncml.dm.notification":{source:"iana"},"application/vnd.syncml.dmddf+wbxml":{source:"iana"},"application/vnd.syncml.dmddf+xml":{source:"iana",charset:"UTF-8",compressible:true,extensions:["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{source:"iana"},"application/vnd.syncml.dmtnds+xml":{source:"iana",charset:"UTF-8",compressible:true},"application/vnd.syncml.ds.notification":{source:"iana"},"application/vnd.tableschema+json":{source:"iana",compressible:true},"application/vnd.tao.intent-module-archive":{source:"iana",extensions:["tao"]},"application/vnd.tcpdump.pcap":{source:"iana",extensions:["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{source:"iana",compressible:true},"application/vnd.tmd.mediaflex.api+xml":{source:"iana",compressible:true},"application/vnd.tml":{source:"iana"},"application/vnd.tmobile-livetv":{source:"iana",extensions:["tmo"]},"application/vnd.tri.onesource":{source:"iana"},"application/vnd.trid.tpt":{source:"iana",extensions:["tpt"]},"application/vnd.triscape.mxs":{source:"iana",extensions:["mxs"]},"application/vnd.trueapp":{source:"iana",extensions:["tra"]},"application/vnd.truedoc":{source:"iana"},"application/vnd.ubisoft.webplayer":{source:"iana"},"application/vnd.ufdl":{source:"iana",extensions:["ufd","ufdl"]},"application/vnd.uiq.theme":{source:"iana",extensions:["utz"]},"application/vnd.umajin":{source:"iana",extensions:["umj"]},"application/vnd.unity":{source:"iana",extensions:["unityweb"]},"application/vnd.uoml+xml":{source:"iana",compressible:true,extensions:["uoml"]},"application/vnd.uplanet.alert":{source:"iana"},"application/vnd.uplanet.alert-wbxml":{source:"iana"},"application/vnd.uplanet.bearer-choice":{source:"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{source:"iana"},"application/vnd.uplanet.cacheop":{source:"iana"},"application/vnd.uplanet.cacheop-wbxml":{source:"iana"},"application/vnd.uplanet.channel":{source:"iana"},"application/vnd.uplanet.channel-wbxml":{source:"iana"},"application/vnd.uplanet.list":{source:"iana"},"application/vnd.uplanet.list-wbxml":{source:"iana"},"application/vnd.uplanet.listcmd":{source:"iana"},"application/vnd.uplanet.listcmd-wbxml":{source:"iana"},"application/vnd.uplanet.signal":{source:"iana"},"application/vnd.uri-map":{source:"iana"},"application/vnd.valve.source.material":{source:"iana"},"application/vnd.vcx":{source:"iana",extensions:["vcx"]},"application/vnd.vd-study":{source:"iana"},"application/vnd.vectorworks":{source:"iana"},"application/vnd.vel+json":{source:"iana",compressible:true},"application/vnd.verimatrix.vcas":{source:"iana"},"application/vnd.veryant.thin":{source:"iana"},"application/vnd.ves.encrypted":{source:"iana"},"application/vnd.vidsoft.vidconference":{source:"iana"},"application/vnd.visio":{source:"iana",extensions:["vsd","vst","vss","vsw"]},"application/vnd.visionary":{source:"iana",extensions:["vis"]},"application/vnd.vividence.scriptfile":{source:"iana"},"application/vnd.vsf":{source:"iana",extensions:["vsf"]},"application/vnd.wap.sic":{source:"iana"},"application/vnd.wap.slc":{source:"iana"},"application/vnd.wap.wbxml":{source:"iana",charset:"UTF-8",extensions:["wbxml"]},"application/vnd.wap.wmlc":{source:"iana",extensions:["wmlc"]},"application/vnd.wap.wmlscriptc":{source:"iana",extensions:["wmlsc"]},"application/vnd.webturbo":{source:"iana",extensions:["wtb"]},"application/vnd.wfa.p2p":{source:"iana"},"application/vnd.wfa.wsc":{source:"iana"},"application/vnd.windows.devicepairing":{source:"iana"},"application/vnd.wmc":{source:"iana"},"application/vnd.wmf.bootstrap":{source:"iana"},"application/vnd.wolfram.mathematica":{source:"iana"},"application/vnd.wolfram.mathematica.package":{source:"iana"},"application/vnd.wolfram.player":{source:"iana",extensions:["nbp"]},"application/vnd.wordperfect":{source:"iana",extensions:["wpd"]},"application/vnd.wqd":{source:"iana",extensions:["wqd"]},"application/vnd.wrq-hp3000-labelled":{source:"iana"},"application/vnd.wt.stf":{source:"iana",extensions:["stf"]},"application/vnd.wv.csp+wbxml":{source:"iana"},"application/vnd.wv.csp+xml":{source:"iana",compressible:true},"application/vnd.wv.ssp+xml":{source:"iana",compressible:true},"application/vnd.xacml+json":{source:"iana",compressible:true},"application/vnd.xara":{source:"iana",extensions:["xar"]},"application/vnd.xfdl":{source:"iana",extensions:["xfdl"]},"application/vnd.xfdl.webform":{source:"iana"},"application/vnd.xmi+xml":{source:"iana",compressible:true},"application/vnd.xmpie.cpkg":{source:"iana"},"application/vnd.xmpie.dpkg":{source:"iana"},"application/vnd.xmpie.plan":{source:"iana"},"application/vnd.xmpie.ppkg":{source:"iana"},"application/vnd.xmpie.xlim":{source:"iana"},"application/vnd.yamaha.hv-dic":{source:"iana",extensions:["hvd"]},"application/vnd.yamaha.hv-script":{source:"iana",extensions:["hvs"]},"application/vnd.yamaha.hv-voice":{source:"iana",extensions:["hvp"]},"application/vnd.yamaha.openscoreformat":{source:"iana",extensions:["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:"iana",compressible:true,extensions:["osfpvg"]},"application/vnd.yamaha.remote-setup":{source:"iana"},"application/vnd.yamaha.smaf-audio":{source:"iana",extensions:["saf"]},"application/vnd.yamaha.smaf-phrase":{source:"iana",extensions:["spf"]},"application/vnd.yamaha.through-ngn":{source:"iana"},"application/vnd.yamaha.tunnel-udpencap":{source:"iana"},"application/vnd.yaoweme":{source:"iana"},"application/vnd.yellowriver-custom-menu":{source:"iana",extensions:["cmp"]},"application/vnd.youtube.yt":{source:"iana"},"application/vnd.zul":{source:"iana",extensions:["zir","zirz"]},"application/vnd.zzazz.deck+xml":{source:"iana",compressible:true,extensions:["zaz"]},"application/voicexml+xml":{source:"iana",compressible:true,extensions:["vxml"]},"application/voucher-cms+json":{source:"iana",compressible:true},"application/vq-rtcpxr":{source:"iana"},"application/wasm":{compressible:true,extensions:["wasm"]},"application/watcherinfo+xml":{source:"iana",compressible:true},"application/webpush-options+json":{source:"iana",compressible:true},"application/whoispp-query":{source:"iana"},"application/whoispp-response":{source:"iana"},"application/widget":{source:"iana",extensions:["wgt"]},"application/winhlp":{source:"apache",extensions:["hlp"]},"application/wita":{source:"iana"},"application/wordperfect5.1":{source:"iana"},"application/wsdl+xml":{source:"iana",compressible:true,extensions:["wsdl"]},"application/wspolicy+xml":{source:"iana",compressible:true,extensions:["wspolicy"]},"application/x-7z-compressed":{source:"apache",compressible:false,extensions:["7z"]},"application/x-abiword":{source:"apache",extensions:["abw"]},"application/x-ace-compressed":{source:"apache",extensions:["ace"]},"application/x-amf":{source:"apache"},"application/x-apple-diskimage":{source:"apache",extensions:["dmg"]},"application/x-arj":{compressible:false,extensions:["arj"]},"application/x-authorware-bin":{source:"apache",extensions:["aab","x32","u32","vox"]},"application/x-authorware-map":{source:"apache",extensions:["aam"]},"application/x-authorware-seg":{source:"apache",extensions:["aas"]},"application/x-bcpio":{source:"apache",extensions:["bcpio"]},"application/x-bdoc":{compressible:false,extensions:["bdoc"]},"application/x-bittorrent":{source:"apache",extensions:["torrent"]},"application/x-blorb":{source:"apache",extensions:["blb","blorb"]},"application/x-bzip":{source:"apache",compressible:false,extensions:["bz"]},"application/x-bzip2":{source:"apache",compressible:false,extensions:["bz2","boz"]},"application/x-cbr":{source:"apache",extensions:["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{source:"apache",extensions:["vcd"]},"application/x-cfs-compressed":{source:"apache",extensions:["cfs"]},"application/x-chat":{source:"apache",extensions:["chat"]},"application/x-chess-pgn":{source:"apache",extensions:["pgn"]},"application/x-chrome-extension":{extensions:["crx"]},"application/x-cocoa":{source:"nginx",extensions:["cco"]},"application/x-compress":{source:"apache"},"application/x-conference":{source:"apache",extensions:["nsc"]},"application/x-cpio":{source:"apache",extensions:["cpio"]},"application/x-csh":{source:"apache",extensions:["csh"]},"application/x-deb":{compressible:false},"application/x-debian-package":{source:"apache",extensions:["deb","udeb"]},"application/x-dgc-compressed":{source:"apache",extensions:["dgc"]},"application/x-director":{source:"apache",extensions:["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{source:"apache",extensions:["wad"]},"application/x-dtbncx+xml":{source:"apache",compressible:true,extensions:["ncx"]},"application/x-dtbook+xml":{source:"apache",compressible:true,extensions:["dtb"]},"application/x-dtbresource+xml":{source:"apache",compressible:true,extensions:["res"]},"application/x-dvi":{source:"apache",compressible:false,extensions:["dvi"]},"application/x-envoy":{source:"apache",extensions:["evy"]},"application/x-eva":{source:"apache",extensions:["eva"]},"application/x-font-bdf":{source:"apache",extensions:["bdf"]},"application/x-font-dos":{source:"apache"},"application/x-font-framemaker":{source:"apache"},"application/x-font-ghostscript":{source:"apache",extensions:["gsf"]},"application/x-font-libgrx":{source:"apache"},"application/x-font-linux-psf":{source:"apache",extensions:["psf"]},"application/x-font-pcf":{source:"apache",extensions:["pcf"]},"application/x-font-snf":{source:"apache",extensions:["snf"]},"application/x-font-speedo":{source:"apache"},"application/x-font-sunos-news":{source:"apache"},"application/x-font-type1":{source:"apache",extensions:["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{source:"apache"},"application/x-freearc":{source:"apache",extensions:["arc"]},"application/x-futuresplash":{source:"apache",extensions:["spl"]},"application/x-gca-compressed":{source:"apache",extensions:["gca"]},"application/x-glulx":{source:"apache",extensions:["ulx"]},"application/x-gnumeric":{source:"apache",extensions:["gnumeric"]},"application/x-gramps-xml":{source:"apache",extensions:["gramps"]},"application/x-gtar":{source:"apache",extensions:["gtar"]},"application/x-gzip":{source:"apache"},"application/x-hdf":{source:"apache",extensions:["hdf"]},"application/x-httpd-php":{compressible:true,extensions:["php"]},"application/x-install-instructions":{source:"apache",extensions:["install"]},"application/x-iso9660-image":{source:"apache",extensions:["iso"]},"application/x-java-archive-diff":{source:"nginx",extensions:["jardiff"]},"application/x-java-jnlp-file":{source:"apache",compressible:false,extensions:["jnlp"]},"application/x-javascript":{compressible:true},"application/x-keepass2":{extensions:["kdbx"]},"application/x-latex":{source:"apache",compressible:false,extensions:["latex"]},"application/x-lua-bytecode":{extensions:["luac"]},"application/x-lzh-compressed":{source:"apache",extensions:["lzh","lha"]},"application/x-makeself":{source:"nginx",extensions:["run"]},"application/x-mie":{source:"apache",extensions:["mie"]},"application/x-mobipocket-ebook":{source:"apache",extensions:["prc","mobi"]},"application/x-mpegurl":{compressible:false},"application/x-ms-application":{source:"apache",extensions:["application"]},"application/x-ms-shortcut":{source:"apache",extensions:["lnk"]},"application/x-ms-wmd":{source:"apache",extensions:["wmd"]},"application/x-ms-wmz":{source:"apache",extensions:["wmz"]},"application/x-ms-xbap":{source:"apache",extensions:["xbap"]},"application/x-msaccess":{source:"apache",extensions:["mdb"]},"application/x-msbinder":{source:"apache",extensions:["obd"]},"application/x-mscardfile":{source:"apache",extensions:["crd"]},"application/x-msclip":{source:"apache",extensions:["clp"]},"application/x-msdos-program":{extensions:["exe"]},"application/x-msdownload":{source:"apache",extensions:["exe","dll","com","bat","msi"]},"application/x-msmediaview":{source:"apache",extensions:["mvb","m13","m14"]},"application/x-msmetafile":{source:"apache",extensions:["wmf","wmz","emf","emz"]},"application/x-msmoney":{source:"apache",extensions:["mny"]},"application/x-mspublisher":{source:"apache",extensions:["pub"]},"application/x-msschedule":{source:"apache",extensions:["scd"]},"application/x-msterminal":{source:"apache",extensions:["trm"]},"application/x-mswrite":{source:"apache",extensions:["wri"]},"application/x-netcdf":{source:"apache",extensions:["nc","cdf"]},"application/x-ns-proxy-autoconfig":{compressible:true,extensions:["pac"]},"application/x-nzb":{source:"apache",extensions:["nzb"]},"application/x-perl":{source:"nginx",extensions:["pl","pm"]},"application/x-pilot":{source:"nginx",extensions:["prc","pdb"]},"application/x-pkcs12":{source:"apache",compressible:false,extensions:["p12","pfx"]},"application/x-pkcs7-certificates":{source:"apache",extensions:["p7b","spc"]},"application/x-pkcs7-certreqresp":{source:"apache",extensions:["p7r"]},"application/x-pki-message":{source:"iana"},"application/x-rar-compressed":{source:"apache",compressible:false,extensions:["rar"]},"application/x-redhat-package-manager":{source:"nginx",extensions:["rpm"]},"application/x-research-info-systems":{source:"apache",extensions:["ris"]},"application/x-sea":{source:"nginx",extensions:["sea"]},"application/x-sh":{source:"apache",compressible:true,extensions:["sh"]},"application/x-shar":{source:"apache",extensions:["shar"]},"application/x-shockwave-flash":{source:"apache",compressible:false,extensions:["swf"]},"application/x-silverlight-app":{source:"apache",extensions:["xap"]},"application/x-sql":{source:"apache",extensions:["sql"]},"application/x-stuffit":{source:"apache",compressible:false,extensions:["sit"]},"application/x-stuffitx":{source:"apache",extensions:["sitx"]},"application/x-subrip":{source:"apache",extensions:["srt"]},"application/x-sv4cpio":{source:"apache",extensions:["sv4cpio"]},"application/x-sv4crc":{source:"apache",extensions:["sv4crc"]},"application/x-t3vm-image":{source:"apache",extensions:["t3"]},"application/x-tads":{source:"apache",extensions:["gam"]},"application/x-tar":{source:"apache",compressible:true,extensions:["tar"]},"application/x-tcl":{source:"apache",extensions:["tcl","tk"]},"application/x-tex":{source:"apache",extensions:["tex"]},"application/x-tex-tfm":{source:"apache",extensions:["tfm"]},"application/x-texinfo":{source:"apache",extensions:["texinfo","texi"]},"application/x-tgif":{source:"apache",extensions:["obj"]},"application/x-ustar":{source:"apache",extensions:["ustar"]},"application/x-virtualbox-hdd":{compressible:true,extensions:["hdd"]},"application/x-virtualbox-ova":{compressible:true,extensions:["ova"]},"application/x-virtualbox-ovf":{compressible:true,extensions:["ovf"]},"application/x-virtualbox-vbox":{compressible:true,extensions:["vbox"]},"application/x-virtualbox-vbox-extpack":{compressible:false,extensions:["vbox-extpack"]},"application/x-virtualbox-vdi":{compressible:true,extensions:["vdi"]},"application/x-virtualbox-vhd":{compressible:true,extensions:["vhd"]},"application/x-virtualbox-vmdk":{compressible:true,extensions:["vmdk"]},"application/x-wais-source":{source:"apache",extensions:["src"]},"application/x-web-app-manifest+json":{compressible:true,extensions:["webapp"]},"application/x-www-form-urlencoded":{source:"iana",compressible:true},"application/x-x509-ca-cert":{source:"iana",extensions:["der","crt","pem"]},"application/x-x509-ca-ra-cert":{source:"iana"},"application/x-x509-next-ca-cert":{source:"iana"},"application/x-xfig":{source:"apache",extensions:["fig"]},"application/x-xliff+xml":{source:"apache",compressible:true,extensions:["xlf"]},"application/x-xpinstall":{source:"apache",compressible:false,extensions:["xpi"]},"application/x-xz":{source:"apache",extensions:["xz"]},"application/x-zmachine":{source:"apache",extensions:["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{source:"iana"},"application/xacml+xml":{source:"iana",compressible:true},"application/xaml+xml":{source:"apache",compressible:true,extensions:["xaml"]},"application/xcap-att+xml":{source:"iana",compressible:true,extensions:["xav"]},"application/xcap-caps+xml":{source:"iana",compressible:true,extensions:["xca"]},"application/xcap-diff+xml":{source:"iana",compressible:true,extensions:["xdf"]},"application/xcap-el+xml":{source:"iana",compressible:true,extensions:["xel"]},"application/xcap-error+xml":{source:"iana",compressible:true,extensions:["xer"]},"application/xcap-ns+xml":{source:"iana",compressible:true,extensions:["xns"]},"application/xcon-conference-info+xml":{source:"iana",compressible:true},"application/xcon-conference-info-diff+xml":{source:"iana",compressible:true},"application/xenc+xml":{source:"iana",compressible:true,extensions:["xenc"]},"application/xhtml+xml":{source:"iana",compressible:true,extensions:["xhtml","xht"]},"application/xhtml-voice+xml":{source:"apache",compressible:true},"application/xliff+xml":{source:"iana",compressible:true,extensions:["xlf"]},"application/xml":{source:"iana",compressible:true,extensions:["xml","xsl","xsd","rng"]},"application/xml-dtd":{source:"iana",compressible:true,extensions:["dtd"]},"application/xml-external-parsed-entity":{source:"iana"},"application/xml-patch+xml":{source:"iana",compressible:true},"application/xmpp+xml":{source:"iana",compressible:true},"application/xop+xml":{source:"iana",compressible:true,extensions:["xop"]},"application/xproc+xml":{source:"apache",compressible:true,extensions:["xpl"]},"application/xslt+xml":{source:"iana",compressible:true,extensions:["xslt"]},"application/xspf+xml":{source:"apache",compressible:true,extensions:["xspf"]},"application/xv+xml":{source:"iana",compressible:true,extensions:["mxml","xhvml","xvml","xvm"]},"application/yang":{source:"iana",extensions:["yang"]},"application/yang-data+json":{source:"iana",compressible:true},"application/yang-data+xml":{source:"iana",compressible:true},"application/yang-patch+json":{source:"iana",compressible:true},"application/yang-patch+xml":{source:"iana",compressible:true},"application/yin+xml":{source:"iana",compressible:true,extensions:["yin"]},"application/zip":{source:"iana",compressible:false,extensions:["zip"]},"application/zlib":{source:"iana"},"application/zstd":{source:"iana"},"audio/1d-interleaved-parityfec":{source:"iana"},"audio/32kadpcm":{source:"iana"},"audio/3gpp":{source:"iana",compressible:false,extensions:["3gpp"]},"audio/3gpp2":{source:"iana"},"audio/aac":{source:"iana"},"audio/ac3":{source:"iana"},"audio/adpcm":{source:"apache",extensions:["adp"]},"audio/amr":{source:"iana"},"audio/amr-wb":{source:"iana"},"audio/amr-wb+":{source:"iana"},"audio/aptx":{source:"iana"},"audio/asc":{source:"iana"},"audio/atrac-advanced-lossless":{source:"iana"},"audio/atrac-x":{source:"iana"},"audio/atrac3":{source:"iana"},"audio/basic":{source:"iana",compressible:false,extensions:["au","snd"]},"audio/bv16":{source:"iana"},"audio/bv32":{source:"iana"},"audio/clearmode":{source:"iana"},"audio/cn":{source:"iana"},"audio/dat12":{source:"iana"},"audio/dls":{source:"iana"},"audio/dsr-es201108":{source:"iana"},"audio/dsr-es202050":{source:"iana"},"audio/dsr-es202211":{source:"iana"},"audio/dsr-es202212":{source:"iana"},"audio/dv":{source:"iana"},"audio/dvi4":{source:"iana"},"audio/eac3":{source:"iana"},"audio/encaprtp":{source:"iana"},"audio/evrc":{source:"iana"},"audio/evrc-qcp":{source:"iana"},"audio/evrc0":{source:"iana"},"audio/evrc1":{source:"iana"},"audio/evrcb":{source:"iana"},"audio/evrcb0":{source:"iana"},"audio/evrcb1":{source:"iana"},"audio/evrcnw":{source:"iana"},"audio/evrcnw0":{source:"iana"},"audio/evrcnw1":{source:"iana"},"audio/evrcwb":{source:"iana"},"audio/evrcwb0":{source:"iana"},"audio/evrcwb1":{source:"iana"},"audio/evs":{source:"iana"},"audio/flexfec":{source:"iana"},"audio/fwdred":{source:"iana"},"audio/g711-0":{source:"iana"},"audio/g719":{source:"iana"},"audio/g722":{source:"iana"},"audio/g7221":{source:"iana"},"audio/g723":{source:"iana"},"audio/g726-16":{source:"iana"},"audio/g726-24":{source:"iana"},"audio/g726-32":{source:"iana"},"audio/g726-40":{source:"iana"},"audio/g728":{source:"iana"},"audio/g729":{source:"iana"},"audio/g7291":{source:"iana"},"audio/g729d":{source:"iana"},"audio/g729e":{source:"iana"},"audio/gsm":{source:"iana"},"audio/gsm-efr":{source:"iana"},"audio/gsm-hr-08":{source:"iana"},"audio/ilbc":{source:"iana"},"audio/ip-mr_v2.5":{source:"iana"},"audio/isac":{source:"apache"},"audio/l16":{source:"iana"},"audio/l20":{source:"iana"},"audio/l24":{source:"iana",compressible:false},"audio/l8":{source:"iana"},"audio/lpc":{source:"iana"},"audio/melp":{source:"iana"},"audio/melp1200":{source:"iana"},"audio/melp2400":{source:"iana"},"audio/melp600":{source:"iana"},"audio/mhas":{source:"iana"},"audio/midi":{source:"apache",extensions:["mid","midi","kar","rmi"]},"audio/mobile-xmf":{source:"iana",extensions:["mxmf"]},"audio/mp3":{compressible:false,extensions:["mp3"]},"audio/mp4":{source:"iana",compressible:false,extensions:["m4a","mp4a"]},"audio/mp4a-latm":{source:"iana"},"audio/mpa":{source:"iana"},"audio/mpa-robust":{source:"iana"},"audio/mpeg":{source:"iana",compressible:false,extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{source:"iana"},"audio/musepack":{source:"apache"},"audio/ogg":{source:"iana",compressible:false,extensions:["oga","ogg","spx"]},"audio/opus":{source:"iana"},"audio/parityfec":{source:"iana"},"audio/pcma":{source:"iana"},"audio/pcma-wb":{source:"iana"},"audio/pcmu":{source:"iana"},"audio/pcmu-wb":{source:"iana"},"audio/prs.sid":{source:"iana"},"audio/qcelp":{source:"iana"},"audio/raptorfec":{source:"iana"},"audio/red":{source:"iana"},"audio/rtp-enc-aescm128":{source:"iana"},"audio/rtp-midi":{source:"iana"},"audio/rtploopback":{source:"iana"},"audio/rtx":{source:"iana"},"audio/s3m":{source:"apache",extensions:["s3m"]},"audio/silk":{source:"apache",extensions:["sil"]},"audio/smv":{source:"iana"},"audio/smv-qcp":{source:"iana"},"audio/smv0":{source:"iana"},"audio/sp-midi":{source:"iana"},"audio/speex":{source:"iana"},"audio/t140c":{source:"iana"},"audio/t38":{source:"iana"},"audio/telephone-event":{source:"iana"},"audio/tetra_acelp":{source:"iana"},"audio/tetra_acelp_bb":{source:"iana"},"audio/tone":{source:"iana"},"audio/uemclip":{source:"iana"},"audio/ulpfec":{source:"iana"},"audio/usac":{source:"iana"},"audio/vdvi":{source:"iana"},"audio/vmr-wb":{source:"iana"},"audio/vnd.3gpp.iufp":{source:"iana"},"audio/vnd.4sb":{source:"iana"},"audio/vnd.audiokoz":{source:"iana"},"audio/vnd.celp":{source:"iana"},"audio/vnd.cisco.nse":{source:"iana"},"audio/vnd.cmles.radio-events":{source:"iana"},"audio/vnd.cns.anp1":{source:"iana"},"audio/vnd.cns.inf1":{source:"iana"},"audio/vnd.dece.audio":{source:"iana",extensions:["uva","uvva"]},"audio/vnd.digital-winds":{source:"iana",extensions:["eol"]},"audio/vnd.dlna.adts":{source:"iana"},"audio/vnd.dolby.heaac.1":{source:"iana"},"audio/vnd.dolby.heaac.2":{source:"iana"},"audio/vnd.dolby.mlp":{source:"iana"},"audio/vnd.dolby.mps":{source:"iana"},"audio/vnd.dolby.pl2":{source:"iana"},"audio/vnd.dolby.pl2x":{source:"iana"},"audio/vnd.dolby.pl2z":{source:"iana"},"audio/vnd.dolby.pulse.1":{source:"iana"},"audio/vnd.dra":{source:"iana",extensions:["dra"]},"audio/vnd.dts":{source:"iana",extensions:["dts"]},"audio/vnd.dts.hd":{source:"iana",extensions:["dtshd"]},"audio/vnd.dts.uhd":{source:"iana"},"audio/vnd.dvb.file":{source:"iana"},"audio/vnd.everad.plj":{source:"iana"},"audio/vnd.hns.audio":{source:"iana"},"audio/vnd.lucent.voice":{source:"iana",extensions:["lvp"]},"audio/vnd.ms-playready.media.pya":{source:"iana",extensions:["pya"]},"audio/vnd.nokia.mobile-xmf":{source:"iana"},"audio/vnd.nortel.vbk":{source:"iana"},"audio/vnd.nuera.ecelp4800":{source:"iana",extensions:["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{source:"iana",extensions:["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{source:"iana",extensions:["ecelp9600"]},"audio/vnd.octel.sbc":{source:"iana"},"audio/vnd.presonus.multitrack":{source:"iana"},"audio/vnd.qcelp":{source:"iana"},"audio/vnd.rhetorex.32kadpcm":{source:"iana"},"audio/vnd.rip":{source:"iana",extensions:["rip"]},"audio/vnd.rn-realaudio":{compressible:false},"audio/vnd.sealedmedia.softseal.mpeg":{source:"iana"},"audio/vnd.vmx.cvsd":{source:"iana"},"audio/vnd.wave":{compressible:false},"audio/vorbis":{source:"iana",compressible:false},"audio/vorbis-config":{source:"iana"},"audio/wav":{compressible:false,extensions:["wav"]},"audio/wave":{compressible:false,extensions:["wav"]},"audio/webm":{source:"apache",compressible:false,extensions:["weba"]},"audio/x-aac":{source:"apache",compressible:false,extensions:["aac"]},"audio/x-aiff":{source:"apache",extensions:["aif","aiff","aifc"]},"audio/x-caf":{source:"apache",compressible:false,extensions:["caf"]},"audio/x-flac":{source:"apache",extensions:["flac"]},"audio/x-m4a":{source:"nginx",extensions:["m4a"]},"audio/x-matroska":{source:"apache",extensions:["mka"]},"audio/x-mpegurl":{source:"apache",extensions:["m3u"]},"audio/x-ms-wax":{source:"apache",extensions:["wax"]},"audio/x-ms-wma":{source:"apache",extensions:["wma"]},"audio/x-pn-realaudio":{source:"apache",extensions:["ram","ra"]},"audio/x-pn-realaudio-plugin":{source:"apache",extensions:["rmp"]},"audio/x-realaudio":{source:"nginx",extensions:["ra"]},"audio/x-tta":{source:"apache"},"audio/x-wav":{source:"apache",extensions:["wav"]},"audio/xm":{source:"apache",extensions:["xm"]},"chemical/x-cdx":{source:"apache",extensions:["cdx"]},"chemical/x-cif":{source:"apache",extensions:["cif"]},"chemical/x-cmdf":{source:"apache",extensions:["cmdf"]},"chemical/x-cml":{source:"apache",extensions:["cml"]},"chemical/x-csml":{source:"apache",extensions:["csml"]},"chemical/x-pdb":{source:"apache"},"chemical/x-xyz":{source:"apache",extensions:["xyz"]},"font/collection":{source:"iana",extensions:["ttc"]},"font/otf":{source:"iana",compressible:true,extensions:["otf"]},"font/sfnt":{source:"iana"},"font/ttf":{source:"iana",compressible:true,extensions:["ttf"]},"font/woff":{source:"iana",extensions:["woff"]},"font/woff2":{source:"iana",extensions:["woff2"]},"image/aces":{source:"iana",extensions:["exr"]},"image/apng":{compressible:false,extensions:["apng"]},"image/avci":{source:"iana"},"image/avcs":{source:"iana"},"image/bmp":{source:"iana",compressible:true,extensions:["bmp"]},"image/cgm":{source:"iana",extensions:["cgm"]},"image/dicom-rle":{source:"iana",extensions:["drle"]},"image/emf":{source:"iana",extensions:["emf"]},"image/fits":{source:"iana",extensions:["fits"]},"image/g3fax":{source:"iana",extensions:["g3"]},"image/gif":{source:"iana",compressible:false,extensions:["gif"]},"image/heic":{source:"iana",extensions:["heic"]},"image/heic-sequence":{source:"iana",extensions:["heics"]},"image/heif":{source:"iana",extensions:["heif"]},"image/heif-sequence":{source:"iana",extensions:["heifs"]},"image/hej2k":{source:"iana",extensions:["hej2"]},"image/hsj2":{source:"iana",extensions:["hsj2"]},"image/ief":{source:"iana",extensions:["ief"]},"image/jls":{source:"iana",extensions:["jls"]},"image/jp2":{source:"iana",compressible:false,extensions:["jp2","jpg2"]},"image/jpeg":{source:"iana",compressible:false,extensions:["jpeg","jpg","jpe"]},"image/jph":{source:"iana",extensions:["jph"]},"image/jphc":{source:"iana",extensions:["jhc"]},"image/jpm":{source:"iana",compressible:false,extensions:["jpm"]},"image/jpx":{source:"iana",compressible:false,extensions:["jpx","jpf"]},"image/jxr":{source:"iana",extensions:["jxr"]},"image/jxra":{source:"iana",extensions:["jxra"]},"image/jxrs":{source:"iana",extensions:["jxrs"]},"image/jxs":{source:"iana",extensions:["jxs"]},"image/jxsc":{source:"iana",extensions:["jxsc"]},"image/jxsi":{source:"iana",extensions:["jxsi"]},"image/jxss":{source:"iana",extensions:["jxss"]},"image/ktx":{source:"iana",extensions:["ktx"]},"image/naplps":{source:"iana"},"image/pjpeg":{compressible:false},"image/png":{source:"iana",compressible:false,extensions:["png"]},"image/prs.btif":{source:"iana",extensions:["btif"]},"image/prs.pti":{source:"iana",extensions:["pti"]},"image/pwg-raster":{source:"iana"},"image/sgi":{source:"apache",extensions:["sgi"]},"image/svg+xml":{source:"iana",compressible:true,extensions:["svg","svgz"]},"image/t38":{source:"iana",extensions:["t38"]},"image/tiff":{source:"iana",compressible:false,extensions:["tif","tiff"]},"image/tiff-fx":{source:"iana",extensions:["tfx"]},"image/vnd.adobe.photoshop":{source:"iana",compressible:true,extensions:["psd"]},"image/vnd.airzip.accelerator.azv":{source:"iana",extensions:["azv"]},"image/vnd.cns.inf2":{source:"iana"},"image/vnd.dece.graphic":{source:"iana",extensions:["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{source:"iana",extensions:["djvu","djv"]},"image/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"image/vnd.dwg":{source:"iana",extensions:["dwg"]},"image/vnd.dxf":{source:"iana",extensions:["dxf"]},"image/vnd.fastbidsheet":{source:"iana",extensions:["fbs"]},"image/vnd.fpx":{source:"iana",extensions:["fpx"]},"image/vnd.fst":{source:"iana",extensions:["fst"]},"image/vnd.fujixerox.edmics-mmr":{source:"iana",extensions:["mmr"]},"image/vnd.fujixerox.edmics-rlc":{source:"iana",extensions:["rlc"]},"image/vnd.globalgraphics.pgb":{source:"iana"},"image/vnd.microsoft.icon":{source:"iana",extensions:["ico"]},"image/vnd.mix":{source:"iana"},"image/vnd.mozilla.apng":{source:"iana"},"image/vnd.ms-dds":{extensions:["dds"]},"image/vnd.ms-modi":{source:"iana",extensions:["mdi"]},"image/vnd.ms-photo":{source:"apache",extensions:["wdp"]},"image/vnd.net-fpx":{source:"iana",extensions:["npx"]},"image/vnd.radiance":{source:"iana"},"image/vnd.sealed.png":{source:"iana"},"image/vnd.sealedmedia.softseal.gif":{source:"iana"},"image/vnd.sealedmedia.softseal.jpg":{source:"iana"},"image/vnd.svf":{source:"iana"},"image/vnd.tencent.tap":{source:"iana",extensions:["tap"]},"image/vnd.valve.source.texture":{source:"iana",extensions:["vtf"]},"image/vnd.wap.wbmp":{source:"iana",extensions:["wbmp"]},"image/vnd.xiff":{source:"iana",extensions:["xif"]},"image/vnd.zbrush.pcx":{source:"iana",extensions:["pcx"]},"image/webp":{source:"apache",extensions:["webp"]},"image/wmf":{source:"iana",extensions:["wmf"]},"image/x-3ds":{source:"apache",extensions:["3ds"]},"image/x-cmu-raster":{source:"apache",extensions:["ras"]},"image/x-cmx":{source:"apache",extensions:["cmx"]},"image/x-freehand":{source:"apache",extensions:["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{source:"apache",compressible:true,extensions:["ico"]},"image/x-jng":{source:"nginx",extensions:["jng"]},"image/x-mrsid-image":{source:"apache",extensions:["sid"]},"image/x-ms-bmp":{source:"nginx",compressible:true,extensions:["bmp"]},"image/x-pcx":{source:"apache",extensions:["pcx"]},"image/x-pict":{source:"apache",extensions:["pic","pct"]},"image/x-portable-anymap":{source:"apache",extensions:["pnm"]},"image/x-portable-bitmap":{source:"apache",extensions:["pbm"]},"image/x-portable-graymap":{source:"apache",extensions:["pgm"]},"image/x-portable-pixmap":{source:"apache",extensions:["ppm"]},"image/x-rgb":{source:"apache",extensions:["rgb"]},"image/x-tga":{source:"apache",extensions:["tga"]},"image/x-xbitmap":{source:"apache",extensions:["xbm"]},"image/x-xcf":{compressible:false},"image/x-xpixmap":{source:"apache",extensions:["xpm"]},"image/x-xwindowdump":{source:"apache",extensions:["xwd"]},"message/cpim":{source:"iana"},"message/delivery-status":{source:"iana"},"message/disposition-notification":{source:"iana",extensions:["disposition-notification"]},"message/external-body":{source:"iana"},"message/feedback-report":{source:"iana"},"message/global":{source:"iana",extensions:["u8msg"]},"message/global-delivery-status":{source:"iana",extensions:["u8dsn"]},"message/global-disposition-notification":{source:"iana",extensions:["u8mdn"]},"message/global-headers":{source:"iana",extensions:["u8hdr"]},"message/http":{source:"iana",compressible:false},"message/imdn+xml":{source:"iana",compressible:true},"message/news":{source:"iana"},"message/partial":{source:"iana",compressible:false},"message/rfc822":{source:"iana",compressible:true,extensions:["eml","mime"]},"message/s-http":{source:"iana"},"message/sip":{source:"iana"},"message/sipfrag":{source:"iana"},"message/tracking-status":{source:"iana"},"message/vnd.si.simp":{source:"iana"},"message/vnd.wfa.wsc":{source:"iana",extensions:["wsc"]},"model/3mf":{source:"iana",extensions:["3mf"]},"model/gltf+json":{source:"iana",compressible:true,extensions:["gltf"]},"model/gltf-binary":{source:"iana",compressible:true,extensions:["glb"]},"model/iges":{source:"iana",compressible:false,extensions:["igs","iges"]},"model/mesh":{source:"iana",compressible:false,extensions:["msh","mesh","silo"]},"model/mtl":{source:"iana",extensions:["mtl"]},"model/obj":{source:"iana",extensions:["obj"]},"model/stl":{source:"iana",extensions:["stl"]},"model/vnd.collada+xml":{source:"iana",compressible:true,extensions:["dae"]},"model/vnd.dwf":{source:"iana",extensions:["dwf"]},"model/vnd.flatland.3dml":{source:"iana"},"model/vnd.gdl":{source:"iana",extensions:["gdl"]},"model/vnd.gs-gdl":{source:"apache"},"model/vnd.gs.gdl":{source:"iana"},"model/vnd.gtw":{source:"iana",extensions:["gtw"]},"model/vnd.moml+xml":{source:"iana",compressible:true},"model/vnd.mts":{source:"iana",extensions:["mts"]},"model/vnd.opengex":{source:"iana",extensions:["ogex"]},"model/vnd.parasolid.transmit.binary":{source:"iana",extensions:["x_b"]},"model/vnd.parasolid.transmit.text":{source:"iana",extensions:["x_t"]},"model/vnd.rosette.annotated-data-model":{source:"iana"},"model/vnd.usdz+zip":{source:"iana",compressible:false,extensions:["usdz"]},"model/vnd.valve.source.compiled-map":{source:"iana",extensions:["bsp"]},"model/vnd.vtu":{source:"iana",extensions:["vtu"]},"model/vrml":{source:"iana",compressible:false,extensions:["wrl","vrml"]},"model/x3d+binary":{source:"apache",compressible:false,extensions:["x3db","x3dbz"]},"model/x3d+fastinfoset":{source:"iana",extensions:["x3db"]},"model/x3d+vrml":{source:"apache",compressible:false,extensions:["x3dv","x3dvz"]},"model/x3d+xml":{source:"iana",compressible:true,extensions:["x3d","x3dz"]},"model/x3d-vrml":{source:"iana",extensions:["x3dv"]},"multipart/alternative":{source:"iana",compressible:false},"multipart/appledouble":{source:"iana"},"multipart/byteranges":{source:"iana"},"multipart/digest":{source:"iana"},"multipart/encrypted":{source:"iana",compressible:false},"multipart/form-data":{source:"iana",compressible:false},"multipart/header-set":{source:"iana"},"multipart/mixed":{source:"iana"},"multipart/multilingual":{source:"iana"},"multipart/parallel":{source:"iana"},"multipart/related":{source:"iana",compressible:false},"multipart/report":{source:"iana"},"multipart/signed":{source:"iana",compressible:false},"multipart/vnd.bint.med-plus":{source:"iana"},"multipart/voice-message":{source:"iana"},"multipart/x-mixed-replace":{source:"iana"},"text/1d-interleaved-parityfec":{source:"iana"},"text/cache-manifest":{source:"iana",compressible:true,extensions:["appcache","manifest"]},"text/calendar":{source:"iana",extensions:["ics","ifb"]},"text/calender":{compressible:true},"text/cmd":{compressible:true},"text/coffeescript":{extensions:["coffee","litcoffee"]},"text/css":{source:"iana",charset:"UTF-8",compressible:true,extensions:["css"]},"text/csv":{source:"iana",compressible:true,extensions:["csv"]},"text/csv-schema":{source:"iana"},"text/directory":{source:"iana"},"text/dns":{source:"iana"},"text/ecmascript":{source:"iana"},"text/encaprtp":{source:"iana"},"text/enriched":{source:"iana"},"text/flexfec":{source:"iana"},"text/fwdred":{source:"iana"},"text/grammar-ref-list":{source:"iana"},"text/html":{source:"iana",compressible:true,extensions:["html","htm","shtml"]},"text/jade":{extensions:["jade"]},"text/javascript":{source:"iana",compressible:true},"text/jcr-cnd":{source:"iana"},"text/jsx":{compressible:true,extensions:["jsx"]},"text/less":{compressible:true,extensions:["less"]},"text/markdown":{source:"iana",compressible:true,extensions:["markdown","md"]},"text/mathml":{source:"nginx",extensions:["mml"]},"text/mdx":{compressible:true,extensions:["mdx"]},"text/mizar":{source:"iana"},"text/n3":{source:"iana",charset:"UTF-8",compressible:true,extensions:["n3"]},"text/parameters":{source:"iana",charset:"UTF-8"},"text/parityfec":{source:"iana"},"text/plain":{source:"iana",compressible:true,extensions:["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{source:"iana",charset:"UTF-8"},"text/prs.fallenstein.rst":{source:"iana"},"text/prs.lines.tag":{source:"iana",extensions:["dsc"]},"text/prs.prop.logic":{source:"iana"},"text/raptorfec":{source:"iana"},"text/red":{source:"iana"},"text/rfc822-headers":{source:"iana"},"text/richtext":{source:"iana",compressible:true,extensions:["rtx"]},"text/rtf":{source:"iana",compressible:true,extensions:["rtf"]},"text/rtp-enc-aescm128":{source:"iana"},"text/rtploopback":{source:"iana"},"text/rtx":{source:"iana"},"text/sgml":{source:"iana",extensions:["sgml","sgm"]},"text/shex":{extensions:["shex"]},"text/slim":{extensions:["slim","slm"]},"text/strings":{source:"iana"},"text/stylus":{extensions:["stylus","styl"]},"text/t140":{source:"iana"},"text/tab-separated-values":{source:"iana",compressible:true,extensions:["tsv"]},"text/troff":{source:"iana",extensions:["t","tr","roff","man","me","ms"]},"text/turtle":{source:"iana",charset:"UTF-8",extensions:["ttl"]},"text/ulpfec":{source:"iana"},"text/uri-list":{source:"iana",compressible:true,extensions:["uri","uris","urls"]},"text/vcard":{source:"iana",compressible:true,extensions:["vcard"]},"text/vnd.a":{source:"iana"},"text/vnd.abc":{source:"iana"},"text/vnd.ascii-art":{source:"iana"},"text/vnd.curl":{source:"iana",extensions:["curl"]},"text/vnd.curl.dcurl":{source:"apache",extensions:["dcurl"]},"text/vnd.curl.mcurl":{source:"apache",extensions:["mcurl"]},"text/vnd.curl.scurl":{source:"apache",extensions:["scurl"]},"text/vnd.debian.copyright":{source:"iana",charset:"UTF-8"},"text/vnd.dmclientscript":{source:"iana"},"text/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"text/vnd.esmertec.theme-descriptor":{source:"iana",charset:"UTF-8"},"text/vnd.ficlab.flt":{source:"iana"},"text/vnd.fly":{source:"iana",extensions:["fly"]},"text/vnd.fmi.flexstor":{source:"iana",extensions:["flx"]},"text/vnd.gml":{source:"iana"},"text/vnd.graphviz":{source:"iana",extensions:["gv"]},"text/vnd.hgl":{source:"iana"},"text/vnd.in3d.3dml":{source:"iana",extensions:["3dml"]},"text/vnd.in3d.spot":{source:"iana",extensions:["spot"]},"text/vnd.iptc.newsml":{source:"iana"},"text/vnd.iptc.nitf":{source:"iana"},"text/vnd.latex-z":{source:"iana"},"text/vnd.motorola.reflex":{source:"iana"},"text/vnd.ms-mediapackage":{source:"iana"},"text/vnd.net2phone.commcenter.command":{source:"iana"},"text/vnd.radisys.msml-basic-layout":{source:"iana"},"text/vnd.senx.warpscript":{source:"iana"},"text/vnd.si.uricatalogue":{source:"iana"},"text/vnd.sosi":{source:"iana"},"text/vnd.sun.j2me.app-descriptor":{source:"iana",charset:"UTF-8",extensions:["jad"]},"text/vnd.trolltech.linguist":{source:"iana",charset:"UTF-8"},"text/vnd.wap.si":{source:"iana"},"text/vnd.wap.sl":{source:"iana"},"text/vnd.wap.wml":{source:"iana",extensions:["wml"]},"text/vnd.wap.wmlscript":{source:"iana",extensions:["wmls"]},"text/vtt":{source:"iana",charset:"UTF-8",compressible:true,extensions:["vtt"]},"text/x-asm":{source:"apache",extensions:["s","asm"]},"text/x-c":{source:"apache",extensions:["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{source:"nginx",extensions:["htc"]},"text/x-fortran":{source:"apache",extensions:["f","for","f77","f90"]},"text/x-gwt-rpc":{compressible:true},"text/x-handlebars-template":{extensions:["hbs"]},"text/x-java-source":{source:"apache",extensions:["java"]},"text/x-jquery-tmpl":{compressible:true},"text/x-lua":{extensions:["lua"]},"text/x-markdown":{compressible:true,extensions:["mkd"]},"text/x-nfo":{source:"apache",extensions:["nfo"]},"text/x-opml":{source:"apache",extensions:["opml"]},"text/x-org":{compressible:true,extensions:["org"]},"text/x-pascal":{source:"apache",extensions:["p","pas"]},"text/x-processing":{compressible:true,extensions:["pde"]},"text/x-sass":{extensions:["sass"]},"text/x-scss":{extensions:["scss"]},"text/x-setext":{source:"apache",extensions:["etx"]},"text/x-sfv":{source:"apache",extensions:["sfv"]},"text/x-suse-ymp":{compressible:true,extensions:["ymp"]},"text/x-uuencode":{source:"apache",extensions:["uu"]},"text/x-vcalendar":{source:"apache",extensions:["vcs"]},"text/x-vcard":{source:"apache",extensions:["vcf"]},"text/xml":{source:"iana",compressible:true,extensions:["xml"]},"text/xml-external-parsed-entity":{source:"iana"},"text/yaml":{extensions:["yaml","yml"]},"video/1d-interleaved-parityfec":{source:"iana"},"video/3gpp":{source:"iana",extensions:["3gp","3gpp"]},"video/3gpp-tt":{source:"iana"},"video/3gpp2":{source:"iana",extensions:["3g2"]},"video/bmpeg":{source:"iana"},"video/bt656":{source:"iana"},"video/celb":{source:"iana"},"video/dv":{source:"iana"},"video/encaprtp":{source:"iana"},"video/flexfec":{source:"iana"},"video/h261":{source:"iana",extensions:["h261"]},"video/h263":{source:"iana",extensions:["h263"]},"video/h263-1998":{source:"iana"},"video/h263-2000":{source:"iana"},"video/h264":{source:"iana",extensions:["h264"]},"video/h264-rcdo":{source:"iana"},"video/h264-svc":{source:"iana"},"video/h265":{source:"iana"},"video/iso.segment":{source:"iana"},"video/jpeg":{source:"iana",extensions:["jpgv"]},"video/jpeg2000":{source:"iana"},"video/jpm":{source:"apache",extensions:["jpm","jpgm"]},"video/mj2":{source:"iana",extensions:["mj2","mjp2"]},"video/mp1s":{source:"iana"},"video/mp2p":{source:"iana"},"video/mp2t":{source:"iana",extensions:["ts"]},"video/mp4":{source:"iana",compressible:false,extensions:["mp4","mp4v","mpg4"]},"video/mp4v-es":{source:"iana"},"video/mpeg":{source:"iana",compressible:false,extensions:["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{source:"iana"},"video/mpv":{source:"iana"},"video/nv":{source:"iana"},"video/ogg":{source:"iana",compressible:false,extensions:["ogv"]},"video/parityfec":{source:"iana"},"video/pointer":{source:"iana"},"video/quicktime":{source:"iana",compressible:false,extensions:["qt","mov"]},"video/raptorfec":{source:"iana"},"video/raw":{source:"iana"},"video/rtp-enc-aescm128":{source:"iana"},"video/rtploopback":{source:"iana"},"video/rtx":{source:"iana"},"video/smpte291":{source:"iana"},"video/smpte292m":{source:"iana"},"video/ulpfec":{source:"iana"},"video/vc1":{source:"iana"},"video/vc2":{source:"iana"},"video/vnd.cctv":{source:"iana"},"video/vnd.dece.hd":{source:"iana",extensions:["uvh","uvvh"]},"video/vnd.dece.mobile":{source:"iana",extensions:["uvm","uvvm"]},"video/vnd.dece.mp4":{source:"iana"},"video/vnd.dece.pd":{source:"iana",extensions:["uvp","uvvp"]},"video/vnd.dece.sd":{source:"iana",extensions:["uvs","uvvs"]},"video/vnd.dece.video":{source:"iana",extensions:["uvv","uvvv"]},"video/vnd.directv.mpeg":{source:"iana"},"video/vnd.directv.mpeg-tts":{source:"iana"},"video/vnd.dlna.mpeg-tts":{source:"iana"},"video/vnd.dvb.file":{source:"iana",extensions:["dvb"]},"video/vnd.fvt":{source:"iana",extensions:["fvt"]},"video/vnd.hns.video":{source:"iana"},"video/vnd.iptvforum.1dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.1dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.2dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.2dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.ttsavc":{source:"iana"},"video/vnd.iptvforum.ttsmpeg2":{source:"iana"},"video/vnd.motorola.video":{source:"iana"},"video/vnd.motorola.videop":{source:"iana"},"video/vnd.mpegurl":{source:"iana",extensions:["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{source:"iana",extensions:["pyv"]},"video/vnd.nokia.interleaved-multimedia":{source:"iana"},"video/vnd.nokia.mp4vr":{source:"iana"},"video/vnd.nokia.videovoip":{source:"iana"},"video/vnd.objectvideo":{source:"iana"},"video/vnd.radgamettools.bink":{source:"iana"},"video/vnd.radgamettools.smacker":{source:"iana"},"video/vnd.sealed.mpeg1":{source:"iana"},"video/vnd.sealed.mpeg4":{source:"iana"},"video/vnd.sealed.swf":{source:"iana"},"video/vnd.sealedmedia.softseal.mov":{source:"iana"},"video/vnd.uvvu.mp4":{source:"iana",extensions:["uvu","uvvu"]},"video/vnd.vivo":{source:"iana",extensions:["viv"]},"video/vnd.youtube.yt":{source:"iana"},"video/vp8":{source:"iana"},"video/webm":{source:"apache",compressible:false,extensions:["webm"]},"video/x-f4v":{source:"apache",extensions:["f4v"]},"video/x-fli":{source:"apache",extensions:["fli"]},"video/x-flv":{source:"apache",compressible:false,extensions:["flv"]},"video/x-m4v":{source:"apache",extensions:["m4v"]},"video/x-matroska":{source:"apache",compressible:false,extensions:["mkv","mk3d","mks"]},"video/x-mng":{source:"apache",extensions:["mng"]},"video/x-ms-asf":{source:"apache",extensions:["asf","asx"]},"video/x-ms-vob":{source:"apache",extensions:["vob"]},"video/x-ms-wm":{source:"apache",extensions:["wm"]},"video/x-ms-wmv":{source:"apache",compressible:false,extensions:["wmv"]},"video/x-ms-wmx":{source:"apache",extensions:["wmx"]},"video/x-ms-wvx":{source:"apache",extensions:["wvx"]},"video/x-msvideo":{source:"apache",extensions:["avi"]},"video/x-sgi-movie":{source:"apache",extensions:["movie"]},"video/x-smv":{source:"apache",extensions:["smv"]},"x-conference/x-cooltalk":{source:"apache",extensions:["ice"]},"x-shader/x-fragment":{compressible:true},"x-shader/x-vertex":{compressible:true}}},,function(e,t,i){"use strict";var n=i(805),a=i(862),r=i(366),s=i(955),o=i(156),u=i(881),l=i(496),c=i(628),d=i(855);e.exports=Ajv;Ajv.prototype.validate=validate;Ajv.prototype.compile=compile;Ajv.prototype.addSchema=addSchema;Ajv.prototype.addMetaSchema=addMetaSchema;Ajv.prototype.validateSchema=validateSchema;Ajv.prototype.getSchema=getSchema;Ajv.prototype.removeSchema=removeSchema;Ajv.prototype.addFormat=addFormat;Ajv.prototype.errorsText=errorsText;Ajv.prototype._addSchema=_addSchema;Ajv.prototype._compile=_compile;Ajv.prototype.compileAsync=i(559);var p=i(45);Ajv.prototype.addKeyword=p.add;Ajv.prototype.getKeyword=p.get;Ajv.prototype.removeKeyword=p.remove;Ajv.prototype.validateKeyword=p.validate;var f=i(844);Ajv.ValidationError=f.Validation;Ajv.MissingRefError=f.MissingRef;Ajv.$dataMetaSchema=c;var h="http://json-schema.org/draft-07/schema";var m=["removeAdditional","useDefaults","coerceTypes","strictDefaults"];var b=["/properties"];function Ajv(e){if(!(this instanceof Ajv))return new Ajv(e);e=this._opts=d.copy(e)||{};setLogger(this);this._schemas={};this._refs={};this._fragments={};this._formats=u(e.format);this._cache=e.cache||new r;this._loadingSchemas={};this._compilations=[];this.RULES=l();this._getId=chooseGetId(e);e.loopRequired=e.loopRequired||Infinity;if(e.errorDataPath=="property")e._errorDataPathProperty=true;if(e.serialize===undefined)e.serialize=o;this._metaOpts=getMetaSchemaOptions(this);if(e.formats)addInitialFormats(this);if(e.keywords)addInitialKeywords(this);addDefaultMetaSchema(this);if(typeof e.meta=="object")this.addMetaSchema(e.meta);if(e.nullable)this.addKeyword("nullable",{metaSchema:{type:"boolean"}});addInitialSchemas(this)}function validate(e,t){var i;if(typeof e=="string"){i=this.getSchema(e);if(!i)throw new Error('no schema with key or ref "'+e+'"')}else{var n=this._addSchema(e);i=n.validate||this._compile(n)}var a=i(t);if(i.$async!==true)this.errors=i.errors;return a}function compile(e,t){var i=this._addSchema(e,undefined,t);return i.validate||this._compile(i)}function addSchema(e,t,i,n){if(Array.isArray(e)){for(var r=0;rtypeof e!=="string"||e.length===0;e.exports.isNotString=t;e.exports.isString=function isString(e,i,n,a,r=false){if(r&&i===undefined){throw new e(`${n} is missing`,a,"missing")}if(i!==undefined&&t(i)){throw new e(`${n} must be a string`,a,"invalid")}}},function(e,t,i){"use strict";var n=i(750);function getPublicSuffix(e){return n.get(e)}t.getPublicSuffix=getPublicSuffix},,,function(e){e.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:true,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:true,readOnly:{type:"boolean",default:false},examples:{type:"array",items:true},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:true},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:false},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:true,enum:{type:"array",items:true,minItems:1,uniqueItems:true},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:true}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:true}},function(e,t,i){"use strict";const{URL:n,URLSearchParams:a}=i(835);const r=i(835);const s=i(534);const o=i(173);const u=i(86);const l=i(435);const c=i(504);const d=i(821);const p=i(433);const f=new Set([413,429,503]);const h=(e,t)=>{if(s.nullOrUndefined(e.headers)){e.headers={}}else{e.headers=u(e.headers)}if(e.baseUrl&&!e.baseUrl.toString().endsWith("/")){e.baseUrl+="/"}if(e.stream){e.json=false}if(s.nullOrUndefined(e.hooks)){e.hooks={}}else if(!s.object(e.hooks)){throw new TypeError(`Parameter \`hooks\` must be an object, not ${s(e.hooks)}`)}for(const i of p){if(s.nullOrUndefined(e.hooks[i])){if(t){e.hooks[i]=[...t.hooks[i]]}else{e.hooks[i]=[]}}}if(s.number(e.timeout)){e.gotTimeout={request:e.timeout}}else if(s.object(e.timeout)){e.gotTimeout=e.timeout}delete e.timeout;const{retry:i}=e;e.retry={retries:0,methods:[],statusCodes:[],errorCodes:[]};if(s.nonEmptyObject(t)&&i!==false){e.retry={...t.retry}}if(i!==false){if(s.number(i)){e.retry.retries=i}else{e.retry={...e.retry,...i}}}if(e.gotTimeout){e.retry.maxRetryAfter=Math.min(...[e.gotTimeout.request,e.gotTimeout.connection].filter(e=>!s.nullOrUndefined(e)))}if(s.array(e.retry.methods)){e.retry.methods=new Set(e.retry.methods.map(e=>e.toUpperCase()))}if(s.array(e.retry.statusCodes)){e.retry.statusCodes=new Set(e.retry.statusCodes)}if(s.array(e.retry.errorCodes)){e.retry.errorCodes=new Set(e.retry.errorCodes)}return e};const m=(e,t,i)=>{if(s.plainObject(e)){t={...e,...t};e=t.url||{};delete t.url}if(i){t=d({},i.options,t?h(t,i.options):{})}else{t=d({},h(t))}if(!s.string(e)&&!s.object(e)){throw new TypeError(`Parameter \`url\` must be a string or object, not ${s(e)}`)}if(s.string(e)){if(t.baseUrl){if(e.toString().startsWith("/")){e=e.toString().slice(1)}e=l(new n(e,t.baseUrl))}else{e=e.replace(/^unix:/,"http://$&");e=o(e)}}else if(s(e)==="URL"){e=l(e)}t=d({path:""},e,{protocol:e.protocol||"https:"},t);for(const e of t.hooks.init){const i=e(t);if(s.promise(i)){throw new TypeError("The `init` hook must be a synchronous function")}}const{baseUrl:r}=t;Object.defineProperty(t,"baseUrl",{set:()=>{throw new Error("Failed to set baseUrl. Options are normalized already.")},get:()=>r});const{query:u}=t;if(s.nonEmptyString(u)||s.nonEmptyObject(u)||u instanceof a){if(!s.string(u)){t.query=new a(u).toString()}t.path=`${t.path.split("?")[0]}?${t.query}`;delete t.query}if(t.hostname==="unix"){const e=/(.+?):(.+)/.exec(t.path);if(e){const[,i,n]=e;t={...t,socketPath:i,path:n,host:null}}}const{headers:p}=t;for(const[e,t]of Object.entries(p)){if(s.nullOrUndefined(t)){delete p[e]}}if(t.json&&s.undefined(p.accept)){p.accept="application/json"}if(t.decompress&&s.undefined(p["accept-encoding"])){p["accept-encoding"]="gzip, deflate"}const{body:m}=t;if(s.nullOrUndefined(m)){t.method=t.method?t.method.toUpperCase():"GET"}else{const e=s.object(m)&&!s.buffer(m)&&!s.nodeStream(m);if(!s.nodeStream(m)&&!s.string(m)&&!s.buffer(m)&&!(t.form||t.json)){throw new TypeError("The `body` option must be a stream.Readable, string or Buffer")}if(t.json&&!(e||s.array(m))){throw new TypeError("The `body` option must be an Object or Array when the `json` option is used")}if(t.form&&!e){throw new TypeError("The `body` option must be an Object when the `form` option is used")}if(c(m)){p["content-type"]=p["content-type"]||`multipart/form-data; boundary=${m.getBoundary()}`}else if(t.form){p["content-type"]=p["content-type"]||"application/x-www-form-urlencoded";t.body=new a(m).toString()}else if(t.json){p["content-type"]=p["content-type"]||"application/json";t.body=JSON.stringify(m)}t.method=t.method?t.method.toUpperCase():"POST"}if(!s.function(t.retry.retries)){const{retries:e}=t.retry;t.retry.retries=((i,n)=>{if(i>e){return 0}if((!n||!t.retry.errorCodes.has(n.code))&&(!t.retry.methods.has(n.method)||!t.retry.statusCodes.has(n.statusCode))){return 0}if(Reflect.has(n,"headers")&&Reflect.has(n.headers,"retry-after")&&f.has(n.statusCode)){let e=Number(n.headers["retry-after"]);if(s.nan(e)){e=Date.parse(n.headers["retry-after"])-Date.now()}else{e*=1e3}if(e>t.retry.maxRetryAfter){return 0}return e}if(n.statusCode===413){return 0}const a=Math.random()*100;return 2**(i-1)*1e3+a})}return t};const b=e=>m(r.format(e),e);e.exports=m;e.exports.preNormalize=h;e.exports.reNormalize=b},,function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=i(422);const a=i(191);const r=i(105);const s=i(131);class Exec{constructor(e,t){if(t){this.handler=t}else{this.handler=new s.WebSocketHandler(e)}}exec(e,t,i,o,u,l,c,d,p){return n.__awaiter(this,void 0,void 0,function*(){const n={stdout:u!=null,stderr:l!=null,stdin:c!=null,tty:d,command:o,container:i};const f=a.stringify(n);const h=`/api/v1/namespaces/${e}/pods/${t}/exec?${f}`;const m=yield this.handler.connect(h,null,(e,t)=>{const i=s.WebSocketHandler.handleStandardStreams(e,t,u,l);if(i!=null){if(p){p(i)}return false}return true});if(c!=null){s.WebSocketHandler.handleStandardInput(m,c,s.WebSocketHandler.StdinStream)}if(r.isResizable(u)){this.terminalSizeQueue=new r.TerminalSizeQueue;s.WebSocketHandler.handleStandardInput(m,this.terminalSizeQueue,s.WebSocketHandler.ResizeStream);this.terminalSizeQueue.handleResizes(u)}return m})}}t.Exec=Exec},,,,,,function(e,t,i){const n=i(462);const a=(e,t,i)=>n(e,t,">",i);e.exports=a},function(e,t,i){e.exports={DiffieHellman:DiffieHellman,generateECDSA:generateECDSA,generateED25519:generateED25519};var n=i(872);var a=i(373);var r=i(215).Buffer;var s=i(98);var o=i(270);var u=i(196);var l=i(852);var c=i(502);var d=a.createECDH!==undefined;var p=i(886);var f=i(729);var h=i(242).BigInteger;function DiffieHellman(e){o.assertCompatible(e,l,[1,4],"key");this._isPriv=c.isPrivateKey(e,[1,3]);this._algo=e.type;this._curve=e.curve;this._key=e;if(e.type==="dsa"){if(!d){throw new Error("Due to bugs in the node 0.10 "+"crypto API, node 0.12.x or later is required "+"to use DH")}this._dh=a.createDiffieHellman(e.part.p.data,undefined,e.part.g.data,undefined);this._p=e.part.p;this._g=e.part.g;if(this._isPriv)this._dh.setPrivateKey(e.part.x.data);this._dh.setPublicKey(e.part.y.data)}else if(e.type==="ecdsa"){if(!d){this._ecParams=new X9ECParameters(this._curve);if(this._isPriv){this._priv=new ECPrivate(this._ecParams,e.part.d.data)}return}var t={nistp256:"prime256v1",nistp384:"secp384r1",nistp521:"secp521r1"}[e.curve];this._dh=a.createECDH(t);if(typeof this._dh!=="object"||typeof this._dh.setPrivateKey!=="function"){d=false;DiffieHellman.call(this,e);return}if(this._isPriv)this._dh.setPrivateKey(e.part.d.data);this._dh.setPublicKey(e.part.Q.data)}else if(e.type==="curve25519"){if(this._isPriv){o.assertCompatible(e,c,[1,5],"key");this._priv=e.part.k.data}}else{throw new Error("DH not supported for "+e.type+" keys")}}DiffieHellman.prototype.getPublicKey=function(){if(this._isPriv)return this._key.toPublic();return this._key};DiffieHellman.prototype.getPrivateKey=function(){if(this._isPriv)return this._key;else return undefined};DiffieHellman.prototype.getKey=DiffieHellman.prototype.getPrivateKey;DiffieHellman.prototype._keyCheck=function(e,t){n.object(e,"key");if(!t)o.assertCompatible(e,c,[1,3],"key");o.assertCompatible(e,l,[1,4],"key");if(e.type!==this._algo){throw new Error("A "+e.type+" key cannot be used in "+this._algo+" Diffie-Hellman")}if(e.curve!==this._curve){throw new Error("A key from the "+e.curve+" curve "+"cannot be used with a "+this._curve+" Diffie-Hellman")}if(e.type==="dsa"){n.deepEqual(e.part.p,this._p,"DSA key prime does not match");n.deepEqual(e.part.g,this._g,"DSA key generator does not match")}};DiffieHellman.prototype.setKey=function(e){this._keyCheck(e);if(e.type==="dsa"){this._dh.setPrivateKey(e.part.x.data);this._dh.setPublicKey(e.part.y.data)}else if(e.type==="ecdsa"){if(d){this._dh.setPrivateKey(e.part.d.data);this._dh.setPublicKey(e.part.Q.data)}else{this._priv=new ECPrivate(this._ecParams,e.part.d.data)}}else if(e.type==="curve25519"){var t=e.part.k;if(!e.part.k)t=e.part.r;this._priv=t.data;if(this._priv[0]===0)this._priv=this._priv.slice(1);this._priv=this._priv.slice(0,32)}this._key=e;this._isPriv=true};DiffieHellman.prototype.setPrivateKey=DiffieHellman.prototype.setKey;DiffieHellman.prototype.computeSecret=function(e){this._keyCheck(e,true);if(!this._isPriv)throw new Error("DH exchange has not been initialized with "+"a private key yet");var t;if(this._algo==="dsa"){return this._dh.computeSecret(e.part.y.data)}else if(this._algo==="ecdsa"){if(d){return this._dh.computeSecret(e.part.Q.data)}else{t=new ECPublic(this._ecParams,e.part.Q.data);return this._priv.deriveSharedSecret(t)}}else if(this._algo==="curve25519"){t=e.part.A.data;while(t[0]===0&&t.length>32)t=t.slice(1);var i=this._priv;n.strictEqual(t.length,32);n.strictEqual(i.length,32);var a=u.box.before(new Uint8Array(t),new Uint8Array(i));return r.from(a)}throw new Error("Invalid algorithm: "+this._algo)};DiffieHellman.prototype.generateKey=function(){var e=[];var t,i;if(this._algo==="dsa"){this._dh.generateKeys();e.push({name:"p",data:this._p.data});e.push({name:"q",data:this._key.part.q.data});e.push({name:"g",data:this._g.data});e.push({name:"y",data:this._dh.getPublicKey()});e.push({name:"x",data:this._dh.getPrivateKey()});this._key=new c({type:"dsa",parts:e});this._isPriv=true;return this._key}else if(this._algo==="ecdsa"){if(d){this._dh.generateKeys();e.push({name:"curve",data:r.from(this._curve)});e.push({name:"Q",data:this._dh.getPublicKey()});e.push({name:"d",data:this._dh.getPrivateKey()});this._key=new c({type:"ecdsa",curve:this._curve,parts:e});this._isPriv=true;return this._key}else{var s=this._ecParams.getN();var o=new h(a.randomBytes(s.bitLength()));var l=s.subtract(h.ONE);t=o.mod(l).add(h.ONE);i=this._ecParams.getG().multiply(t);t=r.from(t.toByteArray());i=r.from(this._ecParams.getCurve().encodePointHex(i),"hex");this._priv=new ECPrivate(this._ecParams,t);e.push({name:"curve",data:r.from(this._curve)});e.push({name:"Q",data:i});e.push({name:"d",data:t});this._key=new c({type:"ecdsa",curve:this._curve,parts:e});this._isPriv=true;return this._key}}else if(this._algo==="curve25519"){var p=u.box.keyPair();t=r.from(p.secretKey);i=r.from(p.publicKey);t=r.concat([t,i]);n.strictEqual(t.length,64);n.strictEqual(i.length,32);e.push({name:"A",data:i});e.push({name:"k",data:t});this._key=new c({type:"curve25519",parts:e});this._isPriv=true;return this._key}throw new Error("Invalid algorithm: "+this._algo)};DiffieHellman.prototype.generateKeys=DiffieHellman.prototype.generateKey;function X9ECParameters(e){var t=s.curves[e];n.object(t);var i=new h(t.p);var a=new h(t.a);var r=new h(t.b);var o=new h(t.n);var u=h.ONE;var l=new f.ECCurveFp(i,a,r);var c=l.decodePointHex(t.G.toString("hex"));this.curve=l;this.g=c;this.n=o;this.h=u}X9ECParameters.prototype.getCurve=function(){return this.curve};X9ECParameters.prototype.getG=function(){return this.g};X9ECParameters.prototype.getN=function(){return this.n};X9ECParameters.prototype.getH=function(){return this.h};function ECPublic(e,t){this._params=e;if(t[0]===0)t=t.slice(1);this._pub=e.getCurve().decodePointHex(t.toString("hex"))}function ECPrivate(e,t){this._params=e;this._priv=new h(o.mpNormalize(t))}ECPrivate.prototype.deriveSharedSecret=function(e){n.ok(e instanceof ECPublic);var t=e._pub.multiply(this._priv);return r.from(t.getX().toBigInteger().toByteArray())};function generateED25519(){var e=u.sign.keyPair();var t=r.from(e.secretKey);var i=r.from(e.publicKey);n.strictEqual(t.length,64);n.strictEqual(i.length,32);var a=[];a.push({name:"A",data:i});a.push({name:"k",data:t.slice(0,32)});var s=new c({type:"ed25519",parts:a});return s}function generateECDSA(e){var t=[];var i;if(d){var n={nistp256:"prime256v1",nistp384:"secp384r1",nistp521:"secp521r1"}[e];var s=a.createECDH(n);s.generateKeys();t.push({name:"curve",data:r.from(e)});t.push({name:"Q",data:s.getPublicKey()});t.push({name:"d",data:s.getPrivateKey()});i=new c({type:"ecdsa",curve:e,parts:t});return i}else{var o=new X9ECParameters(e);var u=o.getN();var l=Math.ceil((u.bitLength()+64)/8);var p=new h(a.randomBytes(l));var f=u.subtract(h.ONE);var m=p.mod(f).add(h.ONE);var b=o.getG().multiply(m);m=r.from(m.toByteArray());b=r.from(o.getCurve().encodePointHex(b),"hex");t.push({name:"curve",data:r.from(e)});t.push({name:"Q",data:b});t.push({name:"d",data:m});i=new c({type:"ecdsa",curve:e,parts:t});return i}}},function(e,t,i){const{pbkdf2Sync:n,randomBytes:a}=i(373);const{KEYOBJECT:r}=i(771);const s=i(208);const o=16;const u=Buffer.alloc(1,0);const l=(e,t)=>{return Buffer.concat([Buffer.from(e,"utf8"),u,t])};const c=(e,t,i,u,{[r]:l},c)=>{const d=Math.floor(Math.random()*2049+2048);const p=a(o);const f=i(p);const h=n(l.export(),f,d,e,t);const m=u({[r]:h},c);m.header=m.header||{};Object.assign(m.header,{p2c:d,p2s:s.encodeBuffer(p)});return m};const d=(e,t,i,a,{[r]:s},o,u)=>{const{p2s:l,p2c:c}=u;const d=i(l);const p=n(s.export(),d,c,e,t);return a({[r]:p},o,u)};e.exports=((e,t)=>{["PBES2-HS256+A128KW","PBES2-HS384+A192KW","PBES2-HS512+A256KW"].forEach(i=>{const n=i.substr(-6);const a=e.keyManagementEncrypt.get(n);const r=e.keyManagementDecrypt.get(n);const s=parseInt(i.substr(13,3),10)/8;const o=`sha${i.substr(8,3)}`;if(a&&r){e.keyManagementEncrypt.set(i,c.bind(undefined,s,o,l.bind(undefined,i),a));e.keyManagementDecrypt.set(i,d.bind(undefined,s,o,l.bind(undefined,i),r));t.oct.deriveKey[i]=(e=>e.use==="enc"||e.use===undefined)}})})},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=typeof URL==="undefined"?i(835).URL:URL;const a=Object.prototype.toString;const r=e=>t=>typeof t===e;const s=e=>!is.nullOrUndefined(e)&&!is.nullOrUndefined(e.constructor)&&is.function_(e.constructor.isBuffer)&&e.constructor.isBuffer(e);const o=e=>{const t=a.call(e).slice(8,-1);if(t){return t}return null};const u=e=>t=>o(t)===e;function is(e){switch(e){case null:return"null";case true:case false:return"boolean";default:}switch(typeof e){case"undefined":return"undefined";case"string":return"string";case"number":return"number";case"symbol":return"symbol";default:}if(is.function_(e)){return"Function"}if(is.observable(e)){return"Observable"}if(Array.isArray(e)){return"Array"}if(s(e)){return"Buffer"}const t=o(e);if(t){return t}if(e instanceof String||e instanceof Boolean||e instanceof Number){throw new TypeError("Please don't use object wrappers for primitive types")}return"Object"}(function(e){const t=e=>typeof e==="object";e.undefined=r("undefined");e.string=r("string");e.number=r("number");e.function_=r("function");e.null_=(e=>e===null);e.class_=(t=>e.function_(t)&&t.toString().startsWith("class "));e.boolean=(e=>e===true||e===false);e.symbol=r("symbol");e.numericString=(t=>e.string(t)&&t.length>0&&!Number.isNaN(Number(t)));e.array=Array.isArray;e.buffer=s;e.nullOrUndefined=(t=>e.null_(t)||e.undefined(t));e.object=(i=>!e.nullOrUndefined(i)&&(e.function_(i)||t(i)));e.iterable=(t=>!e.nullOrUndefined(t)&&e.function_(t[Symbol.iterator]));e.asyncIterable=(t=>!e.nullOrUndefined(t)&&e.function_(t[Symbol.asyncIterator]));e.generator=(t=>e.iterable(t)&&e.function_(t.next)&&e.function_(t.throw));e.nativePromise=(e=>u("Promise")(e));const i=i=>!e.null_(i)&&t(i)&&e.function_(i.then)&&e.function_(i.catch);e.promise=(t=>e.nativePromise(t)||i(t));e.generatorFunction=u("GeneratorFunction");e.asyncFunction=u("AsyncFunction");e.boundFunction=(t=>e.function_(t)&&!t.hasOwnProperty("prototype"));e.regExp=u("RegExp");e.date=u("Date");e.error=u("Error");e.map=(e=>u("Map")(e));e.set=(e=>u("Set")(e));e.weakMap=(e=>u("WeakMap")(e));e.weakSet=(e=>u("WeakSet")(e));e.int8Array=u("Int8Array");e.uint8Array=u("Uint8Array");e.uint8ClampedArray=u("Uint8ClampedArray");e.int16Array=u("Int16Array");e.uint16Array=u("Uint16Array");e.int32Array=u("Int32Array");e.uint32Array=u("Uint32Array");e.float32Array=u("Float32Array");e.float64Array=u("Float64Array");e.arrayBuffer=u("ArrayBuffer");e.sharedArrayBuffer=u("SharedArrayBuffer");e.dataView=u("DataView");e.directInstanceOf=((e,t)=>Object.getPrototypeOf(e)===t.prototype);e.urlInstance=(e=>u("URL")(e));e.urlString=(t=>{if(!e.string(t)){return false}try{new n(t);return true}catch(e){return false}});e.truthy=(e=>Boolean(e));e.falsy=(e=>!e);e.nan=(e=>Number.isNaN(e));const a=new Set(["undefined","string","number","boolean","symbol"]);e.primitive=(t=>e.null_(t)||a.has(typeof t));e.integer=(e=>Number.isInteger(e));e.safeInteger=(e=>Number.isSafeInteger(e));e.plainObject=(e=>{let t;return o(e)==="Object"&&(t=Object.getPrototypeOf(e),t===null||t===Object.getPrototypeOf({}))});const l=new Set(["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"]);e.typedArray=(e=>{const t=o(e);if(t===null){return false}return l.has(t)});const c=t=>e.safeInteger(t)&&t>-1;e.arrayLike=(t=>!e.nullOrUndefined(t)&&!e.function_(t)&&c(t.length));e.inRange=((t,i)=>{if(e.number(i)){return t>=Math.min(0,i)&&t<=Math.max(i,0)}if(e.array(i)&&i.length===2){return t>=Math.min(...i)&&t<=Math.max(...i)}throw new TypeError(`Invalid range: ${JSON.stringify(i)}`)});const d=1;const p=["innerHTML","ownerDocument","style","attributes","nodeValue"];e.domElement=(t=>e.object(t)&&t.nodeType===d&&e.string(t.nodeName)&&!e.plainObject(t)&&p.every(e=>e in t));e.observable=(e=>{if(!e){return false}if(e[Symbol.observable]&&e===e[Symbol.observable]()){return true}if(e["@@observable"]&&e===e["@@observable"]()){return true}return false});e.nodeStream=(i=>!e.nullOrUndefined(i)&&t(i)&&e.function_(i.pipe)&&!e.observable(i));e.infinite=(e=>e===Infinity||e===-Infinity);const f=t=>i=>e.integer(i)&&Math.abs(i%2)===t;e.even=f(0);e.odd=f(1);const h=t=>e.string(t)&&/\S/.test(t)===false;e.emptyArray=(t=>e.array(t)&&t.length===0);e.nonEmptyArray=(t=>e.array(t)&&t.length>0);e.emptyString=(t=>e.string(t)&&t.length===0);e.nonEmptyString=(t=>e.string(t)&&t.length>0);e.emptyStringOrWhitespace=(t=>e.emptyString(t)||h(t));e.emptyObject=(t=>e.object(t)&&!e.map(t)&&!e.set(t)&&Object.keys(t).length===0);e.nonEmptyObject=(t=>e.object(t)&&!e.map(t)&&!e.set(t)&&Object.keys(t).length>0);e.emptySet=(t=>e.set(t)&&t.size===0);e.nonEmptySet=(t=>e.set(t)&&t.size>0);e.emptyMap=(t=>e.map(t)&&t.size===0);e.nonEmptyMap=(t=>e.map(t)&&t.size>0);const m=(t,i,n)=>{if(e.function_(i)===false){throw new TypeError(`Invalid predicate: ${JSON.stringify(i)}`)}if(n.length===0){throw new TypeError("Invalid number of values")}return t.call(n,i)};e.any=((e,...t)=>m(Array.prototype.some,e,t));e.all=((e,...t)=>m(Array.prototype.every,e,t))})(is||(is={}));Object.defineProperties(is,{class:{value:is.class_},function:{value:is.function_},null:{value:is.null_}});t.default=is;e.exports=is;e.exports.default=is},function(e,t,i){var n=i(747);var a=i(622);var r=i(602);r.register("ln",_ln,{cmdOptions:{s:"symlink",f:"force"}});function _ln(e,t,i){if(!t||!i){r.error("Missing and/or ")}t=String(t);var s=a.normalize(t).replace(RegExp(a.sep+"$"),"");var o=a.resolve(t)===s;i=a.resolve(process.cwd(),String(i));if(n.existsSync(i)){if(!e.force){r.error("Destination file exists",{continue:true})}n.unlinkSync(i)}if(e.symlink){var u=process.platform==="win32";var l=u?"file":null;var c=o?s:a.resolve(process.cwd(),a.dirname(i),t);if(!n.existsSync(c)){r.error("Source file does not exist",{continue:true})}else if(u&&r.statFollowLinks(c).isDirectory()){l="junction"}try{n.symlinkSync(l==="junction"?c:t,i,l)}catch(e){r.error(e.message)}}else{if(!n.existsSync(t)){r.error("Source file does not exist",{continue:true})}try{n.linkSync(t,i)}catch(e){r.error(e.message)}}return""}e.exports=_ln},,function(e){const t=Math.pow(2,32);e.exports=((e,i=Buffer.allocUnsafe(8))=>{const n=Math.floor(e/t);const a=e%t;i.writeUInt32BE(n,0);i.writeUInt32BE(a,4);return i})},function(e,t,i){e.exports={read:read.bind(undefined,false,undefined),readType:read.bind(undefined,false),write:write,readPartial:read.bind(undefined,true),readInternal:read,keyTypeToAlg:keyTypeToAlg,algToKeyType:algToKeyType};var n=i(872);var a=i(215).Buffer;var r=i(98);var s=i(270);var o=i(852);var u=i(502);var l=i(940);function algToKeyType(e){n.string(e);if(e==="ssh-dss")return"dsa";else if(e==="ssh-rsa")return"rsa";else if(e==="ssh-ed25519")return"ed25519";else if(e==="ssh-curve25519")return"curve25519";else if(e.match(/^ecdsa-sha2-/))return"ecdsa";else throw new Error("Unknown algorithm "+e)}function keyTypeToAlg(e){n.object(e);if(e.type==="dsa")return"ssh-dss";else if(e.type==="rsa")return"ssh-rsa";else if(e.type==="ed25519")return"ssh-ed25519";else if(e.type==="curve25519")return"ssh-curve25519";else if(e.type==="ecdsa")return"ecdsa-sha2-"+e.part.curve.data.toString();else throw new Error("Unknown key type "+e.type)}function read(e,t,i,c){if(typeof i==="string")i=a.from(i);n.buffer(i,"buf");var d={};var p=d.parts=[];var f=new l({buffer:i});var h=f.readString();n.ok(!f.atEnd(),"key must have at least one part");d.type=algToKeyType(h);var m=r.info[d.type].parts.length;if(t&&t==="private")m=r.privInfo[d.type].parts.length;while(!f.atEnd()&&p.length=1,"key must have at least one part");n.ok(e||f.atEnd(),"leftover bytes at end of key");var b=o;var g=r.info[d.type];if(t==="private"||g.parts.length!==p.length){g=r.privInfo[d.type];b=u}n.strictEqual(g.parts.length,p.length);if(d.type==="ecdsa"){var y=/^ecdsa-sha2-(.+)$/.exec(h);n.ok(y!==null);n.strictEqual(y[1],p[0].data.toString())}var S=true;for(var w=0;wnew n({read(){this.push(e);this.push(null)}}))},,,function(e,t,i){var n=i(602);var a=i(8);var r=i(622);n.register("dirs",_dirs,{wrapOutput:false});n.register("pushd",_pushd,{wrapOutput:false});n.register("popd",_popd,{wrapOutput:false});var s=[];function _isStackIndex(e){return/^[\-+]\d+$/.test(e)}function _parseStackIndex(e){if(_isStackIndex(e)){if(Math.abs(e)1){i=i.splice(1,1).concat(i)}else{return n.error("no other directory")}}else if(_isStackIndex(t)){var o=_parseStackIndex(t);i=i.slice(o).concat(i.slice(0,o))}else{if(e["no-cd"]){i.splice(1,0,t)}else{i.unshift(t)}}if(e["no-cd"]){i=i.slice(1)}else{t=r.resolve(i.shift());a("",t)}s=i;return _dirs(e.quiet?"-q":"")}t.pushd=_pushd;function _popd(e,t){if(_isStackIndex(e)){t=e;e=""}e=n.parseOptions(e,{n:"no-cd",q:"quiet"});if(!s.length){return n.error("directory stack empty")}t=_parseStackIndex(t||"+0");if(e["no-cd"]||t>0||s.length+t===0){t=t>0?t-1:t;s.splice(t,1)}else{var i=r.resolve(s.shift());a("",i)}return _dirs(e.quiet?"-q":"")}t.popd=_popd;function _dirs(e,t){if(_isStackIndex(e)){t=e;e=""}e=n.parseOptions(e,{c:"clear",q:"quiet"});if(e.clear){s=[];return s}var i=_actualDirStack();if(t){t=_parseStackIndex(t);if(t<0){t=i.length+t}if(!e.quiet){n.log(i[t])}return i[t]}if(!e.quiet){n.log(i.join(" "))}return i}t.dirs=_dirs},,,function(e){e.exports=(e=>JSON.parse(JSON.stringify(e)))},,function(e,t,i){var n=i(669);var a=i(413).Stream;var r=i(152);e.exports=CombinedStream;function CombinedStream(){this.writable=false;this.readable=true;this.dataSize=0;this.maxDataSize=2*1024*1024;this.pauseStreams=true;this._released=false;this._streams=[];this._currentStream=null;this._insideLoop=false;this._pendingNext=false}n.inherits(CombinedStream,a);CombinedStream.create=function(e){var t=new this;e=e||{};for(var i in e){t[i]=e[i]}return t};CombinedStream.isStreamLike=function(e){return typeof e!=="function"&&typeof e!=="string"&&typeof e!=="boolean"&&typeof e!=="number"&&!Buffer.isBuffer(e)};CombinedStream.prototype.append=function(e){var t=CombinedStream.isStreamLike(e);if(t){if(!(e instanceof r)){var i=r.create(e,{maxDataSize:Infinity,pauseStream:this.pauseStreams});e.on("data",this._checkDataSize.bind(this));e=i}this._handleErrors(e);if(this.pauseStreams){e.pause()}}this._streams.push(e);return this};CombinedStream.prototype.pipe=function(e,t){a.prototype.pipe.call(this,e,t);this.resume();return e};CombinedStream.prototype._getNext=function(){this._currentStream=null;if(this._insideLoop){this._pendingNext=true;return}this._insideLoop=true;try{do{this._pendingNext=false;this._realGetNext()}while(this._pendingNext)}finally{this._insideLoop=false}};CombinedStream.prototype._realGetNext=function(){var e=this._streams.shift();if(typeof e=="undefined"){this.end();return}if(typeof e!=="function"){this._pipeNext(e);return}var t=e;t(function(e){var t=CombinedStream.isStreamLike(e);if(t){e.on("data",this._checkDataSize.bind(this));this._handleErrors(e)}this._pipeNext(e)}.bind(this))};CombinedStream.prototype._pipeNext=function(e){this._currentStream=e;var t=CombinedStream.isStreamLike(e);if(t){e.on("end",this._getNext.bind(this));e.pipe(this,{end:false});return}var i=e;this.write(i);this._getNext()};CombinedStream.prototype._handleErrors=function(e){var t=this;e.on("error",function(e){t._emitError(e)})};CombinedStream.prototype.write=function(e){this.emit("data",e)};CombinedStream.prototype.pause=function(){if(!this.pauseStreams){return}if(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function")this._currentStream.pause();this.emit("pause")};CombinedStream.prototype.resume=function(){if(!this._released){this._released=true;this.writable=true;this._getNext()}if(this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume=="function")this._currentStream.resume();this.emit("resume")};CombinedStream.prototype.end=function(){this._reset();this.emit("end")};CombinedStream.prototype.destroy=function(){this._reset();this.emit("close")};CombinedStream.prototype._reset=function(){this.writable=false;this._streams=[];this._currentStream=null};CombinedStream.prototype._checkDataSize=function(){this._updateDataSize();if(this.dataSize<=this.maxDataSize){return}var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))};CombinedStream.prototype._updateDataSize=function(){this.dataSize=0;var e=this;this._streams.forEach(function(t){if(!t.dataSize){return}e.dataSize+=t.dataSize});if(this._currentStream&&this._currentStream.dataSize){this.dataSize+=this._currentStream.dataSize}};CombinedStream.prototype._emitError=function(e){this._reset();this.emit("error",e)}},function(e){const t=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},function(e,t,i){e.exports=i(14).default;e.exports.default=e.exports},,,function(e,t,i){"use strict";var n=i(835);var a=/^https?:/;function Redirect(e){this.request=e;this.followRedirect=true;this.followRedirects=true;this.followAllRedirects=false;this.followOriginalHttpMethod=false;this.allowRedirect=function(){return true};this.maxRedirects=10;this.redirects=[];this.redirectsFollowed=0;this.removeRefererHeader=false}Redirect.prototype.onRequest=function(e){var t=this;if(e.maxRedirects!==undefined){t.maxRedirects=e.maxRedirects}if(typeof e.followRedirect==="function"){t.allowRedirect=e.followRedirect}if(e.followRedirect!==undefined){t.followRedirects=!!e.followRedirect}if(e.followAllRedirects!==undefined){t.followAllRedirects=e.followAllRedirects}if(t.followRedirects||t.followAllRedirects){t.redirects=t.redirects||[]}if(e.removeRefererHeader!==undefined){t.removeRefererHeader=e.removeRefererHeader}if(e.followOriginalHttpMethod!==undefined){t.followOriginalHttpMethod=e.followOriginalHttpMethod}};Redirect.prototype.redirectTo=function(e){var t=this;var i=t.request;var n=null;if(e.statusCode>=300&&e.statusCode<400&&e.caseless.has("location")){var a=e.caseless.get("location");i.debug("redirect",a);if(t.followAllRedirects){n=a}else if(t.followRedirects){switch(i.method){case"PATCH":case"PUT":case"POST":case"DELETE":break;default:n=a;break}}}else if(e.statusCode===401){var r=i._auth.onResponse(e);if(r){i.setHeader("authorization",r);n=i.uri}}return n};Redirect.prototype.onResponse=function(e){var t=this;var i=t.request;var r=t.redirectTo(e);if(!r||!t.allowRedirect.call(i,e)){return false}i.debug("redirect to",r);if(e.resume){e.resume()}if(t.redirectsFollowed>=t.maxRedirects){i.emit("error",new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+i.uri.href));return false}t.redirectsFollowed+=1;if(!a.test(r)){r=n.resolve(i.uri.href,r)}var s=i.uri;i.uri=n.parse(r);if(i.uri.protocol!==s.protocol){delete i.agent}t.redirects.push({statusCode:e.statusCode,redirectUri:r});if(t.followAllRedirects&&i.method!=="HEAD"&&e.statusCode!==401&&e.statusCode!==307){i.method=t.followOriginalHttpMethod?i.method:"GET"}delete i.src;delete i.req;delete i._started;if(e.statusCode!==401&&e.statusCode!==307){delete i.body;delete i._form;if(i.headers){i.removeHeader("host");i.removeHeader("content-type");i.removeHeader("content-length");if(i.uri.hostname!==i.originalHost.split(":")[0]){i.removeHeader("authorization")}}}if(!t.removeRefererHeader){i.setHeader("referer",s.href)}i.emit("redirect");i.init();return true};t.Redirect=Redirect},,function(e,t,i){var n=i(602);var a=i(747);function lpad(e,t){var i=""+t;if(i.length1:true}).map(function(t){return(e.count?lpad(7,t.count)+" ":"")+t.ln}).join("\n")+"\n";if(i){new n.ShellString(u).to(i);return""}else{return u}}e.exports=_uniq},function(e,t,i){const{inspect:n}=i(669);const{RPError:a,OPError:r}=i(572);const s=i(880);const o=i(295);const{authenticatedPost:u}=i(285);const l=i(88);const c=i(933);class DeviceFlowHandle{constructor({client:e,exchangeBody:t,clientAssertionPayload:i,response:n,maxAge:r}){["verification_uri","user_code","device_code"].forEach(e=>{if(typeof n[e]!=="string"||!n[e]){throw new a(`expected ${e} string to be returned by Device Authorization Response, got %j`,n[e])}});if(!Number.isSafeInteger(n.expires_in)){throw new a("expected expires_in number to be returned by Device Authorization Response, got %j",n.expires_in)}s(this).expires_at=o()+n.expires_in;s(this).client=e;s(this).maxAge=r;s(this).exchangeBody=t;s(this).clientAssertionPayload=i;s(this).response=n;s(this).interval=n.interval*1e3||5e3}async poll(){if(this.expired()){throw new a("the device code %j has expired and the device authorization session has concluded",this.device_code)}await new Promise(e=>setTimeout(e,s(this).interval));const e=await u.call(s(this).client,"token",{form:true,body:{...s(this).exchangeBody,grant_type:"urn:ietf:params:oauth:grant-type:device_code",device_code:this.device_code},json:true},{clientAssertionPayload:s(this).clientAssertionPayload});let t;try{t=l(e)}catch(e){switch(e instanceof r&&e.error){case"slow_down":s(this).interval+=5e3;case"authorization_pending":return this.poll();default:throw e}}const i=new c(t);if("id_token"in i){await s(this).client.decryptIdToken(i);await s(this).client.validateIdToken(i,undefined,"token",s(this).maxAge)}return i}get device_code(){return s(this).response.device_code}get user_code(){return s(this).response.user_code}get verification_uri(){return s(this).response.verification_uri}get verification_uri_complete(){return s(this).response.verification_uri_complete}get expires_in(){return Math.max.apply(null,[s(this).expires_at-o(),0])}expired(){return this.expires_in===0}[n.custom](){return`${this.constructor.name} ${n(s(this).response,{depth:Infinity,colors:process.stdout.isTTY,compact:false,sorted:true})}`}}e.exports=DeviceFlowHandle},function(e){"use strict";function YAMLException(e,t){Error.call(this);this.name="YAMLException";this.reason=e;this.mark=t;this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():"");if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}else{this.stack=(new Error).stack||""}}YAMLException.prototype=Object.create(Error.prototype);YAMLException.prototype.constructor=YAMLException;YAMLException.prototype.toString=function toString(e){var t=this.name+": ";t+=this.reason||"(unknown reason)";if(!e&&this.mark){t+=" "+this.mark.toString()}return t};e.exports=YAMLException},function(e){"use strict";class CancelError extends Error{constructor(e){super(e||"Promise was canceled");this.name="CancelError"}get isCanceled(){return true}}class PCancelable{static fn(e){return(...t)=>{return new PCancelable((i,n,a)=>{t.push(a);e(...t).then(i,n)})}}constructor(e){this._cancelHandlers=[];this._isPending=true;this._isCanceled=false;this._rejectOnCancel=true;this._promise=new Promise((t,i)=>{this._reject=i;const n=e=>{this._isPending=false;t(e)};const a=e=>{this._isPending=false;i(e)};const r=e=>{if(!this._isPending){throw new Error("The `onCancel` handler was attached after the promise settled.")}this._cancelHandlers.push(e)};Object.defineProperties(r,{shouldReject:{get:()=>this._rejectOnCancel,set:e=>{this._rejectOnCancel=e}}});return e(n,a,r)})}then(e,t){return this._promise.then(e,t)}catch(e){return this._promise.catch(e)}finally(e){return this._promise.finally(e)}cancel(e){if(!this._isPending||this._isCanceled){return}if(this._cancelHandlers.length>0){try{for(const e of this._cancelHandlers){e()}}catch(e){this._reject(e)}}this._isCanceled=true;if(this._rejectOnCancel){this._reject(new CancelError(e))}}get isCanceled(){return this._isCanceled}}Object.setPrototypeOf(PCancelable.prototype,Promise.prototype);e.exports=PCancelable;e.exports.CancelError=CancelError},,function(e,t,i){"use strict";var n=i(844).MissingRef;e.exports=compileAsync;function compileAsync(e,t,i){var a=this;if(typeof this._opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");if(typeof t=="function"){i=t;t=undefined}var r=loadMetaSchemaOf(e).then(function(){var i=a._addSchema(e,undefined,t);return i.validate||_compileAsync(i)});if(i){r.then(function(e){i(null,e)},i)}return r;function loadMetaSchemaOf(e){var t=e.$schema;return t&&!a.getSchema(t)?compileAsync.call(a,{$ref:t},true):Promise.resolve()}function _compileAsync(e){try{return a._compile(e)}catch(e){if(e instanceof n)return loadMissingSchema(e);throw e}function loadMissingSchema(i){var n=i.missingSchema;if(added(n))throw new Error("Schema "+n+" is loaded but "+i.missingRef+" cannot be resolved");var r=a._loadingSchemas[n];if(!r){r=a._loadingSchemas[n]=a._opts.loadSchema(n);r.then(removePromise,removePromise)}return r.then(function(e){if(!added(n)){return loadMetaSchemaOf(e).then(function(){if(!added(n))a.addSchema(e,n,undefined,t)})}}).then(function(){return _compileAsync(e)});function removePromise(){delete a._loadingSchemas[n]}function added(e){return a._refs[e]||a._schemas[e]}}}}},function(e){"use strict";e.exports=function generate__limitProperties(e,t,i){var n=" ";var a=e.level;var r=e.dataLevel;var s=e.schema[t];var o=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var l=!e.opts.allErrors;var c;var d="data"+(r||"");var p=e.opts.$data&&s&&s.$data,f;if(p){n+=" var schema"+a+" = "+e.util.getData(s.$data,r,e.dataPathArr)+"; ";f="schema"+a}else{f=s}if(!(p||typeof s=="number")){throw new Error(t+" must be number")}var h=t=="maxProperties"?">":"<";n+="if ( ";if(p){n+=" ("+f+" !== undefined && typeof "+f+" != 'number') || "}n+=" Object.keys("+d+").length "+h+" "+f+") { ";var c=t;var m=m||[];m.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+(c||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+f+" } ";if(e.opts.messages!==false){n+=" , message: 'should NOT have ";if(t=="maxProperties"){n+="more"}else{n+="fewer"}n+=" than ";if(p){n+="' + "+f+" + '"}else{n+=""+s}n+=" properties' "}if(e.opts.verbose){n+=" , schema: ";if(p){n+="validate.schema"+o}else{n+=""+s}n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}n+=" } "}else{n+=" {} "}var b=n;n=m.pop();if(!e.compositeRule&&l){if(e.async){n+=" throw new ValidationError(["+b+"]); "}else{n+=" validate.errors = ["+b+"]; return false; "}}else{n+=" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+="} ";if(l){n+=" else { "}return n}},,function(e,t,i){"use strict";try{const e=i(235);t.isValidUTF8=typeof e==="object"?e.Validation.isValidUTF8:e}catch(e){t.isValidUTF8=(()=>true)}t.isValidStatusCode=(e=>{return e>=1e3&&e<=1013&&e!==1004&&e!==1005&&e!==1006||e>=3e3&&e<=4999})},function(e){e.exports=new Map},function(e){const t=new Map;e.exports=t},,function(e){e.exports=abort;function abort(e){Object.keys(e.jobs).forEach(clean.bind(e));e.jobs={}}function clean(e){if(typeof this.jobs[e]=="function"){this.jobs[e]()}}},function(e){"use strict";var t=Object.prototype.hasOwnProperty;var i=function(){var e=[];for(var t=0;t<256;++t){e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase())}return e}();var n=function compactQueue(e){var t;while(e.length){var i=e.pop();t=i.obj[i.prop];if(Array.isArray(t)){var n=[];for(var a=0;a=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122){n+=t.charAt(a);continue}if(r<128){n=n+i[r];continue}if(r<2048){n=n+(i[192|r>>6]+i[128|r&63]);continue}if(r<55296||r>=57344){n=n+(i[224|r>>12]+i[128|r>>6&63]+i[128|r&63]);continue}a+=1;r=65536+((r&1023)<<10|t.charCodeAt(a)&1023);n+=i[240|r>>18]+i[128|r>>12&63]+i[128|r>>6&63]+i[128|r&63]}return n};var l=function compact(e){var t=[{obj:{o:e},prop:"o"}];var i=[];for(var a=0;a{return new n(t).recipient(i,a,r).sign(e)};e.exports.Sign=n;e.exports.sign=r.bind(undefined,"compact");e.exports.sign.flattened=r.bind(undefined,"flattened");e.exports.sign.general=r.bind(undefined,"general");e.exports.verify=a},,function(e,t,i){const{format:n}=i(669);const a=i(914);function OPError({error_description:e,error:t,error_uri:i,session_state:n,state:a,scope:r},s){OPError.super.call(this,!e?t:`${t} (${e})`);Object.assign(this,{error:t},e&&{error_description:e},i&&{error_uri:i},a&&{state:a},r&&{scope:r},n&&{session_state:n});if(s){Object.defineProperty(this,"response",{value:s})}}a(OPError);function RPError(...e){if(typeof e[0]==="string"){RPError.super.call(this,n(...e))}else{const{message:t,printf:i,response:a,...r}=e[0];if(i){RPError.super.call(this,n(...i))}else{RPError.super.call(this,t)}Object.assign(this,r);if(a){Object.defineProperty(this,"response",{value:a})}}}a(RPError);e.exports={OPError:OPError,RPError:RPError}},,function(e,t,i){"use strict";var n=i(945);e.exports=new n("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})},function(e,t,i){e.exports=Signature;var n=i(872);var a=i(215).Buffer;var r=i(98);var s=i(373);var o=i(753);var u=i(270);var l=i(325);var c=i(940);var d=o.InvalidAlgorithmError;var p=o.SignatureParseError;function Signature(e){n.object(e,"options");n.arrayOfObject(e.parts,"options.parts");n.string(e.type,"options.type");var t={};for(var i=0;i20&&r[0]===0)r=r.slice(1);s=this.part.s.data;if(s.length>20&&s[0]===0)s=s.slice(1);if(this.hashAlgorithm&&this.hashAlgorithm!=="sha1"||r.length+s.length!==40){throw new Error("OpenSSH only supports "+"DSA signatures with SHA1 hash")}t.writeBuffer(a.concat([r,s]));return t.toBuffer()}else if(e==="ssh"&&this.type==="ecdsa"){var d=new c({});r=this.part.r.data;d.writeBuffer(r);d.writePart(this.part.s);t=new c({});var p;if(r[0]===0)r=r.slice(1);var f=r.length*8;if(f===256)p="nistp256";else if(f===384)p="nistp384";else if(f===528)p="nistp521";t.writeString("ecdsa-sha2-"+p);t.writeBuffer(d.toBuffer());return t.toBuffer()}throw new Error("Invalid signature format");default:throw new Error("Invalid signature data")}};Signature.prototype.toString=function(e){n.optionalString(e,"format");return this.toBuffer(e).toString("base64")};Signature.parse=function(e,t,i){if(typeof e==="string")e=a.from(e,"base64");n.buffer(e,"data");n.string(i,"format");n.string(t,"type");var r={};r.type=t.toLowerCase();r.parts=[];try{n.ok(e.length>0,"signature must not be empty");switch(r.type){case"rsa":return parseOneNum(e,t,i,r);case"ed25519":return parseOneNum(e,t,i,r);case"dsa":case"ecdsa":if(i==="asn1")return parseDSAasn1(e,t,i,r);else if(r.type==="dsa")return parseDSA(e,t,i,r);else return parseECDSA(e,t,i,r);default:throw new d(t)}}catch(e){if(e instanceof d)throw e;throw new p(t,i,e)}};function parseOneNum(e,t,i,a){if(i==="ssh"){try{var r=new c({buffer:e});var s=r.readString()}catch(e){}if(r!==undefined){var o="SSH signature does not match expected "+"type (expected "+t+", got "+s+")";switch(s){case"ssh-rsa":n.strictEqual(t,"rsa",o);a.hashAlgo="sha1";break;case"rsa-sha2-256":n.strictEqual(t,"rsa",o);a.hashAlgo="sha256";break;case"rsa-sha2-512":n.strictEqual(t,"rsa",o);a.hashAlgo="sha512";break;case"ssh-ed25519":n.strictEqual(t,"ed25519",o);a.hashAlgo="sha512";break;default:throw new Error("Unknown SSH signature "+"type: "+s)}var u=r.readPart();n.ok(r.atEnd(),"extra trailing bytes");u.name="sig";a.parts.push(u);return new Signature(a)}}a.parts.push({name:"sig",data:e});return new Signature(a)}function parseDSAasn1(e,t,i,n){var a=new l.BerReader(e);a.readSequence();var r=a.readString(l.Ber.Integer,true);var s=a.readString(l.Ber.Integer,true);n.parts.push({name:"r",data:u.mpNormalize(r)});n.parts.push({name:"s",data:u.mpNormalize(s)});return new Signature(n)}function parseDSA(e,t,i,a){if(e.length!=40){var r=new c({buffer:e});var s=r.readBuffer();if(s.toString("ascii")==="ssh-dss")s=r.readBuffer();n.ok(r.atEnd(),"extra trailing bytes");n.strictEqual(s.length,40,"invalid inner length");e=s}a.parts.push({name:"r",data:e.slice(0,20)});a.parts.push({name:"s",data:e.slice(20,40)});return new Signature(a)}function parseECDSA(e,t,i,a){var r=new c({buffer:e});var s,o;var u=r.readBuffer();var l=u.toString("ascii");if(l.slice(0,6)==="ecdsa-"){var d=l.split("-");n.strictEqual(d[0],"ecdsa");n.strictEqual(d[1],"sha2");a.curve=d[2];switch(a.curve){case"nistp256":a.hashAlgo="sha256";break;case"nistp384":a.hashAlgo="sha384";break;case"nistp521":a.hashAlgo="sha512";break;default:throw new Error("Unsupported ECDSA curve: "+a.curve)}u=r.readBuffer();n.ok(r.atEnd(),"extra trailing bytes on outer");r=new c({buffer:u});s=r.readPart()}else{s={data:u}}o=r.readPart();n.ok(r.atEnd(),"extra trailing bytes");s.name="r";o.name="s";a.parts.push(s);a.parts.push(o);return new Signature(a)}Signature.isSignature=function(e,t){return u.isCompatible(e,Signature,t)};Signature.prototype._sshpkApiVersion=[2,1];Signature._oldVersionDetect=function(e){n.func(e.toBuffer);if(e.hasOwnProperty("hashAlgorithm"))return[2,0];return[1,0]}},,,,,,function(e,t,i){"use strict";var n=i(43);e.exports=new n({explicit:[i(574),i(921),i(988)]})},function(e,t,i){var n=i(293);var a=n.Buffer;function copyProps(e,t){for(var i in e){t[i]=e[i]}}if(a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow){e.exports=n}else{copyProps(n,t);t.Buffer=SafeBuffer}function SafeBuffer(e,t,i){return a(e,t,i)}SafeBuffer.prototype=Object.create(a.prototype);copyProps(a,SafeBuffer);SafeBuffer.from=function(e,t,i){if(typeof e==="number"){throw new TypeError("Argument must not be a number")}return a(e,t,i)};SafeBuffer.alloc=function(e,t,i){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}var n=a(e);if(t!==undefined){if(typeof i==="string"){n.fill(t,i)}else{n.fill(t)}}else{n.fill(0)}return n};SafeBuffer.allocUnsafe=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return a(e)};SafeBuffer.allocUnsafeSlow=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return n.SlowBuffer(e)}},,function(e){e.exports={newInvalidAsn1Error:function(e){var t=new Error;t.name="InvalidAsn1Error";t.message=e||"";return t}}},,function(e,t,i){const n=i(874);const a=(e,t,i)=>n(e,t,i)<0;e.exports=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=i(747);const a=i(622);const r=i(414);const s=i(739);const o=i(290);const u=i(709);const l=i(444);const c=i(665);function fileExists(e){try{n.accessSync(e);return true}catch(e){}return false}class KubeConfig{getContexts(){return this.contexts}getClusters(){return this.clusters}getUsers(){return this.users}getCurrentContext(){return this.currentContext}setCurrentContext(e){this.currentContext=e}getContextObject(e){if(!this.contexts){return null}return findObject(this.contexts,e,"context")}getCurrentCluster(){const e=this.getCurrentContextObject();if(!e){return null}return this.getCluster(e.cluster)}getCluster(e){return findObject(this.clusters,e,"cluster")}getCurrentUser(){const e=this.getCurrentContextObject();if(!e){return null}return this.getUser(e.user)}getUser(e){return findObject(this.users,e,"user")}loadFromFile(e){const t=a.dirname(e);this.loadFromString(n.readFileSync(e,"utf8"));this.makePathsAbsolute(t)}applytoHTTPSOptions(e){const t=this.getCurrentUser();this.applyOptions(e);if(t&&t.username){e.auth=`${t.username}:${t.password}`}}applyToRequest(e){const t=this.getCurrentCluster();const i=this.getCurrentUser();this.applyOptions(e);if(t&&t.skipTLSVerify){e.strictSSL=false}if(i&&i.username){e.auth={password:i.password,username:i.username}}}loadFromString(e){const t=r.safeLoad(e);if(t.apiVersion!=="v1"){throw new TypeError("unknown version: "+t.apiVersion)}this.clusters=l.newClusters(t.clusters);this.contexts=l.newContexts(t.contexts);this.users=l.newUsers(t.users);this.currentContext=t["current-context"]}loadFromOptions(e){this.clusters=e.clusters;this.contexts=e.contexts;this.users=e.users;this.currentContext=e.currentContext}loadFromClusterAndUser(e,t){this.clusters=[e];this.users=[t];this.currentContext="loaded-context";this.contexts=[{cluster:e.name,user:t.name,name:this.currentContext}]}loadFromCluster(e=""){const t=process.env.KUBERNETES_SERVICE_HOST;const i=process.env.KUBERNETES_SERVICE_PORT;const a="inCluster";const r="inClusterUser";const s="inClusterContext";let o="https";if(i==="80"||i==="8080"||i==="8001"){o="http"}this.clusters=[{name:a,caFile:`${e}${Config.SERVICEACCOUNT_CA_PATH}`,server:`${o}://${t}:${i}`,skipTLSVerify:false}];this.users=[{name:r,token:n.readFileSync(`${e}${Config.SERVICEACCOUNT_TOKEN_PATH}`).toString()}];this.contexts=[{cluster:a,name:s,user:r}];this.currentContext=s}mergeConfig(e){this.currentContext=e.currentContext;e.clusters.forEach(e=>{this.addCluster(e)});e.users.forEach(e=>{this.addUser(e)});e.contexts.forEach(e=>{this.addContext(e)})}addCluster(e){this.clusters.forEach((t,i)=>{if(t.name===e.name){throw new Error(`Duplicate cluster: ${t.name}`)}});this.clusters.push(e)}addUser(e){this.users.forEach((t,i)=>{if(t.name===e.name){throw new Error(`Duplicate user: ${t.name}`)}});this.users.push(e)}addContext(e){this.contexts.forEach((t,i)=>{if(t.name===e.name){throw new Error(`Duplicate context: ${t.name}`)}});this.contexts.push(e)}loadFromDefault(){if(process.env.KUBECONFIG&&process.env.KUBECONFIG.length>0){const e=process.env.KUBECONFIG.split(a.delimiter);this.loadFromFile(e[0]);for(let t=1;t{if(t.caFile){t.caFile=makeAbsolutePath(e,t.caFile)}});this.users.forEach(t=>{if(t.certFile){t.certFile=makeAbsolutePath(e,t.certFile)}if(t.keyFile){t.keyFile=makeAbsolutePath(e,t.keyFile)}})}getCurrentContextObject(){return this.getContextObject(this.currentContext)}applyHTTPSOptions(e){const t=this.getCurrentCluster();const i=this.getCurrentUser();if(!i){return}if(t!=null&&t.skipTLSVerify){e.rejectUnauthorized=false}const n=t!=null?bufferFromFileOrString(t.caFile,t.caData):null;if(n){e.ca=n}const a=bufferFromFileOrString(i.certFile,i.certData);if(a){e.cert=a}const r=bufferFromFileOrString(i.keyFile,i.keyData);if(r){e.key=r}}applyAuthorizationHeader(e){const t=this.getCurrentUser();if(!t){return}let i=null;KubeConfig.authenticators.forEach(e=>{if(e.isAuthProvider(t)){i=e.getToken(t)}});if(t.token){i="Bearer "+t.token}if(i){if(!e.headers){e.headers=[]}e.headers.Authorization=i}}applyOptions(e){this.applyHTTPSOptions(e);this.applyAuthorizationHeader(e)}}KubeConfig.authenticators=[new u.CloudAuth,new c.ExecAuth];t.KubeConfig=KubeConfig;class Config{static fromFile(e){return Config.apiFromFile(e,o.CoreV1Api)}static fromCluster(){return Config.apiFromCluster(o.CoreV1Api)}static defaultClient(){return Config.apiFromDefaultClient(o.CoreV1Api)}static apiFromFile(e,t){const i=new KubeConfig;i.loadFromFile(e);return i.makeApiClient(t)}static apiFromCluster(e){const t=new KubeConfig;t.loadFromCluster();const i=t.getCurrentCluster();if(!i){throw new Error("No active cluster!")}const n=new e(i.server);n.setDefaultAuthentication(t);return n}static apiFromDefaultClient(e){const t=new KubeConfig;t.loadFromDefault();return t.makeApiClient(e)}}Config.SERVICEACCOUNT_ROOT="/var/run/secrets/kubernetes.io/serviceaccount";Config.SERVICEACCOUNT_CA_PATH=Config.SERVICEACCOUNT_ROOT+"/ca.crt";Config.SERVICEACCOUNT_TOKEN_PATH=Config.SERVICEACCOUNT_ROOT+"/token";t.Config=Config;function makeAbsolutePath(e,t){if(!e||a.isAbsolute(t)){return t}return a.join(e,t)}t.makeAbsolutePath=makeAbsolutePath;function bufferFromFileOrString(e,t){if(e){return n.readFileSync(e)}if(t){return Buffer.from(t,"base64")}return null}t.bufferFromFileOrString=bufferFromFileOrString;function findHomeDir(){if(process.env.HOME){try{n.accessSync(process.env.HOME);return process.env.HOME}catch(e){}}if(process.platform!=="win32"){return null}if(process.env.HOMEDRIVE&&process.env.HOMEPATH){const e=a.join(process.env.HOMEDRIVE,process.env.HOMEPATH);try{n.accessSync(e);return e}catch(e){}}if(process.env.USERPROFILE){try{n.accessSync(process.env.USERPROFILE);return process.env.USERPROFILE}catch(e){}}return null}t.findHomeDir=findHomeDir;function findObject(e,t,i){for(const n of e){if(n.name===t){if(n[i]){return n[i]}return n}}return null}t.findObject=findObject},,,,,function(e,t,i){const{deprecate:n}=i(669);const{createPublicKey:a,createPrivateKey:r,createSecretKey:s,KeyObject:o}=i(40);const u=i(208);const l=i(274);const{jwkToPem:c}=i(20);const d=i(466);const p=i(785);const f=i(186);const h=i(728);const m=i(847);const b=new Set(["string","buffer","object"]);const g=(e={},t={})=>{return{alg:t.alg,key_ops:t.key_ops,kid:t.kid,use:t.use,x5c:t.x5c,x5t:t.x5t,"x5t#S256":t["x5t#S256"],...e}};const y=/^[a-zA-Z0-9-]+ AAAA(?:[0-9A-Za-z+\/])+(?:==|=)?(?: .*)?$/;const S=(e,t,{calculateMissingRSAPrimes:i=false}={})=>{let n,S,w;if(!b.has(typeof e)){throw new TypeError("key argument must be a string, buffer or an object")}if(t!==undefined&&!l(t)){throw new TypeError("parameters argument must be a plain object when provided")}if(e instanceof o){switch(e.type){case"private":n=e;break;case"public":S=e;break;case"secret":w=e;break}}else if(typeof e==="object"&&e&&"kty"in e&&e.kty==="oct"){try{w=s(u.decodeToBuffer(e.k))}catch(t){if(!("k"in e)){w={type:"secret"}}}t=g(t,e)}else if(typeof e==="object"&&e&&"kty"in e){({calculateMissingRSAPrimes:i=false}=t||{calculateMissingRSAPrimes:i});let s;try{s=c(e,{calculateMissingRSAPrimes:i})}catch(e){if(e instanceof d.JOSEError){throw e}}if(s&&e.d){n=r(s)}else if(s){S=a(s)}t=g({},e)}else if(e&&(typeof e==="object"||typeof e==="string")){try{n=r(e)}catch(e){if(e instanceof d.JOSEError){throw e}}try{S=a(e);if(e.startsWith("-----BEGIN CERTIFICATE-----")&&(!t||!("x5c"in t))){t=g(t,{x5c:[e.replace(/(?:-----(?:BEGIN|END) CERTIFICATE-----|\s)/g,"")]})}}catch(e){if(e instanceof d.JOSEError){throw e}}try{if(!e.includes("-----BEGIN")&&!y.test(e.toString("ascii").replace(/[\r\n]/g,""))){w=s(Buffer.isBuffer(e)?e:Buffer.from(e))}}catch(e){}}const v=n||S||w;if(n||S){switch(v.asymmetricKeyType){case"rsa":return new p(v,t);case"ec":return new f(v,t);case"ed25519":case"ed448":case"x25519":case"x448":return new h(v,t);default:throw new d.JOSENotSupported("only RSA, EC and OKP asymmetric keys are supported")}}else if(w){return new m(v,t)}throw new d.JWKImportFailed("key import failed")};e.exports=S;Object.defineProperty(S,"deprecated",{value:n((e,t)=>{return S(e,t,{calculateMissingRSAPrimes:true})},"JWK.importKey() is deprecated, use JWK.asKey() instead"),enumerable:false})},function(e,t,i){const n=i(16);const a=(e,t)=>e.sort((e,i)=>n(i,e,t));e.exports=a},,function(e,t,i){e.exports=minimatch;minimatch.Minimatch=Minimatch;var n={sep:"/"};try{n=i(622)}catch(e){}var a=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={};var r=i(306);var s={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};var o="[^/]";var u=o+"*?";var l="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";var c="(?:(?!(?:\\/|^)\\.).)*?";var d=charSet("().*{}+?[]^$\\!");function charSet(e){return e.split("").reduce(function(e,t){e[t]=true;return e},{})}var p=/\/+/;minimatch.filter=filter;function filter(e,t){t=t||{};return function(i,n,a){return minimatch(i,e,t)}}function ext(e,t){e=e||{};t=t||{};var i={};Object.keys(t).forEach(function(e){i[e]=t[e]});Object.keys(e).forEach(function(t){i[t]=e[t]});return i}minimatch.defaults=function(e){if(!e||!Object.keys(e).length)return minimatch;var t=minimatch;var i=function minimatch(i,n,a){return t.minimatch(i,n,ext(e,a))};i.Minimatch=function Minimatch(i,n){return new t.Minimatch(i,ext(e,n))};return i};Minimatch.defaults=function(e){if(!e||!Object.keys(e).length)return Minimatch;return minimatch.defaults(e).Minimatch};function minimatch(e,t,i){if(typeof t!=="string"){throw new TypeError("glob pattern string required")}if(!i)i={};if(!i.nocomment&&t.charAt(0)==="#"){return false}if(t.trim()==="")return e==="";return new Minimatch(t,i).match(e)}function Minimatch(e,t){if(!(this instanceof Minimatch)){return new Minimatch(e,t)}if(typeof e!=="string"){throw new TypeError("glob pattern string required")}if(!t)t={};e=e.trim();if(n.sep!=="/"){e=e.split(n.sep).join("/")}this.options=t;this.set=[];this.pattern=e;this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.make()}Minimatch.prototype.debug=function(){};Minimatch.prototype.make=make;function make(){if(this._made)return;var e=this.pattern;var t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=true;return}if(!e){this.empty=true;return}this.parseNegate();var i=this.globSet=this.braceExpand();if(t.debug)this.debug=console.error;this.debug(this.pattern,i);i=this.globParts=i.map(function(e){return e.split(p)});this.debug(this.pattern,i);i=i.map(function(e,t,i){return e.map(this.parse,this)},this);this.debug(this.pattern,i);i=i.filter(function(e){return e.indexOf(false)===-1});this.debug(this.pattern,i);this.set=i}Minimatch.prototype.parseNegate=parseNegate;function parseNegate(){var e=this.pattern;var t=false;var i=this.options;var n=0;if(i.nonegate)return;for(var a=0,r=e.length;a1024*64){throw new TypeError("pattern is too long")}var i=this.options;if(!i.noglobstar&&e==="**")return a;if(e==="")return"";var n="";var r=!!i.nocase;var l=false;var c=[];var p=[];var h;var m=false;var b=-1;var g=-1;var y=e.charAt(0)==="."?"":i.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";var S=this;function clearStateChar(){if(h){switch(h){case"*":n+=u;r=true;break;case"?":n+=o;r=true;break;default:n+="\\"+h;break}S.debug("clearStateChar %j %j",h,n);h=false}}for(var w=0,v=e.length,z;w-1;E--){var A=p[E];var x=n.slice(0,A.reStart);var N=n.slice(A.reStart,A.reEnd-8);var V=n.slice(A.reEnd-8,A.reEnd);var P=n.slice(A.reEnd);V+=P;var D=x.split("(").length-1;var I=P;for(w=0;w=0;s--){r=e[s];if(r)break}for(s=0;s>> no match, partial?",e,d,t,p);if(d===o)return true}return false}var h;if(typeof l==="string"){if(n.nocase){h=c.toLowerCase()===l.toLowerCase()}else{h=c===l}this.debug("string match",l,c,h)}else{h=c.match(l);this.debug("pattern match",l,c,h)}if(!h)return false}if(r===o&&s===u){return true}else if(r===o){return i}else if(s===u){var m=r===o-1&&e[r]==="";return m}throw new Error("wtf?")};function globUnescape(e){return e.replace(/\\(.)/g,"$1")}function regExpEscape(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}},,,,,,function(e,t,i){"use strict";var n=i(567);var a=i(741);var r={brackets:function brackets(e){return e+"[]"},indices:function indices(e,t){return e+"["+t+"]"},repeat:function repeat(e){return e}};var s=Date.prototype.toISOString;var o={delimiter:"&",encode:true,encoder:n.encode,encodeValuesOnly:false,serializeDate:function serializeDate(e){return s.call(e)},skipNulls:false,strictNullHandling:false};var u=function stringify(e,t,i,a,r,s,u,l,c,d,p,f){var h=e;if(typeof u==="function"){h=u(t,h)}else if(h instanceof Date){h=d(h)}else if(h===null){if(a){return s&&!f?s(t,o.encoder):t}h=""}if(typeof h==="string"||typeof h==="number"||typeof h==="boolean"||n.isBuffer(h)){if(s){var m=f?t:s(t,o.encoder);return[p(m)+"="+p(s(h,o.encoder))]}return[p(t)+"="+p(String(h))]}var b=[];if(typeof h==="undefined"){return b}var g;if(Array.isArray(u)){g=u}else{var y=Object.keys(h);g=l?y.sort(l):y}for(var S=0;S0?T+C:""}},function(e,t,i){"use strict";var n=i(87);var a=i(747);var r=i(402);var s=i(739);var o=Object.create(s);t.extend=Object.assign;var u=Boolean(process.versions.electron);var l={fatal:false,globOptions:{},maxdepth:255,noglob:false,silent:false,verbose:false,execPath:null,bufLength:64*1024};var c={reset:function(){Object.assign(this,l);if(!u){this.execPath=process.execPath}},resetForTesting:function(){this.reset();this.silent=true}};c.reset();t.config=c;var d={error:null,errorCode:0,currentCmd:"shell.js"};t.state=d;delete process.env.OLDPWD;function isObject(e){return typeof e==="object"&&e!==null}t.isObject=isObject;function log(){if(!c.silent){console.error.apply(console,arguments)}}t.log=log;function convertErrorOutput(e){if(typeof e!=="string"){throw new TypeError("input must be a string")}return e.replace(/\\/g,"/")}t.convertErrorOutput=convertErrorOutput;function error(e,t,i){if(typeof e!=="string")throw new Error("msg must be a string");var n={continue:false,code:1,prefix:d.currentCmd+": ",silent:false};if(typeof t==="number"&&isObject(i)){i.code=t}else if(isObject(t)){i=t}else if(typeof t==="number"){i={code:t}}else if(typeof t!=="number"){i={}}i=Object.assign({},n,i);if(!d.errorCode)d.errorCode=i.code;var a=convertErrorOutput(i.prefix+e);d.error=d.error?d.error+"\n":"";d.error+=a;if(c.fatal)throw new Error(a);if(e.length>0&&!i.silent)log(a);if(!i.continue){throw{msg:"earlyExit",retValue:new ShellString("",d.error,d.errorCode)}}}t.error=error;function ShellString(e,t,i){var n;if(e instanceof Array){n=e;n.stdout=e.join("\n");if(e.length>0)n.stdout+="\n"}else{n=new String(e);n.stdout=e}n.stderr=t;n.code=i;h.forEach(function(e){n[e]=o[e].bind(n)});return n}t.ShellString=ShellString;function parseOptions(e,t,i){if(typeof e!=="string"&&!isObject(e)){throw new Error("options must be strings or key-value pairs")}else if(!isObject(t)){throw new Error("parseOptions() internal error: map must be an object")}else if(i&&!isObject(i)){throw new Error("parseOptions() internal error: errorOptions must be object")}if(e==="--"){return{}}var n={};Object.keys(t).forEach(function(e){var i=t[e];if(i[0]!=="!"){n[i]=false}});if(e==="")return n;if(typeof e==="string"){if(e[0]!=="-"){throw new Error("Options string must start with a '-'")}var a=e.slice(1).split("");a.forEach(function(e){if(e in t){var a=t[e];if(a[0]==="!"){n[a.slice(1)]=false}else{n[a]=true}}else{error("option not recognized: "+e,i||{})}})}else{Object.keys(e).forEach(function(a){var r=a[1];if(r in t){var s=t[r];n[s]=e[a]}else{error("option not recognized: "+r,i||{})}})}return n}t.parseOptions=parseOptions;function expand(e){if(!Array.isArray(e)){throw new TypeError("must be an array")}var t=[];e.forEach(function(e){if(typeof e!=="string"){t.push(e)}else{var i;try{i=r.sync(e,c.globOptions);i=i.length>0?i:[e]}catch(t){i=[e]}t=t.concat(i)}});return t}t.expand=expand;var p=typeof Buffer.alloc==="function"?function(e){return Buffer.alloc(e||c.bufLength)}:function(e){return new Buffer(e||c.bufLength)};t.buffer=p;function unlinkSync(e){try{a.unlinkSync(e)}catch(t){if(t.code==="EPERM"){a.chmodSync(e,"0666");a.unlinkSync(e)}else{throw t}}}t.unlinkSync=unlinkSync;function statFollowLinks(){return a.statSync.apply(a,arguments)}t.statFollowLinks=statFollowLinks;function statNoFollowLinks(){return a.lstatSync.apply(a,arguments)}t.statNoFollowLinks=statNoFollowLinks;function randomFileName(){function randomHash(e){if(e===1){return parseInt(16*Math.random(),10).toString(16)}var t="";for(var i=0;i0){l.comment=s[4]}else if(p.consumed){var f=s[2]+(s[3]?s[3]:"");var h=Math.ceil(p.consumed/3)*4;f=f.slice(0,h-2).replace(/[^a-zA-Z0-9+\/=]/g,"")+f.slice(h-2);var m=p.consumed%3;if(m>0&&f.slice(h-1,h)!=="=")h--;while(f.slice(h,h+1)==="=")h++;var b=f.slice(h);b=b.replace(/[\r\n]/g," ").replace(/^\s+/,"");if(b.match(/^[a-zA-Z0-9]/))l.comment=b}return l}function write(e,t){n.object(e);if(!o.isKey(e))throw new Error("Must be a public key");var i=[];var s=r.keyTypeToAlg(e);i.push(s);var u=r.write(e);i.push(u.toString("base64"));if(e.comment)i.push(e.comment);return a.from(i.join(" "))}},function(e){e.exports=(e=>JSON.parse(JSON.stringify(e)))},function(e,t,i){var n=i(602);function error(){return n.state.error}e.exports=error},,,function(e,t,i){"use strict";const{Duplex:n}=i(413);function emitClose(e){e.emit("close")}function duplexOnEnd(){if(!this.destroyed&&this._writableState.finished){this.destroy()}}function duplexOnError(e){this.removeListener("error",duplexOnError);this.destroy();if(this.listenerCount("error")===0){this.emit("error",e)}}function createWebSocketStream(e,t){let i=true;function receiverOnDrain(){if(i)e._socket.resume()}if(e.readyState===e.CONNECTING){e.once("open",function open(){e._receiver.removeAllListeners("drain");e._receiver.on("drain",receiverOnDrain)})}else{e._receiver.removeAllListeners("drain");e._receiver.on("drain",receiverOnDrain)}const a=new n({...t,autoDestroy:false,emitClose:false,objectMode:false,writableObjectMode:false});e.on("message",function message(t){if(!a.push(t)){i=false;e._socket.pause()}});e.once("error",function error(e){if(a.destroyed)return;a.destroy(e)});e.once("close",function close(){if(a.destroyed)return;a.push(null)});a._destroy=function(t,i){if(e.readyState===e.CLOSED){i(t);process.nextTick(emitClose,a);return}let n=false;e.once("error",function error(e){n=true;i(e)});e.once("close",function close(){if(!n)i(t);process.nextTick(emitClose,a)});e.terminate()};a._final=function(t){if(e.readyState===e.CONNECTING){e.once("open",function open(){a._final(t)});return}if(e._socket===null)return;if(e._socket._writableState.finished){t();if(a._readableState.endEmitted)a.destroy()}else{e._socket.once("finish",function finish(){t()});e.close()}};a._read=function(){if(e.readyState===e.OPEN&&!i){i=true;if(!e._receiver._writableState.needDrain)e._socket.resume()}};a._write=function(t,i,n){if(e.readyState===e.CONNECTING){e.once("open",function open(){a._write(t,i,n)});return}e.send(t,n)};a.on("end",duplexOnEnd);a.on("error",duplexOnError);return a}e.exports=createWebSocketStream},,function(e,t,i){const n=i(320);n.config=i(264);e.exports=n},function(e,t,i){"use strict";var n=i(43);e.exports=new n({include:[i(23)]})},function(e,t,i){"use strict";e.exports=Yallist;Yallist.Node=Node;Yallist.create=Yallist;function Yallist(e){var t=this;if(!(t instanceof Yallist)){t=new Yallist}t.tail=null;t.head=null;t.length=0;if(e&&typeof e.forEach==="function"){e.forEach(function(e){t.push(e)})}else if(arguments.length>0){for(var i=0,n=arguments.length;i1){i=t}else if(this.head){n=this.head.next;i=this.head.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var a=0;n!==null;a++){i=e(i,n.value,a);n=n.next}return i};Yallist.prototype.reduceReverse=function(e,t){var i;var n=this.tail;if(arguments.length>1){i=t}else if(this.tail){n=this.tail.prev;i=this.tail.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var a=this.length-1;n!==null;a--){i=e(i,n.value,a);n=n.prev}return i};Yallist.prototype.toArray=function(){var e=new Array(this.length);for(var t=0,i=this.head;i!==null;t++){e[t]=i.value;i=i.next}return e};Yallist.prototype.toArrayReverse=function(){var e=new Array(this.length);for(var t=0,i=this.tail;i!==null;t++){e[t]=i.value;i=i.prev}return e};Yallist.prototype.slice=function(e,t){t=t||this.length;if(t<0){t+=this.length}e=e||0;if(e<0){e+=this.length}var i=new Yallist;if(tthis.length){t=this.length}for(var n=0,a=this.head;a!==null&&nthis.length){t=this.length}for(var n=this.length,a=this.tail;a!==null&&n>t;n--){a=a.prev}for(;a!==null&&n>e;n--,a=a.prev){i.push(a.value)}return i};Yallist.prototype.splice=function(e,t,...i){if(e>this.length){e=this.length-1}if(e<0){e=this.length+e}for(var n=0,a=this.head;a!==null&&n{const i=r.STATUS_CODES[426];t.writeHead(426,{"Content-Length":i.length,"Content-Type":"text/plain"});t.end(i)});this._server.listen(e.port,e.host,e.backlog,t)}else if(e.server){this._server=e.server}if(this._server){this._removeListeners=addListeners(this._server,{listening:this.emit.bind(this,"listening"),error:this.emit.bind(this,"error"),upgrade:(e,t,i)=>{this.handleUpgrade(e,t,i,t=>{this.emit("connection",t,e)})}})}if(e.perMessageDeflate===true)e.perMessageDeflate={};if(e.clientTracking)this.clients=new Set;this.options=e}address(){if(this.options.noServer){throw new Error('The server is operating in "noServer" mode')}if(!this._server)return null;return this._server.address()}close(e){if(e)this.once("close",e);if(this.clients){for(const e of this.clients)e.terminate()}const t=this._server;if(t){this._removeListeners();this._removeListeners=this._server=null;if(this.options.port!=null){t.close(()=>this.emit("close"));return}}process.nextTick(emitClose,this)}shouldHandle(e){if(this.options.path){const t=e.url.indexOf("?");const i=t!==-1?e.url.slice(0,t):e.url;if(i!==this.options.path)return false}return true}handleUpgrade(e,t,i,n){t.on("error",socketOnError);const a=e.headers["sec-websocket-key"]!==undefined?e.headers["sec-websocket-key"].trim():false;const r=+e.headers["sec-websocket-version"];const u={};if(e.method!=="GET"||e.headers.upgrade.toLowerCase()!=="websocket"||!a||!c.test(a)||r!==8&&r!==13||!this.shouldHandle(e)){return abortHandshake(t,400)}if(this.options.perMessageDeflate){const i=new s(this.options.perMessageDeflate,true,this.options.maxPayload);try{const n=o.parse(e.headers["sec-websocket-extensions"]);if(n[s.extensionName]){i.accept(n[s.extensionName]);u[s.extensionName]=i}}catch(e){return abortHandshake(t,400)}}if(this.options.verifyClient){const s={origin:e.headers[`${r===8?"sec-websocket-origin":"origin"}`],secure:!!(e.connection.authorized||e.connection.encrypted),req:e};if(this.options.verifyClient.length===2){this.options.verifyClient(s,(r,s,o,l)=>{if(!r){return abortHandshake(t,s||401,o,l)}this.completeUpgrade(a,u,e,t,i,n)});return}if(!this.options.verifyClient(s))return abortHandshake(t,401)}this.completeUpgrade(a,u,e,t,i,n)}completeUpgrade(e,t,i,n,r,c){if(!n.readable||!n.writable)return n.destroy();const d=a.createHash("sha1").update(e+l).digest("base64");const p=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${d}`];const f=new u(null);var h=i.headers["sec-websocket-protocol"];if(h){h=h.trim().split(/ *, */);if(this.options.handleProtocols){h=this.options.handleProtocols(h,i)}else{h=h[0]}if(h){p.push(`Sec-WebSocket-Protocol: ${h}`);f.protocol=h}}if(t[s.extensionName]){const e=t[s.extensionName].params;const i=o.format({[s.extensionName]:[e]});p.push(`Sec-WebSocket-Extensions: ${i}`);f._extensions=t}this.emit("headers",p,i);n.write(p.concat("\r\n").join("\r\n"));n.removeListener("error",socketOnError);f.setSocket(n,r,this.options.maxPayload);if(this.clients){this.clients.add(f);f.on("close",()=>this.clients.delete(f))}c(f)}}e.exports=WebSocketServer;function addListeners(e,t){for(const i of Object.keys(t))e.on(i,t[i]);return function removeListeners(){for(const i of Object.keys(t)){e.removeListener(i,t[i])}}}function emitClose(e){e.emit("close")}function socketOnError(){this.destroy()}function abortHandshake(e,t,i,n){if(e.writable){i=i||r.STATUS_CODES[t];n=Object.assign({Connection:"close","Content-type":"text/html","Content-Length":Buffer.byteLength(i)},n);e.write(`HTTP/1.1 ${t} ${r.STATUS_CODES[t]}\r\n`+Object.keys(n).map(e=>`${e}: ${n[e]}`).join("\r\n")+"\r\n\r\n"+i)}e.removeListener("error",socketOnError);e.destroy()}},function(e){e.exports=require("events")},function(e,t,i){const{strict:n}=i(357);const{createHash:a}=i(373);const{format:r}=i(669);const s=i(682);const o=e=>e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_");const u=e=>o(e.toString("base64"));function getHash(e,t){switch(e){case"HS256":case"RS256":case"PS256":case"ES256":case"ES256K":return a("sha256");case"HS384":case"RS384":case"PS384":case"ES384":return a("sha384");case"HS512":case"RS512":case"PS512":case"ES512":return a("sha512");case"EdDSA":switch(t){case"Ed25519":return a("sha512");case"Ed448":if(!s){throw new TypeError("Ed448 *_hash calculation is not supported in your Node.js runtime version")}return a("shake256",{outputLength:114});default:throw new TypeError("unrecognized or invalid EdDSA curve provided")}default:throw new TypeError("unrecognized or invalid JWS algorithm provided")}}function generate(e,t,i){const n=getHash(t,i).update(e).digest();return u(n.slice(0,n.length/2))}function validate(e,t,i,a,s){if(typeof e.claim!=="string"||!e.claim){throw new TypeError("names.claim must be a non-empty string")}if(typeof e.source!=="string"||!e.source){throw new TypeError("names.source must be a non-empty string")}n(typeof t==="string"&&t,`${e.claim} must be a non-empty string`);n(typeof i==="string"&&i,`${e.source} must be a non-empty string`);let o;let u;try{o=generate(i,a,s)}catch(t){u=r("%s could not be validated (%s)",e.claim,t.message)}u=u||r("%s mismatch, expected %s, got: %s",e.claim,o,t);n.equal(o,t,u)}e.exports={validate:validate,generate:generate}},,,,,,function(e){"use strict";e.exports=balanced;function balanced(e,t,i){if(e instanceof RegExp)e=maybeMatch(e,i);if(t instanceof RegExp)t=maybeMatch(t,i);var n=range(e,t,i);return n&&{start:n[0],end:n[1],pre:i.slice(0,n[0]),body:i.slice(n[0]+e.length,n[1]),post:i.slice(n[1]+t.length)}}function maybeMatch(e,t){var i=t.match(e);return i?i[0]:null}balanced.range=range;function range(e,t,i){var n,a,r,s,o;var u=i.indexOf(e);var l=i.indexOf(t,u+1);var c=u;if(u>=0&&l>0){n=[];r=i.length;while(c>=0&&!o){if(c==u){n.push(c);u=i.indexOf(e,c+1)}else if(n.length==1){o=[n.pop(),l]}else{a=n.pop();if(a=0?u:l}if(n.length){o=[r,s]}}return o}},function(e){e.exports=require("path")},function(e,t,i){"use strict";var n=i(601);var a=i(267);var r=i(741);e.exports={formats:r,parse:a,stringify:n}},function(e,t,i){e.exports={read:read,write:write};var n=i(872);var a=i(215).Buffer;var r=i(538);var s=i(852);var o=i(753);function read(e,t){var i=e.toString("ascii").split(/[\r\n]+/);var s=false;var o;var u=0;while(ui.length){throw new Error("Invalid public-lines count")}var p=a.from(i.slice(u,u+d).join(""),"base64");var f=r.algToKeyType(l);var h=r.read(p);if(h.type!==f){throw new Error("Outer key algorithm mismatch")}h.comment=c;return h}function splitHeader(e){var t=e.indexOf(":");if(t===-1)return null;var i=e.slice(0,t);++t;while(e[t]===" ")++t;var n=e.slice(t);return[i,n]}function write(e,t){n.object(e);if(!s.isKey(e))throw new Error("Must be a public key");var i=r.keyTypeToAlg(e);var o=r.write(e);var u=e.comment||"";var l=o.toString("base64");var c=wrap(l,64);c.unshift("Public-Lines: "+c.length);c.unshift("Comment: "+u);c.unshift("Encryption: none");c.unshift("PuTTY-User-Key-File-2: "+i);return a.from(c.join("\n")+"\n")}function wrap(e,t){var i=[];var n=0;while(n{switch(e){case"RSA":return a(await r.generate(t,l),i);case"EC":return a(await s.generate(t,l),i);case"OKP":return a(await o.generate(t,l),i);case"oct":return a(await u.generate(t,l),i);default:throw new n.JOSENotSupported(`unsupported key type: ${e}`)}};const c=(e,t,i,l=true)=>{switch(e){case"RSA":return a(r.generateSync(t,l),i);case"EC":return a(s.generateSync(t,l),i);case"OKP":return a(o.generateSync(t,l),i);case"oct":return a(u.generateSync(t,l),i);default:throw new n.JOSENotSupported(`unsupported key type: ${e}`)}};e.exports.generate=l;e.exports.generateSync=c},function(e,t){"use strict";function Store(){}t.Store=Store;Store.prototype.synchronous=false;Store.prototype.findCookie=function(e,t,i,n){throw new Error("findCookie is not implemented")};Store.prototype.findCookies=function(e,t,i){throw new Error("findCookies is not implemented")};Store.prototype.putCookie=function(e,t){throw new Error("putCookie is not implemented")};Store.prototype.updateCookie=function(e,t,i){throw new Error("updateCookie is not implemented")};Store.prototype.removeCookie=function(e,t,i,n){throw new Error("removeCookie is not implemented")};Store.prototype.removeCookies=function(e,t,i){throw new Error("removeCookies is not implemented")};Store.prototype.removeAllCookies=function(e){throw new Error("removeAllCookies is not implemented")};Store.prototype.getAllCookies=function(e){throw new Error("getAllCookies is not implemented (therefore jar cannot be serialized)")}},function(e){"use strict";var t=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];e.exports=function(e,i){for(var n=0;n3)return false;if(t[t.length-n.length-1]!=="/")return false}return true}function constructJavascriptRegExp(e){var t=e,i=/\/([gim]*)$/.exec(e),n="";if(t[0]==="/"){if(i)n=i[1];t=t.slice(1,t.length-n.length-1)}return new RegExp(t,n)}function representJavascriptRegExp(e){var t="/"+e.source+"/";if(e.global)t+="g";if(e.multiline)t+="m";if(e.ignoreCase)t+="i";return t}function isRegExp(e){return Object.prototype.toString.call(e)==="[object RegExp]"}e.exports=new n("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:resolveJavascriptRegExp,construct:constructJavascriptRegExp,predicate:isRegExp,represent:representJavascriptRegExp})},function(e,t,i){const n=i(874);const a=(e,t,i)=>n(t,e,i);e.exports=a},function(e){e.exports=require("net")},function(e){"use strict";const t=new Set([200,203,204,206,300,301,404,405,410,414,501]);const i=new Set([200,203,204,300,301,302,303,307,308,404,405,410,414,501]);const n=new Set([500,502,503,504]);const a={date:true,connection:true,"keep-alive":true,"proxy-authenticate":true,"proxy-authorization":true,te:true,trailer:true,"transfer-encoding":true,upgrade:true};const r={"content-length":true,"content-encoding":true,"transfer-encoding":true,"content-range":true};function toNumberOrZero(e){const t=parseInt(e,10);return isFinite(t)?t:0}function isErrorResponse(e){if(!e){return true}return n.has(e.status)}function parseCacheControl(e){const t={};if(!e)return t;const i=e.trim().split(/\s*,\s*/);for(const e of i){const[i,n]=e.split(/\s*=\s*/,2);t[i]=n===undefined?true:n.replace(/^"|"$/g,"")}return t}function formatCacheControl(e){let t=[];for(const i in e){const n=e[i];t.push(n===true?i:i+"="+n)}if(!t.length){return undefined}return t.join(", ")}e.exports=class CachePolicy{constructor(e,t,{shared:i,cacheHeuristic:n,immutableMinTimeToLive:a,ignoreCargoCult:r,_fromObject:s}={}){if(s){this._fromObject(s);return}if(!t||!t.headers){throw Error("Response headers missing")}this._assertRequestHasHeaders(e);this._responseTime=this.now();this._isShared=i!==false;this._cacheHeuristic=undefined!==n?n:.1;this._immutableMinTtl=undefined!==a?a:24*3600*1e3;this._status="status"in t?t.status:200;this._resHeaders=t.headers;this._rescc=parseCacheControl(t.headers["cache-control"]);this._method="method"in e?e.method:"GET";this._url=e.url;this._host=e.headers.host;this._noAuthorization=!e.headers.authorization;this._reqHeaders=t.headers.vary?e.headers:null;this._reqcc=parseCacheControl(e.headers["cache-control"]);if(r&&"pre-check"in this._rescc&&"post-check"in this._rescc){delete this._rescc["pre-check"];delete this._rescc["post-check"];delete this._rescc["no-cache"];delete this._rescc["no-store"];delete this._rescc["must-revalidate"];this._resHeaders=Object.assign({},this._resHeaders,{"cache-control":formatCacheControl(this._rescc)});delete this._resHeaders.expires;delete this._resHeaders.pragma}if(t.headers["cache-control"]==null&&/no-cache/.test(t.headers.pragma)){this._rescc["no-cache"]=true}}now(){return Date.now()}storable(){return!!(!this._reqcc["no-store"]&&("GET"===this._method||"HEAD"===this._method||"POST"===this._method&&this._hasExplicitExpiration())&&i.has(this._status)&&!this._rescc["no-store"]&&(!this._isShared||!this._rescc.private)&&(!this._isShared||this._noAuthorization||this._allowsStoringAuthenticated())&&(this._resHeaders.expires||this._rescc["max-age"]||this._isShared&&this._rescc["s-maxage"]||this._rescc.public||t.has(this._status)))}_hasExplicitExpiration(){return this._isShared&&this._rescc["s-maxage"]||this._rescc["max-age"]||this._resHeaders.expires}_assertRequestHasHeaders(e){if(!e||!e.headers){throw Error("Request headers missing")}}satisfiesWithoutRevalidation(e){this._assertRequestHasHeaders(e);const t=parseCacheControl(e.headers["cache-control"]);if(t["no-cache"]||/no-cache/.test(e.headers.pragma)){return false}if(t["max-age"]&&this.age()>t["max-age"]){return false}if(t["min-fresh"]&&this.timeToLive()<1e3*t["min-fresh"]){return false}if(this.stale()){const e=t["max-stale"]&&!this._rescc["must-revalidate"]&&(true===t["max-stale"]||t["max-stale"]>this.age()-this.maxAge());if(!e){return false}}return this._requestMatches(e,false)}_requestMatches(e,t){return(!this._url||this._url===e.url)&&this._host===e.headers.host&&(!e.method||this._method===e.method||t&&"HEAD"===e.method)&&this._varyMatches(e)}_allowsStoringAuthenticated(){return this._rescc["must-revalidate"]||this._rescc.public||this._rescc["s-maxage"]}_varyMatches(e){if(!this._resHeaders.vary){return true}if(this._resHeaders.vary==="*"){return false}const t=this._resHeaders.vary.trim().toLowerCase().split(/\s*,\s*/);for(const i of t){if(e.headers[i]!==this._reqHeaders[i])return false}return true}_copyWithoutHopByHopHeaders(e){const t={};for(const i in e){if(a[i])continue;t[i]=e[i]}if(e.connection){const i=e.connection.trim().split(/\s*,\s*/);for(const e of i){delete t[e]}}if(t.warning){const e=t.warning.split(/,/).filter(e=>{return!/^\s*1[0-9][0-9]/.test(e)});if(!e.length){delete t.warning}else{t.warning=e.join(",").trim()}}return t}responseHeaders(){const e=this._copyWithoutHopByHopHeaders(this._resHeaders);const t=this.age();if(t>3600*24&&!this._hasExplicitExpiration()&&this.maxAge()>3600*24){e.warning=(e.warning?`${e.warning}, `:"")+'113 - "rfc7234 5.5.4"'}e.age=`${Math.round(t)}`;e.date=new Date(this.now()).toUTCString();return e}date(){const e=Date.parse(this._resHeaders.date);if(isFinite(e)){return e}return this._responseTime}age(){let e=this._ageValue();const t=(this.now()-this._responseTime)/1e3;return e+t}_ageValue(){return toNumberOrZero(this._resHeaders.age)}maxAge(){if(!this.storable()||this._rescc["no-cache"]){return 0}if(this._isShared&&(this._resHeaders["set-cookie"]&&!this._rescc.public&&!this._rescc.immutable)){return 0}if(this._resHeaders.vary==="*"){return 0}if(this._isShared){if(this._rescc["proxy-revalidate"]){return 0}if(this._rescc["s-maxage"]){return toNumberOrZero(this._rescc["s-maxage"])}}if(this._rescc["max-age"]){return toNumberOrZero(this._rescc["max-age"])}const e=this._rescc.immutable?this._immutableMinTtl:0;const t=this.date();if(this._resHeaders.expires){const i=Date.parse(this._resHeaders.expires);if(Number.isNaN(i)||ii){return Math.max(e,(t-i)/1e3*this._cacheHeuristic)}}return e}timeToLive(){const e=this.maxAge()-this.age();const t=e+toNumberOrZero(this._rescc["stale-if-error"]);const i=e+toNumberOrZero(this._rescc["stale-while-revalidate"]);return Math.max(0,e,t,i)*1e3}stale(){return this.maxAge()<=this.age()}_useStaleIfError(){return this.maxAge()+toNumberOrZero(this._rescc["stale-if-error"])>this.age()}useStaleWhileRevalidate(){return this.maxAge()+toNumberOrZero(this._rescc["stale-while-revalidate"])>this.age()}static fromObject(e){return new this(undefined,undefined,{_fromObject:e})}_fromObject(e){if(this._responseTime)throw Error("Reinitialized");if(!e||e.v!==1)throw Error("Invalid serialization");this._responseTime=e.t;this._isShared=e.sh;this._cacheHeuristic=e.ch;this._immutableMinTtl=e.imm!==undefined?e.imm:24*3600*1e3;this._status=e.st;this._resHeaders=e.resh;this._rescc=e.rescc;this._method=e.m;this._url=e.u;this._host=e.h;this._noAuthorization=e.a;this._reqHeaders=e.reqh;this._reqcc=e.reqcc}toObject(){return{v:1,t:this._responseTime,sh:this._isShared,ch:this._cacheHeuristic,imm:this._immutableMinTtl,st:this._status,resh:this._resHeaders,rescc:this._rescc,m:this._method,u:this._url,h:this._host,a:this._noAuthorization,reqh:this._reqHeaders,reqcc:this._reqcc}}revalidationHeaders(e){this._assertRequestHasHeaders(e);const t=this._copyWithoutHopByHopHeaders(e.headers);delete t["if-range"];if(!this._requestMatches(e,true)||!this.storable()){delete t["if-none-match"];delete t["if-modified-since"];return t}if(this._resHeaders.etag){t["if-none-match"]=t["if-none-match"]?`${t["if-none-match"]}, ${this._resHeaders.etag}`:this._resHeaders.etag}const i=t["accept-ranges"]||t["if-match"]||t["if-unmodified-since"]||this._method&&this._method!="GET";if(i){delete t["if-modified-since"];if(t["if-none-match"]){const e=t["if-none-match"].split(/,/).filter(e=>{return!/^\s*W\//.test(e)});if(!e.length){delete t["if-none-match"]}else{t["if-none-match"]=e.join(",").trim()}}}else if(this._resHeaders["last-modified"]&&!t["if-modified-since"]){t["if-modified-since"]=this._resHeaders["last-modified"]}return t}revalidatedPolicy(e,t){this._assertRequestHasHeaders(e);if(this._useStaleIfError()&&isErrorResponse(t)){return{modified:false,matches:false,policy:this}}if(!t||!t.headers){throw Error("Response headers missing")}let i=false;if(t.status!==undefined&&t.status!=304){i=false}else if(t.headers.etag&&!/^\s*W\//.test(t.headers.etag)){i=this._resHeaders.etag&&this._resHeaders.etag.replace(/^\s*W\//,"")===t.headers.etag}else if(this._resHeaders.etag&&t.headers.etag){i=this._resHeaders.etag.replace(/^\s*W\//,"")===t.headers.etag.replace(/^\s*W\//,"")}else if(this._resHeaders["last-modified"]){i=this._resHeaders["last-modified"]===t.headers["last-modified"]}else{if(!this._resHeaders.etag&&!this._resHeaders["last-modified"]&&!t.headers.etag&&!t.headers["last-modified"]){i=true}}if(!i){return{policy:new this.constructor(e,t),modified:t.status!=304,matches:false}}const n={};for(const e in this._resHeaders){n[e]=e in t.headers&&!r[e]?t.headers[e]:this._resHeaders[e]}const a=Object.assign({},t,{status:this._status,method:this._method,headers:n});return{policy:new this.constructor(e,a,{shared:this._isShared,cacheHeuristic:this._cacheHeuristic,immutableMinTimeToLive:this._immutableMinTtl}),modified:false,matches:true}}}},function(e,t,i){"use strict";var n=i(945);function resolveYamlMerge(e){return e==="<<"||e===null}e.exports=new n("tag:yaml.org,2002:merge",{kind:"scalar",resolve:resolveYamlMerge})},,function(e,t,i){e.exports={Verifier:Verifier,Signer:Signer};var n=i(196);var a=i(413);var r=i(669);var s=i(872);var o=i(215).Buffer;var u=i(575);function Verifier(e,t){if(t.toLowerCase()!=="sha512")throw new Error("ED25519 only supports the use of "+"SHA-512 hashes");this.key=e;this.chunks=[];a.Writable.call(this,{})}r.inherits(Verifier,a.Writable);Verifier.prototype._write=function(e,t,i){this.chunks.push(e);i()};Verifier.prototype.update=function(e){if(typeof e==="string")e=o.from(e,"binary");this.chunks.push(e)};Verifier.prototype.verify=function(e,t){var i;if(u.isSignature(e,[2,0])){if(e.type!=="ed25519")return false;i=e.toBuffer("raw")}else if(typeof e==="string"){i=o.from(e,"base64")}else if(u.isSignature(e,[1,0])){throw new Error("signature was created by too old "+"a version of sshpk and cannot be verified")}s.buffer(i);return n.sign.detached.verify(new Uint8Array(o.concat(this.chunks)),new Uint8Array(i),new Uint8Array(this.key.part.A.data))};function Signer(e,t){if(t.toLowerCase()!=="sha512")throw new Error("ED25519 only supports the use of "+"SHA-512 hashes");this.key=e;this.chunks=[];a.Writable.call(this,{})}r.inherits(Signer,a.Writable);Signer.prototype._write=function(e,t,i){this.chunks.push(e);i()};Signer.prototype.update=function(e){if(typeof e==="string")e=o.from(e,"binary");this.chunks.push(e)};Signer.prototype.sign=function(){var e=n.sign.detached(new Uint8Array(o.concat(this.chunks)),new Uint8Array(o.concat([this.key.part.k.data,this.key.part.A.data])));var t=o.from(e);var i=u.parse(t,"ed25519","raw");i.hashAlgorithm="sha512";return i}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=i(878);class Log{constructor(e){this.config=e}log(e,t,i,a,r,s={}){const o=`/api/v1/namespaces/${e}/pods/${t}/log`;const u=this.config.getCurrentCluster();if(!u){throw new Error("No currently active cluster")}const l=u.server+o;const c={method:"GET",qs:Object.assign({},s,{container:i}),uri:l};this.config.applyToRequest(c);const d=n(c,(e,t,i)=>{if(e){r(e)}else if(t&&t.statusCode!==200){r(i)}else{r(null)}}).on("response",e=>{if(e.statusCode===200){d.pipe(a)}});return d}}t.Log=Log},,,,,function(e,t,i){"use strict";var n=i(196).lowlevel.crypto_hash;var a=0;var r=function(){this.S=[new Uint32Array([3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946]),new Uint32Array([1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055]),new Uint32Array([3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504]),new Uint32Array([976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462])];this.P=new Uint32Array([608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731])};function F(e,t,i){return(e[0][t[i+3]]+e[1][t[i+2]]^e[2][t[i+1]])+e[3][t[i]]}r.prototype.encipher=function(e,t){if(t===undefined){t=new Uint8Array(e.buffer);if(e.byteOffset!==0)t=t.subarray(e.byteOffset)}e[0]^=this.P[0];for(var i=1;i<16;i+=2){e[1]^=F(this.S,t,0)^this.P[i];e[0]^=F(this.S,t,4)^this.P[i+1]}var n=e[0];e[0]=e[1]^this.P[17];e[1]=n};r.prototype.decipher=function(e){var t=new Uint8Array(e.buffer);if(e.byteOffset!==0)t=t.subarray(e.byteOffset);e[0]^=this.P[17];for(var i=16;i>0;i-=2){e[1]^=F(this.S,t,0)^this.P[i];e[0]^=F(this.S,t,4)^this.P[i-1]}var n=e[0];e[0]=e[1]^this.P[0];e[1]=n};function stream2word(e,t){var i,n=0;for(i=0;i<4;i++,a++){if(a>=t)a=0;n=n<<8|e[a]}return n}r.prototype.expand0state=function(e,t){var i=new Uint32Array(2),n,r;var s=new Uint8Array(i.buffer);for(n=0,a=0;n<18;n++){this.P[n]^=stream2word(e,t)}a=0;for(n=0;n<18;n+=2){this.encipher(i,s);this.P[n]=i[0];this.P[n+1]=i[1]}for(n=0;n<4;n++){for(r=0;r<256;r+=2){this.encipher(i,s);this.S[n][r]=i[0];this.S[n][r+1]=i[1]}}};r.prototype.expandstate=function(e,t,i,n){var r=new Uint32Array(2),s,o;for(s=0,a=0;s<18;s++){this.P[s]^=stream2word(i,n)}for(s=0,a=0;s<18;s+=2){r[0]^=stream2word(e,t);r[1]^=stream2word(e,t);this.encipher(r);this.P[s]=r[0];this.P[s+1]=r[1]}for(s=0;s<4;s++){for(o=0;o<256;o+=2){r[0]^=stream2word(e,t);r[1]^=stream2word(e,t);this.encipher(r);this.S[s][o]=r[0];this.S[s][o+1]=r[1]}}a=0};r.prototype.enc=function(e,t){for(var i=0;i>>24;i[4*o+2]=a[o]>>>16;i[4*o+1]=a[o]>>>8;i[4*o+0]=a[o]}}function bcrypt_pbkdf(e,t,i,a,r,s,u){var l=new Uint8Array(64),c=new Uint8Array(64),d=new Uint8Array(o),p=new Uint8Array(o),f=new Uint8Array(a+4),h,m,b,g,y,S,w=s;if(u<1)return-1;if(t===0||a===0||s===0||s>d.byteLength*d.byteLength||a>1<<20)return-1;g=Math.floor((s+d.byteLength-1)/d.byteLength);b=Math.floor((s+g-1)/g);for(h=0;h0;S++){f[a+0]=S>>>24;f[a+1]=S>>>16;f[a+2]=S>>>8;f[a+3]=S;n(c,f,a+4);bcrypt_hash(l,c,p);for(h=d.byteLength;h--;)d[h]=p[h];for(h=1;h=w)break;r[y]=d[h]}s-=h}return 0}e.exports={BLOCKS:s,HASHSIZE:o,hash:bcrypt_hash,pbkdf:bcrypt_pbkdf}},,function(e){"use strict";e.exports=function generate_items(e,t,i){var n=" ";var a=e.level;var r=e.dataLevel;var s=e.schema[t];var o=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var l=!e.opts.allErrors;var c="data"+(r||"");var d="valid"+a;var p="errs__"+a;var f=e.util.copy(e);var h="";f.level++;var m="valid"+f.level;var b="i"+a,g=f.dataLevel=e.dataLevel+1,y="data"+g,S=e.baseId;n+="var "+p+" = errors;var "+d+";";if(Array.isArray(s)){var w=e.schema.additionalItems;if(w===false){n+=" "+d+" = "+c+".length <= "+s.length+"; ";var v=u;u=e.errSchemaPath+"/additionalItems";n+=" if (!"+d+") { ";var z=z||[];z.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+"additionalItems"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+s.length+" } ";if(e.opts.messages!==false){n+=" , message: 'should NOT have more than "+s.length+" items' "}if(e.opts.verbose){n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}n+=" } "}else{n+=" {} "}var j=n;n=z.pop();if(!e.compositeRule&&l){if(e.async){n+=" throw new ValidationError(["+j+"]); "}else{n+=" validate.errors = ["+j+"]; return false; "}}else{n+=" var err = "+j+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+=" } ";u=v;if(l){h+="}";n+=" else { "}}var O=s;if(O){var k,C=-1,T=O.length-1;while(C0:e.util.schemaHasRules(k,e.RULES.all)){n+=" "+m+" = true; if ("+c+".length > "+C+") { ";var R=c+"["+C+"]";f.schema=k;f.schemaPath=o+"["+C+"]";f.errSchemaPath=u+"/"+C;f.errorPath=e.util.getPathExpr(e.errorPath,C,e.opts.jsonPointers,true);f.dataPathArr[g]=C;var E=e.validate(f);f.baseId=S;if(e.util.varOccurences(E,y)<2){n+=" "+e.util.varReplace(E,y,R)+" "}else{n+=" var "+y+" = "+R+"; "+E+" "}n+=" } ";if(l){n+=" if ("+m+") { ";h+="}"}}}}if(typeof w=="object"&&(e.opts.strictKeywords?typeof w=="object"&&Object.keys(w).length>0:e.util.schemaHasRules(w,e.RULES.all))){f.schema=w;f.schemaPath=e.schemaPath+".additionalItems";f.errSchemaPath=e.errSchemaPath+"/additionalItems";n+=" "+m+" = true; if ("+c+".length > "+s.length+") { for (var "+b+" = "+s.length+"; "+b+" < "+c+".length; "+b+"++) { ";f.errorPath=e.util.getPathExpr(e.errorPath,b,e.opts.jsonPointers,true);var R=c+"["+b+"]";f.dataPathArr[g]=b;var E=e.validate(f);f.baseId=S;if(e.util.varOccurences(E,y)<2){n+=" "+e.util.varReplace(E,y,R)+" "}else{n+=" var "+y+" = "+R+"; "+E+" "}if(l){n+=" if (!"+m+") break; "}n+=" } } ";if(l){n+=" if ("+m+") { ";h+="}"}}}else if(e.opts.strictKeywords?typeof s=="object"&&Object.keys(s).length>0:e.util.schemaHasRules(s,e.RULES.all)){f.schema=s;f.schemaPath=o;f.errSchemaPath=u;n+=" for (var "+b+" = "+0+"; "+b+" < "+c+".length; "+b+"++) { ";f.errorPath=e.util.getPathExpr(e.errorPath,b,e.opts.jsonPointers,true);var R=c+"["+b+"]";f.dataPathArr[g]=b;var E=e.validate(f);f.baseId=S;if(e.util.varOccurences(E,y)<2){n+=" "+e.util.varReplace(E,y,R)+" "}else{n+=" var "+y+" = "+R+"; "+E+" "}if(l){n+=" if (!"+m+") break; "}n+=" }"}if(l){n+=" "+h+" if ("+p+" == errors) {"}return n}},,function(e,t,i){(function(e,i){true?i(t):undefined})(this,function(t){"use strict";function _typeof(e){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function(e){return typeof e}}else{_typeof=function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return _typeof(e)}function _classCallCheck(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function _inherits(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)_setPrototypeOf(e,t)}function _getPrototypeOf(e){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(e){return e.__proto__||Object.getPrototypeOf(e)};return _getPrototypeOf(e)}function _setPrototypeOf(e,t){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,t){e.__proto__=t;return e};return _setPrototypeOf(e,t)}function isNativeReflectConstruct(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(e){return false}}function _construct(e,t,i){if(isNativeReflectConstruct()){_construct=Reflect.construct}else{_construct=function _construct(e,t,i){var n=[null];n.push.apply(n,t);var a=Function.bind.apply(e,n);var r=new a;if(i)_setPrototypeOf(r,i.prototype);return r}}return _construct.apply(null,arguments)}function _isNativeFunction(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function _wrapNativeSuper(e){var t=typeof Map==="function"?new Map:undefined;_wrapNativeSuper=function _wrapNativeSuper(e){if(e===null||!_isNativeFunction(e))return e;if(typeof e!=="function"){throw new TypeError("Super expression must either be null or a function")}if(typeof t!=="undefined"){if(t.has(e))return t.get(e);t.set(e,Wrapper)}function Wrapper(){return _construct(e,arguments,_getPrototypeOf(this).constructor)}Wrapper.prototype=Object.create(e.prototype,{constructor:{value:Wrapper,enumerable:false,writable:true,configurable:true}});return _setPrototypeOf(Wrapper,e)};return _wrapNativeSuper(e)}function _assertThisInitialized(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function _possibleConstructorReturn(e,t){if(t&&(typeof t==="object"||typeof t==="function")){return t}return _assertThisInitialized(e)}var n=eval;var a=true&&Boolean(e.exports)&&!(typeof navigator!=="undefined"&&navigator.product==="ReactNative");var r=["value","path","pointer","parent","parentProperty","all"];var s=Object.prototype.hasOwnProperty;var o=function moveToAnotherArray(e,t,i){var n=e.length;for(var a=0;a1){d.shift()}this._hasParentSelector=null;var p=this._trace(d,t,["$"],o,u,i).filter(function(e){return e&&!e.isParentSelector});if(!p.length){return c?[]:undefined}if(p.length===1&&!c&&!Array.isArray(p[0].value)){return this._getPreferredOutput(p[0])}return p.reduce(function(e,t){var i=a._getPreferredOutput(t);if(l&&Array.isArray(i)){e=e.concat(i)}else{e.push(i)}return e},[])};JSONPath.prototype._getPreferredOutput=function(e){var t=this.currResultType;switch(t){default:throw new TypeError("Unknown result type");case"all":e.pointer=JSONPath.toPointer(e.path);e.path=typeof e.path==="string"?e.path:JSONPath.toPathString(e.path);return e;case"value":case"parent":case"parentProperty":return e[t];case"path":return JSONPath.toPathString(e[t]);case"pointer":return JSONPath.toPointer(e.path)}};JSONPath.prototype._handleCallback=function(e,t,i){if(t){var n=this._getPreferredOutput(e);e.path=typeof e.path==="string"?e.path:JSONPath.toPathString(e.path);t(n,i,e)}};JSONPath.prototype._trace=function(e,t,i,n,a,r,o){var u;var l=this;if(!e.length){u={path:i,value:t,parent:n,parentProperty:a};this._handleCallback(u,r,"value");return u}var c=e[0],d=e.slice(1);var p=[];function addRet(e){if(Array.isArray(e)){e.forEach(function(e){p.push(e)})}else{p.push(e)}}if((typeof c!=="string"||o)&&t&&s.call(t,c)){addRet(this._trace(d,t[c],push(i,c),t,c,r))}else if(c==="*"){this._walk(c,d,t,i,n,a,r,function(e,t,i,n,a,r,s,o){addRet(l._trace(unshift(e,i),n,a,r,s,o,true))})}else if(c===".."){addRet(this._trace(d,t,i,n,a,r));this._walk(c,d,t,i,n,a,r,function(e,t,i,n,a,r,s,o){if(_typeof(n[e])==="object"){addRet(l._trace(unshift(t,i),n[e],push(a,e),n,e,o))}})}else if(c==="^"){this._hasParentSelector=true;return i.length?{path:i.slice(0,-1),expr:d,isParentSelector:true}:[]}else if(c==="~"){u={path:push(i,c),value:a,parent:n,parentProperty:null};this._handleCallback(u,r,"property");return u}else if(c==="$"){addRet(this._trace(d,t,i,null,null,r))}else if(/^(-?\d*):(-?\d*):?(\d*)$/.test(c)){addRet(this._slice(c,d,t,i,n,a,r))}else if(c.indexOf("?(")===0){if(this.currPreventEval){throw new Error("Eval [?(expr)] prevented in JSONPath expression.")}this._walk(c,d,t,i,n,a,r,function(e,t,i,n,a,r,s,o){if(l._eval(t.replace(/^\?\((.*?)\)$/,"$1"),n[e],e,a,r,s)){addRet(l._trace(unshift(e,i),n,a,r,s,o))}})}else if(c[0]==="("){if(this.currPreventEval){throw new Error("Eval [(expr)] prevented in JSONPath expression.")}addRet(this._trace(unshift(this._eval(c,t,i[i.length-1],i.slice(0,-1),n,a),d),t,i,n,a,r))}else if(c[0]==="@"){var f=false;var h=c.slice(1,-2);switch(h){default:throw new TypeError("Unknown value type "+h);case"scalar":if(!t||!["object","function"].includes(_typeof(t))){f=true}break;case"boolean":case"string":case"undefined":case"function":if(_typeof(t)===h){f=true}break;case"number":if(_typeof(t)===h&&isFinite(t)){f=true}break;case"nonFinite":if(typeof t==="number"&&!isFinite(t)){f=true}break;case"object":if(t&&_typeof(t)===h){f=true}break;case"array":if(Array.isArray(t)){f=true}break;case"other":f=this.currOtherTypeCallback(t,i,n,a);break;case"integer":if(t===Number(t)&&isFinite(t)&&!(t%1)){f=true}break;case"null":if(t===null){f=true}break}if(f){u={path:i,value:t,parent:n,parentProperty:a};this._handleCallback(u,r,"value");return u}}else if(c[0]==="`"&&t&&s.call(t,c.slice(1))){var m=c.slice(1);addRet(this._trace(d,t[m],push(i,m),t,m,r,true))}else if(c.includes(",")){var b=c.split(",");var g=true;var y=false;var S=undefined;try{for(var w=b[Symbol.iterator](),v;!(g=(v=w.next()).done);g=true){var z=v.value;addRet(this._trace(unshift(z,d),t,i,n,a,r))}}catch(e){y=true;S=e}finally{try{if(!g&&w["return"]!=null){w["return"]()}}finally{if(y){throw S}}}}else if(!o&&t&&s.call(t,c)){addRet(this._trace(d,t[c],push(i,c),t,c,r,true))}if(this._hasParentSelector){for(var j=0;j0:e.util.schemaHasRules(v,e.RULES.all)){f.schema=v;f.schemaPath=o+"["+z+"]";f.errSchemaPath=u+"/"+z;n+=" "+e.validate(f)+" ";f.baseId=b}else{n+=" var "+m+" = true; "}if(z){n+=" if ("+m+" && "+g+") { "+d+" = false; "+y+" = ["+y+", "+z+"]; } else { ";h+="}"}n+=" if ("+m+") { "+d+" = "+g+" = true; "+y+" = "+z+"; }"}}e.compositeRule=f.compositeRule=S;n+=""+h+"if (!"+d+") { var err = ";if(e.createErrors!==false){n+=" { keyword: '"+"oneOf"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { passingSchemas: "+y+" } ";if(e.opts.messages!==false){n+=" , message: 'should match exactly one schema in oneOf' "}if(e.opts.verbose){n+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}n+=" } "}else{n+=" {} "}n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(!e.compositeRule&&l){if(e.async){n+=" throw new ValidationError(vErrors); "}else{n+=" validate.errors = vErrors; return false; "}}n+="} else { errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; }";if(e.opts.allErrors){n+=" } "}return n}},,,,function(e){"use strict";class CancelError extends Error{constructor(e){super(e||"Promise was canceled");this.name="CancelError"}get isCanceled(){return true}}class PCancelable{static fn(e){return(...t)=>{return new PCancelable((i,n,a)=>{t.push(a);e(...t).then(i,n)})}}constructor(e){this._cancelHandlers=[];this._isPending=true;this._isCanceled=false;this._rejectOnCancel=true;this._promise=new Promise((t,i)=>{this._reject=i;const n=e=>{this._isPending=false;t(e)};const a=e=>{this._isPending=false;i(e)};const r=e=>{this._cancelHandlers.push(e)};Object.defineProperties(r,{shouldReject:{get:()=>this._rejectOnCancel,set:e=>{this._rejectOnCancel=e}}});return e(n,a,r)})}then(e,t){return this._promise.then(e,t)}catch(e){return this._promise.catch(e)}finally(e){return this._promise.finally(e)}cancel(e){if(!this._isPending||this._isCanceled){return}if(this._cancelHandlers.length>0){try{for(const e of this._cancelHandlers){e()}}catch(e){this._reject(e)}}this._isCanceled=true;if(this._rejectOnCancel){this._reject(new CancelError(e))}}get isCanceled(){return this._isCanceled}}Object.setPrototypeOf(PCancelable.prototype,Promise.prototype);e.exports=PCancelable;e.exports.default=PCancelable;e.exports.CancelError=CancelError},function(e,t,i){var n=t,a=i(835),r=i(191),s=i(373),o=i(178),u=o(1e3);function hmac(e,t,i){return s.createHmac("sha256",e).update(t,"utf8").digest(i)}function hash(e,t){return s.createHash("sha256").update(e,"utf8").digest(t)}function encodeRfc3986(e){return e.replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function encodeRfc3986Full(e){return encodeRfc3986(encodeURIComponent(e))}function RequestSigner(e,t){if(typeof e==="string")e=a.parse(e);var i=e.headers=e.headers||{},n=(!this.service||!this.region)&&this.matchHost(e.hostname||e.host||i.Host||i.host);this.request=e;this.credentials=t||this.defaultCredentials();this.service=e.service||n[0]||"";this.region=e.region||n[1]||"us-east-1";if(this.service==="email")this.service="ses";if(!e.method&&e.body)e.method="POST";if(!i.Host&&!i.host){i.Host=e.hostname||e.host||this.createHost();if(e.port)i.Host+=":"+e.port}if(!e.hostname&&!e.host)e.hostname=i.Host||i.host;this.isCodeCommitGit=this.service==="codecommit"&&e.method==="GIT"}RequestSigner.prototype.matchHost=function(e){var t=(e||"").match(/([^\.]+)\.(?:([^\.]*)\.)?amazonaws\.com(\.cn)?$/);var i=(t||[]).slice(1,3);if(i[1]==="es")i=i.reverse();if(i[1]=="s3"){i[0]="s3";i[1]="us-east-1"}else{for(var n=0;n<2;n++){if(/^s3-/.test(i[n])){i[1]=i[n].slice(3);i[0]="s3";break}}}return i};RequestSigner.prototype.isSingleRegion=function(){if(["s3","sdb"].indexOf(this.service)>=0&&this.region==="us-east-1")return true;return["cloudfront","ls","route53","iam","importexport","sts"].indexOf(this.service)>=0};RequestSigner.prototype.createHost=function(){var e=this.isSingleRegion()?"":"."+this.region,t=this.service==="ses"?"email":this.service;return t+e+".amazonaws.com"};RequestSigner.prototype.prepareRequest=function(){this.parsePath();var e=this.request,t=e.headers,i;if(e.signQuery){this.parsedPath.query=i=this.parsedPath.query||{};if(this.credentials.sessionToken)i["X-Amz-Security-Token"]=this.credentials.sessionToken;if(this.service==="s3"&&!i["X-Amz-Expires"])i["X-Amz-Expires"]=86400;if(i["X-Amz-Date"])this.datetime=i["X-Amz-Date"];else i["X-Amz-Date"]=this.getDateTime();i["X-Amz-Algorithm"]="AWS4-HMAC-SHA256";i["X-Amz-Credential"]=this.credentials.accessKeyId+"/"+this.credentialString();i["X-Amz-SignedHeaders"]=this.signedHeaders()}else{if(!e.doNotModifyHeaders&&!this.isCodeCommitGit){if(e.body&&!t["Content-Type"]&&!t["content-type"])t["Content-Type"]="application/x-www-form-urlencoded; charset=utf-8";if(e.body&&!t["Content-Length"]&&!t["content-length"])t["Content-Length"]=Buffer.byteLength(e.body);if(this.credentials.sessionToken&&!t["X-Amz-Security-Token"]&&!t["x-amz-security-token"])t["X-Amz-Security-Token"]=this.credentials.sessionToken;if(this.service==="s3"&&!t["X-Amz-Content-Sha256"]&&!t["x-amz-content-sha256"])t["X-Amz-Content-Sha256"]=hash(this.request.body||"","hex");if(t["X-Amz-Date"]||t["x-amz-date"])this.datetime=t["X-Amz-Date"]||t["x-amz-date"];else t["X-Amz-Date"]=this.getDateTime()}delete t.Authorization;delete t.authorization}};RequestSigner.prototype.sign=function(){if(!this.parsedPath)this.prepareRequest();if(this.request.signQuery){this.parsedPath.query["X-Amz-Signature"]=this.signature()}else{this.request.headers.Authorization=this.authHeader()}this.request.path=this.formatPath();return this.request};RequestSigner.prototype.getDateTime=function(){if(!this.datetime){var e=this.request.headers,t=new Date(e.Date||e.date||new Date);this.datetime=t.toISOString().replace(/[:\-]|\.\d{3}/g,"");if(this.isCodeCommitGit)this.datetime=this.datetime.slice(0,-1)}return this.datetime};RequestSigner.prototype.getDate=function(){return this.getDateTime().substr(0,8)};RequestSigner.prototype.authHeader=function(){return["AWS4-HMAC-SHA256 Credential="+this.credentials.accessKeyId+"/"+this.credentialString(),"SignedHeaders="+this.signedHeaders(),"Signature="+this.signature()].join(", ")};RequestSigner.prototype.signature=function(){var e=this.getDate(),t=[this.credentials.secretAccessKey,e,this.region,this.service].join(),i,n,a,r=u.get(t);if(!r){i=hmac("AWS4"+this.credentials.secretAccessKey,e);n=hmac(i,this.region);a=hmac(n,this.service);r=hmac(a,"aws4_request");u.set(t,r)}return hmac(r,this.stringToSign(),"hex")};RequestSigner.prototype.stringToSign=function(){return["AWS4-HMAC-SHA256",this.getDateTime(),this.credentialString(),hash(this.canonicalString(),"hex")].join("\n")};RequestSigner.prototype.canonicalString=function(){if(!this.parsedPath)this.prepareRequest();var e=this.parsedPath.path,t=this.parsedPath.query,i=this.request.headers,n="",a=this.service!=="s3",r=this.service==="s3"||this.request.doNotEncodePath,s=this.service==="s3",o=this.service==="s3",u;if(this.service==="s3"&&this.request.signQuery){u="UNSIGNED-PAYLOAD"}else if(this.isCodeCommitGit){u=""}else{u=i["X-Amz-Content-Sha256"]||i["x-amz-content-sha256"]||hash(this.request.body||"","hex")}if(t){var l=Object.keys(t).reduce(function(e,i){if(!i)return e;e[encodeRfc3986Full(i)]=!Array.isArray(t[i])?t[i]:o?t[i][0]:t[i];return e},{});var c=[];Object.keys(l).sort().forEach(function(e){if(!Array.isArray(l[e])){c.push(e+"="+encodeRfc3986Full(l[e]))}else{l[e].map(encodeRfc3986Full).sort().forEach(function(t){c.push(e+"="+t)})}});n=c.join("&")}if(e!=="/"){if(a)e=e.replace(/\/{2,}/g,"/");e=e.split("/").reduce(function(e,t){if(a&&t===".."){e.pop()}else if(!a||t!=="."){if(r)t=decodeURIComponent(t.replace(/\+/g," "));e.push(encodeRfc3986Full(t))}return e},[]).join("/");if(e[0]!=="/")e="/"+e;if(s)e=e.replace(/%2F/g,"/")}return[this.request.method||"GET",e,n,this.canonicalHeaders()+"\n",this.signedHeaders(),u].join("\n")};RequestSigner.prototype.canonicalHeaders=function(){var e=this.request.headers;function trimAll(e){return e.toString().trim().replace(/\s+/g," ")}return Object.keys(e).sort(function(e,t){return e.toLowerCase()=0){i=r.parse(e.slice(t+1));e=e.slice(0,t)}this.parsedPath={path:e,query:i}};RequestSigner.prototype.formatPath=function(){var e=this.parsedPath.path,t=this.parsedPath.query;if(!t)return e;if(t[""]!=null)delete t[""];return e+"?"+encodeRfc3986(r.stringify(t))};n.RequestSigner=RequestSigner;n.sign=function(e,t){return new RequestSigner(e,t).sign()}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});function padString(e){var t=4;var i=e.length;var n=i%t;if(!n){return e}var a=i;var r=t-n;var s=i+r;var o=Buffer.alloc(s);o.write(e);while(r--){o.write("=",a++)}return o.toString()}t.default=padString},,function(e,t,i){var n=i(602);var a=i(747);var r=i(622);n.register("mkdir",_mkdir,{cmdOptions:{p:"fullpath"}});function mkdirSyncRecursive(e){var t=r.dirname(e);if(t===e){n.error("dirname() failed: ["+e+"]")}if(a.existsSync(t)){a.mkdirSync(e,parseInt("0777",8));return}mkdirSyncRecursive(t);a.mkdirSync(e,parseInt("0777",8))}function _mkdir(e,t){if(!t)n.error("no paths given");if(typeof t==="string"){t=[].slice.call(arguments,1)}t.forEach(function(t){try{var i=n.statNoFollowLinks(t);if(!e.fullpath){n.error("path already exists: "+t,{continue:true})}else if(i.isFile()){n.error("cannot create directory "+t+": File exists",{continue:true})}return}catch(e){}var s=r.dirname(t);if(!a.existsSync(s)&&!e.fullpath){n.error("no such file or directory: "+s,{continue:true});return}try{if(e.fullpath){mkdirSyncRecursive(r.resolve(t))}else{a.mkdirSync(t,parseInt("0777",8))}}catch(e){var o;if(e.code==="EACCES"){o="Permission denied"}else if(e.code==="ENOTDIR"||e.code==="ENOENT"){o="Not a directory"}else{throw e}n.error("cannot create directory "+t+": "+o,{continue:true})}});return""}e.exports=_mkdir},function(e){"use strict";e.exports=function generate_const(e,t,i){var n=" ";var a=e.level;var r=e.dataLevel;var s=e.schema[t];var o=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var l=!e.opts.allErrors;var c="data"+(r||"");var d="valid"+a;var p=e.opts.$data&&s&&s.$data,f;if(p){n+=" var schema"+a+" = "+e.util.getData(s.$data,r,e.dataPathArr)+"; ";f="schema"+a}else{f=s}if(!p){n+=" var schema"+a+" = validate.schema"+o+";"}n+="var "+d+" = equal("+c+", schema"+a+"); if (!"+d+") { ";var h=h||[];h.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+"const"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { allowedValue: schema"+a+" } ";if(e.opts.messages!==false){n+=" , message: 'should be equal to constant' "}if(e.opts.verbose){n+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}n+=" } "}else{n+=" {} "}var m=n;n=h.pop();if(!e.compositeRule&&l){if(e.async){n+=" throw new ValidationError(["+m+"]); "}else{n+=" validate.errors = ["+m+"]; return false; "}}else{n+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+=" }";if(l){n+=" else { "}return n}},function(e,t,i){const{define:n}=i(135);const a=i(766);const r=i(84);const s=i(474);const o=i(960);e.exports={base:a,constants:r,decoders:s,define:n,encoders:o}},,function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=i(739);class ExecAuth{constructor(){this.tokenCache={};this.execFn=n.exec}isAuthProvider(e){if(!e){return false}if(e.exec){return true}if(!e.authProvider){return false}return e.authProvider.name==="exec"||e.authProvider.config&&e.authProvider.config.exec}getToken(e){const t=this.tokenCache[e.name];if(t){const i=Date.parse(t.status.expirationTimestamp);if(i>Date.now()){return`Bearer ${t.status.token}`}this.tokenCache[e.name]=null}let i=null;if(e.authProvider&&e.authProvider.config){i=e.authProvider.config.exec}if(e.exec){i=e.exec}if(!i){return null}if(!i.command){throw new Error("No command was specified for exec authProvider!")}let n=i.command;if(i.args){n=`${n} ${i.args.join(" ")}`}let a={silent:true};if(i.env){const e=process.env;i.env.forEach(t=>e[t.name]=t.value);a=Object.assign({},a,{env:e})}const r=this.execFn(n,a);if(r.code===0){const t=JSON.parse(r.stdout);this.tokenCache[e.name]=t;return`Bearer ${t.status.token}`}throw new Error(r.stderr)}}t.ExecAuth=ExecAuth},,function(e,t,i){"use strict";const n=i(925);n.createWebSocketStream=i(608);n.Server=i(509);n.Receiver=i(954);n.Sender=i(118);e.exports=n},,function(e){e.exports=require("util")},,function(e,t,i){"use strict";e.exports={afterRequest:i(140),beforeRequest:i(820),browser:i(222),cache:i(993),content:i(162),cookie:i(326),creator:i(776),entry:i(919),har:i(41),header:i(883),log:i(319),page:i(230),pageTimings:i(257),postData:i(904),query:i(813),request:i(133),response:i(226),timings:i(758)}},function(e,t,i){"use strict";var n=this&&this.__awaiter||function(e,t,i,n){function adopt(e){return e instanceof i?e:new i(function(t){t(e)})}return new(i||(i=Promise))(function(i,a){function fulfilled(e){try{step(n.next(e))}catch(e){a(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){a(e)}}function step(e){e.done?i(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var a;Object.defineProperty(t,"__esModule",{value:true});const r=i(357);const s=i(747);const o=i(622);a=s.promises,t.chmod=a.chmod,t.copyFile=a.copyFile,t.lstat=a.lstat,t.mkdir=a.mkdir,t.readdir=a.readdir,t.readlink=a.readlink,t.rename=a.rename,t.rmdir=a.rmdir,t.stat=a.stat,t.symlink=a.symlink,t.unlink=a.unlink;t.IS_WINDOWS=process.platform==="win32";function exists(e){return n(this,void 0,void 0,function*(){try{yield t.stat(e)}catch(e){if(e.code==="ENOENT"){return false}throw e}return true})}t.exists=exists;function isDirectory(e,i=false){return n(this,void 0,void 0,function*(){const n=i?yield t.stat(e):yield t.lstat(e);return n.isDirectory()})}t.isDirectory=isDirectory;function isRooted(e){e=normalizeSeparators(e);if(!e){throw new Error('isRooted() parameter "p" cannot be empty')}if(t.IS_WINDOWS){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}t.isRooted=isRooted;function mkdirP(e,i=1e3,a=1){return n(this,void 0,void 0,function*(){r.ok(e,"a path argument must be provided");e=o.resolve(e);if(a>=i)return t.mkdir(e);try{yield t.mkdir(e);return}catch(n){switch(n.code){case"ENOENT":{yield mkdirP(o.dirname(e),i,a+1);yield t.mkdir(e);return}default:{let i;try{i=yield t.stat(e)}catch(e){throw n}if(!i.isDirectory())throw n}}}})}t.mkdirP=mkdirP;function tryGetExecutablePath(e,i){return n(this,void 0,void 0,function*(){let n=undefined;try{n=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(n&&n.isFile()){if(t.IS_WINDOWS){const t=o.extname(e).toUpperCase();if(i.some(e=>e.toUpperCase()===t)){return e}}else{if(isUnixExecutable(n)){return e}}}const a=e;for(const r of i){e=a+r;n=undefined;try{n=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(n&&n.isFile()){if(t.IS_WINDOWS){try{const i=o.dirname(e);const n=o.basename(e).toUpperCase();for(const a of yield t.readdir(i)){if(n===a.toUpperCase()){e=o.join(i,a);break}}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}else{if(isUnixExecutable(n)){return e}}}}return""})}t.tryGetExecutablePath=tryGetExecutablePath;function normalizeSeparators(e){e=e||"";if(t.IS_WINDOWS){e=e.replace(/\//g,"\\");return e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}function isUnixExecutable(e){return(e.mode&1)>0||(e.mode&8)>0&&e.gid===process.getgid()||(e.mode&64)>0&&e.uid===process.getuid()}},function(e){"use strict";e.exports=function generate_not(e,t,i){var n=" ";var a=e.level;var r=e.dataLevel;var s=e.schema[t];var o=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var l=!e.opts.allErrors;var c="data"+(r||"");var d="errs__"+a;var p=e.util.copy(e);p.level++;var f="valid"+p.level;if(e.opts.strictKeywords?typeof s=="object"&&Object.keys(s).length>0:e.util.schemaHasRules(s,e.RULES.all)){p.schema=s;p.schemaPath=o;p.errSchemaPath=u;n+=" var "+d+" = errors; ";var h=e.compositeRule;e.compositeRule=p.compositeRule=true;p.createErrors=false;var m;if(p.opts.allErrors){m=p.opts.allErrors;p.opts.allErrors=false}n+=" "+e.validate(p)+" ";p.createErrors=true;if(m)p.opts.allErrors=m;e.compositeRule=p.compositeRule=h;n+=" if ("+f+") { ";var b=b||[];b.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+"not"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ";if(e.opts.messages!==false){n+=" , message: 'should NOT be valid' "}if(e.opts.verbose){n+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}n+=" } "}else{n+=" {} "}var g=n;n=b.pop();if(!e.compositeRule&&l){if(e.async){n+=" throw new ValidationError(["+g+"]); "}else{n+=" validate.errors = ["+g+"]; return false; "}}else{n+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+=" } else { errors = "+d+"; if (vErrors !== null) { if ("+d+") vErrors.length = "+d+"; else vErrors = null; } ";if(e.opts.allErrors){n+=" } "}}else{n+=" var err = ";if(e.createErrors!==false){n+=" { keyword: '"+"not"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ";if(e.opts.messages!==false){n+=" , message: 'should NOT be valid' "}if(e.opts.verbose){n+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}n+=" } "}else{n+=" {} "}n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(l){n+=" if (false) { "}}return n}},function(e,t,i){var n=i(11);var a=Object.create(null);var r=i(49);e.exports=n(inflight);function inflight(e,t){if(a[e]){a[e].push(t);return null}else{a[e]=[t];return makeres(e)}}function makeres(e){return r(function RES(){var t=a[e];var i=t.length;var n=slice(arguments);try{for(var r=0;ri){t.splice(0,i);process.nextTick(function(){RES.apply(null,n)})}else{delete a[e]}}})}function slice(e){var t=e.length;var i=[];for(var n=0;n{const i=new r;const k=[];let C;let T;let R;let E;let A=0;let x=false;const N=e.cookieJar?a.promisify(e.cookieJar.setCookie.bind(e.cookieJar)):null;const V=e.cookieJar?a.promisify(e.cookieJar.getCookieString.bind(e.cookieJar)):null;const P=d.object(e.agent)?e.agent:null;const D=async t=>{try{for(const i of e.hooks.beforeError){t=await i(t)}i.emit("error",t)}catch(e){i.emit("error",e)}};const I=async e=>{const a=R||T;if(e.protocol!=="http:"&&e.protocol!=="https:"){throw new y(e)}decodeURI(a);let r;if(d.function(e.request)){r={request:e.request}}else{r=e.protocol==="https:"?o:s}if(P){const t=e.protocol==="https:"?"https":"http";e.agent=P[t]||e.agent}if(e.useElectronNet&&process.versions.electron){const e={x:require}["yx".slice(1)];const t=e("electron");r=t.net||t.remote.net}if(e.cookieJar){const t=await V(a,{});if(d.nonEmptyString(t)){e.headers.cookie=t}}let u;const c=async t=>{try{if(e.useElectronNet){t=new Proxy(t,{get:(e,t)=>{if(t==="trailers"||t==="rawTrailers"){return[]}const i=e[t];return d.function(i)?i.bind(e):i}})}const{statusCode:r}=t;t.url=a;t.requestUrl=T;t.retryCount=A;t.timings=u;t.redirectUrls=k;t.request={gotOptions:e};const s=t.headers["set-cookie"];if(e.cookieJar&&s){await Promise.all(s.map(e=>N(e,t.url)))}if(e.followRedirect&&"location"in t.headers){if(O.has(r)||j.has(r)&&(e.method==="GET"||e.method==="HEAD")){t.resume();if(r===303){e.method="GET"}if(k.length>=10){throw new S(r,k,e)}const s=Buffer.from(t.headers.location,"binary").toString();const o=new n(s,a);R=o.toString();k.push(R);const u={...e,...z(o)};for(const t of e.hooks.beforeRedirect){await t(u)}i.emit("redirect",t,u);await I(u);return}}m(t,e,i)}catch(e){D(e)}};const h=n=>{if(x){n.once("error",()=>{});n.abort();return}C=n;n.once("error",t=>{if(n.aborted){return}if(t instanceof f.TimeoutError){t=new v(t,e)}else{t=new w(t,e)}if(i.retry(t)===false){D(t)}});u=p(n);b.upload(n,i,E);if(e.gotTimeout){f(n,e.gotTimeout,e)}i.emit("request",n);const a=()=>{n.emit("upload-complete")};try{if(d.nodeStream(e.body)){e.body.once("end",a);e.body.pipe(n);e.body=undefined}else if(e.body){n.end(e.body,a)}else if(t&&(e.method==="POST"||e.method==="PUT"||e.method==="PATCH")){t.once("end",a);t.pipe(n)}else{n.end(a)}}catch(t){D(new w(t,e))}};if(e.cache){const t=new l(r.request,e.cache);const i=t(e,c);i.once("error",t=>{if(t instanceof l.RequestError){D(new w(t,e))}else{D(new g(t,e))}});i.once("request",h)}else{try{h(r.request(e,c))}catch(t){D(new w(t,e))}}};i.retry=(t=>{let i;try{i=e.retry.retries(++A,t)}catch(e){D(e);return}if(i){const n=async e=>{try{for(const i of e.hooks.beforeRetry){await i(e,t,A)}await I(e)}catch(e){D(e)}};setTimeout(n,i,{...e,forceRefresh:true});return true}return false});i.abort=(()=>{if(C){C.once("error",()=>{});C.abort()}else{x=true}});setImmediate(async()=>{try{const{body:t}=e;if(d.buffer(t)){e.body=c(t);E=t.length}else{E=await h(e)}if(d.undefined(e.headers["content-length"])&&d.undefined(e.headers["transfer-encoding"])){if((E>0||e.method==="PUT")&&!d.null(E)){e.headers["content-length"]=E}}for(const t of e.hooks.beforeRequest){await t(e)}T=e.href||new n(e.path,u.format(e)).toString();await I(e)}catch(e){D(e)}});return i})},,function(e,t,i){var n=i(866);e.exports={read:read,verify:n.verify,sign:n.sign,write:write};var a=i(872);var r=i(325);var s=i(215).Buffer;var o=i(98);var u=i(270);var l=i(852);var c=i(502);var d=i(268);var p=i(378);var f=i(575);var h=i(966);function read(e,t){if(typeof e!=="string"){a.buffer(e,"buf");e=e.toString("ascii")}var i=e.trim().split(/[\r\n]+/g);var r;var o=-1;while(!r&&o0){u=i[--l].match(/[-]+[ ]*END CERTIFICATE[ ]*[-]+/)}a.ok(u,"invalid PEM footer");i=i.slice(o,l+1);var c={};while(true){i=i.slice(1);r=i[0].match(/^([A-Za-z0-9-]+): (.+)$/);if(!r)break;c[r[1].toLowerCase()]=r[2]}i=i.slice(0,-1).join("");e=s.from(i,"base64");return n.read(e,t)}function write(e,t){var i=n.write(e,t);var a="CERTIFICATE";var r=i.toString("base64");var o=r.length+r.length/64+18+16+a.length*2+10;var u=s.alloc(o);var l=0;l+=u.write("-----BEGIN "+a+"-----\n",l);for(var c=0;cr.length)d=r.length;l+=u.write(r.slice(c,d),l);u[l++]=10;c=d}l+=u.write("-----END "+a+"-----\n",l);return u.slice(0,l)}},function(e){"use strict";function posix(e){return e.charAt(0)==="/"}function win32(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;var i=t.exec(e);var n=i[1]||"";var a=Boolean(n&&n.charAt(1)!==":");return Boolean(i[2]||a)}e.exports=process.platform==="win32"?win32:posix;e.exports.posix=posix;e.exports.win32=win32},function(e,t,i){const n=i(373);const[a,r]=process.version.substr(1).split(".").map(e=>parseInt(e,10));const s=a>12||a===12&&r>=8;const o=s&&n.getHashes().includes("shake256");e.exports=o},function(e){(function(t,i,n){if(true&&e.exports)e.exports=n();else if(typeof define==="function"&&define.amd)define(n);else i[t]=n()})("urljoin",this,function(){function normalize(e){var t=[];if(e.length===0){return""}if(typeof e[0]!=="string"){throw new TypeError("Url must be a string. Received "+e[0])}if(e[0].match(/^[^\/:]+:\/*$/)&&e.length>1){var i=e.shift();e[0]=i+e[0]}if(e[0].match(/^file:\/\/\//)){e[0]=e[0].replace(/^([^\/:]+):\/*/,"$1:///")}else{e[0]=e[0].replace(/^([^\/:]+):\/*/,"$1://")}for(var n=0;n0){a=a.replace(/^[\/]+/,"")}if(n0?"?":"")+s.join("&");return r}return function(){var e;if(typeof arguments[0]==="object"){e=arguments[0]}else{e=[].slice.call(arguments)}return normalize(e)}})},,function(e,t,i){"use strict";var n=i(128);var a=i(556);var r=i(910);var s=i(723);var o=Object.prototype.toString;var u=Object.prototype.hasOwnProperty;var l=9;var c=10;var d=13;var p=32;var f=33;var h=34;var m=35;var b=37;var g=38;var y=39;var S=42;var w=44;var v=45;var z=58;var j=61;var O=62;var k=63;var C=64;var T=91;var R=93;var E=96;var A=123;var x=124;var N=125;var V={};V[0]="\\0";V[7]="\\a";V[8]="\\b";V[9]="\\t";V[10]="\\n";V[11]="\\v";V[12]="\\f";V[13]="\\r";V[27]="\\e";V[34]='\\"';V[92]="\\\\";V[133]="\\N";V[160]="\\_";V[8232]="\\L";V[8233]="\\P";var P=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function compileStyleMap(e,t){var i,n,a,r,s,o,l;if(t===null)return{};i={};n=Object.keys(t);for(a=0,r=n.length;a0?e.charCodeAt(r-1):null;f=f&&isPlainSafe(s,o)}}else{for(r=0;rn&&e[p+1]!==" ";p=r}}else if(!isPrintable(s)){return B}o=r>0?e.charCodeAt(r-1):null;f=f&&isPlainSafe(s,o)}l=l||d&&(r-p-1>n&&e[p+1]!==" ")}if(!u&&!l){return f&&!a(e)?D:I}if(i>9&&needIndentIndicator(e)){return B}return l?q:_}function writeScalar(e,t,i,n){e.dump=function(){if(t.length===0){return"''"}if(!e.noCompatMode&&P.indexOf(t)!==-1){return"'"+t+"'"}var r=e.indent*Math.max(1,i);var s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-r);var o=n||e.flowLevel>-1&&i>=e.flowLevel;function testAmbiguity(t){return testImplicitResolving(e,t)}switch(chooseScalarStyle(t,o,e.indent,s,testAmbiguity)){case D:return t;case I:return"'"+t.replace(/'/g,"''")+"'";case _:return"|"+blockHeader(t,e.indent)+dropEndingNewline(indentString(t,r));case q:return">"+blockHeader(t,e.indent)+dropEndingNewline(indentString(foldString(t,s),r));case B:return'"'+escapeString(t,s)+'"';default:throw new a("impossible error: invalid scalar style")}}()}function blockHeader(e,t){var i=needIndentIndicator(e)?String(t):"";var n=e[e.length-1]==="\n";var a=n&&(e[e.length-2]==="\n"||e==="\n");var r=a?"+":n?"":"-";return i+r+"\n"}function dropEndingNewline(e){return e[e.length-1]==="\n"?e.slice(0,-1):e}function foldString(e,t){var i=/(\n+)([^\n]*)/g;var n=function(){var n=e.indexOf("\n");n=n!==-1?n:e.length;i.lastIndex=n;return foldLine(e.slice(0,n),t)}();var a=e[0]==="\n"||e[0]===" ";var r;var s;while(s=i.exec(e)){var o=s[1],u=s[2];r=u[0]===" ";n+=o+(!a&&!r&&u!==""?"\n":"")+foldLine(u,t);a=r}return n}function foldLine(e,t){if(e===""||e[0]===" ")return e;var i=/ [^ ]/g;var n;var a=0,r,s=0,o=0;var u="";while(n=i.exec(e)){o=n.index;if(o-a>t){r=s>a?s:o;u+="\n"+e.slice(a,r);a=r+1}s=o}u+="\n";if(e.length-a>t&&s>a){u+=e.slice(a,s)+"\n"+e.slice(s+1)}else{u+=e.slice(a)}return u.slice(1)}function escapeString(e){var t="";var i,n;var a;for(var r=0;r=55296&&i<=56319){n=e.charCodeAt(r+1);if(n>=56320&&n<=57343){t+=encodeHex((i-55296)*1024+n-56320+65536);r++;continue}}a=V[i];t+=!a&&isPrintable(i)?e[r]:a||encodeHex(i)}return t}function writeFlowSequence(e,t,i){var n="",a=e.tag,r,s;for(r=0,s=i.length;r1024)c+="? ";c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" ");if(!writeNode(e,t,l,false,false)){continue}c+=e.dump;n+=c}e.tag=a;e.dump="{"+n+"}"}function writeBlockMapping(e,t,i,n){var r="",s=e.tag,o=Object.keys(i),u,l,d,p,f,h;if(e.sortKeys===true){o.sort()}else if(typeof e.sortKeys==="function"){o.sort(e.sortKeys)}else if(e.sortKeys){throw new a("sortKeys must be a boolean or a function")}for(u=0,l=o.length;u1024;if(f){if(e.dump&&c===e.dump.charCodeAt(0)){h+="?"}else{h+="? "}}h+=e.dump;if(f){h+=generateNextLine(e,t)}if(!writeNode(e,t+1,p,true,f)){continue}if(e.dump&&c===e.dump.charCodeAt(0)){h+=":"}else{h+=": "}h+=e.dump;r+=h}e.tag=s;e.dump=r||"{}"}function detectType(e,t,i){var n,r,s,l,c,d;r=i?e.explicitTypes:e.implicitTypes;for(s=0,l=r.length;s tag resolver accepts not "'+d+'" style')}e.dump=n}return true}}return false}function writeNode(e,t,i,n,r,s){e.tag=null;e.dump=i;if(!detectType(e,i,false)){detectType(e,i,true)}var u=o.call(e.dump);if(n){n=e.flowLevel<0||e.flowLevel>t}var l=u==="[object Object]"||u==="[object Array]",c,d;if(l){c=e.duplicates.indexOf(i);d=c!==-1}if(e.tag!==null&&e.tag!=="?"||d||e.indent!==2&&t>0){r=false}if(d&&e.usedDuplicates[c]){e.dump="*ref_"+c}else{if(l&&d&&!e.usedDuplicates[c]){e.usedDuplicates[c]=true}if(u==="[object Object]"){if(n&&Object.keys(e.dump).length!==0){writeBlockMapping(e,t,e.dump,r);if(d){e.dump="&ref_"+c+e.dump}}else{writeFlowMapping(e,t,e.dump);if(d){e.dump="&ref_"+c+" "+e.dump}}}else if(u==="[object Array]"){var p=e.noArrayIndent&&t>0?t-1:t;if(n&&e.dump.length!==0){writeBlockSequence(e,p,e.dump,r);if(d){e.dump="&ref_"+c+e.dump}}else{writeFlowSequence(e,p,e.dump);if(d){e.dump="&ref_"+c+" "+e.dump}}}else if(u==="[object String]"){if(e.tag!=="?"){writeScalar(e,e.dump,t,s)}}else{if(e.skipInvalid)return false;throw new a("unacceptable kind of an object to dump "+u)}if(e.tag!==null&&e.tag!=="?"){e.dump="!<"+e.tag+"> "+e.dump}}return true}function getDuplicateReferences(e,t){var i=[],n=[],a,r;inspectNode(e,i,n);for(a=0,r=n.length;a=0){if(l){n+=" if (true) { "}return n}else{throw new Error('unknown format "'+s+'" is used in schema at path "'+e.errSchemaPath+'"')}}var b=typeof m=="object"&&!(m instanceof RegExp)&&m.validate;var g=b&&m.type||"string";if(b){var y=m.async===true;m=m.validate}if(g!=i){if(l){n+=" if (true) { "}return n}if(y){if(!e.async)throw new Error("async format in sync schema");var S="formats"+e.util.getProperty(s)+".validate";n+=" if (!(await "+S+"("+c+"))) { "}else{n+=" if (! ";var S="formats"+e.util.getProperty(s);if(b)S+=".validate";if(typeof m=="function"){n+=" "+S+"("+c+") "}else{n+=" "+S+".test("+c+") "}n+=") { "}}var w=w||[];w.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+"format"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { format: ";if(d){n+=""+p}else{n+=""+e.util.toQuotedString(s)}n+=" } ";if(e.opts.messages!==false){n+=" , message: 'should match format \"";if(d){n+="' + "+p+" + '"}else{n+=""+e.util.escapeQuotes(s)}n+="\"' "}if(e.opts.verbose){n+=" , schema: ";if(d){n+="validate.schema"+o}else{n+=""+e.util.toQuotedString(s)}n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}n+=" } "}else{n+=" {} "}var v=n;n=w.pop();if(!e.compositeRule&&l){if(e.async){n+=" throw new ValidationError(["+v+"]); "}else{n+=" validate.errors = ["+v+"]; return false; "}}else{n+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+=" } ";if(l){n+=" else { "}return n}},function(e,t,i){var n=i(602);var a=i(747);n.register("rm",_rm,{cmdOptions:{f:"force",r:"recursive",R:"recursive"}});function rmdirSyncRecursive(e,t,i){var r;r=a.readdirSync(e);for(var s=0;s1e3)throw e}else if(e.code==="ENOENT"){break}else{throw e}}}}catch(t){n.error("could not remove directory (code "+t.code+"): "+e,{continue:true})}return l}function isWriteable(e){var t=true;try{var i=a.openSync(e,"a");a.closeSync(i)}catch(e){t=false}return t}function handleFile(e,t){if(t.force||isWriteable(e)){n.unlinkSync(e)}else{n.error("permission denied: "+e,{continue:true})}}function handleDirectory(e,t){if(t.recursive){rmdirSyncRecursive(e,t.force)}else{n.error("path is a directory",{continue:true})}}function handleSymbolicLink(e,t){var i;try{i=n.statFollowLinks(e)}catch(t){n.unlinkSync(e);return}if(i.isFile()){n.unlinkSync(e)}else if(i.isDirectory()){if(e[e.length-1]==="/"){if(t.recursive){var a=true;rmdirSyncRecursive(e,t.force,a)}else{n.error("path is a directory",{continue:true})}}else{n.unlinkSync(e)}}}function handleFIFO(e){n.unlinkSync(e)}function _rm(e,t){if(!t)n.error("no paths given");t=[].slice.call(arguments,1);t.forEach(function(t){var i;try{var a=t[t.length-1]==="/"?t.slice(0,-1):t;i=n.statNoFollowLinks(a)}catch(i){if(!e.force){n.error("no such file or directory: "+t,{continue:true})}return}if(i.isFile()){handleFile(t,e)}else if(i.isDirectory()){handleDirectory(t,e)}else if(i.isSymbolicLink()){handleSymbolicLink(t,e)}else if(i.isFIFO()){handleFIFO(t)}});return""}e.exports=_rm},function(e,t,i){try{var n=i(669);if(typeof n.inherits!=="function")throw"";e.exports=n.inherits}catch(t){e.exports=i(315)}},,function(e,t,i){var n=i(602);var a=i(747);var r=i(622);n.register("which",_which,{allowGlobbing:false,cmdOptions:{a:"all"}});var s=".com;.exe;.bat;.cmd;.vbs;.vbe;.js;.jse;.wsf;.wsh";var o=1;function isWindowsPlatform(){return process.platform==="win32"}function splitPath(e){return e?e.split(r.delimiter):[]}function isExecutable(e){try{a.accessSync(e,o)}catch(e){return false}return true}function checkPath(e){return a.existsSync(e)&&!n.statFollowLinks(e).isDirectory()&&(isWindowsPlatform()||isExecutable(e))}function _which(e,t){if(!t)n.error("must specify command");var i=isWindowsPlatform();var a=splitPath(process.env.PATH);var o=[];if(t.indexOf("/")===-1){var u=[""];if(i){var l=process.env.PATHEXT||s;u=splitPath(l.toUpperCase())}for(var c=0;c0&&!e.all)break;var d=r.resolve(a[c],t);if(i){d=d.toUpperCase()}var p=d.match(/\.[^<>:"\/\|?*.]+$/);if(p&&u.indexOf(p[0])>=0){if(checkPath(d)){o.push(d);break}}else{for(var f=0;f0){return e.all?o:o[0]}return e.all?[]:null}e.exports=_which},,function(e,t,i){var n=i(602);var a=i(953).tempDir;var r=i(359);var s=i(622);var o=i(747);var u=i(129);var l=20*1024*1024;var c=1;n.register("exec",_exec,{unix:false,canReceivePipe:true,wrapOutput:false});function execSync(e,t,d){if(!n.config.execPath){n.error("Unable to find a path to the node binary. Please manually set config.execPath")}var p=a();var f=s.resolve(p+"/"+n.randomFileName());var h=s.resolve(p+"/"+n.randomFileName());var m=s.resolve(p+"/"+n.randomFileName());t=n.extend({silent:n.config.silent,cwd:r().toString(),env:process.env,maxBuffer:l,encoding:"utf8"},t);if(o.existsSync(f))n.unlinkSync(f);if(o.existsSync(h))n.unlinkSync(h);if(o.existsSync(m))n.unlinkSync(m);t.cwd=s.resolve(t.cwd);var b={command:e,execOptions:t,pipe:d,stdoutFile:m,stderrFile:h};o.writeFileSync(f,JSON.stringify(b),"utf8");var g=[i.ab+"exec-child.js",f];if(t.silent){t.stdio="ignore"}else{t.stdio=[0,1,2]}var y=0;try{delete t.shell;u.execFileSync(n.config.execPath,g,t)}catch(e){y=e.status||c}var S="";var w="";if(t.encoding==="buffer"){S=o.readFileSync(m);w=o.readFileSync(h)}else{S=o.readFileSync(m,t.encoding);w=o.readFileSync(h,t.encoding)}try{n.unlinkSync(f)}catch(e){}try{n.unlinkSync(h)}catch(e){}try{n.unlinkSync(m)}catch(e){}if(y!==0){n.error(w,y,{continue:true,silent:true})}var v=n.ShellString(S,w,y);return v}function execAsync(e,t,i,a){t=n.extend({silent:n.config.silent,cwd:r().toString(),env:process.env,maxBuffer:l,encoding:"utf8"},t);var s=u.exec(e,t,function(e,t,i){if(a){if(!e){a(0,t,i)}else if(e.code===undefined){a(1,t,i)}else{a(e.code,t,i)}}});if(i)s.stdin.end(i);if(!t.silent){s.stdout.pipe(process.stdout);s.stderr.pipe(process.stderr)}return s}function _exec(e,t,i){t=t||{};if(!e)n.error("must specify command");var a=n.readFromPipe();if(typeof t==="function"){i=t;t={async:true}}if(typeof t==="object"&&typeof i==="function"){t.async=true}t=n.extend({silent:n.config.silent,async:false},t);if(t.async){return execAsync(e,t,a,i)}else{return execSync(e,t,a)}}e.exports=_exec},function(e,t,i){const{randomBytes:n}=i(373);const a=i(208);const r=i(466);const s=BigInt(0);const o=BigInt(1);const u=BigInt(2);const l=e=>{const t=e.toString(16);return a.encodeBuffer(Buffer.from(t.length%2?`0${t}`:t,"hex"))};const c=e=>BigInt(`0x${e.toString("hex")}`);const d=e=>e.toString(2).length;const p=(e,t)=>{let i=s;let n=o;let a=o;let r=s;while(e!==s){const s=t/e;const o=t%e;const u=i-a*s;const l=n-r*s;t=e;e=o;i=a;n=r;a=u;r=l}return i};const f=(e,t)=>{let i=s;while(!((e|t)&o)){e>>=o;t>>=o;i++}while(!(e&o)){e>>=o}do{while(!(t&o)){t>>=o}if(e>t){const i=e;e=t;t=i}t-=e}while(t);return e<{e=g(e,i);let n=o;let a=e;while(t>0){var r=t%u;t=t/u;if(r===o){n=n*a;n=n%i}a=a*a;a=a%i}return n};const m=(e,t)=>{const i=t-e;const n=d(i);let a;do{a=c(b(n))}while(a>i);return a+e};const b=e=>{const t=Math.ceil(e/8);const i=n(t);i[0]=i[0]&2**(e%8)-1;return i};const g=(e,t)=>{e=e%t;return e<0?e+t:e};const y=e=>{let t=e;while(t%u===s){t=t/u}return t};const S=30;const w=22;const v=(e,t,i)=>{const n=y(e*t-o);let a=0;let l;do{a++;if(a===S){throw new r.JWKImportFailed("failed to calculate missing primes")}let e=0;let t=h(m(u,i),n,i);let c=s;while(t!==o){e++;if(e===w){throw new r.JWKImportFailed("failed to calculate missing primes")}c=t;t=t*t%i}if(c!==i-o){l=c}}while(!l);const c=f(l-o,i);const d=i/c;return c>d?{p:c,q:d}:{p:d,q:c}};e.exports=(e=>{const t=c(a.decodeToBuffer(e.e));const i=c(a.decodeToBuffer(e.d));const n=c(a.decodeToBuffer(e.n));if(i>=n){throw new r.JWKInvalid("invalid RSA private exponent")}const{p:s,q:u}=v(t,i,n);const d=i%(s-o);const f=i%(u-o);const h=g(p(g(u,s),s),s);return{...e,p:l(s),q:l(u),dp:l(d),dq:l(f),qi:l(h)}})},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=i(920);const a=i(376);t.ADD="add";t.UPDATE="update";t.DELETE="delete";function makeInformer(e,t,i){const r=new a.Watch(e);return new n.ListWatch(t,r,i,false)}t.makeInformer=makeInformer},function(e){"use strict";function isObject(e){return e!=null&&typeof e==="object"&&Array.isArray(e)===false}function isObjectObject(e){return isObject(e)===true&&Object.prototype.toString.call(e)==="[object Object]"}function isPlainObject(e){var t,i;if(isObjectObject(e)===false)return false;t=e.constructor;if(typeof t!=="function")return false;i=t.prototype;if(isObjectObject(i)===false)return false;if(i.hasOwnProperty("isPrototypeOf")===false){return false}return true}e.exports=isPlainObject},function(e,t,i){var n=i(357);var a=i(669);t.sprintf=jsSprintf;t.printf=jsPrintf;t.fprintf=jsFprintf;function jsSprintf(e){var t=["([^%]*)","%","(['\\-+ #0]*?)","([1-9]\\d*)?","(\\.([1-9]\\d*))?","[lhjztL]*?","([diouxXfFeEgGaAcCsSp%jr])"].join("");var i=new RegExp(t);var r=Array.prototype.slice.call(arguments,1);var s,o,u,l;var c,d,p,f,h;var m="";var b=1;n.equal("string",typeof e);while((h=i.exec(e))!==null){m+=h[1];e=e.substring(h[0].length);s=h[2]||"";o=h[3]||0;u=h[4]||"";l=h[6];c=false;p=false;d=" ";if(l=="%"){m+="%";continue}if(r.length===0)throw new Error("too few args to sprintf");f=r.shift();b++;if(s.match(/[\' #]/))throw new Error("unsupported flags: "+s);if(u.length>0)throw new Error("non-zero precision not supported");if(s.match(/-/))c=true;if(s.match(/0/))d="0";if(s.match(/\+/))p=true;switch(l){case"s":if(f===undefined||f===null)throw new Error("argument "+b+": attempted to print undefined or null "+"as a string");m+=doPad(d,o,c,f.toString());break;case"d":f=Math.floor(f);case"f":p=p&&f>0?"+":"";m+=p+doPad(d,o,c,f.toString());break;case"x":m+=doPad(d,o,c,f.toString(16));break;case"j":if(o===0)o=10;m+=a.inspect(f,false,o);break;case"r":m+=dumpException(f);break;default:throw new Error("unsupported conversion: "+l)}}m+=e;return m}function jsPrintf(){var e=Array.prototype.slice.call(arguments);e.unshift(process.stdout);jsFprintf.apply(null,e)}function jsFprintf(e){var t=Array.prototype.slice.call(arguments,1);return e.write(jsSprintf.apply(this,t))}function doPad(e,t,i,n){var a=n;while(a.length=58){break}a++}if(ai){return null}if(!n&&a!=e.length){return null}return parseInt(e.substr(0,a),10)}function parseTime(e){var t=e.split(":");var i=[0,0,0];if(t.length!==3){return null}for(var n=0;n<3;n++){var a=n==2;var r=parseDigits(t[n],1,2,a);if(r===null){return null}i[n]=r}return i}function parseMonth(e){e=String(e).substr(0,3).toLowerCase();var t=g[e];return t>=0?t:null}function parseDate(e){if(!e){return}var t=e.split(b);if(!t){return}var i=null;var n=null;var a=null;var r=null;var s=null;var o=null;for(var u=0;u=70&&o<=99){o+=1900}else if(o>=0&&o<=69){o+=2e3}}}}if(r===null||s===null||o===null||a===null||r<1||r>31||o<1601||i>23||n>59||a>59){return}return new Date(Date.UTC(o,s,r,i,n,a))}function formatDate(e){var t=e.getUTCDate();t=t>=10?t:"0"+t;var i=e.getUTCHours();i=i>=10?i:"0"+i;var n=e.getUTCMinutes();n=n>=10?n:"0"+n;var a=e.getUTCSeconds();a=a>=10?a:"0"+a;return S[e.getUTCDay()]+", "+t+" "+y[e.getUTCMonth()]+" "+e.getUTCFullYear()+" "+i+":"+n+":"+a+" GMT"}function canonicalDomain(e){if(e==null){return null}e=e.trim().replace(/^\./,"");if(d&&/[^\u0001-\u007f]/.test(e)){e=d.toASCII(e)}return e.toLowerCase()}function domainMatch(e,t,i){if(e==null||t==null){return null}if(i!==false){e=canonicalDomain(e);t=canonicalDomain(t)}if(e==t){return true}if(n.isIP(e)){return false}var a=e.indexOf(t);if(a<=0){return false}if(e.length!==t.length+a){return false}if(e.substr(a-1,1)!=="."){return false}return true}function defaultPath(e){if(!e||e.substr(0,1)!=="/"){return"/"}if(e==="/"){return e}var t=e.lastIndexOf("/");if(t===0){return"/"}return e.slice(0,t)}function trimTerminator(e){for(var t=0;t1){var i=e.lastIndexOf("/");if(i===0){break}e=e.substr(0,i);t.push(e)}t.push("/");return t}function getCookieContext(e){if(e instanceof Object){return e}try{e=decodeURI(e)}catch(e){}return a(e)}function Cookie(e){e=e||{};Object.keys(e).forEach(function(t){if(Cookie.prototype.hasOwnProperty(t)&&Cookie.prototype[t]!==e[t]&&t.substr(0,1)!=="_"){this[t]=e[t]}},this);this.creation=this.creation||new Date;Object.defineProperty(this,"creationIndex",{configurable:false,enumerable:false,writable:true,value:++Cookie.cookiesCreated})}Cookie.cookiesCreated=0;Cookie.parse=parse;Cookie.fromJSON=fromJSON;Cookie.prototype.key="";Cookie.prototype.value="";Cookie.prototype.expires="Infinity";Cookie.prototype.maxAge=null;Cookie.prototype.domain=null;Cookie.prototype.path=null;Cookie.prototype.secure=false;Cookie.prototype.httpOnly=false;Cookie.prototype.extensions=null;Cookie.prototype.hostOnly=null;Cookie.prototype.pathIsDefault=null;Cookie.prototype.creation=null;Cookie.prototype.lastAccessed=null;Object.defineProperty(Cookie.prototype,"creationIndex",{configurable:true,enumerable:false,writable:true,value:0});Cookie.serializableProperties=Object.keys(Cookie.prototype).filter(function(e){return!(Cookie.prototype[e]instanceof Function||e==="creationIndex"||e.substr(0,1)==="_")});Cookie.prototype.inspect=function inspect(){var e=Date.now();return'Cookie="'+this.toString()+"; hostOnly="+(this.hostOnly!=null?this.hostOnly:"?")+"; aAge="+(this.lastAccessed?e-this.lastAccessed.getTime()+"ms":"?")+"; cAge="+(this.creation?e-this.creation.getTime()+"ms":"?")+'"'};if(r.inspect.custom){Cookie.prototype[r.inspect.custom]=Cookie.prototype.inspect}Cookie.prototype.toJSON=function(){var e={};var t=Cookie.serializableProperties;for(var i=0;i1;class LRUCache{constructor(e){if(typeof e==="number")e={max:e};if(!e)e={};if(e.max&&(typeof e.max!=="number"||e.max<0))throw new TypeError("max must be a non-negative number");const t=this[a]=e.max||Infinity;const i=e.length||h;this[s]=typeof i!=="function"?h:i;this[o]=e.stale||false;if(e.maxAge&&typeof e.maxAge!=="number")throw new TypeError("maxAge must be a number");this[u]=e.maxAge||0;this[l]=e.dispose;this[c]=e.noDisposeOnSet||false;this[f]=e.updateAgeOnGet||false;this.reset()}set max(e){if(typeof e!=="number"||e<0)throw new TypeError("max must be a non-negative number");this[a]=e||Infinity;g(this)}get max(){return this[a]}set allowStale(e){this[o]=!!e}get allowStale(){return this[o]}set maxAge(e){if(typeof e!=="number")throw new TypeError("maxAge must be a non-negative number");this[u]=e;g(this)}get maxAge(){return this[u]}set lengthCalculator(e){if(typeof e!=="function")e=h;if(e!==this[s]){this[s]=e;this[r]=0;this[d].forEach(e=>{e.length=this[s](e.value,e.key);this[r]+=e.length})}g(this)}get lengthCalculator(){return this[s]}get length(){return this[r]}get itemCount(){return this[d].length}rforEach(e,t){t=t||this;for(let i=this[d].tail;i!==null;){const n=i.prev;S(this,e,i,t);i=n}}forEach(e,t){t=t||this;for(let i=this[d].head;i!==null;){const n=i.next;S(this,e,i,t);i=n}}keys(){return this[d].toArray().map(e=>e.key)}values(){return this[d].toArray().map(e=>e.value)}reset(){if(this[l]&&this[d]&&this[d].length){this[d].forEach(e=>this[l](e.key,e.value))}this[p]=new Map;this[d]=new n;this[r]=0}dump(){return this[d].map(e=>b(this,e)?false:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[d]}set(e,t,i){i=i||this[u];if(i&&typeof i!=="number")throw new TypeError("maxAge must be a number");const n=i?Date.now():0;const o=this[s](t,e);if(this[p].has(e)){if(o>this[a]){y(this,this[p].get(e));return false}const s=this[p].get(e);const u=s.value;if(this[l]){if(!this[c])this[l](e,u.value)}u.now=n;u.maxAge=i;u.value=t;this[r]+=o-u.length;u.length=o;this.get(e);g(this);return true}const f=new Entry(e,t,o,n,i);if(f.length>this[a]){if(this[l])this[l](e,t);return false}this[r]+=f.length;this[d].unshift(f);this[p].set(e,this[d].head);g(this);return true}has(e){if(!this[p].has(e))return false;const t=this[p].get(e).value;return!b(this,t)}get(e){return m(this,e,true)}peek(e){return m(this,e,false)}pop(){const e=this[d].tail;if(!e)return null;y(this,e);return e.value}del(e){y(this,this[p].get(e))}load(e){this.reset();const t=Date.now();for(let i=e.length-1;i>=0;i--){const n=e[i];const a=n.e||0;if(a===0)this.set(n.k,n.v);else{const e=a-t;if(e>0){this.set(n.k,n.v,e)}}}}prune(){this[p].forEach((e,t)=>m(this,t,false))}}const m=(e,t,i)=>{const n=e[p].get(t);if(n){const t=n.value;if(b(e,t)){y(e,n);if(!e[o])return undefined}else{if(i){if(e[f])n.value.now=Date.now();e[d].unshiftNode(n)}}return t.value}};const b=(e,t)=>{if(!t||!t.maxAge&&!e[u])return false;const i=Date.now()-t.now;return t.maxAge?i>t.maxAge:e[u]&&i>e[u]};const g=e=>{if(e[r]>e[a]){for(let t=e[d].tail;e[r]>e[a]&&t!==null;){const i=t.prev;y(e,t);t=i}}};const y=(e,t)=>{if(t){const i=t.value;if(e[l])e[l](i.key,i.value);e[r]-=i.length;e[p].delete(i.key);e[d].removeNode(t)}};class Entry{constructor(e,t,i,n,a){this.key=e;this.value=t;this.length=i;this.now=n;this.maxAge=a||0}}const S=(e,t,i,n)=>{let a=i.value;if(b(e,a)){y(e,i);if(!e[o])a=undefined}if(a)t.call(n,a.value,a.key,e)};e.exports=LRUCache},function(e){(function(t,i){if(typeof define==="function"&&define.amd){define([],function(){return i()})}else if(true&&e.exports){e.exports=i()}else{t.jsonSchema=i()}})(this,function(){var e=validate;e.Integer={type:"integer"};var t={String:String,Boolean:Boolean,Number:Number,Object:Object,Array:Array,Date:Date};e.validate=validate;function validate(e,t){return validate(e,t,{changing:false})}e.checkPropertyChange=function(e,t,i){return validate(e,t,{changing:i||"property"})};var validate=e._validate=function(e,i,n){if(!n)n={};var a=n.changing;function getType(e){return e.type||t[e.name]==e&&e.name.toLowerCase()}var r=[];function checkProp(e,t,i,s){var o;i+=i?typeof s=="number"?"["+s+"]":typeof s=="undefined"?"":"."+s:s;function addError(e){r.push({property:i,message:e})}if((typeof t!="object"||t instanceof Array)&&(i||typeof t!="function")&&!(t&&getType(t))){if(typeof t=="function"){if(!(e instanceof t)){addError("is not an instance of the class/constructor "+t.name)}}else if(t){addError("Invalid schema/property definition "+t)}return null}if(a&&t.readonly){addError("is a readonly field, it can not be changed")}if(t["extends"]){checkProp(e,t["extends"],i,s)}function checkType(e,t){if(e){if(typeof e=="string"&&e!="any"&&(e=="null"?t!==null:typeof t!=e)&&!(t instanceof Array&&e=="array")&&!(t instanceof Date&&e=="date")&&!(e=="integer"&&t%1===0)){return[{property:i,message:typeof t+" value found, but a "+e+" is required"}]}if(e instanceof Array){var n=[];for(var a=0;at.maxItems){addError("There must be a maximum of "+t.maxItems+" in the array")}}else if(t.properties||t.additionalProperties){r.concat(checkObj(e,t.properties,i,t.additionalProperties))}if(t.pattern&&typeof e=="string"&&!e.match(t.pattern)){addError("does not match the regex pattern "+t.pattern)}if(t.maxLength&&typeof e=="string"&&e.length>t.maxLength){addError("may only be "+t.maxLength+" characters long")}if(t.minLength&&typeof e=="string"&&e.lengthe){addError("must have a minimum value of "+t.minimum)}if(typeof t.maximum!==undefined&&typeof e==typeof t.maximum&&t.maximum0){var s=i.indexOf(this);~s?i.splice(s+1):i.push(this);~s?n.splice(s,Infinity,a):n.push(a);if(~i.indexOf(r))r=t.call(this,a,r)}else i.push(r);return e==null?r:e.call(this,a,r)}}},function(e,t,i){var n=i(622);var a=i(747);var r=i(602);var s=i(402);var o=n.sep+"**";r.register("ls",_ls,{cmdOptions:{R:"recursive",A:"all",L:"link",a:"all_deprecated",d:"directory",l:"long"}});function _ls(e,t){if(e.all_deprecated){r.log("ls: Option -a is deprecated. Use -A instead");e.all=true}if(!t){t=["."]}else{t=[].slice.call(arguments,1)}var i=[];function pushFile(t,n,a){if(process.platform==="win32"){n=n.replace(/\\/g,"/")}if(e.long){a=a||(e.link?r.statFollowLinks(t):r.statNoFollowLinks(t));i.push(addLsAttributes(n,a))}else{i.push(n)}}t.forEach(function(t){var i;try{i=e.link?r.statFollowLinks(t):r.statNoFollowLinks(t);if(i.isSymbolicLink()){try{var u=r.statFollowLinks(t);if(u.isDirectory()){i=u}}catch(e){}}}catch(e){r.error("no such file or directory: "+t,2,{continue:true});return}if(i.isDirectory()&&!e.directory){if(e.recursive){s.sync(t+o,{dot:e.all,follow:e.link}).forEach(function(e){if(n.relative(t,e)){pushFile(e,n.relative(t,e))}})}else if(e.all){a.readdirSync(t).forEach(function(e){pushFile(n.join(t,e),e)})}else{a.readdirSync(t).forEach(function(e){if(e[0]!=="."){pushFile(n.join(t,e),e)}})}}else{pushFile(t,t,i)}});return i}function addLsAttributes(e,t){t.name=e;t.toString=function(){return[this.mode,this.nlink,this.uid,this.gid,this.size,this.mtime,this.name].join(" ")};return t}e.exports=_ls},function(e){"use strict";e.exports=function generate_propertyNames(e,t,i){var n=" ";var a=e.level;var r=e.dataLevel;var s=e.schema[t];var o=e.schemaPath+e.util.getProperty(t);var u=e.errSchemaPath+"/"+t;var l=!e.opts.allErrors;var c="data"+(r||"");var d="errs__"+a;var p=e.util.copy(e);var f="";p.level++;var h="valid"+p.level;n+="var "+d+" = errors;";if(e.opts.strictKeywords?typeof s=="object"&&Object.keys(s).length>0:e.util.schemaHasRules(s,e.RULES.all)){p.schema=s;p.schemaPath=o;p.errSchemaPath=u;var m="key"+a,b="idx"+a,g="i"+a,y="' + "+m+" + '",S=p.dataLevel=e.dataLevel+1,w="data"+S,v="dataProperties"+a,z=e.opts.ownProperties,j=e.baseId;if(z){n+=" var "+v+" = undefined; "}if(z){n+=" "+v+" = "+v+" || Object.keys("+c+"); for (var "+b+"=0; "+b+"<"+v+".length; "+b+"++) { var "+m+" = "+v+"["+b+"]; "}else{n+=" for (var "+m+" in "+c+") { "}n+=" var startErrs"+a+" = errors; ";var O=m;var k=e.compositeRule;e.compositeRule=p.compositeRule=true;var C=e.validate(p);p.baseId=j;if(e.util.varOccurences(C,w)<2){n+=" "+e.util.varReplace(C,w,O)+" "}else{n+=" var "+w+" = "+O+"; "+C+" "}e.compositeRule=p.compositeRule=k;n+=" if (!"+h+") { for (var "+g+"=startErrs"+a+"; "+g+"{const s=r(i.kty,i.crv);const o=t(s,i,n);const u=e({[a]:o},n);u.header=u.header||{};Object.assign(u.header,{epk:{kty:i.kty,crv:i.crv,x:s.x,y:s.y}});return u};const c=(e,t,i,n,r)=>{const{epk:s}=r;const o=t(i,s,r);return e({[a]:o},n,r)};e.exports=((e,t)=>{["ECDH-ES+A128KW","ECDH-ES+A192KW","ECDH-ES+A256KW"].forEach(i=>{const a=i.substr(-6);const r=e.keyManagementEncrypt.get(a);const d=e.keyManagementDecrypt.get(a);const p=parseInt(i.substr(9,3),10);o.set(i,p);if(r&&d){e.keyManagementEncrypt.set(i,l.bind(undefined,r,u.bind(undefined,i,p)));e.keyManagementDecrypt.set(i,c.bind(undefined,d,u.bind(undefined,i,p)));t.EC.deriveKey[i]=(e=>(e.use==="enc"||e.use===undefined)&&e.crv!==s);if(n){t.OKP.deriveKey[i]=(e=>(e.use==="enc"||e.use===undefined)&&e.keyObject.asymmetricKeyType.startsWith("x"))}}})});e.exports.wrapKey=l;e.exports.unwrapKey=c},function(e,t,i){const n=i(830);const a=(e,t)=>{const i=n(e,t);return i?i.version:null};e.exports=a},function(e,t,i){const n=i(849);const a=i(96);const r=i(973);const s=i(115);const o=i(592);const u=i(626);e.exports={...u,asKey:o,isKey:e=>e instanceof n,None:a,EmbeddedJWK:r,EmbeddedX5C:s};Object.defineProperty(e.exports,"importKey",{value:o.deprecated,enumerable:false})},,,function(e,t,i){"use strict";var n=i(413);function DuplexWrapper(e,t,i){if(typeof i==="undefined"){i=t;t=e;e=null}n.Duplex.call(this,e);if(typeof i.read!=="function"){i=new n.Readable(e).wrap(i)}this._writable=t;this._readable=i;this._waiting=false;var a=this;t.once("finish",function(){a.end()});this.once("finish",function(){t.end()});i.on("readable",function(){if(a._waiting){a._waiting=false;a._read()}});i.once("end",function(){a.push(null)});if(!e||typeof e.bubbleErrors==="undefined"||e.bubbleErrors){t.on("error",function(e){a.emit("error",e)});i.on("error",function(e){a.emit("error",e)})}}DuplexWrapper.prototype=Object.create(n.Duplex.prototype,{constructor:{value:DuplexWrapper}});DuplexWrapper.prototype._write=function _write(e,t,i){this._writable.write(e,t,i)};DuplexWrapper.prototype._read=function _read(){var e;var t=0;while((e=this._readable.read())!==null){this.push(e);t++}if(t===0){this._waiting=true}};e.exports=function duplex2(e,t,i){return new DuplexWrapper(e,t,i)};e.exports.DuplexWrapper=DuplexWrapper},function(e,t,i){"use strict";var n=String.prototype.replace;var a=/%20/g;var r=i(4);var s={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports=r.assign({default:s.RFC3986,formatters:{RFC1738:function(e){return n.call(e,a,"+")},RFC3986:function(e){return String(e)}}},s)},function(e,t,i){const{strict:n}=i(357);const{Reporter:a}=i(410);const{DecoderBuffer:r,EncoderBuffer:s}=i(335);const o=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"];const u=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(o);const l=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function Node(e,t,i){const n={};this._baseState=n;n.name=i;n.enc=e;n.parent=t||null;n.children=null;n.tag=null;n.args=null;n.reverseArgs=null;n.choice=null;n.optional=false;n.any=false;n.obj=false;n.use=null;n.useDecoder=null;n.key=null;n.default=null;n.explicit=null;n.implicit=null;n.contains=null;if(!n.parent){n.children=[];this._wrap()}}const c=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];Node.prototype.clone=function clone(){const e=this._baseState;const t={};c.forEach(function(i){t[i]=e[i]});const i=new this.constructor(t.parent);i._baseState=t;return i};Node.prototype._wrap=function wrap(){const e=this._baseState;u.forEach(function(t){this[t]=function _wrappedMethod(){const i=new this.constructor(this);e.children.push(i);return i[t].apply(i,arguments)}},this)};Node.prototype._init=function init(e){const t=this._baseState;n(t.parent===null);e.call(this);t.children=t.children.filter(function(e){return e._baseState.parent===this},this);n.equal(t.children.length,1,"Root node can have only one child")};Node.prototype._useArgs=function useArgs(e){const t=this._baseState;const i=e.filter(function(e){return e instanceof this.constructor},this);e=e.filter(function(e){return!(e instanceof this.constructor)},this);if(i.length!==0){n(t.children===null);t.children=i;i.forEach(function(e){e._baseState.parent=this},this)}if(e.length!==0){n(t.args===null);t.args=e;t.reverseArgs=e.map(function(e){if(typeof e!=="object"||e.constructor!==Object){return e}const t={};Object.keys(e).forEach(function(i){if(i==(i|0)){i|=0}const n=e[i];t[n]=i});return t})}};l.forEach(function(e){Node.prototype[e]=function _overrided(){const t=this._baseState;throw new Error(`${e} not implemented for encoding: ${t.enc}`)}});o.forEach(function(e){Node.prototype[e]=function _tagMethod(){const t=this._baseState;const i=Array.prototype.slice.call(arguments);n(t.tag===null);t.tag=e;this._useArgs(i);return this}});Node.prototype.use=function use(e){n(e);const t=this._baseState;n(t.use===null);t.use=e;return this};Node.prototype.optional=function optional(){const e=this._baseState;e.optional=true;return this};Node.prototype.def=function def(e){const t=this._baseState;n(t.default===null);t.default=e;t.optional=true;return this};Node.prototype.explicit=function explicit(e){const t=this._baseState;n(t.explicit===null&&t.implicit===null);t.explicit=e;return this};Node.prototype.implicit=function implicit(e){const t=this._baseState;n(t.explicit===null&&t.implicit===null);t.implicit=e;return this};Node.prototype.obj=function obj(){const e=this._baseState;const t=Array.prototype.slice.call(arguments);e.obj=true;if(t.length!==0){this._useArgs(t)}return this};Node.prototype.key=function key(e){const t=this._baseState;n(t.key===null);t.key=e;return this};Node.prototype.any=function any(){const e=this._baseState;e.any=true;return this};Node.prototype.choice=function choice(e){const t=this._baseState;n(t.choice===null);t.choice=e;this._useArgs(Object.keys(e).map(function(t){return e[t]}));return this};Node.prototype.contains=function contains(e){const t=this._baseState;n(t.use===null);t.contains=e;return this};Node.prototype._decode=function decode(e,t){const i=this._baseState;if(i.parent===null){return e.wrapResult(i.children[0]._decode(e,t))}let n=i.default;let a=true;let s=null;if(i.key!==null){s=e.enterKey(i.key)}if(i.optional){let n=null;if(i.explicit!==null){n=i.explicit}else if(i.implicit!==null){n=i.implicit}else if(i.tag!==null){n=i.tag}if(n===null&&!i.any){const n=e.save();try{if(i.choice===null){this._decodeGeneric(i.tag,e,t)}else{this._decodeChoice(e,t)}a=true}catch(e){a=false}e.restore(n)}else{a=this._peekTag(e,n,i.any);if(e.isError(a)){return a}}}let o;if(i.obj&&a){o=e.enterObject()}if(a){if(i.explicit!==null){const t=this._decodeTag(e,i.explicit);if(e.isError(t)){return t}e=t}const a=e.offset;if(i.use===null&&i.choice===null){let t;if(i.any){t=e.save()}const a=this._decodeTag(e,i.implicit!==null?i.implicit:i.tag,i.any);if(e.isError(a)){return a}if(i.any){n=e.raw(t)}else{e=a}}if(t&&t.track&&i.tag!==null){t.track(e.path(),a,e.length,"tagged")}if(t&&t.track&&i.tag!==null){t.track(e.path(),e.offset,e.length,"content")}if(i.any){}else if(i.choice===null){n=this._decodeGeneric(i.tag,e,t)}else{n=this._decodeChoice(e,t)}if(e.isError(n)){return n}if(!i.any&&i.choice===null&&i.children!==null){i.children.forEach(function decodeChildren(i){i._decode(e,t)})}if(i.contains&&(i.tag==="octstr"||i.tag==="bitstr")){const a=new r(n);n=this._getUse(i.contains,e._reporterState.obj)._decode(a,t)}}if(i.obj&&a){n=e.leaveObject(o)}if(i.key!==null&&(n!==null||a===true)){e.leaveKey(s,i.key,n)}else if(s!==null){e.exitKey(s)}return n};Node.prototype._decodeGeneric=function decodeGeneric(e,t,i){const n=this._baseState;if(e==="seq"||e==="set"){return null}if(e==="seqof"||e==="setof"){return this._decodeList(t,e,n.args[0],i)}else if(/str$/.test(e)){return this._decodeStr(t,e,i)}else if(e==="objid"&&n.args){return this._decodeObjid(t,n.args[0],n.args[1],i)}else if(e==="objid"){return this._decodeObjid(t,null,null,i)}else if(e==="gentime"||e==="utctime"){return this._decodeTime(t,e,i)}else if(e==="null_"){return this._decodeNull(t,i)}else if(e==="bool"){return this._decodeBool(t,i)}else if(e==="objDesc"){return this._decodeStr(t,e,i)}else if(e==="int"||e==="enum"){return this._decodeInt(t,n.args&&n.args[0],i)}if(n.use!==null){return this._getUse(n.use,t._reporterState.obj)._decode(t,i)}else{return t.error(`unknown tag: ${e}`)}};Node.prototype._getUse=function _getUse(e,t){const i=this._baseState;i.useDecoder=this._use(e,t);n(i.useDecoder._baseState.parent===null);i.useDecoder=i.useDecoder._baseState.children[0];if(i.implicit!==i.useDecoder._baseState.implicit){i.useDecoder=i.useDecoder.clone();i.useDecoder._baseState.implicit=i.implicit}return i.useDecoder};Node.prototype._decodeChoice=function decodeChoice(e,t){const i=this._baseState;let n=null;let a=false;Object.keys(i.choice).some(function(r){const s=e.save();const o=i.choice[r];try{const i=o._decode(e,t);if(e.isError(i)){return false}n={type:r,value:i};a=true}catch(t){e.restore(s);return false}return true},this);if(!a){return e.error("Choice not matched")}return n};Node.prototype._createEncoderBuffer=function createEncoderBuffer(e){return new s(e,this.reporter)};Node.prototype._encode=function encode(e,t,i){const n=this._baseState;if(n.default!==null&&n.default===e){return}const a=this._encodeValue(e,t,i);if(a===undefined){return}if(this._skipDefault(a,t,i)){return}return a};Node.prototype._encodeValue=function encode(e,t,i){const n=this._baseState;if(n.parent===null){return n.children[0]._encode(e,t||new a)}let r=null;this.reporter=t;if(n.optional&&e===undefined){if(n.default!==null){e=n.default}else{return}}let s=null;let o=false;if(n.any){r=this._createEncoderBuffer(e)}else if(n.choice){r=this._encodeChoice(e,t)}else if(n.contains){s=this._getUse(n.contains,i)._encode(e,t);o=true}else if(n.children){s=n.children.map(function(i){if(i._baseState.tag==="null_"){return i._encode(null,t,e)}if(i._baseState.key===null){return t.error("Child should have a key")}const n=t.enterKey(i._baseState.key);if(typeof e!=="object"){return t.error("Child expected, but input is not object")}const a=i._encode(e[i._baseState.key],t,e);t.leaveKey(n);return a},this).filter(function(e){return e});s=this._createEncoderBuffer(s)}else{if(n.tag==="seqof"||n.tag==="setof"){if(!(n.args&&n.args.length===1)){return t.error(`Too many args for: ${n.tag}`)}if(!Array.isArray(e)){return t.error("seqof/setof, but data is not Array")}const i=this.clone();i._baseState.implicit=null;s=this._createEncoderBuffer(e.map(function(i){const n=this._baseState;return this._getUse(n.args[0],e)._encode(i,t)},i))}else if(n.use!==null){r=this._getUse(n.use,i)._encode(e,t)}else{s=this._encodePrimitive(n.tag,e);o=true}}if(!n.any&&n.choice===null){const e=n.implicit!==null?n.implicit:n.tag;const i=n.implicit===null?"universal":"context";if(e===null){if(n.use===null){t.error("Tag could be omitted only for .use()")}}else{if(n.use===null){r=this._encodeComposite(e,o,i,s)}}}if(n.explicit!==null){r=this._encodeComposite(n.explicit,false,"context",r)}return r};Node.prototype._encodeChoice=function encodeChoice(e,t){const i=this._baseState;const a=i.choice[e.type];if(!a){n(false,`${e.type} not found in ${JSON.stringify(Object.keys(i.choice))}`)}return a._encode(e.value,t)};Node.prototype._encodePrimitive=function encodePrimitive(e,t){const i=this._baseState;if(/str$/.test(e)){return this._encodeStr(t,e)}else if(e==="objid"&&i.args){return this._encodeObjid(t,i.reverseArgs[0],i.args[1])}else if(e==="objid"){return this._encodeObjid(t,null,null)}else if(e==="gentime"||e==="utctime"){return this._encodeTime(t,e)}else if(e==="null_"){return this._encodeNull()}else if(e==="int"||e==="enum"){return this._encodeInt(t,i.args&&i.reverseArgs[0])}else if(e==="bool"){return this._encodeBool(t)}else if(e==="objDesc"){return this._encodeStr(t,e)}else{throw new Error(`Unsupported tag: ${e}`)}};Node.prototype._isNumstr=function isNumstr(e){return/^[0-9 ]*$/.test(e)};Node.prototype._isPrintstr=function isPrintstr(e){return/^[A-Za-z0-9 '()+,-.\/:=?]*$/.test(e)};e.exports=Node},function(e){"use strict";function formatHostname(e){return e.replace(/^\.*/,".").toLowerCase()}function parseNoProxyZone(e){e=e.trim().toLowerCase();var t=e.split(":",2);var i=formatHostname(t[0]);var n=t[1];var a=e.indexOf(":")>-1;return{hostname:i,port:n,hasPort:a}}function uriInNoProxy(e,t){var i=e.port||(e.protocol==="https:"?"443":"80");var n=formatHostname(e.hostname);var a=t.split(",");return a.map(parseNoProxyZone).some(function(e){var t=n.indexOf(e.hostname);var a=t>-1&&t===n.length-e.hostname.length;if(e.hasPort){return i===e.port&&a}return a})}function getProxyFromURI(e){var t=process.env.NO_PROXY||process.env.no_proxy||"";if(t==="*"){return null}if(t!==""&&uriInNoProxy(e,t)){return null}if(e.protocol==="http:"){return process.env.HTTP_PROXY||process.env.http_proxy||null}if(e.protocol==="https:"){return process.env.HTTPS_PROXY||process.env.https_proxy||process.env.HTTP_PROXY||process.env.http_proxy||null}return null}e.exports=getProxyFromURI},function(e){var t=[];for(var i=0;i<256;++i){t[i]=(i+256).toString(16).substr(1)}function bytesToUuid(e,i){var n=i||0;var a=t;return[a[e[n++]],a[e[n++]],a[e[n++]],a[e[n++]],"-",a[e[n++]],a[e[n++]],"-",a[e[n++]],a[e[n++]],"-",a[e[n++]],a[e[n++]],"-",a[e[n++]],a[e[n++]],a[e[n++]],a[e[n++]],a[e[n++]],a[e[n++]]].join("")}e.exports=bytesToUuid},function(e,t,i){"use strict";var n=i(43);e.exports=new n({include:[i(611)],implicit:[i(841),i(633)],explicit:[i(913),i(842),i(947),i(100)]})},,,,function(e,t,i){var n=i(293);var a=n.Buffer;function copyProps(e,t){for(var i in e){t[i]=e[i]}}if(a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow){e.exports=n}else{copyProps(n,t);t.Buffer=SafeBuffer}function SafeBuffer(e,t,i){return a(e,t,i)}SafeBuffer.prototype=Object.create(a.prototype);copyProps(a,SafeBuffer);SafeBuffer.from=function(e,t,i){if(typeof e==="number"){throw new TypeError("Argument must not be a number")}return a(e,t,i)};SafeBuffer.alloc=function(e,t,i){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}var n=a(e);if(t!==undefined){if(typeof i==="string"){n.fill(t,i)}else{n.fill(t)}}else{n.fill(0)}return n};SafeBuffer.allocUnsafe=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return a(e)};SafeBuffer.allocUnsafeSlow=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return n.SlowBuffer(e)}},function(e,t,i){const{generateKeyPairSync:n,generateKeyPair:a}=i(373);const{promisify:r}=i(669);const{THUMBPRINT_MATERIAL:s,JWK_MEMBERS:o,PUBLIC_MEMBERS:u,PRIVATE_MEMBERS:l,KEY_MANAGEMENT_DECRYPT:c,KEY_MANAGEMENT_ENCRYPT:d}=i(771);const{OKP_CURVES:p}=i(962);const{edDSASupported:f}=i(915);const h=i(466);const m=i(849);const b=r(a);const g=new Set(["crv","x"]);Object.freeze(g);const y=new Set([...g,"d"]);Object.freeze(y);class OKPKey extends m{constructor(...e){super(...e);this[o]();Object.defineProperty(this,"kty",{value:"OKP",enumerable:true});if(!p.has(this.crv)){throw new h.JOSENotSupported("unsupported OKP key curve")}}static get[u](){return g}static get[l](){return y}[s](){return{crv:this.crv,kty:"OKP",x:this.x}}[d](){return this.algorithms("deriveKey")}[c](){if(this.public){return new Set}return this.algorithms("deriveKey")}static async generate(e="Ed25519",t=true){if(!f){throw new h.JOSENotSupported("OKP keys are not supported in your Node.js runtime version")}if(!p.has(e)){throw new h.JOSENotSupported(`unsupported OKP key curve: ${e}`)}const{privateKey:i,publicKey:n}=await b(e.toLowerCase());return t?i:n}static generateSync(e="Ed25519",t=true){if(!f){throw new h.JOSENotSupported("OKP keys are not supported in your Node.js runtime version")}if(!p.has(e)){throw new h.JOSENotSupported(`unsupported OKP key curve: ${e}`)}const{privateKey:i,publicKey:a}=n(e.toLowerCase());return t?i:a}}e.exports=OKPKey},function(e,t,i){var n=i(242).BigInteger;var a=n.prototype.Barrett;function ECFieldElementFp(e,t){this.x=t;this.q=e}function feFpEquals(e){if(e==this)return true;return this.q.equals(e.q)&&this.x.equals(e.x)}function feFpToBigInteger(){return this.x}function feFpNegate(){return new ECFieldElementFp(this.q,this.x.negate().mod(this.q))}function feFpAdd(e){return new ECFieldElementFp(this.q,this.x.add(e.toBigInteger()).mod(this.q))}function feFpSubtract(e){return new ECFieldElementFp(this.q,this.x.subtract(e.toBigInteger()).mod(this.q))}function feFpMultiply(e){return new ECFieldElementFp(this.q,this.x.multiply(e.toBigInteger()).mod(this.q))}function feFpSquare(){return new ECFieldElementFp(this.q,this.x.square().mod(this.q))}function feFpDivide(e){return new ECFieldElementFp(this.q,this.x.multiply(e.toBigInteger().modInverse(this.q)).mod(this.q))}ECFieldElementFp.prototype.equals=feFpEquals;ECFieldElementFp.prototype.toBigInteger=feFpToBigInteger;ECFieldElementFp.prototype.negate=feFpNegate;ECFieldElementFp.prototype.add=feFpAdd;ECFieldElementFp.prototype.subtract=feFpSubtract;ECFieldElementFp.prototype.multiply=feFpMultiply;ECFieldElementFp.prototype.square=feFpSquare;ECFieldElementFp.prototype.divide=feFpDivide;function ECPointFp(e,t,i,a){this.curve=e;this.x=t;this.y=i;if(a==null){this.z=n.ONE}else{this.z=a}this.zinv=null}function pointFpGetX(){if(this.zinv==null){this.zinv=this.z.modInverse(this.curve.q)}var e=this.x.toBigInteger().multiply(this.zinv);this.curve.reduce(e);return this.curve.fromBigInteger(e)}function pointFpGetY(){if(this.zinv==null){this.zinv=this.z.modInverse(this.curve.q)}var e=this.y.toBigInteger().multiply(this.zinv);this.curve.reduce(e);return this.curve.fromBigInteger(e)}function pointFpEquals(e){if(e==this)return true;if(this.isInfinity())return e.isInfinity();if(e.isInfinity())return this.isInfinity();var t,i;t=e.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(e.z)).mod(this.curve.q);if(!t.equals(n.ZERO))return false;i=e.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(e.z)).mod(this.curve.q);return i.equals(n.ZERO)}function pointFpIsInfinity(){if(this.x==null&&this.y==null)return true;return this.z.equals(n.ZERO)&&!this.y.toBigInteger().equals(n.ZERO)}function pointFpNegate(){return new ECPointFp(this.curve,this.x,this.y.negate(),this.z)}function pointFpAdd(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(e.z)).mod(this.curve.q);var i=e.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(e.z)).mod(this.curve.q);if(n.ZERO.equals(i)){if(n.ZERO.equals(t)){return this.twice()}return this.curve.getInfinity()}var a=new n("3");var r=this.x.toBigInteger();var s=this.y.toBigInteger();var o=e.x.toBigInteger();var u=e.y.toBigInteger();var l=i.square();var c=l.multiply(i);var d=r.multiply(l);var p=t.square().multiply(this.z);var f=p.subtract(d.shiftLeft(1)).multiply(e.z).subtract(c).multiply(i).mod(this.curve.q);var h=d.multiply(a).multiply(t).subtract(s.multiply(c)).subtract(p.multiply(t)).multiply(e.z).add(t.multiply(c)).mod(this.curve.q);var m=c.multiply(this.z).multiply(e.z).mod(this.curve.q);return new ECPointFp(this.curve,this.curve.fromBigInteger(f),this.curve.fromBigInteger(h),m)}function pointFpTwice(){if(this.isInfinity())return this;if(this.y.toBigInteger().signum()==0)return this.curve.getInfinity();var e=new n("3");var t=this.x.toBigInteger();var i=this.y.toBigInteger();var a=i.multiply(this.z);var r=a.multiply(i).mod(this.curve.q);var s=this.curve.a.toBigInteger();var o=t.square().multiply(e);if(!n.ZERO.equals(s)){o=o.add(this.z.square().multiply(s))}o=o.mod(this.curve.q);var u=o.square().subtract(t.shiftLeft(3).multiply(r)).shiftLeft(1).multiply(a).mod(this.curve.q);var l=o.multiply(e).multiply(t).subtract(r.shiftLeft(1)).shiftLeft(2).multiply(r).subtract(o.square().multiply(o)).mod(this.curve.q);var c=a.square().multiply(a).shiftLeft(3).mod(this.curve.q);return new ECPointFp(this.curve,this.curve.fromBigInteger(u),this.curve.fromBigInteger(l),c)}function pointFpMultiply(e){if(this.isInfinity())return this;if(e.signum()==0)return this.curve.getInfinity();var t=e;var i=t.multiply(new n("3"));var a=this.negate();var r=this;var s;for(s=i.bitLength()-2;s>0;--s){r=r.twice();var o=i.testBit(s);var u=t.testBit(s);if(o!=u){r=r.add(o?this:a)}}return r}function pointFpMultiplyTwo(e,t,i){var n;if(e.bitLength()>i.bitLength())n=e.bitLength()-1;else n=i.bitLength()-1;var a=this.curve.getInfinity();var r=this.add(t);while(n>=0){a=a.twice();if(e.testBit(n)){if(i.testBit(n)){a=a.add(r)}else{a=a.add(this)}}else{if(i.testBit(n)){a=a.add(t)}}--n}return a}ECPointFp.prototype.getX=pointFpGetX;ECPointFp.prototype.getY=pointFpGetY;ECPointFp.prototype.equals=pointFpEquals;ECPointFp.prototype.isInfinity=pointFpIsInfinity;ECPointFp.prototype.negate=pointFpNegate;ECPointFp.prototype.add=pointFpAdd;ECPointFp.prototype.twice=pointFpTwice;ECPointFp.prototype.multiply=pointFpMultiply;ECPointFp.prototype.multiplyTwo=pointFpMultiplyTwo;function ECCurveFp(e,t,i){this.q=e;this.a=this.fromBigInteger(t);this.b=this.fromBigInteger(i);this.infinity=new ECPointFp(this,null,null);this.reducer=new a(this.q)}function curveFpGetQ(){return this.q}function curveFpGetA(){return this.a}function curveFpGetB(){return this.b}function curveFpEquals(e){if(e==this)return true;return this.q.equals(e.q)&&this.a.equals(e.a)&&this.b.equals(e.b)}function curveFpGetInfinity(){return this.infinity}function curveFpFromBigInteger(e){return new ECFieldElementFp(this.q,e)}function curveReduce(e){this.reducer.reduce(e)}function curveFpDecodePointHex(e){switch(parseInt(e.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:return null;case 4:case 6:case 7:var t=(e.length-2)/2;var i=e.substr(2,t);var a=e.substr(t+2,t);return new ECPointFp(this,this.fromBigInteger(new n(i,16)),this.fromBigInteger(new n(a,16)));default:return null}}function curveFpEncodePointHex(e){if(e.isInfinity())return"00";var t=e.getX().toBigInteger().toString(16);var i=e.getY().toBigInteger().toString(16);var n=this.getQ().toString(16).length;if(n%2!=0)n++;while(t.length128){var t=this.q.shiftRight(e-64);if(t.intValue()==-1){this.r=n.ONE.shiftLeft(e).subtract(this.q)}}return this.r};ECFieldElementFp.prototype.modMult=function(e,t){return this.modReduce(e.multiply(t))};ECFieldElementFp.prototype.modReduce=function(e){if(this.getR()!=null){var t=q.bitLength();while(e.bitLength()>t+1){var i=e.shiftRight(t);var a=e.subtract(i.shiftLeft(t));if(!this.getR().equals(n.ONE)){i=i.multiply(this.getR())}e=i.add(a)}while(e.compareTo(q)>=0){e=e.subtract(q)}}else{e=e.mod(q)}return e};ECFieldElementFp.prototype.sqrt=function(){if(!this.q.testBit(0))throw"unsupported";if(this.q.testBit(1)){var e=new ECFieldElementFp(this.q,this.x.modPow(this.q.shiftRight(2).add(n.ONE),this.q));return e.square().equals(this)?e:null}var t=this.q.subtract(n.ONE);var i=t.shiftRight(1);if(!this.x.modPow(i,this.q).equals(n.ONE)){return null}var a=t.shiftRight(2);var r=a.shiftLeft(1).add(n.ONE);var s=this.x;var o=modDouble(modDouble(s));var u,l;do{var c;do{c=new n(this.q.bitLength(),new SecureRandom)}while(c.compareTo(this.q)>=0||!c.multiply(c).subtract(o).modPow(i,this.q).equals(t));var d=this.lucasSequence(c,s,r);u=d[0];l=d[1];if(this.modMult(l,l).equals(o)){if(l.testBit(0)){l=l.add(q)}l=l.shiftRight(1);return new ECFieldElementFp(q,l)}}while(u.equals(n.ONE)||u.equals(t));return null};ECFieldElementFp.prototype.lucasSequence=function(e,t,i){var a=i.bitLength();var r=i.getLowestSetBit();var s=n.ONE;var o=n.TWO;var u=e;var l=n.ONE;var c=n.ONE;for(var d=a-1;d>=r+1;--d){l=this.modMult(l,c);if(i.testBit(d)){c=this.modMult(l,t);s=this.modMult(s,u);o=this.modReduce(u.multiply(o).subtract(e.multiply(l)));u=this.modReduce(u.multiply(u).subtract(c.shiftLeft(1)))}else{c=l;s=this.modReduce(s.multiply(o).subtract(l));u=this.modReduce(u.multiply(o).subtract(e.multiply(l)));o=this.modReduce(o.multiply(o).subtract(l.shiftLeft(1)))}}l=this.modMult(l,c);c=this.modMult(l,t);s=this.modReduce(s.multiply(o).subtract(l));o=this.modReduce(u.multiply(o).subtract(e.multiply(l)));l=this.modMult(l,c);for(var d=1;d<=r;++d){s=this.modMult(s,o);o=this.modReduce(o.multiply(o).subtract(l.shiftLeft(1)));l=this.modMult(l,l)}return[s,o]};var r={ECCurveFp:ECCurveFp,ECPointFp:ECPointFp,ECFieldElementFp:ECFieldElementFp};e.exports=r},,,,function(e,t,i){var n=i(357);var a=i(215).Buffer;var r=i(362);var s=i(584);var o=s.newInvalidAsn1Error;function Reader(e){if(!e||!a.isBuffer(e))throw new TypeError("data must be a node Buffer");this._buf=e;this._size=e.length;this._len=0;this._offset=0}Object.defineProperty(Reader.prototype,"length",{enumerable:true,get:function(){return this._len}});Object.defineProperty(Reader.prototype,"offset",{enumerable:true,get:function(){return this._offset}});Object.defineProperty(Reader.prototype,"remain",{get:function(){return this._size-this._offset}});Object.defineProperty(Reader.prototype,"buffer",{get:function(){return this._buf.slice(this._offset)}});Reader.prototype.readByte=function(e){if(this._size-this._offset<1)return null;var t=this._buf[this._offset]&255;if(!e)this._offset+=1;return t};Reader.prototype.peek=function(){return this.readByte(true)};Reader.prototype.readLength=function(e){if(e===undefined)e=this._offset;if(e>=this._size)return null;var t=this._buf[e++]&255;if(t===null)return null;if((t&128)===128){t&=127;if(t===0)throw o("Indefinite length not supported");if(t>4)throw o("encoding too long");if(this._size-ethis._size-n)return null;this._offset=n;if(this.length===0)return t?a.alloc(0):"";var s=this._buf.slice(this._offset,this._offset+this.length);this._offset+=this.length;return t?s:s.toString("utf8")};Reader.prototype.readOID=function(e){if(!e)e=r.OID;var t=this.readString(e,true);if(t===null)return null;var i=[];var n=0;for(var a=0;a>0);return i.join(".")};Reader.prototype._readTag=function(e){n.ok(e!==undefined);var t=this.peek();if(t===null)return null;if(t!==e)throw o("Expected 0x"+e.toString(16)+": got 0x"+t.toString(16));var i=this.readLength(this._offset+1);if(i===null)return null;if(this.length>4)throw o("Integer too long: "+this.length);if(this.length>this._size-i)return null;this._offset=i;var a=this._buf[this._offset];var r=0;for(var s=0;s>0};e.exports=Reader},,,function(e,t,i){const{sign:n,verify:a}=i(373);const{KEYOBJECT:r}=i(771);const{edDSASupported:s}=i(915);const o=({[r]:e},t)=>{if(typeof t==="string"){t=Buffer.from(t)}return n(undefined,t,e)};const u=({[r]:e},t,i)=>{return a(undefined,t,e,i)};e.exports=((e,t)=>{if(s){e.sign.set("EdDSA",o);e.verify.set("EdDSA",u);t.OKP.sign.EdDSA=(e=>e.private&&t.OKP.verify.EdDSA(e));t.OKP.verify.EdDSA=(e=>(e.use==="sig"||e.use===undefined)&&e.keyObject.asymmetricKeyType.startsWith("ed"))}})},,function(e,t,i){"use strict";const{Writable:n}=i(413);const a=i(301);const{BINARY_TYPES:r,EMPTY_BUFFER:s,kStatusCode:o,kWebSocket:u}=i(799);const{concat:l,toArrayBuffer:c,unmask:d}=i(104);const{isValidStatusCode:p,isValidUTF8:f}=i(562);const h=0;const m=1;const b=2;const g=3;const y=4;const S=5;class Receiver extends n{constructor(e,t,i){super();this._binaryType=e||r[0];this[u]=undefined;this._extensions=t||{};this._maxPayload=i|0;this._bufferedBytes=0;this._buffers=[];this._compressed=false;this._payloadLength=0;this._mask=undefined;this._fragmented=0;this._masked=false;this._fin=false;this._opcode=0;this._totalPayloadLength=0;this._messageLength=0;this._fragments=[];this._state=h;this._loop=false}_write(e,t,i){if(this._opcode===8&&this._state==h)return i();this._bufferedBytes+=e.length;this._buffers.push(e);this.startLoop(i)}consume(e){this._bufferedBytes-=e;if(e===this._buffers[0].length)return this._buffers.shift();if(e=i.length){this._buffers.shift().copy(t,t.length-e)}else{i.copy(t,t.length-e,0,e);this._buffers[0]=i.slice(e)}e-=i.length}while(e>0);return t}startLoop(e){var t;this._loop=true;do{switch(this._state){case h:t=this.getInfo();break;case m:t=this.getPayloadLength16();break;case b:t=this.getPayloadLength64();break;case g:this.getMask();break;case y:t=this.getData(e);break;default:this._loop=false;return}}while(this._loop);e(t)}getInfo(){if(this._bufferedBytes<2){this._loop=false;return}const e=this.consume(2);if((e[0]&48)!==0){this._loop=false;return error(RangeError,"RSV2 and RSV3 must be clear",true,1002)}const t=(e[0]&64)===64;if(t&&!this._extensions[a.extensionName]){this._loop=false;return error(RangeError,"RSV1 must be clear",true,1002)}this._fin=(e[0]&128)===128;this._opcode=e[0]&15;this._payloadLength=e[1]&127;if(this._opcode===0){if(t){this._loop=false;return error(RangeError,"RSV1 must be clear",true,1002)}if(!this._fragmented){this._loop=false;return error(RangeError,"invalid opcode 0",true,1002)}this._opcode=this._fragmented}else if(this._opcode===1||this._opcode===2){if(this._fragmented){this._loop=false;return error(RangeError,`invalid opcode ${this._opcode}`,true,1002)}this._compressed=t}else if(this._opcode>7&&this._opcode<11){if(!this._fin){this._loop=false;return error(RangeError,"FIN must be set",true,1002)}if(t){this._loop=false;return error(RangeError,"RSV1 must be clear",true,1002)}if(this._payloadLength>125){this._loop=false;return error(RangeError,`invalid payload length ${this._payloadLength}`,true,1002)}}else{this._loop=false;return error(RangeError,`invalid opcode ${this._opcode}`,true,1002)}if(!this._fin&&!this._fragmented)this._fragmented=this._opcode;this._masked=(e[1]&128)===128;if(this._payloadLength===126)this._state=m;else if(this._payloadLength===127)this._state=b;else return this.haveLength()}getPayloadLength16(){if(this._bufferedBytes<2){this._loop=false;return}this._payloadLength=this.consume(2).readUInt16BE(0);return this.haveLength()}getPayloadLength64(){if(this._bufferedBytes<8){this._loop=false;return}const e=this.consume(8);const t=e.readUInt32BE(0);if(t>Math.pow(2,53-32)-1){this._loop=false;return error(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",false,1009)}this._payloadLength=t*Math.pow(2,32)+e.readUInt32BE(4);return this.haveLength()}haveLength(){if(this._payloadLength&&this._opcode<8){this._totalPayloadLength+=this._payloadLength;if(this._totalPayloadLength>this._maxPayload&&this._maxPayload>0){this._loop=false;return error(RangeError,"Max payload size exceeded",false,1009)}}if(this._masked)this._state=g;else this._state=y}getMask(){if(this._bufferedBytes<4){this._loop=false;return}this._mask=this.consume(4);this._state=y}getData(e){var t=s;if(this._payloadLength){if(this._bufferedBytes7)return this.controlMessage(t);if(this._compressed){this._state=S;this.decompress(t,e);return}if(t.length){this._messageLength=this._totalPayloadLength;this._fragments.push(t)}return this.dataMessage()}decompress(e,t){const i=this._extensions[a.extensionName];i.decompress(e,this._fin,(e,i)=>{if(e)return t(e);if(i.length){this._messageLength+=i.length;if(this._messageLength>this._maxPayload&&this._maxPayload>0){return t(error(RangeError,"Max payload size exceeded",false,1009))}this._fragments.push(i)}const n=this.dataMessage();if(n)return t(n);this.startLoop(t)})}dataMessage(){if(this._fin){const t=this._messageLength;const i=this._fragments;this._totalPayloadLength=0;this._messageLength=0;this._fragmented=0;this._fragments=[];if(this._opcode===2){var e;if(this._binaryType==="nodebuffer"){e=l(i,t)}else if(this._binaryType==="arraybuffer"){e=c(l(i,t))}else{e=i}this.emit("message",e)}else{const e=l(i,t);if(!f(e)){this._loop=false;return error(Error,"invalid UTF-8 sequence",true,1007)}this.emit("message",e.toString())}}this._state=h}controlMessage(e){if(this._opcode===8){this._loop=false;if(e.length===0){this.emit("conclude",1005,"");this.end()}else if(e.length===1){return error(RangeError,"invalid payload length 1",true,1002)}else{const t=e.readUInt16BE(0);if(!p(t)){return error(RangeError,`invalid status code ${t}`,true,1002)}const i=e.slice(2);if(!f(i)){return error(Error,"invalid UTF-8 sequence",true,1007)}this.emit("conclude",t,i.toString());this.end()}}else if(this._opcode===9){this.emit("ping",e)}else{this.emit("pong",e)}this._state=h}}e.exports=Receiver;function error(e,t,i,n){const a=new e(i?`Invalid WebSocket frame: ${t}`:t);Error.captureStackTrace(a,error);a[o]=n;return a}},function(e,t,i){function __ncc_wildcard$0(e){if(e==="cat.js"||e==="cat")return i(833);else if(e==="cd.js"||e==="cd")return i(8);else if(e==="chmod.js"||e==="chmod")return i(477);else if(e==="common.js"||e==="common")return i(602);else if(e==="cp.js"||e==="cp")return i(838);else if(e==="dirs.js"||e==="dirs")return i(542);else if(e==="echo.js"||e==="echo")return i(757);else if(e==="error.js"||e==="error")return i(605);else if(e==="exec-child.js"||e==="exec-child")return i(761);else if(e==="exec.js"||e==="exec")return i(693);else if(e==="find.js"||e==="find")return i(216);else if(e==="grep.js"||e==="grep")return i(199);else if(e==="head.js"||e==="head")return i(890);else if(e==="ln.js"||e==="ln")return i(535);else if(e==="ls.js"||e==="ls")return i(705);else if(e==="mkdir.js"||e==="mkdir")return i(661);else if(e==="mv.js"||e==="mv")return i(63);else if(e==="popd.js"||e==="popd")return i(409);else if(e==="pushd.js"||e==="pushd")return i(188);else if(e==="pwd.js"||e==="pwd")return i(359);else if(e==="rm.js"||e==="rm")return i(688);else if(e==="sed.js"||e==="sed")return i(989);else if(e==="set.js"||e==="set")return i(936);else if(e==="sort.js"||e==="sort")return i(340);else if(e==="tail.js"||e==="tail")return i(62);else if(e==="tempdir.js"||e==="tempdir")return i(953);else if(e==="test.js"||e==="test")return i(284);else if(e==="to.js"||e==="to")return i(380);else if(e==="toEnd.js"||e==="toEnd")return i(240);else if(e==="touch.js"||e==="touch")return i(505);else if(e==="uniq.js"||e==="uniq")return i(554);else if(e==="which.js"||e==="which")return i(691)}var n=i(602);i(233).forEach(function(e){__ncc_wildcard$0(e)});t.exit=process.exit;t.error=i(605);t.ShellString=n.ShellString;t.env=process.env;t.config=n.config},function(e,t,i){const n=i(65);const a=i(124);const r=(e,t,i)=>{let r=null;let s=null;let o=null;try{o=new a(t,i)}catch(e){return null}e.forEach(e=>{if(o.test(e)){if(!r||s.compare(e)===1){r=e;s=new n(r,i)}}});return r};e.exports=r},function(e){"use strict";var t=String.prototype.replace;var i=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return t.call(e,i,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},function(e){(function(){var t,i,n,a,r,s;if(typeof performance!=="undefined"&&performance!==null&&performance.now){e.exports=function(){return performance.now()}}else if(typeof process!=="undefined"&&process!==null&&process.hrtime){e.exports=function(){return(t()-r)/1e6};i=process.hrtime;t=function(){var e;e=i();return e[0]*1e9+e[1]};a=t();s=process.uptime()*1e9;r=a-s}else if(Date.now){e.exports=function(){return Date.now()-n};n=Date.now()}else{e.exports=function(){return(new Date).getTime()-n};n=(new Date).getTime()}}).call(this)},,function(e,t,i){const n=i(65);const a=(e,t)=>new n(e,t).major;e.exports=a},function(e,t,i){const n=i(274);const a=i(0);const r=i(38);const s=i(322);const{bare:o}=i(797);const{JWTClaimInvalid:u,JWTExpired:l}=i(466);const{isString:c,isNotString:d}=i(518);const p=i(150);const f=c.bind(undefined,u);const h=c.bind(undefined,TypeError);const m="id_token";const b="logout_token";const g="at+JWT";const y=(e,t,i=false)=>{if(i&&e===undefined){throw new u(`"${t}" claim is missing`,t,"missing")}if(e!==undefined&&typeof e!=="number"){throw new u(`"${t}" claim must be a JSON numeric value`,t,"invalid")}};const S=(e,t,i=false)=>{if(i&&e===undefined){throw new u(`"${t}" claim is missing`,t,"missing")}if(e!==undefined&&(d(e)&&w(e))){throw new u(`"${t}" claim must be a string or array of strings`,t,"invalid")}};const w=e=>!Array.isArray(e)||e.length===0||e.some(d);const v=e=>e.toLowerCase().replace(/^application\//,"");const z=({algorithms:e,audience:t,clockTolerance:i,complete:n=false,crit:a,ignoreExp:r=false,ignoreIat:s=false,ignoreNbf:o=false,issuer:u,jti:l,maxAuthAge:c,maxTokenAge:p,nonce:f,now:y=new Date,profile:S,subject:v,typ:z})=>{h(S,"options.profile");if(typeof n!=="boolean"){throw new TypeError("options.complete must be a boolean")}if(typeof r!=="boolean"){throw new TypeError("options.ignoreExp must be a boolean")}if(typeof o!=="boolean"){throw new TypeError("options.ignoreNbf must be a boolean")}if(typeof s!=="boolean"){throw new TypeError("options.ignoreIat must be a boolean")}h(p,"options.maxTokenAge");h(v,"options.subject");h(c,"options.maxAuthAge");h(l,"options.jti");h(i,"options.clockTolerance");h(z,"options.typ");if(u!==undefined&&(d(u)&&w(u))){throw new TypeError("options.issuer must be a string or an array of strings")}if(t!==undefined&&(d(t)&&w(t))){throw new TypeError("options.audience must be a string or an array of strings")}if(e!==undefined&&w(e)){throw new TypeError("options.algorithms must be an array of strings")}h(f,"options.nonce");if(!(y instanceof Date)||!y.getTime()){throw new TypeError("options.now must be a valid Date object")}if(s&&p!==undefined){throw new TypeError("options.ignoreIat and options.maxTokenAge cannot used together")}if(a!==undefined&&w(a)){throw new TypeError("options.crit must be an array of strings")}switch(S){case m:if(!u){throw new TypeError('"issuer" option is required to validate an ID Token')}if(!t){throw new TypeError('"audience" option is required to validate an ID Token')}break;case g:if(!u){throw new TypeError('"issuer" option is required to validate a JWT Access Token')}if(!t){throw new TypeError('"audience" option is required to validate a JWT Access Token')}z=g;break;case b:if(!u){throw new TypeError('"issuer" option is required to validate a Logout Token')}if(!t){throw new TypeError('"audience" option is required to validate a Logout Token')}break;case undefined:break;default:throw new TypeError(`unsupported options.profile value "${S}"`)}return{algorithms:e,audience:t,clockTolerance:i,complete:n,crit:a,ignoreExp:r,ignoreIat:s,ignoreNbf:o,issuer:u,jti:l,maxAuthAge:c,maxTokenAge:p,nonce:f,now:y,profile:S,subject:v,typ:z}};const j=({header:e,payload:t},i,a)=>{f(e.alg,'"alg" header parameter',"alg",true);y(t.iat,"iat",i===m||i===b||i===g||!!a.maxTokenAge);y(t.exp,"exp",i===m||i===g);y(t.auth_time,"auth_time",!!a.maxAuthAge);y(t.nbf,"nbf");f(t.jti,'"jti" claim',"jti",i===b||i===g||!!a.jti);f(t.acr,'"acr" claim',"acr");f(t.nonce,'"nonce" claim',"nonce",!!a.nonce);S(t.iss,"iss",!!a.issuer);f(t.sub,'"sub" claim',"sub",i===m||i===g||!!a.subject);S(t.aud,"aud",!!a.audience);f(t.azp,'"azp" claim',"azp",i===m&&Array.isArray(t.aud)&&t.aud.length>1);S(t.amr,"amr");f(e.typ,'"typ" header parameter',"typ",!!a.typ);if(i===g){f(t.client_id,'"client_id" claim',"client_id",true)}if(i===b){f(t.sid,'"sid" claim',"sid");if(!("sid"in t)&&!("sub"in t)){throw new u('either "sid" or "sub" (or both) claims must be present')}if("nonce"in t){throw new u('"nonce" claim is prohibited',"nonce","prohibited")}if(!("events"in t)){throw new u('"events" claim is missing',"events","missing")}if(!n(t.events)){throw new u('"events" claim must be an object',"events","invalid")}if(!("http://schemas.openid.net/event/backchannel-logout"in t.events)){throw new u('"http://schemas.openid.net/event/backchannel-logout" member is missing in the "events" claim',"events","invalid")}if(!n(t.events["http://schemas.openid.net/event/backchannel-logout"])){throw new u('"http://schemas.openid.net/event/backchannel-logout" member in the "events" claim must be an object',"events","invalid")}}};const O=(e,t,i)=>{if(typeof e==="string"){return t.includes(e)}e=new Set(e);return t.some(Set.prototype.has.bind(e))};e.exports=((e,t,i={})=>{if(!n(i)){throw new TypeError("options must be an object")}const{algorithms:c,audience:d,clockTolerance:f,complete:h,crit:b,ignoreExp:g,ignoreIat:y,ignoreNbf:S,issuer:w,jti:k,maxAuthAge:C,maxTokenAge:T,nonce:R,now:E,profile:A,subject:x,typ:N}=i=z(i);const V=p(e,{complete:true});t=s(t,true);if(h){({key:t}=o(true,"preparsed",{decoded:V,token:e},t,{crit:b,algorithms:c,complete:true}));V.key=t}else{o(true,"preparsed",{decoded:V,token:e},t,{crit:b,algorithms:c})}const P=a(E);j(V,A,i);if(w&&(typeof V.payload.iss!=="string"||!(typeof w==="string"?[w]:w).includes(V.payload.iss))){throw new u('unexpected "iss" claim value',"iss","check_failed")}if(R&&V.payload.nonce!==R){throw new u('unexpected "nonce" claim value',"nonce","check_failed")}if(x&&V.payload.sub!==x){throw new u('unexpected "sub" claim value',"sub","check_failed")}if(k&&V.payload.jti!==k){throw new u('unexpected "jti" claim value',"jti","check_failed")}if(d&&!O(V.payload.aud,typeof d==="string"?[d]:d,A)){throw new u('unexpected "aud" claim value',"aud","check_failed")}if(N&&v(V.header.typ)!==v(N)){throw new u('unexpected "typ" JWT header value',"typ","check_failed")}const D=f?r(f):0;if(C){const e=r(C);if(V.payload.auth_time+eP+D){throw new u('"iat" claim timestamp check failed (it should be in the past)',"iat","check_failed")}if(!S&&"nbf"in V.payload&&V.payload.nbf>P+D){throw new u('"nbf" claim timestamp check failed',"nbf","check_failed")}if(!g&&"exp"in V.payload&&V.payload.exp<=P-D){throw new l('"exp" claim timestamp check failed',"exp","check_failed")}if(T){const e=P-V.payload.iat;const t=r(T);if(e-D>t){throw new l('"iat" claim timestamp check failed (too far in the past)',"iat","check_failed")}if(e<0-D){throw new u('"iat" claim timestamp check failed (it should be in the past)',"iat","check_failed")}}if(A===m&&Array.isArray(V.payload.aud)&&V.payload.aud.length>1&&V.payload.azp!==d){throw new u('unexpected "azp" claim value',"azp","check_failed")}return h?V:V.payload})},,function(e){e.exports=require("fs")},,function(e){const t=()=>Buffer.from("");const i=(e,t,i)=>!i.length;e.exports=((e,n)=>{e.sign.set("none",t);e.verify.set("none",i)})},function(e,t,i){"use strict";var n=i(213);var a={};a.rules=i(50).map(function(e){return{rule:e,suffix:e.replace(/^(\*\.|\!)/,""),punySuffix:-1,wildcard:e.charAt(0)==="*",exception:e.charAt(0)==="!"}});a.endsWith=function(e,t){return e.indexOf(t,e.length-t.length)!==-1};a.findRule=function(e){var t=n.toASCII(e);return a.rules.reduce(function(e,i){if(i.punySuffix===-1){i.punySuffix=n.toASCII(i.suffix)}if(!a.endsWith(t,"."+i.punySuffix)&&t!==i.punySuffix){return e}return i},null)};t.errorCodes={DOMAIN_TOO_SHORT:"Domain name too short.",DOMAIN_TOO_LONG:"Domain name too long. It should be no more than 255 chars.",LABEL_STARTS_WITH_DASH:"Domain name label can not start with a dash.",LABEL_ENDS_WITH_DASH:"Domain name label can not end with a dash.",LABEL_TOO_LONG:"Domain name label should be at most 63 chars long.",LABEL_TOO_SHORT:"Domain name label should be at least 1 character long.",LABEL_INVALID_CHARS:"Domain name label can only contain alphanumeric characters or dashes."};a.validate=function(e){var t=n.toASCII(e);if(t.length<1){return"DOMAIN_TOO_SHORT"}if(t.length>255){return"DOMAIN_TOO_LONG"}var i=t.split(".");var a;for(var r=0;r63){return"LABEL_TOO_LONG"}if(a.charAt(0)==="-"){return"LABEL_STARTS_WITH_DASH"}if(a.charAt(a.length-1)==="-"){return"LABEL_ENDS_WITH_DASH"}if(!/^[a-z0-9\-]+$/.test(a)){return"LABEL_INVALID_CHARS"}}};t.parse=function(e){if(typeof e!=="string"){throw new TypeError("Domain name must be a string.")}var i=e.slice(0).toLowerCase();if(i.charAt(i.length-1)==="."){i=i.slice(0,i.length-1)}var r=a.validate(i);if(r){return{input:e,error:{message:t.errorCodes[r],code:r}}}var s={input:e,tld:null,sld:null,domain:null,subdomain:null,listed:false};var o=i.split(".");if(o[o.length-1]==="local"){return s}var u=function(){if(!/xn--/.test(i)){return s}if(s.domain){s.domain=n.toASCII(s.domain)}if(s.subdomain){s.subdomain=n.toASCII(s.subdomain)}return s};var l=a.findRule(i);if(!l){if(o.length<2){return s}s.tld=o.pop();s.sld=o.pop();s.domain=[s.sld,s.tld].join(".");if(o.length){s.subdomain=o.pop()}return u()}s.listed=true;var c=l.suffix.split(".");var d=o.slice(0,o.length-c.length);if(l.exception){d.push(c.shift())}s.tld=c.join(".");if(!d.length){return u()}if(l.wildcard){c.unshift(d.pop());s.tld=c.join(".")}if(!d.length){return u()}s.sld=d.pop();s.domain=[s.sld,s.tld].join(".");if(d.length){s.subdomain=d.join(".")}return u()};t.get=function(e){if(!e){return null}return t.parse(e).domain||null};t.isValid=function(e){var i=t.parse(e);return Boolean(i.domain&&i.listed)}},function(e,t,i){var n=i(500);e.exports=async;function async(e){var t=false;n(function(){t=true});return function async_callback(i,a){if(t){e(i,a)}else{n(function nextTick_callback(){e(i,a)})}}}},function(e,t,i){const n=i(298);const a=i(873);const r=i(486);const s=i(167);const o=i(586);const u=i(898);const l=(e,t,i,l)=>{switch(t){case"===":if(typeof e==="object")e=e.version;if(typeof i==="object")i=i.version;return e===i;case"!==":if(typeof e==="object")e=e.version;if(typeof i==="object")i=i.version;return e!==i;case"":case"=":case"==":return n(e,i,l);case"!=":return a(e,i,l);case">":return r(e,i,l);case">=":return s(e,i,l);case"<":return o(e,i,l);case"<=":return u(e,i,l);default:throw new TypeError(`Invalid operator: ${t}`)}};e.exports=l},function(e,t,i){var n=i(872);var a=i(669);function FingerprintFormatError(e,t){if(Error.captureStackTrace)Error.captureStackTrace(this,FingerprintFormatError);this.name="FingerprintFormatError";this.fingerprint=e;this.format=t;this.message="Fingerprint format is not supported, or is invalid: ";if(e!==undefined)this.message+=" fingerprint = "+e;if(t!==undefined)this.message+=" format = "+t}a.inherits(FingerprintFormatError,Error);function InvalidAlgorithmError(e){if(Error.captureStackTrace)Error.captureStackTrace(this,InvalidAlgorithmError);this.name="InvalidAlgorithmError";this.algorithm=e;this.message='Algorithm "'+e+'" is not supported'}a.inherits(InvalidAlgorithmError,Error);function KeyParseError(e,t,i){if(Error.captureStackTrace)Error.captureStackTrace(this,KeyParseError);this.name="KeyParseError";this.format=t;this.keyName=e;this.innerErr=i;this.message="Failed to parse "+e+" as a valid "+t+" format key: "+i.message}a.inherits(KeyParseError,Error);function SignatureParseError(e,t,i){if(Error.captureStackTrace)Error.captureStackTrace(this,SignatureParseError);this.name="SignatureParseError";this.type=e;this.format=t;this.innerErr=i;this.message="Failed to parse the given data as a "+e+" signature in "+t+" format: "+i.message}a.inherits(SignatureParseError,Error);function CertificateParseError(e,t,i){if(Error.captureStackTrace)Error.captureStackTrace(this,CertificateParseError);this.name="CertificateParseError";this.format=t;this.certName=e;this.innerErr=i;this.message="Failed to parse "+e+" as a valid "+t+" format certificate: "+i.message}a.inherits(CertificateParseError,Error);function KeyEncryptedError(e,t){if(Error.captureStackTrace)Error.captureStackTrace(this,KeyEncryptedError);this.name="KeyEncryptedError";this.format=t;this.keyName=e;this.message="The "+t+" format key "+e+" is "+"encrypted (password-protected), and no passphrase was "+"provided in `options`"}a.inherits(KeyEncryptedError,Error);e.exports={FingerprintFormatError:FingerprintFormatError,InvalidAlgorithmError:InvalidAlgorithmError,KeyParseError:KeyParseError,SignatureParseError:SignatureParseError,KeyEncryptedError:KeyEncryptedError,CertificateParseError:CertificateParseError}},,function(e,t,i){"use strict";var n=i(4);var a=Object.prototype.hasOwnProperty;var r=Array.isArray;var s={allowDots:false,allowPrototypes:false,arrayLimit:20,charset:"utf-8",charsetSentinel:false,comma:false,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:false,interpretNumericEntities:false,parameterLimit:1e3,parseArrays:true,plainObjects:false,strictNullHandling:false};var o=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})};var u=function(e,t){if(e&&typeof e==="string"&&t.comma&&e.indexOf(",")>-1){return e.split(",")}return e};var l="utf8=%26%2310003%3B";var c="utf8=%E2%9C%93";var d=function parseQueryStringValues(e,t){var i={};var d=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;var p=t.parameterLimit===Infinity?undefined:t.parameterLimit;var f=d.split(t.delimiter,p);var h=-1;var m;var b=t.charset;if(t.charsetSentinel){for(m=0;m-1){v=r(v)?[v]:v}if(a.call(i,w)){i[w]=n.combine(i[w],v)}else{i[w]=v}}return i};var p=function(e,t,i,n){var a=n?t:u(t,i);for(var r=e.length-1;r>=0;--r){var s;var o=e[r];if(o==="[]"&&i.parseArrays){s=[].concat(a)}else{s=i.plainObjects?Object.create(null):{};var l=o.charAt(0)==="["&&o.charAt(o.length-1)==="]"?o.slice(1,-1):o;var c=parseInt(l,10);if(!i.parseArrays&&l===""){s={0:a}}else if(!isNaN(c)&&o!==l&&String(c)===l&&c>=0&&(i.parseArrays&&c<=i.arrayLimit)){s=[];s[c]=a}else{s[l]=a}}a=s}return a};var f=function parseQueryStringKeys(e,t,i,n){if(!e){return}var r=i.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;var s=/(\[[^[\]]*])/;var o=/(\[[^[\]]*])/g;var u=i.depth>0&&s.exec(r);var l=u?r.slice(0,u.index):r;var c=[];if(l){if(!i.plainObjects&&a.call(Object.prototype,l)){if(!i.allowPrototypes){return}}c.push(l)}var d=0;while(i.depth>0&&(u=o.exec(r))!==null&&d{const n=t.test(e);const a=t.test(i);if(n&&a){e=+e;i=+i}return e===i?0:n&&!a?-1:a&&!n?1:ei(t,e);e.exports={compareIdentifiers:i,rcompareIdentifiers:n}},function(e,t,i){e=i.nmd(e);if(require.main!==e){throw new Error("This file should not be required")}var n=i(129);var a=i(747);var r=process.argv[2];var s=a.readFileSync(r,"utf8");var o=JSON.parse(s);var u=o.command;var l=o.execOptions;var c=o.pipe;var d=o.stdoutFile;var p=o.stderrFile;var f=n.exec(u,l,function(e){if(!e){process.exitCode=0}else if(e.code===undefined){process.exitCode=1}else{process.exitCode=e.code}});var h=a.createWriteStream(d);var m=a.createWriteStream(p);f.stdout.pipe(h);f.stderr.pipe(m);f.stdout.pipe(process.stdout);f.stderr.pipe(process.stderr);if(c){f.stdin.end(c)}},,function(e){"use strict";var t=e.exports=function(e,t,i){if(typeof t=="function"){i=t;t={}}i=t.cb||i;var n=typeof i=="function"?i:i.pre||function(){};var a=i.post||function(){};_traverse(t,n,a,e,"",e)};t.keywords={additionalItems:true,items:true,contains:true,additionalProperties:true,propertyNames:true,not:true};t.arrayKeywords={items:true,allOf:true,anyOf:true,oneOf:true};t.propsKeywords={definitions:true,properties:true,patternProperties:true,dependencies:true};t.skipKeywords={default:true,enum:true,const:true,required:true,maximum:true,minimum:true,exclusiveMaximum:true,exclusiveMinimum:true,multipleOf:true,maxLength:true,minLength:true,pattern:true,format:true,maxItems:true,minItems:true,uniqueItems:true,maxProperties:true,minProperties:true};function _traverse(e,i,n,a,r,s,o,u,l,c){if(a&&typeof a=="object"&&!Array.isArray(a)){i(a,r,s,o,u,l,c);for(var d in a){var p=a[d];if(Array.isArray(p)){if(d in t.arrayKeywords){for(var f=0;f=55296&&a<=56319&&n>6];const a=(i&32)===0;if((i&31)===31){let n=i;i=0;while((n&128)===128){n=e.readUInt8(t);if(e.isError(n)){return n}i<<=7;i|=n&127}}else{i&=31}const r=s.tag[i];return{cls:n,primitive:a,tag:i,tagStr:r}}function derDecodeLen(e,t,i){let n=e.readUInt8(i);if(e.isError(n)){return n}if(!t&&n===128){return null}if((n&128)===0){return n}const a=n&127;if(a>4){return e.error("length octect is too long")}n=0;for(let t=0;t":"<";n+="if ( ";if(p){n+=" ("+f+" !== undefined && typeof "+f+" != 'number') || "}if(e.opts.unicode===false){n+=" "+d+".length "}else{n+=" ucs2length("+d+") "}n+=" "+h+" "+f+") { ";var c=t;var m=m||[];m.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+(c||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+f+" } ";if(e.opts.messages!==false){n+=" , message: 'should NOT be ";if(t=="maxLength"){n+="longer"}else{n+="shorter"}n+=" than ";if(p){n+="' + "+f+" + '"}else{n+=""+s}n+=" characters' "}if(e.opts.verbose){n+=" , schema: ";if(p){n+="validate.schema"+o}else{n+=""+s}n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}n+=" } "}else{n+=" {} "}var b=n;n=m.pop();if(!e.compositeRule&&l){if(e.async){n+=" throw new ValidationError(["+b+"]); "}else{n+=" validate.errors = ["+b+"]; return false; "}}else{n+=" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+="} ";if(l){n+=" else { "}return n}},,function(e,t,i){"use strict";const n=i(835);const a=i(363);const r=i(657);const s=i(534);class GotError extends Error{constructor(e,t,i){super(e);Error.captureStackTrace(this,this.constructor);this.name="GotError";if(!s.undefined(t.code)){this.code=t.code}Object.assign(this,{host:i.host,hostname:i.hostname,method:i.method,path:i.path,socketPath:i.socketPath,protocol:i.protocol,url:i.href,gotOptions:i})}}e.exports.GotError=GotError;e.exports.CacheError=class extends GotError{constructor(e,t){super(e.message,e,t);this.name="CacheError"}};e.exports.RequestError=class extends GotError{constructor(e,t){super(e.message,e,t);this.name="RequestError"}};e.exports.ReadError=class extends GotError{constructor(e,t){super(e.message,e,t);this.name="ReadError"}};e.exports.ParseError=class extends GotError{constructor(e,t,i,r){super(`${e.message} in "${n.format(i)}": \n${r.slice(0,77)}...`,e,i);this.name="ParseError";this.statusCode=t;this.statusMessage=a.STATUS_CODES[this.statusCode]}};e.exports.HTTPError=class extends GotError{constructor(e,t){const{statusCode:i}=e;let{statusMessage:n}=e;if(n){n=n.replace(/\r?\n/g," ").trim()}else{n=a.STATUS_CODES[i]}super(`Response code ${i} (${n})`,{},t);this.name="HTTPError";this.statusCode=i;this.statusMessage=n;this.headers=e.headers;this.body=e.body}};e.exports.MaxRedirectsError=class extends GotError{constructor(e,t,i){super("Redirected 10 times. Aborting.",{},i);this.name="MaxRedirectsError";this.statusCode=e;this.statusMessage=a.STATUS_CODES[this.statusCode];this.redirectUrls=t}};e.exports.UnsupportedProtocolError=class extends GotError{constructor(e){super(`Unsupported protocol "${e.protocol}"`,{},e);this.name="UnsupportedProtocolError"}};e.exports.TimeoutError=class extends GotError{constructor(e,t){super(e.message,{code:"ETIMEDOUT"},t);this.name="TimeoutError";this.event=e.event}};e.exports.CancelError=r.CancelError},,function(e){e.exports={$id:"creator.json#",$schema:"http://json-schema.org/draft-06/schema#",type:"object",required:["name","version"],properties:{name:{type:"string"},version:{type:"string"},comment:{type:"string"}}}},,,function(e,t,i){"use strict";var n=i(972);var a=i(622).extname;var r=/^\s*([^;\s]*)(?:;|\s|$)/;var s=/^text\//i;t.charset=charset;t.charsets={lookup:charset};t.contentType=contentType;t.extension=extension;t.extensions=Object.create(null);t.lookup=lookup;t.types=Object.create(null);populateMaps(t.extensions,t.types);function charset(e){if(!e||typeof e!=="string"){return false}var t=r.exec(e);var i=t&&n[t[1].toLowerCase()];if(i&&i.charset){return i.charset}if(t&&s.test(t[1])){return"UTF-8"}return false}function contentType(e){if(!e||typeof e!=="string"){return false}var i=e.indexOf("/")===-1?t.lookup(e):e;if(!i){return false}if(i.indexOf("charset")===-1){var n=t.charset(i);if(n)i+="; charset="+n.toLowerCase()}return i}function extension(e){if(!e||typeof e!=="string"){return false}var i=r.exec(e);var n=i&&t.extensions[i[1].toLowerCase()];if(!n||!n.length){return false}return n[0]}function lookup(e){if(!e||typeof e!=="string"){return false}var i=a("x."+e).toLowerCase().substr(1);if(!i){return false}return t.types[i]||false}function populateMaps(e,t){var i=["nginx","apache",undefined,"iana"];Object.keys(n).forEach(function forEachMimeType(a){var r=n[a];var s=r.extensions;if(!s||!s.length){return}e[a]=s;for(var o=0;oc||l===c&&t[u].substr(0,12)==="application/")){continue}}t[u]=a}})}},function(e,t,i){"use strict";const{constants:n}=i(293);const a=i(453);const r=i(375);class MaxBufferError extends Error{constructor(){super("maxBuffer exceeded");this.name="MaxBufferError"}}async function getStream(e,t){if(!e){return Promise.reject(new Error("Expected a stream"))}t={maxBuffer:Infinity,...t};const{maxBuffer:i}=t;let s;await new Promise((o,u)=>{const l=e=>{if(e&&s.getBufferedLength()<=n.MAX_LENGTH){e.bufferedData=s.getBufferedValue()}u(e)};s=a(e,r(t),e=>{if(e){l(e);return}o()});s.on("data",()=>{if(s.getBufferedLength()>i){l(new MaxBufferError)}})});return s.getBufferedValue()}e.exports=getStream;e.exports.default=getStream;e.exports.buffer=((e,t)=>getStream(e,{...t,encoding:"buffer"}));e.exports.array=((e,t)=>getStream(e,{...t,array:true}));e.exports.MaxBufferError=MaxBufferError},,function(e,t,i){const{inherits:n}=i(669);const a=i(768);function PEMDecoder(e){a.call(this,e);this.enc="pem"}n(PEMDecoder,a);PEMDecoder.prototype.decode=function decode(e,t){const i=e.toString().split(/[\r\n]+/g);const n=t.label.toUpperCase();const r=/^-----(BEGIN|END) ([^-]+)-----$/;let s=-1;let o=-1;for(let e=0;e{if(typeof e!=="string"){throw new TypeError(`Expected \`url\` to be of type \`string\`, got \`${typeof e}\``)}e=e.trim();t=Object.assign({https:false},t);if(/^\.*\/|^(?!localhost)\w+:/.test(e)){return e}return e.replace(/^(?!(?:\w+:)?\/\/)/,t.https?"https://":"http://")})},function(e){"use strict";e.exports=(e=>{const t={};for(const[i,n]of Object.entries(e)){t[i.toLowerCase()]=n}return t})},function(e,t,i){const{generateKeyPairSync:n,generateKeyPair:a}=i(373);const{promisify:r}=i(669);const{THUMBPRINT_MATERIAL:s,JWK_MEMBERS:o,PUBLIC_MEMBERS:u,PRIVATE_MEMBERS:l,KEY_MANAGEMENT_DECRYPT:c,KEY_MANAGEMENT_ENCRYPT:d}=i(771);const{keyObjectSupported:p}=i(915);const{createPublicKey:f,createPrivateKey:h}=i(40);const m=i(849);const b=r(a);const g=new Set(["e","n"]);Object.freeze(g);const y=new Set([...g,"d","p","q","dp","dq","qi"]);Object.freeze(y);class RSAKey extends m{constructor(...e){super(...e);this[o]();Object.defineProperties(this,{kty:{value:"RSA",enumerable:true},length:{get(){Object.defineProperty(this,"length",{value:Buffer.byteLength(this.n,"base64")*8,configurable:false});return this.length},configurable:true}})}static get[u](){return g}static get[l](){return y}[s](){return{e:this.e,kty:"RSA",n:this.n}}[d](){return this.algorithms("wrapKey")}[c](){return this.algorithms("unwrapKey")}static async generate(e=2048,t=true){if(!Number.isSafeInteger(e)||e<512||e%8!==0||"electron"in process.versions&&e%128!==0){throw new TypeError("invalid bit length")}let i,n;if(p){({privateKey:i,publicKey:n}=await b("rsa",{modulusLength:e}));return t?i:n}({privateKey:i,publicKey:n}=await b("rsa",{modulusLength:e,publicKeyEncoding:{type:"spki",format:"pem"},privateKeyEncoding:{type:"pkcs8",format:"pem"}}));if(t){return h(i)}else{return f(n)}}static generateSync(e=2048,t=true){if(!Number.isSafeInteger(e)||e<512||e%8!==0||"electron"in process.versions&&e%128!==0){throw new TypeError("invalid bit length")}let i,a;if(p){({privateKey:i,publicKey:a}=n("rsa",{modulusLength:e}));return t?i:a}({privateKey:i,publicKey:a}=n("rsa",{modulusLength:e,publicKeyEncoding:{type:"spki",format:"pem"},privateKeyEncoding:{type:"pkcs8",format:"pem"}}));if(t){return h(i)}else{return f(a)}}}e.exports=RSAKey},,function(e,t,i){const{sign:n,verify:a,createSign:r,createVerify:s,getCurves:o}=i(373);const{derToJose:u,joseToDer:l}=i(97);const{KEYOBJECT:c}=i(771);const d=i(165);const{asInput:p}=i(40);const{dsaEncodingSupported:f}=i(915);const{name:h}=i(997);let m,b;if(f){m=((e,t,{[c]:i},a)=>{if(typeof a==="string"){a=Buffer.from(a)}return n(t,a,{key:p(i,false),dsaEncoding:"ieee-p1363"})});b=((e,t,{[c]:i},n,r)=>{try{return a(t,n,{key:p(i,true),dsaEncoding:"ieee-p1363"},r)}catch(e){return false}})}else{m=((e,t,{[c]:i},n)=>{return u(r(t).update(n).sign(p(i,false)),e)});b=((e,t,{[c]:i},n,a)=>{try{return s(t).update(n).verify(p(i,true),l(a,e))}catch(e){return false}})}const g=e=>{switch(e){case"P-256":return"ES256";case h:return"ES256K";case"P-384":return"ES384";case"P-521":return"ES512"}};e.exports=((e,t)=>{const i=[];if(o().includes("prime256v1")){i.push("ES256")}if(o().includes("secp256k1")){i.push("ES256K")}if(o().includes("secp384r1")){i.push("ES384")}if(o().includes("secp521r1")){i.push("ES512")}i.forEach(i=>{const n=d(i);e.sign.set(i,m.bind(undefined,i,n));e.verify.set(i,b.bind(undefined,i,n));t.EC.sign[i]=(e=>e.private&&t.EC.verify[i](e));t.EC.verify[i]=(e=>(e.use==="sig"||e.use===undefined)&&g(e.crv)===i)})})},,function(e,t,i){var n=i(342);var a=i(64);var r=i(428);var s=i(909);e.exports={parse:n.parseRequest,parseRequest:n.parseRequest,sign:a.signRequest,signRequest:a.signRequest,createSigner:a.createSigner,isSigner:a.isSigner,sshKeyToPEM:s.sshKeyToPEM,sshKeyFingerprint:s.fingerprint,pemToRsaSSHKey:s.pemToRsaSSHKey,verify:r.verifySignature,verifySignature:r.verifySignature,verifyHMAC:r.verifyHMAC}},,,function(e,t,i){e.exports=ForeverAgent;ForeverAgent.SSL=ForeverAgentSSL;var n=i(669),a=i(363).Agent,r=i(631),s=i(818),o=i(211).Agent;function getConnectionName(e,t){var i="";if(typeof e==="string"){i=e+":"+t}else{i=e.host+":"+e.port+":"+(e.localAddress?e.localAddress+":":":")}return i}function ForeverAgent(e){var t=this;t.options=e||{};t.requests={};t.sockets={};t.freeSockets={};t.maxSockets=t.options.maxSockets||a.defaultMaxSockets;t.minSockets=t.options.minSockets||ForeverAgent.defaultMinSockets;t.on("free",function(e,i,n){var a=getConnectionName(i,n);if(t.requests[a]&&t.requests[a].length){t.requests[a].shift().onSocket(e)}else if(t.sockets[a].length0&&!e.useChunkedEncodingByDefault){var r=this.freeSockets[n].pop();r.removeListener("error",r._onIdleError);delete r._onIdleError;e._reusedSocket=true;e.onSocket(r)}else{this.addRequestNoreuse(e,t,i)}};ForeverAgent.prototype.removeSocket=function(e,t,i,n){if(this.sockets[t]){var a=this.sockets[t].indexOf(e);if(a!==-1){this.sockets[t].splice(a,1)}}else if(this.sockets[t]&&this.sockets[t].length===0){delete this.sockets[t];delete this.requests[t]}if(this.freeSockets[t]){var a=this.freeSockets[t].indexOf(e);if(a!==-1){this.freeSockets[t].splice(a,1);if(this.freeSockets[t].length===0){delete this.freeSockets[t]}}}if(this.requests[t]&&this.requests[t].length){this.createSocket(t,i,n).emit("free")}};function ForeverAgentSSL(e){ForeverAgent.call(this,e)}n.inherits(ForeverAgentSSL,ForeverAgent);ForeverAgentSSL.prototype.createConnection=createConnectionSSL;ForeverAgentSSL.prototype.addRequestNoreuse=o.prototype.addRequest;function createConnectionSSL(e,t,i){if(typeof e==="object"){i=e}else if(typeof t==="object"){i=t}else if(typeof i==="object"){i=i}else{i={}}if(typeof e==="number"){i.port=e}if(typeof t==="string"){i.host=t}return s.connect(i)}},,function(e,t,i){"use strict";const{PassThrough:n}=i(413);const a=i(718);const r=i(678);const{HTTPError:s,ReadError:o}=i(774);e.exports=(e=>{const t=new n;const i=new n;const u=a(t,i);const l=new Set;let c=false;e.retry.retries=(()=>0);if(e.body){u.write=(()=>{throw new Error("Got's stream is not writable when the `body` option is used")})}const d=r(e,t);u._destroy=d.abort;d.on("response",t=>{const{statusCode:n}=t;t.on("error",t=>{u.emit("error",new o(t,e))});if(e.throwHttpErrors&&n!==304&&(n<200||n>299)){u.emit("error",new s(t,e),null,t);return}c=true;t.pipe(i);for(const i of l){if(i.headersSent){continue}for(const[n,a]of Object.entries(t.headers)){const t=e.decompress?n!=="content-encoding":true;if(t){i.setHeader(n,a)}}i.statusCode=t.statusCode}u.emit("response",t)});["error","request","redirect","uploadProgress","downloadProgress"].forEach(e=>d.on(e,(...t)=>u.emit(e,...t)));const p=u.pipe.bind(u);const f=u.unpipe.bind(u);u.pipe=((e,t)=>{if(c){throw new Error("Failed to pipe. The response has been emitted already.")}const i=p(e,t);if(Reflect.has(e,"setHeader")){l.add(e)}return i});u.unpipe=(e=>{l.delete(e);return f(e)});return u})},,,function(e,t,i){const{EOL:n}=i(87);const a=i(208);const r=i(490);const s=i(274);let o=i(918);const u=i(322);const{KeyStore:l}=i(851);const c=i(466);const{check:d,verify:p}=i(179);const f=i(715);const{detect:h}=i(995);o=o.bind(undefined,c.JWSInvalid);const m=new Set(["compact","flattened","preparsed"]);const b=(e,t,i,g,{crit:y=[],complete:S=false,algorithms:w,parse:v=true,encoding:z="utf8"}={})=>{g=u(g,true);if(w!==undefined&&(!Array.isArray(w)||w.some(e=>typeof e!=="string"||!e))){throw new TypeError('"algorithms" option must be an array of non-empty strings')}else if(w){w=new Set(w)}if(!Array.isArray(y)||y.some(e=>typeof e!=="string"||!e)){throw new TypeError('"crit" option must be an array of non-empty strings')}if(!t){t=h(i)}let j;let O;let k;let C;let T;if(t==="general"&&i.signatures.length===1){t="flattened";const{signatures:e,...n}=i;i={...n,...e[0]}}let R;if(m.has(t)){let u={};switch(t){case"compact":[j,k,C]=i.split(".");break;case"flattened":({protected:j,payload:k,signature:C,header:O}=i);break;case"preparsed":{({decoded:R}=i);[j,k,C]=i.token.split(".");break}}if(!O){e=true}if(R){u=R.header}else if(j){try{u=a.JSON.decode(j)}catch(e){throw new c.JWSInvalid("could not parse JWS protected header")}}else{e=e||true}if(!e&&!r(u,O)){throw new c.JWSInvalid("JWS Protected and JWS Unprotected Header Parameter names must be disjoint")}const h={...u,...O};o(u,O,y);T=u.alg||O&&O.alg;if(!T){throw new c.JWSInvalid("missing JWS signature algorithm")}else if(w&&!w.has(T)){throw new c.JOSEAlgNotWhitelisted("alg not whitelisted")}if(g instanceof l){const e=g;const n=e.all({kid:h.kid,alg:h.alg,key_ops:["verify"]});switch(n.length){case 0:throw new c.JWKSNoMatchingKey;case 1:g=n[0];break;default:{const e=[];for(const a of n){try{return b(true,t,i,a,{crit:y,complete:S,encoding:z,parse:v,algorithms:w?[...w]:undefined})}catch(t){e.push(t);continue}}const a=new c.JOSEMultiError(e);if([...a].some(e=>e instanceof c.JWSVerificationFailed)){throw new c.JWSVerificationFailed}throw a}}}if(g===f.EmbeddedJWK){if(!s(h.jwk)){throw new c.JWSInvalid('JWS Header Parameter "jwk" must be a JSON object')}g=f.asKey(h.jwk);if(g.type!=="public"){throw new c.JWSInvalid('JWS Header Parameter "jwk" must be a public key')}}else if(g===f.EmbeddedX5C){if(!Array.isArray(h.x5c)||!h.x5c.length||h.x5c.some(e=>typeof e!=="string"||!e)){throw new c.JWSInvalid('JWS Header Parameter "x5c" must be a JSON array of certificate value strings')}g=f.asKey(`-----BEGIN CERTIFICATE-----${n}${(h.x5c[0].match(/.{1,64}/g)||[]).join(n)}${n}-----END CERTIFICATE-----`,{x5c:h.x5c})}d(g,"verify",T);const m=Buffer.concat([Buffer.from(j||""),Buffer.from("."),Buffer.isBuffer(k)?k:Buffer.from(k)]);if(!p(T,g,m,a.decodeToBuffer(C))){throw new c.JWSVerificationFailed}if(!h.crit||!h.crit.includes("b64")||h.b64){if(v){k=R?R.payload:a.JSON.decode.try(k,z)}else{k=a.decodeToBuffer(k)}}if(S){const e={payload:k,key:g};if(j)e.protected=u;if(O)e.header=O;return e}return k}const{signatures:E,...A}=i;const x=[];for(const e of E){try{return b(false,"flattened",{...A,...e},g,{crit:y,complete:S,encoding:z,parse:v,algorithms:w?[...w]:undefined})}catch(e){x.push(e);continue}}const N=new c.JOSEMultiError(x);if([...N].some(e=>e instanceof c.JWSVerificationFailed)){throw new c.JWSVerificationFailed}else if([...N].every(e=>e instanceof c.JWKSNoMatchingKey)){throw new c.JWKSNoMatchingKey}throw N};e.exports={bare:b,verify:b.bind(undefined,false,undefined)}},function(e){const t=new Set(["Ed25519"]);if(!("electron"in process.versions)){t.add("Ed448");t.add("X25519");t.add("X448")}e.exports=t},function(e){"use strict";e.exports={BINARY_TYPES:["nodebuffer","arraybuffer","fragments"],GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),EMPTY_BUFFER:Buffer.alloc(0),NOOP:()=>{}}},,,,function(e,t,i){const n=i(65);const a=(e,t)=>new n(e,t).minor;e.exports=a},,function(e,t,i){"use strict";var n=i(862),a=i(855),r=i(844),s=i(156);var o=i(967);var u=a.ucs2length;var l=i(832);var c=r.Validation;e.exports=compile;function compile(e,t,i,d){var p=this,f=this._opts,h=[undefined],m={},b=[],g={},y=[],S={},w=[];t=t||{schema:e,refVal:h,refs:m};var v=checkCompiling.call(this,e,t,d);var z=this._compilations[v.index];if(v.compiling)return z.callValidate=callValidate;var j=this._formats;var O=this.RULES;try{var k=localCompile(e,t,i,d);z.validate=k;var C=z.callValidate;if(C){C.schema=k.schema;C.errors=null;C.refs=k.refs;C.refVal=k.refVal;C.root=k.root;C.$async=k.$async;if(f.sourceCode)C.source=k.source}return k}finally{endCompiling.call(this,e,t,d)}function callValidate(){var e=z.validate;var t=e.apply(this,arguments);callValidate.errors=e.errors;return t}function localCompile(e,i,s,d){var g=!i||i&&i.schema==e;if(i.schema!=t.schema)return compile.call(p,e,i,s,d);var S=e.$async===true;var v=o({isTop:true,schema:e,isRoot:g,baseId:d,root:i,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:r.MissingRef,RULES:O,validate:o,util:a,resolve:n,resolveRef:resolveRef,usePattern:usePattern,useDefault:useDefault,useCustomRule:useCustomRule,opts:f,formats:j,logger:p.logger,self:p});v=vars(h,refValCode)+vars(b,patternCode)+vars(y,defaultCode)+vars(w,customRuleCode)+v;if(f.processCode)v=f.processCode(v,e);var z;try{var k=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",v);z=k(p,O,j,t,h,y,w,l,u,c);h[0]=z}catch(e){p.logger.error("Error compiling schema, function code:",v);throw e}z.schema=e;z.errors=null;z.refs=m;z.refVal=h;z.root=g?z:i;if(S)z.$async=true;if(f.sourceCode===true){z.source={code:v,patterns:b,defaults:y}}return z}function resolveRef(e,a,r){a=n.url(e,a);var s=m[a];var o,u;if(s!==undefined){o=h[s];u="refVal["+s+"]";return resolvedRef(o,u)}if(!r&&t.refs){var l=t.refs[a];if(l!==undefined){o=t.refVal[l];u=addLocalRef(a,o);return resolvedRef(o,u)}}u=addLocalRef(a);var c=n.call(p,localCompile,t,a);if(c===undefined){var d=i&&i[a];if(d){c=n.inlineRef(d,f.inlineRefs)?d:compile.call(p,d,t,i,e)}}if(c===undefined){removeLocalRef(a)}else{replaceLocalRef(a,c);return resolvedRef(c,u)}}function addLocalRef(e,t){var i=h.length;h[i]=t;m[e]=i;return"refVal"+i}function removeLocalRef(e){delete m[e]}function replaceLocalRef(e,t){var i=m[e];h[i]=t}function resolvedRef(e,t){return typeof e=="object"||typeof e=="boolean"?{code:t,schema:e,inline:true}:{code:t,$async:e&&!!e.$async}}function usePattern(e){var t=g[e];if(t===undefined){t=g[e]=b.length;b[t]=e}return"pattern"+t}function useDefault(e){switch(typeof e){case"boolean":case"number":return""+e;case"string":return a.toQuotedString(e);case"object":if(e===null)return"null";var t=s(e);var i=S[t];if(i===undefined){i=S[t]=y.length;y[i]=e}return"default"+i}}function useCustomRule(e,t,i,n){if(p._opts.validateSchema!==false){var a=e.definition.dependencies;if(a&&!a.every(function(e){return Object.prototype.hasOwnProperty.call(i,e)}))throw new Error("parent schema must have all required keywords: "+a.join(","));var r=e.definition.validateSchema;if(r){var s=r(t);if(!s){var o="keyword schema is invalid: "+p.errorsText(r.errors);if(p._opts.validateSchema=="log")p.logger.error(o);else throw new Error(o)}}}var u=e.definition.compile,l=e.definition.inline,c=e.definition.macro;var d;if(u){d=u.call(p,t,i,n)}else if(c){d=c.call(p,t,i,n);if(f.validateSchema!==false)p.validateSchema(d,true)}else if(l){d=l.call(p,n,e.keyword,t,i)}else{d=e.definition.validate;if(!d)return}if(d===undefined)throw new Error('custom keyword "'+e.keyword+'"failed to compile');var h=w.length;w[h]=d;return{code:"customRule"+h,validate:d}}}function checkCompiling(e,t,i){var n=compIndex.call(this,e,t,i);if(n>=0)return{index:n,compiling:true};n=this._compilations.length;this._compilations[n]={schema:e,root:t,baseId:i};return{index:n,compiling:false}}function endCompiling(e,t,i){var n=compIndex.call(this,e,t,i);if(n>=0)this._compilations.splice(n,1)}function compIndex(e,t,i){for(var n=0;n{let r=null;let s=null;let o=null;try{o=new a(t,i)}catch(e){return null}e.forEach(e=>{if(o.test(e)){if(!r||s.compare(e)===-1){r=e;s=new n(r,i)}}});return r};e.exports=r},,function(e){e.exports={$id:"query.json#",$schema:"http://json-schema.org/draft-06/schema#",type:"object",required:["name","value"],properties:{name:{type:"string"},value:{type:"string"},comment:{type:"string"}}}},function(e){function HARError(e){var t="validation failed";this.name="HARError";this.message=t;this.errors=e;if(typeof Error.captureStackTrace==="function"){Error.captureStackTrace(this,this.constructor)}else{this.stack=new Error(t).stack}}HARError.prototype=Error.prototype;e.exports=HARError},,function(e){e.exports=function(){this.octstr().contains().obj(this.key("privateKey").octstr())}},,function(e){e.exports=require("tls")},function(e,t,i){"use strict";var n=i(457);var a=i(685);function deprecated(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}e.exports.Type=i(945);e.exports.Schema=i(43);e.exports.FAILSAFE_SCHEMA=i(581);e.exports.JSON_SCHEMA=i(23);e.exports.CORE_SCHEMA=i(611);e.exports.DEFAULT_SAFE_SCHEMA=i(723);e.exports.DEFAULT_FULL_SCHEMA=i(910);e.exports.load=n.load;e.exports.loadAll=n.loadAll;e.exports.safeLoad=n.safeLoad;e.exports.safeLoadAll=n.safeLoadAll;e.exports.dump=a.dump;e.exports.safeDump=a.safeDump;e.exports.YAMLException=i(556);e.exports.MINIMAL_SCHEMA=i(581);e.exports.SAFE_SCHEMA=i(723);e.exports.DEFAULT_SCHEMA=i(910);e.exports.scan=deprecated("scan");e.exports.parse=deprecated("parse");e.exports.compose=deprecated("compose");e.exports.addConstructor=deprecated("addConstructor")},function(e){e.exports={$id:"beforeRequest.json#",$schema:"http://json-schema.org/draft-06/schema#",type:"object",optional:true,required:["lastAccess","eTag","hitCount"],properties:{expires:{type:"string",pattern:"^(\\d{4})(-)?(\\d\\d)(-)?(\\d\\d)(T)?(\\d\\d)(:)?(\\d\\d)(:)?(\\d\\d)(\\.\\d+)?(Z|([+-])(\\d\\d)(:)?(\\d\\d))?"},lastAccess:{type:"string",pattern:"^(\\d{4})(-)?(\\d\\d)(-)?(\\d\\d)(T)?(\\d\\d)(:)?(\\d\\d)(:)?(\\d\\d)(\\.\\d+)?(Z|([+-])(\\d\\d)(:)?(\\d\\d))?"},eTag:{type:"string"},hitCount:{type:"integer"},comment:{type:"string"}}}},function(e,t,i){"use strict";const{URL:n}=i(835);const a=i(534);const r=i(433);const s=(e,...t)=>{for(const i of t){for(const[t,r]of Object.entries(i)){if(a.undefined(r)){continue}const i=e[t];if(a.urlInstance(i)&&(a.urlInstance(r)||a.string(r))){e[t]=new n(r,i)}else if(a.plainObject(r)){if(a.plainObject(i)){e[t]=s({},i,r)}else{e[t]=s({},r)}}else if(a.array(r)){e[t]=s([],r)}else{e[t]=r}}}return e};const o=(...e)=>{e=e.map(e=>e||{});const t=s({},...e);const i={};for(const e of r){i[e]=[]}for(const t of e){if(t.hooks){for(const e of r){i[e]=i[e].concat(t.hooks[e])}}}t.hooks=i;return t};const u=(e,t)=>{const i=e.map(e=>e.defaults.handler);const n=e.length-1;return{methods:t,options:o(...e.map(e=>e.defaults.options)),handler:(e,t)=>{let a=-1;const r=e=>i[++a](e,a===n?t:r);return r(e)}}};e.exports=s;e.exports.options=o;e.exports.instances=u},function(e,t,i){const n=i(830);const a=i(298);const r=(e,t)=>{if(a(e,t)){return null}else{const i=n(e);const a=n(t);const r=i.prerelease.length||a.prerelease.length;const s=r?"pre":"";const o=r?"prerelease":"";for(const e in i){if(e==="major"||e==="minor"||e==="patch"){if(i[e]!==a[e]){return s+e}}}return o}};e.exports=r},,,,function(e,t,i){var n=i(139);var a=i(722);function v4(e,t,i){var r=t&&i||0;if(typeof e=="string"){t=e==="binary"?new Array(16):null;e=null}e=e||{};var s=e.random||(e.rng||n)();s[6]=s[6]&15|64;s[8]=s[8]&63|128;if(t){for(var o=0;o<16;++o){t[r+o]=s[o]}}return t||a(s)}e.exports=v4},function(e,t,i){const{improvedDH:n}=i(915);if(n){const{diffieHellman:t}=i(373);const{KeyObject:n}=i(40);const a=i(592);e.exports=(({keyObject:e},i)=>{if(!(i instanceof n)){({keyObject:i}=a(i))}return t({privateKey:e,publicKey:i})})}else{const{createECDH:t,constants:{POINT_CONVERSION_UNCOMPRESSED:n}}=i(373);const a=i(208);const r=e=>{switch(e){case"P-256":return"prime256v1";case"P-384":return"secp384r1";case"P-521":return"secp521r1"}};const s=Buffer.alloc(1,n);const o=(e,t)=>Buffer.concat([s,a.decodeToBuffer(e),a.decodeToBuffer(t)]);e.exports=(({crv:e,d:i},{x:n,y:s})=>{const u=r(e);const l=t(u);l.setPrivateKey(a.decodeToBuffer(i));return l.computeSecret(o(n,s))})}},,function(e,t,i){"use strict";try{const e=i(235);t.isValidUTF8=typeof e==="object"?e.Validation.isValidUTF8:e}catch(e){t.isValidUTF8=(()=>true)}t.isValidStatusCode=(e=>{return e>=1e3&&e<=1014&&e!==1004&&e!==1005&&e!==1006||e>=3e3&&e<=4999})},function(e,t,i){const{MAX_LENGTH:n}=i(181);const{re:a,t:r}=i(976);const s=i(65);const o=(e,t)=>{if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof s){return e}if(typeof e!=="string"){return null}if(e.length>n){return null}const i=t.loose?a[r.LOOSE]:a[r.FULL];if(!i.test(e)){return null}try{return new s(e,t)}catch(e){return null}};e.exports=o},,function(e){"use strict";e.exports=function equal(e,t){if(e===t)return true;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return false;var i,n,a;if(Array.isArray(e)){i=e.length;if(i!=t.length)return false;for(n=i;n--!==0;)if(!equal(e[n],t[n]))return false;return true}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();a=Object.keys(e);i=a.length;if(i!==Object.keys(t).length)return false;for(n=i;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,a[n]))return false;for(n=i;n--!==0;){var r=a[n];if(!equal(e[r],t[r]))return false}return true}return e!==e&&t!==t}},function(e,t,i){var n=i(602);var a=i(747);n.register("cat",_cat,{canReceivePipe:true,cmdOptions:{n:"number"}});function _cat(e,t){var i=n.readFromPipe();if(!t&&!i)n.error("no paths given");t=[].slice.call(arguments,1);t.forEach(function(e){if(!a.existsSync(e)){n.error("no such file or directory: "+e)}else if(n.statFollowLinks(e).isDirectory()){n.error(e+": Is a directory")}i+=a.readFileSync(e,"utf8")});if(e.number){i=addNumbers(i)}return i}e.exports=_cat;function addNumbers(e){var t=e.split("\n");var i=t.pop();t=t.map(function(e,t){return numberedLine(t+1,e)});if(i.length){i=numberedLine(t.length+1,i)}t.push(i);return t.join("\n")}function numberedLine(e,t){var i=(" "+e).slice(-6)+"\t";return i+t}},,function(e){e.exports=require("url")},,,function(e,t,i){var n=i(747);var a=i(622);var r=i(602);r.register("cp",_cp,{cmdOptions:{f:"!no_force",n:"no_force",u:"update",R:"recursive",r:"recursive",L:"followsymlink",P:"noFollowsymlink"},wrapOutput:false});function copyFileSync(e,t,i){if(!n.existsSync(e)){r.error("copyFileSync: no such file or directory: "+e)}var a=process.platform==="win32";try{if(i.update&&r.statFollowLinks(e).mtime=r.config.maxdepth)return;i++;var s=process.platform==="win32";try{n.mkdirSync(t)}catch(e){if(e.code!=="EEXIST")throw e}var o=n.readdirSync(e);for(var u=0;u and/or ")}else{t=[].slice.call(arguments,1,arguments.length-1);i=arguments[arguments.length-1]}var s=n.existsSync(i);var o=s&&r.statFollowLinks(i);if((!s||!o.isDirectory())&&t.length>1){r.error("dest is not a directory (too many sources)")}if(s&&o.isFile()&&e.no_force){return new r.ShellString("","",0)}t.forEach(function(s,u){if(!n.existsSync(s)){if(s==="")s="''";r.error("no such file or directory: "+s,{continue:true});return}var l=r.statFollowLinks(s);if(!e.noFollowsymlink&&l.isDirectory()){if(!e.recursive){r.error("omitting directory '"+s+"'",{continue:true})}else{var c=o&&o.isDirectory()?a.join(i,a.basename(s)):i;try{r.statFollowLinks(a.dirname(i));cpdirSyncRecursive(s,c,0,{no_force:e.no_force,followsymlink:e.followsymlink})}catch(e){r.error("cannot create directory '"+i+"': No such file or directory")}}}else{var d=i;if(o&&o.isDirectory()){d=a.normalize(i+"/"+a.basename(s))}var p=n.existsSync(d);if(p&&checkRecentCreated(t,u)){if(!e.no_force){r.error("will not overwrite just-created '"+d+"' with '"+s+"'",{continue:true})}return}if(p&&e.no_force){return}if(a.relative(s,d)===""){r.error("'"+d+"' and '"+s+"' are the same file",{continue:true});return}copyFileSync(s,d,e)}});return new r.ShellString("",r.state.error,r.state.errorCode)}e.exports=_cp},,,function(e,t,i){"use strict";var n=i(945);var a=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9])"+"-([0-9][0-9])$");var r=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9]?)"+"-([0-9][0-9]?)"+"(?:[Tt]|[ \\t]+)"+"([0-9][0-9]?)"+":([0-9][0-9])"+":([0-9][0-9])"+"(?:\\.([0-9]*))?"+"(?:[ \\t]*(Z|([-+])([0-9][0-9]?)"+"(?::([0-9][0-9]))?))?$");function resolveYamlTimestamp(e){if(e===null)return false;if(a.exec(e)!==null)return true;if(r.exec(e)!==null)return true;return false}function constructYamlTimestamp(e){var t,i,n,s,o,u,l,c=0,d=null,p,f,h;t=a.exec(e);if(t===null)t=r.exec(e);if(t===null)throw new Error("Date resolve error");i=+t[1];n=+t[2]-1;s=+t[3];if(!t[4]){return new Date(Date.UTC(i,n,s))}o=+t[4];u=+t[5];l=+t[6];if(t[7]){c=t[7].slice(0,3);while(c.length<3){c+="0"}c=+c}if(t[9]){p=+t[10];f=+(t[11]||0);d=(p*60+f)*6e4;if(t[9]==="-")d=-d}h=new Date(Date.UTC(i,n,s,o,u,l,c));if(d)h.setTime(h.getTime()-d);return h}function representYamlTimestamp(e){return e.toISOString()}e.exports=new n("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:resolveYamlTimestamp,construct:constructYamlTimestamp,instanceOf:Date,represent:representYamlTimestamp})},function(e,t,i){"use strict";var n=i(945);var a=Object.prototype.hasOwnProperty;var r=Object.prototype.toString;function resolveYamlOmap(e){if(e===null)return true;var t=[],i,n,s,o,u,l=e;for(i=0,n=l.length;itypeof e!=="string")){throw new TypeError("`key_ops` must be a non-empty array of strings when provided")}u=Array.from(new Set(u)).filter(e=>m.has(e))}if(u&&i){if(i==="enc"&&u.some(e=>h.sig.has(e))||i==="sig"&&u.some(e=>h.enc.has(e))){throw new S.JWKInvalid('inconsistent JWK "use" and "key_ops"')}}if(s&&c!==undefined){if(!Array.isArray(c)||!c.length||c.some(e=>typeof e!=="string")){throw new TypeError("`x5c` must be an array of one or more PKIX certificates when provided")}c.forEach((t,i)=>{let a;try{a=o({key:`-----BEGIN CERTIFICATE-----${r}${(t.match(/.{1,64}/g)||[]).join(r)}${r}-----END CERTIFICATE-----`,format:"pem"})}catch(e){throw new S.JWKInvalid(`\`x5c\` member at index ${i} is not a valid base64-encoded DER PKIX certificate`)}if(i===0){try{n.deepEqual(a.export({type:"spki",format:"der"}),(e.type==="public"?e:o(e)).export({type:"spki",format:"der"}))}catch(e){throw new S.JWKInvalid("The key in the first `x5c` certificate MUST match the public key represented by the JWK")}}})}Object.defineProperties(this,{[f]:{value:g(e)?undefined:e},keyObject:{get(){if(!s){throw new S.JOSENotSupported("KeyObject class is not supported in your Node.js runtime version")}return this[f]}},type:{value:e.type},private:{value:e.type==="private"},public:{value:e.type==="public"},secret:{value:e.type==="secret"},alg:{value:t,enumerable:t!==undefined},use:{value:i,enumerable:i!==undefined},x5c:{enumerable:c!==undefined,...c?{get(){return[...c]}}:{value:undefined}},key_ops:{enumerable:u!==undefined,...u?{get(){return[...u]}}:{value:undefined}},kid:{enumerable:true,...a?{value:a}:{get(){Object.defineProperty(this,"kid",{value:this.thumbprint,configurable:false});return this.kid},configurable:true}},...c?{x5t:{enumerable:true,...d?{value:d}:{get(){Object.defineProperty(this,"x5t",{value:y.x5t(this.x5c[0]),configurable:false});return this.x5t},configurable:true}}}:undefined,...c?{"x5t#S256":{enumerable:true,...p?{value:p}:{get(){Object.defineProperty(this,"x5t#S256",{value:y["x5t#S256"](this.x5c[0]),configurable:false});return this["x5t#S256"]},configurable:true}}}:undefined,thumbprint:{get(){Object.defineProperty(this,"thumbprint",{value:y.kid(this[l]()),configurable:false});return this.thumbprint},configurable:true}})}toPEM(e=false,t={}){if(this.secret){throw new TypeError("symmetric keys cannot be exported as PEM")}if(e&&this.public===true){throw new TypeError("public key cannot be exported as private")}const{type:i=(e?"pkcs8":"spki"),cipher:n,passphrase:a}=t;let r=this[f];if(!e){if(this.private){r=o(r)}if(n||a){throw new TypeError("cipher and passphrase can only be applied when exporting private keys")}}if(e){return r.export({format:"pem",type:i,cipher:n,passphrase:a})}return r.export({format:"pem",type:i})}toJWK(e=false){if(e&&this.public===true){throw new TypeError("public key cannot be exported as private")}const t=[...this.constructor[e?d:c]].map(e=>[e,this[e]]);const i={};Object.keys(t).forEach(e=>{const[n,a]=t[e];i[n]=a});i.kty=this.kty;i.kid=this.kid;if(this.alg){i.alg=this.alg}if(this.key_ops&&this.key_ops.length){i.key_ops=this.key_ops}if(this.use){i.use=this.use}if(this.x5c){i.x5c=this.x5c}if(this.x5t){i.x5t=this.x5t}if(this["x5t#S256"]){i["x5t#S256"]=this["x5t#S256"]}return i}[p](){const e=this[f].type==="private"?this.constructor[d]:this.constructor[c];Object.defineProperties(this,[...e].reduce((t,i)=>{t[i]={get(){const t=u(this[f]);Object.defineProperties(this,Object.entries(t).filter(([t])=>e.has(t)).reduce((e,[t,i])=>{e[t]={value:i,enumerable:this.constructor[c].has(t),configurable:false};return e},{}));return this[i]},enumerable:this.constructor[c].has(i),configurable:true};return t},{}))}[a.custom](){return`${this.constructor.name} ${a(this.toJWK(false),{depth:Infinity,colors:process.stdout.isTTY,compact:false,sorted:true})}`}[l](){throw new Error(`"[THUMBPRINT_MATERIAL]()" is not implemented on ${this.constructor.name}`)}algorithms(e,t,i){const{use:n=this.use,alg:a=this.alg,key_ops:r=this.key_ops}=t===w?i:{};if(a){return new Set(this.algorithms(e,w,{alg:null,use:n,key_ops:r}).has(a)?[a]:undefined)}if(typeof e==="symbol"){try{return this[e]()}catch(e){return new Set}}if(e&&r&&!r.includes(e)){return new Set}switch(e){case"decrypt":case"deriveKey":case"encrypt":case"sign":case"unwrapKey":case"verify":case"wrapKey":return new Set(Object.entries(v[this.kty][e]).map(([e,t])=>t(this)?e:undefined).filter(Boolean));case undefined:return new Set([...this.algorithms("sign"),...this.algorithms("verify"),...this.algorithms("decrypt"),...this.algorithms("encrypt"),...this.algorithms("unwrapKey"),...this.algorithms("wrapKey"),...this.algorithms("deriveKey")]);default:throw new TypeError("invalid key operation")}}static async generate(){throw new Error(`"static async generate()" is not implemented on ${this.name}`)}static generateSync(){throw new Error(`"static generateSync()" is not implemented on ${this.name}`)}static get[c](){throw new Error(`"static get [PUBLIC_MEMBERS]()" is not implemented on ${this.name}`)}static get[d](){throw new Error(`"static get [PRIVATE_MEMBERS]()" is not implemented on ${this.name}`)}}e.exports=Key},function(e,t,i){"use strict";const n=i(903);const a=i(676);const r=i(885);const{kStatusCode:s,NOOP:o}=i(60);const u=Buffer.from([0,0,255,255]);const l=Symbol("permessage-deflate");const c=Symbol("total-length");const d=Symbol("callback");const p=Symbol("buffers");const f=Symbol("error");let h;class PerMessageDeflate{constructor(e,t,i){this._maxPayload=i|0;this._options=e||{};this._threshold=this._options.threshold!==undefined?this._options.threshold:1024;this._isServer=!!t;this._deflate=null;this._inflate=null;this.params=null;if(!h){const e=this._options.concurrencyLimit!==undefined?this._options.concurrencyLimit:10;h=new r(e)}}static get extensionName(){return"permessage-deflate"}offer(){const e={};if(this._options.serverNoContextTakeover){e.server_no_context_takeover=true}if(this._options.clientNoContextTakeover){e.client_no_context_takeover=true}if(this._options.serverMaxWindowBits){e.server_max_window_bits=this._options.serverMaxWindowBits}if(this._options.clientMaxWindowBits){e.client_max_window_bits=this._options.clientMaxWindowBits}else if(this._options.clientMaxWindowBits==null){e.client_max_window_bits=true}return e}accept(e){e=this.normalizeParams(e);this.params=this._isServer?this.acceptAsServer(e):this.acceptAsClient(e);return this.params}cleanup(){if(this._inflate){this._inflate.close();this._inflate=null}if(this._deflate){const e=this._deflate[d];this._deflate.close();this._deflate=null;if(e){e(new Error("The deflate stream was closed while data was being processed"))}}}acceptAsServer(e){const t=this._options;const i=e.find(e=>{if(t.serverNoContextTakeover===false&&e.server_no_context_takeover||e.server_max_window_bits&&(t.serverMaxWindowBits===false||typeof t.serverMaxWindowBits==="number"&&t.serverMaxWindowBits>e.server_max_window_bits)||typeof t.clientMaxWindowBits==="number"&&!e.client_max_window_bits){return false}return true});if(!i){throw new Error("None of the extension offers can be accepted")}if(t.serverNoContextTakeover){i.server_no_context_takeover=true}if(t.clientNoContextTakeover){i.client_no_context_takeover=true}if(typeof t.serverMaxWindowBits==="number"){i.server_max_window_bits=t.serverMaxWindowBits}if(typeof t.clientMaxWindowBits==="number"){i.client_max_window_bits=t.clientMaxWindowBits}else if(i.client_max_window_bits===true||t.clientMaxWindowBits===false){delete i.client_max_window_bits}return i}acceptAsClient(e){const t=e[0];if(this._options.clientNoContextTakeover===false&&t.client_no_context_takeover){throw new Error('Unexpected parameter "client_no_context_takeover"')}if(!t.client_max_window_bits){if(typeof this._options.clientMaxWindowBits==="number"){t.client_max_window_bits=this._options.clientMaxWindowBits}}else if(this._options.clientMaxWindowBits===false||typeof this._options.clientMaxWindowBits==="number"&&t.client_max_window_bits>this._options.clientMaxWindowBits){throw new Error('Unexpected or invalid parameter "client_max_window_bits"')}return t}normalizeParams(e){e.forEach(e=>{Object.keys(e).forEach(t=>{let i=e[t];if(i.length>1){throw new Error(`Parameter "${t}" must have only a single value`)}i=i[0];if(t==="client_max_window_bits"){if(i!==true){const e=+i;if(!Number.isInteger(e)||e<8||e>15){throw new TypeError(`Invalid value for parameter "${t}": ${i}`)}i=e}else if(!this._isServer){throw new TypeError(`Invalid value for parameter "${t}": ${i}`)}}else if(t==="server_max_window_bits"){const e=+i;if(!Number.isInteger(e)||e<8||e>15){throw new TypeError(`Invalid value for parameter "${t}": ${i}`)}i=e}else if(t==="client_no_context_takeover"||t==="server_no_context_takeover"){if(i!==true){throw new TypeError(`Invalid value for parameter "${t}": ${i}`)}}else{throw new Error(`Unknown parameter "${t}"`)}e[t]=i})});return e}decompress(e,t,i){h.add(n=>{this._decompress(e,t,(e,t)=>{n();i(e,t)})})}compress(e,t,i){h.add(n=>{this._compress(e,t,(e,t)=>{n();i(e,t)})})}_decompress(e,t,i){const r=this._isServer?"client":"server";if(!this._inflate){const e=`${r}_max_window_bits`;const t=typeof this.params[e]!=="number"?n.Z_DEFAULT_WINDOWBITS:this.params[e];this._inflate=n.createInflateRaw({...this._options.zlibInflateOptions,windowBits:t});this._inflate[l]=this;this._inflate[c]=0;this._inflate[p]=[];this._inflate.on("error",inflateOnError);this._inflate.on("data",inflateOnData)}this._inflate[d]=i;this._inflate.write(e);if(t)this._inflate.write(u);this._inflate.flush(()=>{const e=this._inflate[f];if(e){this._inflate.close();this._inflate=null;i(e);return}const n=a.concat(this._inflate[p],this._inflate[c]);if(t&&this.params[`${r}_no_context_takeover`]){this._inflate.close();this._inflate=null}else{this._inflate[c]=0;this._inflate[p]=[]}i(null,n)})}_compress(e,t,i){const r=this._isServer?"server":"client";if(!this._deflate){const e=`${r}_max_window_bits`;const t=typeof this.params[e]!=="number"?n.Z_DEFAULT_WINDOWBITS:this.params[e];this._deflate=n.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:t});this._deflate[c]=0;this._deflate[p]=[];this._deflate.on("error",o);this._deflate.on("data",deflateOnData)}this._deflate[d]=i;this._deflate.write(e);this._deflate.flush(n.Z_SYNC_FLUSH,()=>{if(!this._deflate){return}let e=a.concat(this._deflate[p],this._deflate[c]);if(t)e=e.slice(0,e.length-4);this._deflate[d]=null;if(t&&this.params[`${r}_no_context_takeover`]){this._deflate.close();this._deflate=null}else{this._deflate[c]=0;this._deflate[p]=[]}i(null,e)})}}e.exports=PerMessageDeflate;function deflateOnData(e){this[p].push(e);this[c]+=e.length}function inflateOnData(e){this[c]+=e.length;if(this[l]._maxPayload<1||this[c]<=this[l]._maxPayload){this[p].push(e);return}this[f]=new RangeError("Max payload size exceeded");this[f][s]=1009;this.removeListener("data",inflateOnData);this.reset()}function inflateOnError(e){this[l]._inflate=null;e[s]=1007;this[d](e)}},function(e,t,i){const n=i(926);e.exports=n},function(e,t,i){e.exports=Key;var n=i(872);var a=i(98);var r=i(373);var s=i(400);var o=i(575);var u=i(532).DiffieHellman;var l=i(753);var c=i(270);var d=i(502);var p;try{p=i(635)}catch(e){}var f=l.InvalidAlgorithmError;var h=l.KeyParseError;var m={};m["auto"]=i(241);m["pem"]=i(268);m["pkcs1"]=i(449);m["pkcs8"]=i(707);m["rfc4253"]=i(538);m["ssh"]=i(603);m["ssh-private"]=i(78);m["openssh"]=m["ssh-private"];m["dnssec"]=i(982);m["putty"]=i(624);m["ppk"]=m["putty"];function Key(e){n.object(e,"options");n.arrayOfObject(e.parts,"options.parts");n.string(e.type,"options.type");n.optionalString(e.comment,"options.comment");var t=a.info[e.type];if(typeof t!=="object")throw new f(e.type);var i={};for(var r=0;r1024)e="sha256";if(this.type==="ed25519")e="sha512";if(this.type==="ecdsa"){if(this.size<=256)e="sha256";else if(this.size<=384)e="sha384";else e="sha512"}return e};Key.prototype.createVerify=function(e){if(e===undefined)e=this.defaultHashAlgorithm();n.string(e,"hash algorithm");if(this.type==="ed25519"&&p!==undefined)return new p.Verifier(this,e);if(this.type==="curve25519")throw new Error("Curve25519 keys are not suitable for "+"signing or verification");var t,i,a;try{i=e.toUpperCase();t=r.createVerify(i)}catch(e){a=e}if(t===undefined||a instanceof Error&&a.message.match(/Unknown message digest/)){i="RSA-";i+=e.toUpperCase();t=r.createVerify(i)}n.ok(t,"failed to create verifier");var s=t.verify.bind(t);var u=this.toBuffer("pkcs8");var l=this.curve;var c=this;t.verify=function(t,i){if(o.isSignature(t,[2,0])){if(t.type!==c.type)return false;if(t.hashAlgorithm&&t.hashAlgorithm!==e)return false;if(t.curve&&c.type==="ecdsa"&&t.curve!==l)return false;return s(u,t.toBuffer("asn1"))}else if(typeof t==="string"||Buffer.isBuffer(t)){return s(u,t,i)}else if(o.isSignature(t,[1,0])){throw new Error("signature was created by too old "+"a version of sshpk and cannot be verified")}else{throw new TypeError("signature must be a string, "+"Buffer, or Signature object")}};return t};Key.prototype.createDiffieHellman=function(){if(this.type==="rsa")throw new Error("RSA keys do not support Diffie-Hellman");return new u(this)};Key.prototype.createDH=Key.prototype.createDiffieHellman;Key.parse=function(e,t,i){if(typeof e!=="string")n.buffer(e,"data");if(t===undefined)t="auto";n.string(t,"format");if(typeof i==="string")i={filename:i};n.optionalObject(i,"options");if(i===undefined)i={};n.optionalString(i.filename,"options.filename");if(i.filename===undefined)i.filename="(unnamed)";n.object(m[t],"formats[format]");try{var a=m[t].read(e,i);if(a instanceof d)a=a.toPublic();if(!a.comment)a.comment=i.filename;return a}catch(e){if(e.name==="KeyEncryptedError")throw e;throw new h(i.filename,t,e)}};Key.isKey=function(e,t){return c.isCompatible(e,Key,t)};Key.prototype._sshpkApiVersion=[1,7];Key._oldVersionDetect=function(e){n.func(e.toBuffer);n.func(e.fingerprint);if(e.createDH)return[1,4];if(e.defaultHashAlgorithm)return[1,3];if(e.formats["auto"])return[1,2];if(e.formats["pkcs1"])return[1,1];return[1,0]}},function(e,t){(function(e,i){true?i(t):undefined})(this,function(e){"use strict";function merge(){for(var e=arguments.length,t=Array(e),i=0;i1){t[0]=t[0].slice(0,-1);var n=t.length-1;for(var a=1;a= 0x80 (not a basic code point)","invalid-input":"Invalid input"};var y=s-o;var S=Math.floor;var w=String.fromCharCode;function error$1(e){throw new RangeError(g[e])}function map(e,t){var i=[];var n=e.length;while(n--){i[n]=t(e[n])}return i}function mapDomain(e,t){var i=e.split("@");var n="";if(i.length>1){n=i[0]+"@";e=i[1]}e=e.replace(b,".");var a=e.split(".");var r=map(a,t).join(".");return n+r}function ucs2decode(e){var t=[];var i=0;var n=e.length;while(i=55296&&a<=56319&&i>1;e+=S(e/t);for(;e>y*u>>1;n+=s){e=S(e/y)}return S(n+(y+1)*e/(e+l))};var k=function decode(e){var t=[];var i=e.length;var n=0;var a=p;var l=d;var c=e.lastIndexOf(f);if(c<0){c=0}for(var h=0;h=128){error$1("not-basic")}t.push(e.charCodeAt(h))}for(var m=c>0?c+1:0;m=i){error$1("invalid-input")}var w=z(e.charCodeAt(m++));if(w>=s||w>S((r-n)/g)){error$1("overflow")}n+=w*g;var v=y<=l?o:y>=l+u?u:y-l;if(wS(r/j)){error$1("overflow")}g*=j}var k=t.length+1;l=O(n-b,k,b==0);if(S(n/k)>r-a){error$1("overflow")}a+=S(n/k);n%=k;t.splice(n++,0,a)}return String.fromCodePoint.apply(String,t)};var C=function encode(e){var t=[];e=ucs2decode(e);var i=e.length;var n=p;var a=0;var l=d;var c=true;var h=false;var m=undefined;try{for(var b=e[Symbol.iterator](),g;!(c=(g=b.next()).done);c=true){var y=g.value;if(y<128){t.push(w(y))}}}catch(e){h=true;m=e}finally{try{if(!c&&b.return){b.return()}}finally{if(h){throw m}}}var v=t.length;var z=v;if(v){t.push(f)}while(z=n&&xS((r-a)/N)){error$1("overflow")}a+=(k-n)*N;n=k;var V=true;var P=false;var D=undefined;try{for(var I=e[Symbol.iterator](),_;!(V=(_=I.next()).done);V=true){var q=_.value;if(qr){error$1("overflow")}if(q==n){var B=a;for(var M=s;;M+=s){var U=M<=l?o:M>=l+u?u:M-l;if(B>6|192).toString(16).toUpperCase()+"%"+(t&63|128).toString(16).toUpperCase();else i="%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(t&63|128).toString(16).toUpperCase();return i}function pctDecChars(e){var t="";var i=0;var n=e.length;while(i=194&&a<224){if(n-i>=6){var r=parseInt(e.substr(i+4,2),16);t+=String.fromCharCode((a&31)<<6|r&63)}else{t+=e.substr(i,6)}i+=6}else if(a>=224){if(n-i>=9){var s=parseInt(e.substr(i+4,2),16);var o=parseInt(e.substr(i+7,2),16);t+=String.fromCharCode((a&15)<<12|(s&63)<<6|o&63)}else{t+=e.substr(i,9)}i+=9}else{t+=e.substr(i,3);i+=3}}return t}function _normalizeComponentEncoding(e,t){function decodeUnreserved(e){var i=pctDecChars(e);return!i.match(t.UNRESERVED)?e:i}if(e.scheme)e.scheme=String(e.scheme).replace(t.PCT_ENCODED,decodeUnreserved).toLowerCase().replace(t.NOT_SCHEME,"");if(e.userinfo!==undefined)e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,decodeUnreserved).replace(t.NOT_USERINFO,pctEncChar).replace(t.PCT_ENCODED,toUpperCase);if(e.host!==undefined)e.host=String(e.host).replace(t.PCT_ENCODED,decodeUnreserved).toLowerCase().replace(t.NOT_HOST,pctEncChar).replace(t.PCT_ENCODED,toUpperCase);if(e.path!==undefined)e.path=String(e.path).replace(t.PCT_ENCODED,decodeUnreserved).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,pctEncChar).replace(t.PCT_ENCODED,toUpperCase);if(e.query!==undefined)e.query=String(e.query).replace(t.PCT_ENCODED,decodeUnreserved).replace(t.NOT_QUERY,pctEncChar).replace(t.PCT_ENCODED,toUpperCase);if(e.fragment!==undefined)e.fragment=String(e.fragment).replace(t.PCT_ENCODED,decodeUnreserved).replace(t.NOT_FRAGMENT,pctEncChar).replace(t.PCT_ENCODED,toUpperCase);return e}function _stripLeadingZeros(e){return e.replace(/^0*(.*)/,"$1")||"0"}function _normalizeIPv4(e,t){var i=e.match(t.IPV4ADDRESS)||[];var a=n(i,2),r=a[1];if(r){return r.split(".").map(_stripLeadingZeros).join(".")}else{return e}}function _normalizeIPv6(e,t){var i=e.match(t.IPV6ADDRESS)||[];var a=n(i,3),r=a[1],s=a[2];if(r){var o=r.toLowerCase().split("::").reverse(),u=n(o,2),l=u[0],c=u[1];var d=c?c.split(":").map(_stripLeadingZeros):[];var p=l.split(":").map(_stripLeadingZeros);var f=t.IPV4ADDRESS.test(p[p.length-1]);var h=f?7:8;var m=p.length-h;var b=Array(h);for(var g=0;g1){var v=b.slice(0,S.index);var z=b.slice(S.index+S.length);w=v.join(":")+"::"+z.join(":")}else{w=b.join(":")}if(s){w+="%"+s}return w}else{return e}}var x=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i;var N="".match(/(){0}/)[1]===undefined;function parse(e){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var a={};var r=n.iri!==false?i:t;if(n.reference==="suffix")e=(n.scheme?n.scheme+":":"")+"//"+e;var s=e.match(x);if(s){if(N){a.scheme=s[1];a.userinfo=s[3];a.host=s[4];a.port=parseInt(s[5],10);a.path=s[6]||"";a.query=s[7];a.fragment=s[8];if(isNaN(a.port)){a.port=s[5]}}else{a.scheme=s[1]||undefined;a.userinfo=e.indexOf("@")!==-1?s[3]:undefined;a.host=e.indexOf("//")!==-1?s[4]:undefined;a.port=parseInt(s[5],10);a.path=s[6]||"";a.query=e.indexOf("?")!==-1?s[7]:undefined;a.fragment=e.indexOf("#")!==-1?s[8]:undefined;if(isNaN(a.port)){a.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?s[4]:undefined}}if(a.host){a.host=_normalizeIPv6(_normalizeIPv4(a.host,r),r)}if(a.scheme===undefined&&a.userinfo===undefined&&a.host===undefined&&a.port===undefined&&!a.path&&a.query===undefined){a.reference="same-document"}else if(a.scheme===undefined){a.reference="relative"}else if(a.fragment===undefined){a.reference="absolute"}else{a.reference="uri"}if(n.reference&&n.reference!=="suffix"&&n.reference!==a.reference){a.error=a.error||"URI is not a "+n.reference+" reference."}var o=A[(n.scheme||a.scheme||"").toLowerCase()];if(!n.unicodeSupport&&(!o||!o.unicodeSupport)){if(a.host&&(n.domainHost||o&&o.domainHost)){try{a.host=E.toASCII(a.host.replace(r.PCT_ENCODED,pctDecChars).toLowerCase())}catch(e){a.error=a.error||"Host's domain name can not be converted to ASCII via punycode: "+e}}_normalizeComponentEncoding(a,t)}else{_normalizeComponentEncoding(a,r)}if(o&&o.parse){o.parse(a,n)}}else{a.error=a.error||"URI can not be parsed."}return a}function _recomposeAuthority(e,n){var a=n.iri!==false?i:t;var r=[];if(e.userinfo!==undefined){r.push(e.userinfo);r.push("@")}if(e.host!==undefined){r.push(_normalizeIPv6(_normalizeIPv4(String(e.host),a),a).replace(a.IPV6ADDRESS,function(e,t,i){return"["+t+(i?"%25"+i:"")+"]"}))}if(typeof e.port==="number"){r.push(":");r.push(e.port.toString(10))}return r.length?r.join(""):undefined}var V=/^\.\.?\//;var P=/^\/\.(\/|$)/;var D=/^\/\.\.(\/|$)/;var I=/^\/?(?:.|\n)*?(?=\/|$)/;function removeDotSegments(e){var t=[];while(e.length){if(e.match(V)){e=e.replace(V,"")}else if(e.match(P)){e=e.replace(P,"/")}else if(e.match(D)){e=e.replace(D,"/");t.pop()}else if(e==="."||e===".."){e=""}else{var i=e.match(I);if(i){var n=i[0];e=e.slice(n.length);t.push(n)}else{throw new Error("Unexpected dot segment condition")}}}return t.join("")}function serialize(e){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var a=n.iri?i:t;var r=[];var s=A[(n.scheme||e.scheme||"").toLowerCase()];if(s&&s.serialize)s.serialize(e,n);if(e.host){if(a.IPV6ADDRESS.test(e.host)){}else if(n.domainHost||s&&s.domainHost){try{e.host=!n.iri?E.toASCII(e.host.replace(a.PCT_ENCODED,pctDecChars).toLowerCase()):E.toUnicode(e.host)}catch(t){e.error=e.error||"Host's domain name can not be converted to "+(!n.iri?"ASCII":"Unicode")+" via punycode: "+t}}}_normalizeComponentEncoding(e,a);if(n.reference!=="suffix"&&e.scheme){r.push(e.scheme);r.push(":")}var o=_recomposeAuthority(e,n);if(o!==undefined){if(n.reference!=="suffix"){r.push("//")}r.push(o);if(e.path&&e.path.charAt(0)!=="/"){r.push("/")}}if(e.path!==undefined){var u=e.path;if(!n.absolutePath&&(!s||!s.absolutePath)){u=removeDotSegments(u)}if(o===undefined){u=u.replace(/^\/\//,"/%2F")}r.push(u)}if(e.query!==undefined){r.push("?");r.push(e.query)}if(e.fragment!==undefined){r.push("#");r.push(e.fragment)}return r.join("")}function resolveComponents(e,t){var i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var n=arguments[3];var a={};if(!n){e=parse(serialize(e,i),i);t=parse(serialize(t,i),i)}i=i||{};if(!i.tolerant&&t.scheme){a.scheme=t.scheme;a.userinfo=t.userinfo;a.host=t.host;a.port=t.port;a.path=removeDotSegments(t.path||"");a.query=t.query}else{if(t.userinfo!==undefined||t.host!==undefined||t.port!==undefined){a.userinfo=t.userinfo;a.host=t.host;a.port=t.port;a.path=removeDotSegments(t.path||"");a.query=t.query}else{if(!t.path){a.path=e.path;if(t.query!==undefined){a.query=t.query}else{a.query=e.query}}else{if(t.path.charAt(0)==="/"){a.path=removeDotSegments(t.path)}else{if((e.userinfo!==undefined||e.host!==undefined||e.port!==undefined)&&!e.path){a.path="/"+t.path}else if(!e.path){a.path=t.path}else{a.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path}a.path=removeDotSegments(a.path)}a.query=t.query}a.userinfo=e.userinfo;a.host=e.host;a.port=e.port}a.scheme=e.scheme}a.fragment=t.fragment;return a}function resolve(e,t,i){var n=assign({scheme:"null"},i);return serialize(resolveComponents(parse(e,n),parse(t,n),n,true),n)}function normalize(e,t){if(typeof e==="string"){e=serialize(parse(e,t),t)}else if(typeOf(e)==="object"){e=parse(serialize(e,t),t)}return e}function equal(e,t,i){if(typeof e==="string"){e=serialize(parse(e,i),i)}else if(typeOf(e)==="object"){e=serialize(e,i)}if(typeof t==="string"){t=serialize(parse(t,i),i)}else if(typeOf(t)==="object"){t=serialize(t,i)}return e===t}function escapeComponent(e,n){return e&&e.toString().replace(!n||!n.iri?t.ESCAPE:i.ESCAPE,pctEncChar)}function unescapeComponent(e,n){return e&&e.toString().replace(!n||!n.iri?t.PCT_ENCODED:i.PCT_ENCODED,pctDecChars)}var _={scheme:"http",domainHost:true,parse:function parse(e,t){if(!e.host){e.error=e.error||"HTTP URIs must have a host."}return e},serialize:function serialize(e,t){if(e.port===(String(e.scheme).toLowerCase()!=="https"?80:443)||e.port===""){e.port=undefined}if(!e.path){e.path="/"}return e}};var q={scheme:"https",domainHost:_.domainHost,parse:_.parse,serialize:_.serialize};var B={};var M=true;var U="[A-Za-z0-9\\-\\.\\_\\~"+(M?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]";var L="[0-9A-Fa-f]";var H=subexp(subexp("%[EFef]"+L+"%"+L+L+"%"+L+L)+"|"+subexp("%[89A-Fa-f]"+L+"%"+L+L)+"|"+subexp("%"+L+L));var Q="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]";var W="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]";var G=merge(W,'[\\"\\\\]');var K="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]";var J=new RegExp(U,"g");var F=new RegExp(H,"g");var Y=new RegExp(merge("[^]",Q,"[\\.]",'[\\"]',G),"g");var X=new RegExp(merge("[^]",U,K),"g");var Z=X;function decodeUnreserved(e){var t=pctDecChars(e);return!t.match(J)?e:t}var $={scheme:"mailto",parse:function parse$$1(e,t){var i=e;var n=i.to=i.path?i.path.split(","):[];i.path=undefined;if(i.query){var a=false;var r={};var s=i.query.split("&");for(var o=0,u=s.length;o{try{const{protocol:t}=new n.URL(e);a(t.match(/^(https?:)$/));return true}catch(e){throw new TypeError("only valid absolute URLs can be requested")}})},function(e,t,i){"use strict";e.exports={copy:copy,checkDataType:checkDataType,checkDataTypes:checkDataTypes,coerceToTypes:coerceToTypes,toHash:toHash,getProperty:getProperty,escapeQuotes:escapeQuotes,equal:i(832),ucs2length:i(767),varOccurences:varOccurences,varReplace:varReplace,schemaHasRules:schemaHasRules,schemaHasRulesExcept:schemaHasRulesExcept,schemaUnknownRules:schemaUnknownRules,toQuotedString:toQuotedString,getPathExpr:getPathExpr,getPath:getPath,getData:getData,unescapeFragment:unescapeFragment,unescapeJsonPointer:unescapeJsonPointer,escapeFragment:escapeFragment,escapeJsonPointer:escapeJsonPointer};function copy(e,t){t=t||{};for(var i in e)t[i]=e[i];return t}function checkDataType(e,t,i,n){var a=n?" !== ":" === ",r=n?" || ":" && ",s=n?"!":"",o=n?"":"!";switch(e){case"null":return t+a+"null";case"array":return s+"Array.isArray("+t+")";case"object":return"("+s+t+r+"typeof "+t+a+'"object"'+r+o+"Array.isArray("+t+"))";case"integer":return"(typeof "+t+a+'"number"'+r+o+"("+t+" % 1)"+r+t+a+t+(i?r+s+"isFinite("+t+")":"")+")";case"number":return"(typeof "+t+a+'"'+e+'"'+(i?r+s+"isFinite("+t+")":"")+")";default:return"typeof "+t+a+'"'+e+'"'}}function checkDataTypes(e,t,i){switch(e.length){case 1:return checkDataType(e[0],t,i,true);default:var n="";var a=toHash(e);if(a.array&&a.object){n=a.null?"(":"(!"+t+" || ";n+="typeof "+t+' !== "object")';delete a.null;delete a.array;delete a.object}if(a.number)delete a.integer;for(var r in a)n+=(n?" && ":"")+checkDataType(r,t,i,true);return n}}var n=toHash(["string","number","integer","boolean","null"]);function coerceToTypes(e,t){if(Array.isArray(t)){var i=[];for(var a=0;a=t)throw new Error("Cannot access property/index "+n+" levels up, current level is "+t);return i[t-n]}if(n>t)throw new Error("Cannot access data "+n+" levels up, current level is "+t);r="data"+(t-n||"");if(!a)return r}var l=r;var c=a.split("/");for(var d=0;d0:e.util.schemaHasRules(w,e.RULES.all)))){m[m.length]=g}}}}else{var m=s}}if(p||m.length){var v=e.errorPath,z=p||m.length>=e.opts.loopRequired,j=e.opts.ownProperties;if(l){n+=" var missing"+a+"; ";if(z){if(!p){n+=" var "+h+" = validate.schema"+o+"; "}var O="i"+a,k="schema"+a+"["+O+"]",C="' + "+k+" + '";if(e.opts._errorDataPathProperty){e.errorPath=e.util.getPathExpr(v,k,e.opts.jsonPointers)}n+=" var "+d+" = true; ";if(p){n+=" if (schema"+a+" === undefined) "+d+" = true; else if (!Array.isArray(schema"+a+")) "+d+" = false; else {"}n+=" for (var "+O+" = 0; "+O+" < "+h+".length; "+O+"++) { "+d+" = "+c+"["+h+"["+O+"]] !== undefined ";if(j){n+=" && Object.prototype.hasOwnProperty.call("+c+", "+h+"["+O+"]) "}n+="; if (!"+d+") break; } ";if(p){n+=" } "}n+=" if (!"+d+") { ";var T=T||[];T.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+"required"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+C+"' } ";if(e.opts.messages!==false){n+=" , message: '";if(e.opts._errorDataPathProperty){n+="is a required property"}else{n+="should have required property \\'"+C+"\\'"}n+="' "}if(e.opts.verbose){n+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "}n+=" } "}else{n+=" {} "}var R=n;n=T.pop();if(!e.compositeRule&&l){if(e.async){n+=" throw new ValidationError(["+R+"]); "}else{n+=" validate.errors = ["+R+"]; return false; "}}else{n+=" var err = "+R+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+=" } else { "}else{n+=" if ( ";var E=m;if(E){var A,O=-1,x=E.length-1;while(O{if(r===i){if(n&&t[a]===undefined){throw new z(`expected claim "${a}" in "${i}"`)}else if(t[a]!==undefined){e[a]=t[a]}delete e._claim_names[a]}}}function verifyPresence(e,t,i){if(e[i]===undefined){throw new z({message:`missing required JWT property ${i}`,jwt:t})}}function authorizationParams(e){const t={client_id:this.client_id,scope:"openid",response_type:V.call(this),redirect_uri:P.call(this),...e};Object.entries(t).forEach(([e,i])=>{if(i===null||i===undefined){delete t[e]}else if(e==="claims"&&typeof i==="object"){t[e]=JSON.stringify(i)}else if(e==="resource"&&Array.isArray(i)){t[e]=i}else if(typeof i!=="string"){t[e]=String(i)}});return t}async function claimJWT(e,t){try{const{header:i,payload:n}=d.JWT.decode(t,{complete:true});const{iss:a}=n;if(i.alg==="none"){return n}let r;if(!a||a===this.issuer.issuer){r=await this.issuer.queryKeyStore(i)}else if(A.has(a)){r=await A.get(a).queryKeyStore(i)}else{const e=await this.issuer.constructor.discover(a);r=await e.queryKeyStore(i)}return d.JWT.verify(t,r)}catch(i){if(i instanceof z||i instanceof v||i.name==="AggregateError"){throw i}else{throw new z({printf:["failed to validate the %s JWT (%s: %s)",e,i.name,i.message],jwt:t})}}}function getKeystore(e){const t=d.JWKS.asKeyStore(e);if(t.all().some(e=>e.type!=="private")){throw new TypeError("jwks must only contain private keys")}return t}function checkBasicSupport(e,t,i){try{const t=e.issuer.token_endpoint_auth_methods_supported;if(!t.includes(i.token_endpoint_auth_method)){if(t.includes("client_secret_post")){i.token_endpoint_auth_method="client_secret_post"}}}catch(e){}}function handleCommonMistakes(e,t,i){if(!t.token_endpoint_auth_method){checkBasicSupport(e,t,i)}if(t.redirect_uri){if(t.redirect_uris){throw new TypeError("provide a redirect_uri or redirect_uris, not both")}i.redirect_uris=[t.redirect_uri];delete i.redirect_uri}if(t.response_type){if(t.response_types){throw new TypeError("provide a response_type or response_types, not both")}i.response_types=[t.response_type];delete i.response_type}}function getDefaultsForEndpoint(e,t,i){if(!t[`${e}_endpoint`])return;const n=i.token_endpoint_auth_method;const a=i.token_endpoint_auth_signing_alg;const r=`${e}_endpoint_auth_method`;const s=`${e}_endpoint_auth_signing_alg`;if(i[r]===undefined&&i[s]===undefined){if(n!==undefined){i[r]=n}if(a!==undefined){i[s]=a}}}class BaseClient{}e.exports=((e,t=false)=>(class Client extends BaseClient{constructor(e={},t,i){super();if(typeof e.client_id!=="string"||!e.client_id){throw new TypeError("client_id is required")}const n={...T,...e};handleCommonMistakes(this,e,n);m("token",this.issuer,n);["introspection","revocation"].forEach(e=>{getDefaultsForEndpoint(e,this.issuer,n);m(e,this.issuer,n)});Object.entries(n).forEach(([e,t])=>{x(this).get("metadata").set(e,t);if(!this[e]){Object.defineProperty(this,e,{get(){return x(this).get("metadata").get(e)},enumerable:true})}});if(t!==undefined){const e=getKeystore.call(this,t);x(this).set("keystore",e)}if(i!==undefined){x(this).set("options",i)}this[E]=0}authorizationUrl(e={}){if(!y(e)){throw new TypeError("params must be a plain object")}b(this.issuer,"authorization_endpoint");const t=l.parse(this.issuer.authorization_endpoint,true);t.search=null;t.query={...t.query,...authorizationParams.call(this,e)};return l.format(t)}authorizationPost(e={}){if(!y(e)){throw new TypeError("params must be a plain object")}const t=authorizationParams.call(this,e);const i=Object.keys(t).map(e=>``).join("\n");return`\n\n Requesting Authorization\n\n\n
\n ${i}\n
\n\n`}endSessionUrl(e={}){b(this.issuer,"end_session_endpoint");const{0:t,length:i}=this.post_logout_redirect_uris||[];const{post_logout_redirect_uri:n=(i===1?t:undefined)}=e;let a=e.id_token_hint;if(a instanceof w){if(!a.id_token){throw new TypeError("id_token not present in TokenSet")}a=a.id_token}const r=l.parse(this.issuer.end_session_endpoint,true);r.search=null;r.query={...e,...r.query,...{post_logout_redirect_uri:n,id_token_hint:a}};Object.entries(r.query).forEach(([e,t])=>{if(t===null||t===undefined){delete r.query[e]}});return l.format(r)}callbackParams(e){const t=e instanceof r.IncomingMessage||e&&e.method&&e.url;const i=typeof e==="string";if(!i&&!t){throw new TypeError("#callbackParams only accepts string urls, http.IncomingMessage or a lookalike")}if(t){switch(e.method){case"GET":return pickCb(l.parse(e.url,true).query);case"POST":if(e.body===undefined){throw new TypeError("incoming message body missing, include a body parser prior to this method call")}switch(typeof e.body){case"object":case"string":if(Buffer.isBuffer(e.body)){return pickCb(u.parse(e.body.toString("utf-8")))}if(typeof e.body==="string"){return pickCb(u.parse(e.body))}return pickCb(e.body);default:throw new TypeError("invalid IncomingMessage body object")}default:throw new TypeError("invalid IncomingMessage method")}}else{return pickCb(l.parse(e,true).query)}}async callback(e,t,i={},{exchangeBody:n,clientAssertionPayload:a}={}){let r=pickCb(t);if(i.jarm&&!("response"in t)){throw new z({message:"expected a JARM response",checks:i,params:r})}else if("response"in t){const e=await this.decryptJARM(r.response);r=await this.validateJARM(e)}if(this.default_max_age&&!i.max_age){i.max_age=this.default_max_age}if(r.state&&!i.state){throw new TypeError("checks.state argument is missing")}if(!r.state&&i.state){throw new z({message:"state missing from the response",checks:i,params:r})}if(i.state!==r.state){throw new z({printf:["state mismatch, expected %s, got: %s",i.state,r.state],checks:i,params:r})}if(r.error){throw new v(r)}const s={code:["code"],id_token:["id_token"],token:["access_token","token_type"]};if(i.response_type){for(const e of i.response_type.split(" ")){if(e==="none"){if(r.code||r.id_token||r.access_token){throw new z({message:'unexpected params encountered for "none" response',checks:i,params:r})}}else{for(const t of s[e]){if(!r[t]){throw new z({message:`${t} missing from response`,checks:i,params:r})}}}}}if(r.id_token){const e=new w(r);await this.decryptIdToken(e);await this.validateIdToken(e,i.nonce,"authorization",i.max_age,i.state);if(!r.code){return e}}if(r.code){const t=await this.grant({...n,grant_type:"authorization_code",code:r.code,redirect_uri:e,code_verifier:i.code_verifier},{clientAssertionPayload:a});await this.decryptIdToken(t);await this.validateIdToken(t,i.nonce,"token",i.max_age);if(r.session_state){t.session_state=r.session_state}return t}return new w(r)}async oauthCallback(e,t,i={},{exchangeBody:n,clientAssertionPayload:a}={}){let r=pickCb(t);if(i.jarm&&!("response"in t)){throw new z({message:"expected a JARM response",checks:i,params:r})}else if("response"in t){const e=await this.decryptJARM(r.response);r=await this.validateJARM(e)}if(r.state&&!i.state){throw new TypeError("checks.state argument is missing")}if(!r.state&&i.state){throw new z({message:"state missing from the response",checks:i,params:r})}if(i.state!==r.state){throw new z({printf:["state mismatch, expected %s, got: %s",i.state,r.state],checks:i,params:r})}if(r.error){throw new v(r)}const s={code:["code"],token:["access_token","token_type"]};if(i.response_type){for(const e of i.response_type.split(" ")){if(e==="none"){if(r.code||r.id_token||r.access_token){throw new z({message:'unexpected params encountered for "none" response',checks:i,params:r})}}if(s[e]){for(const t of s[e]){if(!r[t]){throw new z({message:`${t} missing from response`,checks:i,params:r})}}}}}if(r.code){return this.grant({...n,grant_type:"authorization_code",code:r.code,redirect_uri:e,code_verifier:i.code_verifier},{clientAssertionPayload:a})}return new w(r)}async decryptIdToken(e){if(!this.id_token_encrypted_response_alg){return e}let t=e;if(t instanceof w){if(!t.id_token){throw new TypeError("id_token not present in TokenSet")}t=t.id_token}const i=this.id_token_encrypted_response_alg;const n=this.id_token_encrypted_response_enc;const a=await this.decryptJWE(t,i,n);if(e instanceof w){e.id_token=a;return e}return a}async validateJWTUserinfo(e){const t=this.userinfo_signed_response_alg;return this.validateJWT(e,t,[])}async decryptJARM(e){if(!this.authorization_encrypted_response_alg){return e}const t=this.authorization_encrypted_response_alg;const i=this.authorization_encrypted_response_enc;return this.decryptJWE(e,t,i)}async validateJARM(e){const t=this.authorization_signed_response_alg;const{payload:i}=await this.validateJWT(e,t,["iss","exp","aud"]);return pickCb(i)}async decryptJWTUserinfo(e){if(!this.userinfo_encrypted_response_alg){return e}const t=this.userinfo_encrypted_response_alg;const i=this.userinfo_encrypted_response_enc;return this.decryptJWE(e,t,i)}async decryptJWE(e,t,i="A128CBC-HS256"){const n=JSON.parse(p.decode(e.split(".")[0]));if(n.alg!==t){throw new z({printf:["unexpected JWE alg received, expected %s, got: %s",t,n.alg],jwt:e})}if(n.enc!==i){throw new z({printf:["unexpected JWE enc received, expected %s, got: %s",i,n.enc],jwt:e})}let a;if(t.match(/^(?:RSA|ECDH)/)){a=x(this).get("keystore")}else{a=await this.joseSecret(t==="dir"?i:t)}const r=d.JWE.decrypt(e,a);return r.toString("utf8")}async validateIdToken(e,t,i,n,a){let r=e;const s=this.id_token_signed_response_alg;const o=r instanceof w;if(o){if(!r.id_token){throw new TypeError("id_token not present in TokenSet")}r=r.id_token}r=String(r);const u=j();const{protected:l,payload:c,key:d}=await this.validateJWT(r,s);if(n||n!==null&&this.require_auth_time){if(!c.auth_time){throw new z({message:"missing required JWT property auth_time",jwt:r})}if(typeof c.auth_time!=="number"){throw new z({message:"JWT auth_time claim must be a JSON numeric value",jwt:r})}}if(n&&c.auth_time+nr+this[E]){throw new z({printf:["JWT not active yet, now %i, nbf %i",r+this[E],u.nbf],now:r,tolerance:this[E],nbf:u.nbf,jwt:e})}}if(u.exp!==undefined){if(typeof u.exp!=="number"){throw new z({message:"JWT exp claim must be a JSON numeric value",jwt:e})}if(r-this[E]>=u.exp){throw new z({printf:["JWT expired, now %i, exp %i",r-this[E],u.exp],now:r,tolerance:this[E],exp:u.exp,jwt:e})}}if(u.aud!==undefined){if(Array.isArray(u.aud)){if(u.aud.length>1&&!u.azp){throw new z({message:"missing required JWT property azp",jwt:e})}if(!u.aud.includes(this.client_id)){throw new z({printf:["aud is missing the client_id, expected %s to be included in %j",this.client_id,u.aud],jwt:e})}}else if(u.aud!==this.client_id){throw new z({printf:["aud mismatch, expected %s, got: %s",this.client_id,u.aud],jwt:e})}}if(u.azp!==undefined){let{additionalAuthorizedParties:t}=x(this).get("options")||{};if(typeof t==="string"){t=[this.client_id,t]}else if(Array.isArray(t)){t=[this.client_id,...t]}else{t=[this.client_id]}if(!t.includes(u.azp)){throw new z({printf:["azp mismatch, got: %s",u.azp],jwt:e})}}let l;if(a){try{o(y(u.sub_jwk));l=d.JWK.asKey(u.sub_jwk);o.equal(l.type,"public")}catch(t){throw new z({message:"failed to use sub_jwk claim as an asymmetric JSON Web Key",jwt:e})}if(l.thumbprint!==u.sub){throw new z({message:"failed to match the subject with sub_jwk",jwt:e})}}else if(s.alg.startsWith("HS")){l=await this.joseSecret()}else if(s.alg!=="none"){l=await this.issuer.queryKeyStore(s)}if(!l&&s.alg==="none"){return{protected:s,payload:u}}try{return d.JWS.verify(e,l,{complete:true})}catch(t){throw new z({message:"failed to validate JWT signature",jwt:e})}}async refresh(e,{exchangeBody:t,clientAssertionPayload:i}={}){let n=e;if(n instanceof w){if(!n.refresh_token){throw new TypeError("refresh_token not present in TokenSet")}n=n.refresh_token}const a=await this.grant({...t,grant_type:"refresh_token",refresh_token:String(n)},{clientAssertionPayload:i});if(a.id_token){await this.decryptIdToken(a);await this.validateIdToken(a,null,"token",null);if(e instanceof w&&e.id_token){const t=e.claims().sub;const i=a.claims().sub;if(i!==t){throw new z({printf:["sub mismatch, expected %s, got: %s",t,i],jwt:a.id_token})}}}return a}async requestResource(e,t,{method:i,headers:n,body:a,tokenType:r=(t instanceof w?t.token_type:"Bearer")}={}){if(t instanceof w){if(!t.access_token){throw new TypeError("access_token not present in TokenSet")}t=t.access_token}const s={headers:{Authorization:authorizationHeaderValue(t,r),...n},body:a};const o=!!this.tls_client_certificate_bound_access_tokens;return k.call(this,{...s,encoding:null,method:i,url:e},{mTLS:o})}async userinfo(e,{verb:t="GET",via:i="header",tokenType:n,params:a}={}){b(this.issuer,"userinfo_endpoint");const r={tokenType:n,method:String(t).toUpperCase()};if(r.method!=="GET"&&r.method!=="POST"){throw new TypeError("#userinfo() verb can only be POST or a GET")}if(i==="query"&&r.method!=="GET"){throw new TypeError("userinfo endpoints will only parse query strings for GET requests")}else if(i==="body"&&r.method!=="POST"){throw new TypeError("can only send body on POST")}const s=!!(this.userinfo_signed_response_alg||this.userinfo_encrypted_response_alg);if(s){r.headers={Accept:"application/jwt"}}else{r.headers={Accept:"application/json"}}const u=!!this.tls_client_certificate_bound_access_tokens;let d;if(u&&this.issuer.mtls_endpoint_aliases){d=this.issuer.mtls_endpoint_aliases.userinfo_endpoint}d=new l.URL(d||this.issuer.userinfo_endpoint);if(i==="query"){r.headers.Authorization=undefined;d.searchParams.append("access_token",e instanceof w?e.access_token:e)}else if(i==="body"){r.headers.Authorization=undefined;r.headers["Content-Type"]="application/x-www-form-urlencoded";r.body=new l.URLSearchParams;r.body.append("access_token",e instanceof w?e.access_token:e)}if(a){if(r.method==="GET"){Object.entries(a).forEach(([e,t])=>{d.searchParams.append(e,t)})}else if(r.body){Object.entries(a).forEach(([e,t])=>{r.body.append(e,t)})}else{r.body=new l.URLSearchParams;r.headers["Content-Type"]="application/x-www-form-urlencoded";Object.entries(a).forEach(([e,t])=>{r.body.append(e,t)})}}if(r.body){r.body=r.body.toString()}const p=await this.requestResource(d,e,r);let f=S(p,{bearer:true});if(s){if(!R.test(p.headers["content-type"])){throw new z({message:"expected application/jwt response from the userinfo_endpoint",response:p})}const e=p.body.toString();const t=await this.decryptJWTUserinfo(e);if(!this.userinfo_signed_response_alg){try{f=JSON.parse(t);o(y(f))}catch(e){throw new z({message:"failed to parse userinfo JWE payload as JSON",jwt:t})}}else{({payload:f}=await this.validateJWTUserinfo(t))}}else{try{f=JSON.parse(p.body)}catch(e){const t=new c(e,p.statusCode,p.request.gotOptions,p.body);Object.defineProperty(t,"response",{value:p});throw t}}if(e instanceof w&&e.id_token){const t=e.claims().sub;if(f.sub!==t){throw new z({printf:["userinfo sub mismatch, expected %s, got: %s",t,f.sub],body:f,jwt:e.id_token})}}return f}async derivedKey(e){const t=`${e}_key`;if(x(this).has(t)){return x(this).get(t)}const i=e<=256?"sha256":e<=384?"sha384":e<=512?"sha512":false;if(!i){throw new Error("unsupported symmetric encryption key derivation")}const n=s.createHash(i).update(this.client_secret).digest().slice(0,e/8);const a=d.JWK.asKey({k:p.encode(n),kty:"oct"});x(this).set(t,a);return a}async joseSecret(e){if(!this.client_secret){throw new TypeError("client_secret is required")}if(/^A(\d{3})(?:GCM)?KW$/.test(e)){return this.derivedKey(parseInt(RegExp.$1,10))}if(/^A(\d{3})(?:GCM|CBC-HS(\d{3}))$/.test(e)){return this.derivedKey(parseInt(RegExp.$2||RegExp.$1,10))}if(x(this).has("jose_secret")){return x(this).get("jose_secret")}const t=d.JWK.asKey({k:p.encode(this.client_secret),kty:"oct"});x(this).set("jose_secret",t);return t}async grant(e,{clientAssertionPayload:t}={}){b(this.issuer,"token_endpoint");const i=await N.call(this,"token",{form:true,body:e,json:true},{clientAssertionPayload:t});const n=S(i);return new w(n)}async deviceAuthorization(e={},{exchangeBody:t,clientAssertionPayload:i}={}){b(this.issuer,"device_authorization_endpoint");b(this.issuer,"token_endpoint");const n=authorizationParams.call(this,{client_id:this.client_id,redirect_uri:null,response_type:null,...e});const a=await N.call(this,"device_authorization",{form:true,body:n,json:true},{clientAssertionPayload:i,endpointAuthMethod:"token"});const r=S(a);return new D({client:this,exchangeBody:t,clientAssertionPayload:i,response:r,maxAge:e.max_age})}async revoke(e,t,{revokeBody:i,clientAssertionPayload:n}={}){b(this.issuer,"revocation_endpoint");if(t!==undefined&&typeof t!=="string"){throw new TypeError("hint must be a string")}const a={...i,token:e};if(t){a.token_type_hint=t}const r=await N.call(this,"revocation",{body:a,form:true},{clientAssertionPayload:n});S(r,{body:false})}async introspect(e,t,{introspectBody:i,clientAssertionPayload:n}={}){b(this.issuer,"introspection_endpoint");if(t!==undefined&&typeof t!=="string"){throw new TypeError("hint must be a string")}const a={...i,token:e};if(t){a.token_type_hint=t}const r=await N.call(this,"introspection",{body:a,form:true,json:true},{clientAssertionPayload:n});const s=S(r);return s}async fetchDistributedClaims(e,t={}){if(!y(e)){throw new TypeError("claims argument must be a plain object")}if(!y(e._claim_sources)){return e}if(!y(e._claim_names)){return e}const i=Object.entries(e._claim_sources).filter(([,e])=>e&&e.endpoint);await Promise.all(i.map(async([i,n])=>{try{const a={headers:{Accept:"application/jwt",Authorization:authorizationHeaderValue(n.access_token||t[i])}};const r=await k.call(this,{...a,method:"GET",url:n.endpoint});const s=S(r,{bearer:true});const o=await claimJWT.call(this,"distributed",s);delete e._claim_sources[i];Object.entries(e._claim_names).forEach(assignClaim(e,o,i,false))}catch(e){e.src=i;throw e}}));cleanUpClaims(e);return e}async unpackAggregatedClaims(e){if(!y(e)){throw new TypeError("claims argument must be a plain object")}if(!y(e._claim_sources)){return e}if(!y(e._claim_names)){return e}const t=Object.entries(e._claim_sources).filter(([,e])=>e&&e.JWT);await Promise.all(t.map(async([t,i])=>{try{const n=await claimJWT.call(this,"aggregated",i.JWT);delete e._claim_sources[t];Object.entries(e._claim_names).forEach(assignClaim(e,n,t))}catch(e){e.src=t;throw e}}));cleanUpClaims(e);return e}static async register(e,t={}){const{initialAccessToken:i,jwks:n,...a}=t;b(this.issuer,"registration_endpoint");if(n!==undefined&&!(e.jwks||e.jwks_uri)){const t=getKeystore.call(this,n);e.jwks=t.toJWKS(false)}const r=await k.call(this,{headers:i?{Authorization:authorizationHeaderValue(i)}:undefined,json:true,body:e,url:this.issuer.registration_endpoint,method:"POST"});const s=S(r,{statusCode:201,bearer:true});return new this(s,n,a)}get metadata(){const e={};x(this).get("metadata").forEach((t,i)=>{e[i]=t});return e}static async fromUri(e,t,i,n){const a=await k.call(this,{method:"GET",url:e,json:true,headers:{Authorization:authorizationHeaderValue(t)}});const r=S(a,{bearer:true});return new this(r,i,n)}async requestObject(e={},{sign:t=this.request_object_signing_alg||"none",encrypt:{alg:i=this.request_object_encryption_alg,enc:n=this.request_object_encryption_enc||"A128CBC-HS256"}={}}={}){if(!y(e)){throw new TypeError("requestObject must be a plain object")}let a;let r;const s={alg:t,typ:"JWT"};const o=JSON.stringify(h({},e,{iss:this.client_id,aud:this.issuer.issuer,client_id:this.client_id,jti:O(),iat:j(),exp:j()+300}));if(t==="none"){a=[p.encode(JSON.stringify(s)),p.encode(o),""].join(".")}else{const e=t.startsWith("HS");if(e){r=await this.joseSecret()}else{const e=x(this).get("keystore");if(!e){throw new TypeError(`no keystore present for client, cannot sign using alg ${t}`)}r=e.get({alg:t,use:"sig"});if(!r){throw new TypeError(`no key to sign with found for alg ${t}`)}}a=d.JWS.sign(o,r,{...s,kid:e?undefined:r.kid})}if(!i){return a}const u={alg:i,enc:n,cty:"JWT"};if(u.alg.match(/^(RSA|ECDH)/)){[r]=await this.issuer.queryKeyStore({alg:u.alg,enc:u.enc,use:"enc"},{allowMulti:true})}else{r=await this.joseSecret(u.alg==="dir"?u.enc:u.alg)}return d.JWE.encrypt(a,r,{...u,kid:r.kty==="oct"?undefined:r.kid})}static get issuer(){return e}get issuer(){return e}[n.custom](){return`${this.constructor.name} ${n(this.metadata,{depth:Infinity,colors:process.stdout.isTTY,compact:false,sorted:true})}`}}));BaseClient.prototype.resource=a(async function resource(e,t,i){let n=t;const a={verb:"GET",via:"header",...i};if(n instanceof w){if(!n.access_token){throw new TypeError("access_token not present in TokenSet")}a.tokenType=a.tokenType||n.token_type;n=n.access_token}const r=String(a.verb).toUpperCase();let s;switch(a.via){case"query":if(r!=="GET"){throw new TypeError("resource servers should only parse query strings for GET requests")}s={query:{access_token:n}};break;case"body":if(r!=="POST"){throw new TypeError("can only send body on POST")}s={form:true,body:{access_token:n}};break;default:s={headers:{Authorization:authorizationHeaderValue(n,a.tokenType)}}}if(a.params){if(r==="POST"){I(s,{body:a.params})}else{I(s,{query:a.params})}}if(a.headers){I(s,{headers:a.headers})}const o=!!this.tls_client_certificate_bound_access_tokens;return k.call(this,{...s,encoding:null,method:r,url:e},{mTLS:o})},"client.resource() is deprecated, use client.requestResource() instead, see docs for API details");e.exports.BaseClient=BaseClient},function(e,t,i){"use strict";const n=i(413).PassThrough;const a=i(903);const r=i(89);e.exports=(e=>{if(["gzip","deflate"].indexOf(e.headers["content-encoding"])===-1){return e}const t=a.createUnzip();const i=new n;r(e,i);t.on("error",e=>{if(e.code==="Z_BUF_ERROR"){i.end();return}i.emit("error",e)});e.pipe(t).pipe(i);return i})},function(e,t,i){"use strict";var n=i(853),a=i(832),r=i(855),s=i(955),o=i(763);e.exports=resolve;resolve.normalizeId=normalizeId;resolve.fullPath=getFullPath;resolve.url=resolveUrl;resolve.ids=resolveIds;resolve.inlineRef=inlineRef;resolve.schema=resolveSchema;function resolve(e,t,i){var n=this._refs[i];if(typeof n=="string"){if(this._refs[n])n=this._refs[n];else return resolve.call(this,e,t,n)}n=n||this._schemas[i];if(n instanceof s){return inlineRef(n.schema,this._opts.inlineRefs)?n.schema:n.validate||this._compile(n)}var a=resolveSchema.call(this,t,i);var r,o,u;if(a){r=a.schema;t=a.root;u=a.baseId}if(r instanceof s){o=r.validate||e.call(this,r.schema,t,undefined,u)}else if(r!==undefined){o=inlineRef(r,this._opts.inlineRefs)?r:e.call(this,r,t,undefined,u)}return o}function resolveSchema(e,t){var i=n.parse(t),a=_getFullPath(i),r=getFullPath(this._getId(e.schema));if(Object.keys(e.schema).length===0||a!==r){var o=normalizeId(a);var u=this._refs[o];if(typeof u=="string"){return resolveRecursive.call(this,e,u,i)}else if(u instanceof s){if(!u.validate)this._compile(u);e=u}else{u=this._schemas[o];if(u instanceof s){if(!u.validate)this._compile(u);if(o==normalizeId(t))return{schema:u,root:e,baseId:r};e=u}else{return}}if(!e.schema)return;r=getFullPath(this._getId(e.schema))}return getJsonPointer.call(this,i,r,e.schema,e)}function resolveRecursive(e,t,i){var n=resolveSchema.call(this,e,t);if(n){var a=n.schema;var r=n.baseId;e=n.root;var s=this._getId(a);if(s)r=resolveUrl(r,s);return getJsonPointer.call(this,i,r,a,e)}}var u=r.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function getJsonPointer(e,t,i,n){e.fragment=e.fragment||"";if(e.fragment.slice(0,1)!="/")return;var a=e.fragment.split("/");for(var s=1;s1){throw new Error("DER sequence does not contain whole byte "+"stream")}var s=i.offset;i.readSequence();var o=i.offset+i.length;var u=o;if(i.peek()===Local(0)){i.readSequence(Local(0));var l=i.readInt();n.ok(l<=3,"only x.509 versions up to v3 supported")}var c={};c.signatures={};var b=c.signatures.x509={};b.extras={};c.serial=readMPInt(i,"serial");i.readSequence();var g=i.offset+i.length;var y=i.readOID();var S=m[y];if(S===undefined)throw new Error("unknown signature algorithm "+y);i._offset=g;c.issuer=d.parseAsn1(i);i.readSequence();c.validFrom=readDate(i);c.validUntil=readDate(i);c.subjects=[d.parseAsn1(i)];i.readSequence();g=i.offset+i.length;c.subjectKey=h.readPkcs8(undefined,"public",i);i._offset=g;if(i.peek()===Local(1)){i.readSequence(Local(1));b.extras.issuerUniqueID=e.slice(i.offset,i.offset+i.length);i._offset+=i.length}if(i.peek()===Local(2)){i.readSequence(Local(2));b.extras.subjectUniqueID=e.slice(i.offset,i.offset+i.length);i._offset+=i.length}if(i.peek()===Local(3)){i.readSequence(Local(3));var w=i.offset+i.length;i.readSequence();while(i.offset=2050||t.getUTCFullYear()<1950){e.writeString(dateToGTime(t),a.Ber.GeneralizedTime)}else{e.writeString(dateToUTCTime(t),a.Ber.UTCTime)}}var g={OtherName:Local(0),RFC822Name:Context(1),DNSName:Context(2),X400Address:Local(3),DirectoryName:Local(4),EDIPartyName:Local(5),URI:Context(6),IPAddress:Context(7),OID:Context(8)};var y={serverAuth:"1.3.6.1.5.5.7.3.1",clientAuth:"1.3.6.1.5.5.7.3.2",codeSigning:"1.3.6.1.5.5.7.3.3",joyentDocker:"1.3.6.1.4.1.38678.1.4.1",joyentCmon:"1.3.6.1.4.1.38678.1.4.2"};var S={};Object.keys(y).forEach(function(e){S[y[e]]=e});var w=["signature","identity","keyEncryption","encryption","keyAgreement","ca","crl"];function readExtension(e,t,i){i.readSequence();var n=i.offset+i.length;var r=i.readOID();var s;var o=e.signatures.x509;if(!o.extras.exts)o.extras.exts=[];var u;if(i.peek()===a.Ber.Boolean)u=i.readBoolean();switch(r){case b.basicConstraints:i.readSequence(a.Ber.OctetString);i.readSequence();var l=i.offset+i.length;var c=false;if(i.peek()===a.Ber.Boolean)c=i.readBoolean();if(e.purposes===undefined)e.purposes=[];if(c===true)e.purposes.push("ca");var p={oid:r,critical:u};if(i.offset=60)s+=r-1;else s+=r;i.setUTCFullYear(s,parseInt(t[2],10)-1,parseInt(t[3],10));i.setUTCHours(parseInt(t[4],10),parseInt(t[5],10));if(t[6]&&t[6].length>0)i.setUTCSeconds(parseInt(t[6],10));return i}var z=/^([0-9]{4})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})?Z$/;function gTimeToDate(e){var t=e.match(z);n.ok(t);var i=new Date;i.setUTCFullYear(parseInt(t[1],10),parseInt(t[2],10)-1,parseInt(t[3],10));i.setUTCHours(parseInt(t[4],10),parseInt(t[5],10));if(t[6]&&t[6].length>0)i.setUTCSeconds(parseInt(t[6],10));return i}function zeroPad(e,t){if(t===undefined)t=2;var i=""+e;while(i.length0||r.type==="host"||e.purposes!==undefined&&e.purposes.length>0||i.extras&&i.extras.exts){t.startSequence(Local(3));t.startSequence();var u=[];if(e.purposes!==undefined&&e.purposes.length>0){u.push({oid:b.basicConstraints,critical:true});u.push({oid:b.keyUsage,critical:true});u.push({oid:b.extKeyUsage,critical:true})}u.push({oid:b.altName});if(i.extras&&i.extras.exts)u=i.extras.exts;for(var l=0;l>(-2*i&6))}}return r};var d=function(e){e=String(e);if(/[^\0-\xFF]/.test(e)){o("The string to be encoded contains characters outside of the "+"Latin1 range.")}var t=e.length%3;var i="";var n=-1;var a;var r;var s;var l;var c;var d=e.length-t;while(++n>18&63)+u.charAt(c>>12&63)+u.charAt(c>>6&63)+u.charAt(c&63)}if(t==2){a=e.charCodeAt(n)<<8;r=e.charCodeAt(++n);c=a+r;i+=u.charAt(c>>10)+u.charAt(c>>4&63)+u.charAt(c<<2&63)+"="}else if(t==1){c=e.charCodeAt(n);i+=u.charAt(c>>2)+u.charAt(c<<4&63)+"=="}return i};var p={encode:d,decode:c,version:"0.1.0"};if(typeof define=="function"&&typeof define.amd=="object"&&define.amd){define(function(){return p})}else if(n&&!n.nodeType){if(a){a.exports=p}else{for(var f in p){p.hasOwnProperty(f)&&(n[f]=p[f])}}}else{i.base64=p}})(this)},,function(e,t,i){var n=i(357);var a=i(413).Stream;var r=i(669);var s=/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;function _capitalize(e){return e.charAt(0).toUpperCase()+e.slice(1)}function _toss(e,t,i,a,s){throw new n.AssertionError({message:r.format("%s (%s) is required",e,t),actual:s===undefined?typeof a:s(a),expected:t,operator:i||"===",stackStartFunction:_toss.caller})}function _getClass(e){return Object.prototype.toString.call(e).slice(8,-1)}function noop(){}var o={bool:{check:function(e){return typeof e==="boolean"}},func:{check:function(e){return typeof e==="function"}},string:{check:function(e){return typeof e==="string"}},object:{check:function(e){return typeof e==="object"&&e!==null}},number:{check:function(e){return typeof e==="number"&&!isNaN(e)}},finite:{check:function(e){return typeof e==="number"&&!isNaN(e)&&isFinite(e)}},buffer:{check:function(e){return Buffer.isBuffer(e)},operator:"Buffer.isBuffer"},array:{check:function(e){return Array.isArray(e)},operator:"Array.isArray"},stream:{check:function(e){return e instanceof a},operator:"instanceof",actual:_getClass},date:{check:function(e){return e instanceof Date},operator:"instanceof",actual:_getClass},regexp:{check:function(e){return e instanceof RegExp},operator:"instanceof",actual:_getClass},uuid:{check:function(e){return typeof e==="string"&&s.test(e)},operator:"isUUID"}};function _setExports(e){var t=Object.keys(o);var i;if(process.env.NODE_NDEBUG){i=noop}else{i=function(e,t){if(!e){_toss(t,"true",e)}}}t.forEach(function(t){if(e){i[t]=noop;return}var n=o[t];i[t]=function(e,i){if(!n.check(e)){_toss(i,t,n.operator,e,n.actual)}}});t.forEach(function(t){var n="optional"+_capitalize(t);if(e){i[n]=noop;return}var a=o[t];i[n]=function(e,i){if(e===undefined||e===null){return}if(!a.check(e)){_toss(i,t,a.operator,e,a.actual)}}});t.forEach(function(t){var n="arrayOf"+_capitalize(t);if(e){i[n]=noop;return}var a=o[t];var r="["+t+"]";i[n]=function(e,t){if(!Array.isArray(e)){_toss(t,r,a.operator,e,a.actual)}var i;for(i=0;in(e,t,i)!==0;e.exports=a},function(e,t,i){const n=i(65);const a=(e,t,i)=>new n(e,i).compare(new n(t,i));e.exports=a},,function(e,t,i){const n=i(976);e.exports={re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:i(181).SEMVER_SPEC_VERSION,SemVer:i(65),compareIdentifiers:i(760).compareIdentifiers,rcompareIdentifiers:i(760).rcompareIdentifiers,parse:i(830),valid:i(714),clean:i(503),inc:i(928),diff:i(822),major:i(744),minor:i(803),patch:i(489),prerelease:i(968),compare:i(874),rcompare:i(630),compareLoose:i(283),compareBuild:i(16),sort:i(120),rsort:i(593),gt:i(486),lt:i(586),eq:i(298),neq:i(873),gte:i(167),lte:i(898),cmp:i(752),coerce:i(499),Comparator:i(174),Range:i(124),satisfies:i(310),toComparators:i(219),maxSatisfying:i(811),minSatisfying:i(740),minVersion:i(164),validRange:i(480),outside:i(462),gtr:i(531),ltr:i(323),intersects:i(259),simplifyRange:i(877),subset:i(999)}},function(e,t,i){const n=i(310);const a=i(874);e.exports=((e,t,i)=>{const r=[];let s=null;let o=null;const u=e.sort((e,t)=>a(e,t,i));for(const e of u){const a=n(e,t,i);if(a){o=e;if(!s)s=e}else{if(o){r.push([s,o])}o=null;s=null}}if(s)r.push([s,null]);const l=[];for(const[e,t]of r){if(e===t)l.push(e);else if(!t&&e===u[0])l.push("*");else if(!t)l.push(`>=${e}`);else if(e===u[0])l.push(`<=${t}`);else l.push(`${e} - ${t}`)}const c=l.join(" || ");const d=typeof t.raw==="string"?t.raw:String(t);return c.length{if(!t.has(e)){t.set(e,new Map([["metadata",new Map]]))}return t.get(e)})},function(e,t,i){"use strict";var n=i(855);var a=/^(\d\d\d\d)-(\d\d)-(\d\d)$/;var r=[0,31,28,31,30,31,30,31,31,30,31,30,31];var s=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;var o=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i;var u=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@\/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@\/?]|%[0-9a-f]{2})*)?$/i;var l=/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@\/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@\/?]|%[0-9a-f]{2})*)?$/i;var c=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#.\/;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i;var d=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-?)*(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-?)*(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i;var p=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;var f=/^(?:\/(?:[^~\/]|~0|~1)*)*$/;var h=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i;var m=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~\/]|~0|~1)*)*)$/;e.exports=formats;function formats(e){e=e=="full"?"full":"fast";return n.copy(formats[e])}formats.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":c,url:d,email:/^[a-z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:o,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:regex,uuid:p,"json-pointer":f,"json-pointer-uri-fragment":h,"relative-json-pointer":m};formats.full={date:date,time:time,"date-time":date_time,uri:uri,"uri-reference":l,"uri-template":c,url:d,email:/^[a-z0-9!#$%&'*+\/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+\/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:o,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:regex,uuid:p,"json-pointer":f,"json-pointer-uri-fragment":h,"relative-json-pointer":m};function isLeapYear(e){return e%4===0&&(e%100!==0||e%400===0)}function date(e){var t=e.match(a);if(!t)return false;var i=+t[1];var n=+t[2];var s=+t[3];return n>=1&&n<=12&&s>=1&&s<=(n==2&&isLeapYear(i)?29:r[n])}function time(e,t){var i=e.match(s);if(!i)return false;var n=i[1];var a=i[2];var r=i[3];var o=i[5];return(n<=23&&a<=59&&r<=59||n==23&&a==59&&r==60)&&(!t||o)}var b=/t|\s/i;function date_time(e){var t=e.split(b);return t.length==2&&date(t[0])&&time(t[1],true)}var g=/\/|:/;function uri(e){return g.test(e)&&u.test(e)}var y=/[^\\]\\Z/;function regex(e){if(y.test(e))return false;try{new RegExp(e);return true}catch(e){return false}}},,function(e){e.exports={$id:"header.json#",$schema:"http://json-schema.org/draft-06/schema#",type:"object",required:["name","value"],properties:{name:{type:"string"},value:{type:"string"},comment:{type:"string"}}}},function(e,t,i){const n=i(663);const a=new Map;const r=n.define("AlgorithmIdentifier",i(996));a.set("AlgorithmIdentifier",r);const s=n.define("ECPrivateKey",i(401));a.set("ECPrivateKey",s);const o=n.define("PrivateKeyInfo",i(83)(r));a.set("PrivateKeyInfo",o);const u=n.define("PublicKeyInfo",i(69)(r));a.set("PublicKeyInfo",u);const l=n.define("PrivateKey",i(816));a.set("PrivateKey",l);const c=n.define("OneAsymmetricKey",i(481)(r,l));a.set("OneAsymmetricKey",c);const d=n.define("RSAPrivateKey",i(807));a.set("RSAPrivateKey",d);const p=n.define("RSAPublicKey",i(252));a.set("RSAPublicKey",p);e.exports=a},function(e){"use strict";const t=Symbol("kDone");const i=Symbol("kRun");class Limiter{constructor(e){this[t]=(()=>{this.pending--;this[i]()});this.concurrency=e||Infinity;this.jobs=[];this.pending=0}add(e){this.jobs.push(e);this[i]()}[i](){if(this.pending===this.concurrency)return;if(this.jobs.length){const e=this.jobs.shift();this.pending++;e(this[t])}}}e.exports=Limiter},function(e,t,i){var n=i(373);var a=i(242).BigInteger;var r=i(729).ECPointFp;var s=i(215).Buffer;t.ECCurves=i(959);function unstupid(e,t){return e.length>=t?e:unstupid("0"+e,t)}t.ECKey=function(e,t,i){var r;var o=e();var u=o.getN();var l=Math.floor(u.bitLength()/8);if(t){if(i){var e=o.getCurve();this.P=e.decodePointHex(t.toString("hex"))}else{if(t.length!=l)return false;r=new a(t.toString("hex"),16)}}else{var c=u.subtract(a.ONE);var d=new a(n.randomBytes(u.bitLength()));r=d.mod(c).add(a.ONE);this.P=o.getG().multiply(r)}if(this.P){this.PublicKey=s.from(o.getCurve().encodeCompressedPointHex(this.P),"hex")}if(r){this.PrivateKey=s.from(unstupid(r.toString(16),l*2),"hex");this.deriveSharedSecret=function(e){if(!e||!e.P)return false;var t=e.P.multiply(r);return s.from(unstupid(t.getX().toBigInteger().toString(16),l*2),"hex")}}}},function(e,t,i){var n=i(357);var a=i(669);t.sprintf=jsSprintf;t.printf=jsPrintf;t.fprintf=jsFprintf;function jsSprintf(e){var t=["([^%]*)","%","(['\\-+ #0]*?)","([1-9]\\d*)?","(\\.([1-9]\\d*))?","[lhjztL]*?","([diouxXfFeEgGaAcCsSp%jr])"].join("");var i=new RegExp(t);var r=Array.prototype.slice.call(arguments,1);var s=e;var o,u,l,c;var d,p,f,h,m;var b="";var g=1;var y=0;var S;var w;n.equal("string",typeof s,"first argument must be a format string");while((m=i.exec(s))!==null){b+=m[1];s=s.substring(m[0].length);w=m[0].substring(m[1].length);S=y+m[1].length+1;y+=m[0].length;o=m[2]||"";u=m[3]||0;l=m[4]||"";c=m[6];d=false;f=false;p=" ";if(c=="%"){b+="%";continue}if(r.length===0){throw jsError(e,S,w,"has no matching argument "+"(too few arguments passed)")}h=r.shift();g++;if(o.match(/[\' #]/)){throw jsError(e,S,w,"uses unsupported flags")}if(l.length>0){throw jsError(e,S,w,"uses non-zero precision (not supported)")}if(o.match(/-/))d=true;if(o.match(/0/))p="0";if(o.match(/\+/))f=true;switch(c){case"s":if(h===undefined||h===null){throw jsError(e,S,w,"attempted to print undefined or null "+"as a string (argument "+g+" to "+"sprintf)")}b+=doPad(p,u,d,h.toString());break;case"d":h=Math.floor(h);case"f":f=f&&h>0?"+":"";b+=f+doPad(p,u,d,h.toString());break;case"x":b+=doPad(p,u,d,h.toString(16));break;case"j":if(u===0)u=10;b+=a.inspect(h,false,u);break;case"r":b+=dumpException(h);break;default:throw jsError(e,S,w,"is not supported")}}b+=s;return b}function jsError(e,t,i,a){n.equal(typeof e,"string");n.equal(typeof i,"string");n.equal(typeof t,"number");n.equal(typeof a,"string");return new Error('format string "'+e+'": conversion specifier "'+i+'" at character '+t+" "+a)}function jsPrintf(){var e=Array.prototype.slice.call(arguments);e.unshift(process.stdout);jsFprintf.apply(null,e)}function jsFprintf(e){var t=Array.prototype.slice.call(arguments,1);return e.write(jsSprintf.apply(this,t))}function doPad(e,t,i,n){var a=n;while(a.length{const a=e["cmd-path"];const r=e["cmd-args"].split(" ");const s=e["cmd-env"];let o;if(process.platform==="win32"){o=n(a,r,{env:Object.assign({},process.env,s),windowsHide:true,shell:true})}else{o=n(a,r,{env:Object.assign({},process.env,s),windowsHide:true})}let u;try{u=JSON.parse(o.stdout.toString("utf8"))}catch(e){return i(new Error("Failed to run cmd."))}const l=getProperty(e["token-key"].replace(/[{}]+/g,""),u);return t(l)})}}},function(e,t,i){var n=i(602);var a=i(747);n.register("head",_head,{canReceivePipe:true,cmdOptions:{n:"numLines"}});function readSomeLines(e,t){var i=n.buffer();var r=i.length;var s=r;var o=0;var u=a.openSync(e,"r");var l=0;var c="";while(s===r&&l=0&&t<=m}function each(e,t,i){t=optimizeCb(t,i);var n,a;if(isArrayLike(e)){for(n=0,a=e.length;n0?0:s-1;if(!a){n=t[r?r[o]:o];o+=e}for(;o>=0&&o=3;return t(e,optimizeCb(i,a,4),n,r)}}var g=createReduce(1);var y=createReduce(-1);function find(e,t,i){var n=isArrayLike(e)?E:findKey;var a=n(e,t,i);if(a!==void 0&&a!==-1)return e[a]}function filter(e,t,i){var n=[];t=cb(t,i);each(e,function(e,i,a){if(t(e,i,a))n.push(e)});return n}function reject(e,t,i){return filter(e,negate(cb(t)),i)}function every(e,t,i){t=cb(t,i);var n=!isArrayLike(e)&&keys(e),a=(n||e).length;for(var r=0;r=0}var S=restArguments(function(e,t,i){var n,a;if(F(t)){a=t}else if(K(t)){n=t.slice(0,-1);t=t[t.length-1]}return map(e,function(e){var r=a;if(!r){if(n&&n.length){e=deepGet(e,n)}if(e==null)return void 0;r=e[t]}return r==null?r:r.apply(e,i)})});function pluck(e,t){return map(e,property(t))}function where(e,t){return filter(e,matcher(t))}function findWhere(e,t){return find(e,matcher(t))}function max(e,t,i){var n=-Infinity,a=-Infinity,r,s;if(t==null||typeof t=="number"&&typeof e[0]!="object"&&e!=null){e=isArrayLike(e)?e:values(e);for(var o=0,u=e.length;on){n=r}}}else{t=cb(t,i);each(e,function(e,i,r){s=t(e,i,r);if(s>a||s===-Infinity&&n===-Infinity){n=e;a=s}})}return n}function min(e,t,i){var n=Infinity,a=Infinity,r,s;if(t==null||typeof t=="number"&&typeof e[0]!="object"&&e!=null){e=isArrayLike(e)?e:values(e);for(var o=0,u=e.length;on||i===void 0)return 1;if(i0?0:a-1;for(;r>=0&&r0){o=s>=0?s:Math.max(s+u,o)}else{u=s>=0?Math.min(s+1,u):s+u+1}}else if(i&&s&&u){s=i(n,a);return n[s]===a?s:-1}if(a!==a){s=t(r.call(n,o,u),isNaN);return s>=0?s+o:-1}for(s=e>0?o:u-1;s>=0&&st){if(n){clearTimeout(n);n=null}o=l;s=e.apply(a,r);if(!n)a=r=null}else if(!n&&i.trailing!==false){n=setTimeout(u,c)}return s};l.cancel=function(){clearTimeout(n);o=0;n=a=r=null};return l}function debounce(e,t,i){var n,a;var r=function(t,i){n=null;if(i)a=e.apply(t,i)};var s=restArguments(function(s){if(n)clearTimeout(n);if(i){var o=!n;n=setTimeout(r,t);if(o)a=e.apply(this,s)}else{n=I(r,t,this,s)}return a});s.cancel=function(){clearTimeout(n);n=null};return s}function wrap(e,t){return P(t,e)}function negate(e){return function(){return!e.apply(this,arguments)}}function compose(){var e=arguments;var t=e.length-1;return function(){var i=t;var n=e[t].apply(this,arguments);while(i--)n=e[i].call(this,n);return n}}function after(e,t){return function(){if(--e<1){return t.apply(this,arguments)}}}function before(e,t){var i;return function(){if(--e>0){i=t.apply(this,arguments)}if(e<=1)t=null;return i}}var B=P(before,2);var M=!{toString:null}.propertyIsEnumerable("toString");var U=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];function collectNonEnumProps(e,t){var n=U.length;var a=e.constructor;var r=F(a)&&a.prototype||i;var s="constructor";if(_has(e,s)&&!contains(t,s))t.push(s);while(n--){s=U[n];if(s in e&&e[s]!==r[s]&&!contains(t,s)){t.push(s)}}}function keys(e){if(!isObject(e))return[];if(l)return l(e);var t=[];for(var i in e)if(_has(e,i))t.push(i);if(M)collectNonEnumProps(e,t);return t}function allKeys(e){if(!isObject(e))return[];var t=[];for(var i in e)t.push(i);if(M)collectNonEnumProps(e,t);return t}function values(e){var t=keys(e);var i=t.length;var n=Array(i);for(var a=0;a1)n=optimizeCb(n,t[1]);t=allKeys(e)}else{n=keyInObj;t=_flatten(t,false,false);e=Object(e)}for(var a=0,r=t.length;a1)n=t[1]}else{t=map(_flatten(t,false,false),String);i=function(e,i){return!contains(t,i)}}return Q(e,i,n)});var G=createAssigner(allKeys,true);function create(e,t){var i=baseCreate(e);if(t)H(i,t);return i}function clone(e){if(!isObject(e))return e;return K(e)?e.slice():L({},e)}function tap(e,t){t(e);return e}function isMatch(e,t){var i=keys(t),n=i.length;if(e==null)return!n;var a=Object(e);for(var r=0;r":">",'"':""","'":"'","`":"`"};var le=invert(ue);function createEscaper(e){var t=function(t){return e[t]};var i="(?:"+keys(e).join("|")+")";var n=RegExp(i);var a=RegExp(i,"g");return function(e){e=e==null?"":""+e;return n.test(e)?e.replace(a,t):e}}var ce=createEscaper(ue);var de=createEscaper(le);function result(e,t,i){if(!K(t))t=[t];var n=t.length;if(!n){return F(i)?i.call(e):i}for(var a=0;a/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var he=/(.)^/;var me={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"};var be=/\\|'|\r|\n|\u2028|\u2029/g;var ge=function(e){return"\\"+me[e]};function template(e,t,i){if(!t&&i)t=i;t=G({},t,_.templateSettings);var n=RegExp([(t.escape||he).source,(t.interpolate||he).source,(t.evaluate||he).source].join("|")+"|$","g");var a=0;var r="__p+='";e.replace(n,function(t,i,n,s,o){r+=e.slice(a,o).replace(be,ge);a=o+t.length;if(i){r+="'+\n((__t=("+i+"))==null?'':_.escape(__t))+\n'"}else if(n){r+="'+\n((__t=("+n+"))==null?'':__t)+\n'"}else if(s){r+="';\n"+s+"\n__p+='"}return t});r+="';\n";if(!t.variable)r="with(obj||{}){\n"+r+"}\n";r="var __t,__p='',__j=Array.prototype.join,"+"print=function(){__p+=__j.call(arguments,'');};\n"+r+"return __p;\n";var s;try{s=new Function(t.variable||"obj","_",r)}catch(e){e.source=r;throw e}var o=function(e){return s.call(this,e,_)};var u=t.variable||"obj";o.source="function("+u+"){\n"+r+"}";return o}function chain(e){var t=_(e);t._chain=true;return t}function chainResult(e,t){return e._chain?_(t).chain():t}function mixin(e){each(functions(e),function(t){var i=_[t]=e[t];_.prototype[t]=function(){var e=[this._wrapped];a.apply(e,arguments);return chainResult(this,i.apply(_,e))}});return _}each(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var i=t[e];_.prototype[e]=function(){var t=this._wrapped;i.apply(t,arguments);if((e==="shift"||e==="splice")&&t.length===0)delete t[0];return chainResult(this,t)}});each(["concat","join","slice"],function(e){var i=t[e];_.prototype[e]=function(){return chainResult(this,i.apply(this._wrapped,arguments))}});_.prototype.value=function(){return this._wrapped};_.prototype.valueOf=_.prototype.toJSON=_.prototype.value;_.prototype.toString=function(){return String(this._wrapped)};var ye={default:_,VERSION:h,iteratee:iteratee,restArguments:restArguments,each:each,forEach:each,map:map,collect:map,reduce:g,foldl:g,inject:g,reduceRight:y,foldr:y,find:find,detect:find,filter:filter,select:filter,reject:reject,every:every,all:every,some:some,any:some,contains:contains,includes:contains,include:contains,invoke:S,pluck:pluck,where:where,findWhere:findWhere,max:max,min:min,shuffle:shuffle,sample:sample,sortBy:sortBy,groupBy:w,indexBy:v,countBy:z,toArray:toArray,size:size,partition:O,first:first,head:first,take:first,initial:initial,last:last,rest:rest,tail:rest,drop:rest,compact:compact,flatten:flatten,without:k,uniq:uniq,unique:uniq,union:C,intersection:intersection,difference:T,unzip:unzip,zip:R,object:object,findIndex:E,findLastIndex:A,sortedIndex:sortedIndex,indexOf:x,lastIndexOf:N,range:range,chunk:chunk,bind:V,partial:P,bindAll:D,memoize:memoize,delay:I,defer:q,throttle:throttle,debounce:debounce,wrap:wrap,negate:negate,compose:compose,after:after,before:before,once:B,keys:keys,allKeys:allKeys,values:values,mapObject:mapObject,pairs:pairs,invert:invert,functions:functions,methods:functions,extend:L,extendOwn:H,assign:H,findKey:findKey,pick:Q,omit:W,defaults:G,create:create,clone:clone,tap:tap,isMatch:isMatch,isEqual:isEqual,isEmpty:isEmpty,isElement:isElement,isArray:K,isObject:isObject,isArguments:J,isFunction:F,isString:Y,isNumber:X,isDate:Z,isRegExp:$,isError:ee,isSymbol:te,isMap:ie,isWeakMap:ne,isSet:ae,isWeakSet:re,isFinite:isFinite,isNaN:isNaN,isBoolean:isBoolean,isNull:isNull,isUndefined:isUndefined,has:has,identity:identity,constant:constant,noop:noop,property:property,propertyOf:propertyOf,matcher:matcher,matches:matcher,times:times,random:random,now:oe,escape:ce,unescape:de,result:result,uniqueId:uniqueId,templateSettings:fe,template:template,chain:chain,mixin:mixin};var Se=mixin(ye);Se._=Se;return Se})},function(e,t,i){var n=i(157),a=i(147),r=i(939);e.exports=serialOrdered;e.exports.ascending=ascending;e.exports.descending=descending;function serialOrdered(e,t,i,s){var o=a(e,i);n(e,t,o,function iteratorHandler(i,a){if(i){s(i,a);return}o.index++;if(o.index<(o["keyedList"]||e).length){n(e,t,o,iteratorHandler);return}s(null,o.results)});return r.bind(o,s)}function ascending(e,t){return et?1:0}function descending(e,t){return-1*ascending(e,t)}},function(e,t,i){e.exports={read:read,verify:verify,sign:sign,signAsync:signAsync,write:write,fromBuffer:fromBuffer,toBuffer:toBuffer};var n=i(872);var a=i(940);var r=i(373);var s=i(215).Buffer;var o=i(98);var u=i(852);var l=i(502);var c=i(378);var d=i(538);var p=i(575);var f=i(270);var h=i(966);function verify(e,t){return false}var m={user:1,host:2};Object.keys(m).forEach(function(e){m[m[e]]=e});var b=/^ecdsa-sha2-([^@-]+)-cert-v01@openssh.com$/;function read(e,t){if(s.isBuffer(e))e=e.toString("ascii");var i=e.trim().split(/[ \t\n]+/g);if(i.length<2||i.length>3)throw new Error("Not a valid SSH certificate line");var n=i[0];var a=i[1];a=s.from(a,"base64");return fromBuffer(a,n)}function fromBuffer(e,t,i){var r=new a({buffer:e});var s=r.readString();if(t!==undefined&&s!==t)throw new Error("SSH certificate algorithm mismatch");if(t===undefined)t=s;var l={};l.signatures={};l.signatures.openssh={};l.signatures.openssh.nonce=r.readBuffer();var g={};var y=g.parts=[];g.type=getAlg(t);var S=o.info[g.type].parts.length;while(y.length=1,"key must have at least one part");var w=o.info[g.type];if(g.type==="ecdsa"){var v=b.exec(t);n.ok(v!==null);n.strictEqual(v[1],y[0].data.toString())}for(var z=0;z0?g+b:""}},function(e,t,i){const n=i(874);const a=(e,t,i)=>n(e,t,i)<=0;e.exports=a},function(e){e.exports=function(e,t){Object.keys(t).forEach(function(i){e[i]=e[i]||t[i]});return e}},,,function(e,t,i){"use strict";var n=i(623);var a=i(191);function Querystring(e){this.request=e;this.lib=null;this.useQuerystring=null;this.parseOptions=null;this.stringifyOptions=null}Querystring.prototype.init=function(e){if(this.lib){return}this.useQuerystring=e.useQuerystring;this.lib=this.useQuerystring?a:n;this.parseOptions=e.qsParseOptions||{};this.stringifyOptions=e.qsStringifyOptions||{}};Querystring.prototype.stringify=function(e){return this.useQuerystring?this.rfc3986(this.lib.stringify(e,this.stringifyOptions.sep||null,this.stringifyOptions.eq||null,this.stringifyOptions)):this.lib.stringify(e,this.stringifyOptions)};Querystring.prototype.parse=function(e){return this.useQuerystring?this.lib.parse(e,this.parseOptions.sep||null,this.parseOptions.eq||null,this.parseOptions):this.lib.parse(e,this.parseOptions)};Querystring.prototype.rfc3986=function(e){return e.replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})};Querystring.prototype.unescape=a.unescape;t.Querystring=Querystring},function(e){e.exports=require("zlib")},function(e){e.exports={$id:"postData.json#",$schema:"http://json-schema.org/draft-06/schema#",type:"object",optional:true,required:["mimeType"],properties:{mimeType:{type:"string"},text:{type:"string"},params:{type:"array",required:["name"],properties:{name:{type:"string"},value:{type:"string"},fileName:{type:"string"},contentType:{type:"string"},comment:{type:"string"}}},comment:{type:"string"}}}},,,,,function(e,t,i){var n=i(872);var a=i(650);var r=i(669);var s={sha1:true,sha256:true,sha512:true};var o={rsa:true,dsa:true,ecdsa:true};function HttpSignatureError(e,t){if(Error.captureStackTrace)Error.captureStackTrace(this,t||HttpSignatureError);this.message=e;this.name=t.name}r.inherits(HttpSignatureError,Error);function InvalidAlgorithmError(e){HttpSignatureError.call(this,e,InvalidAlgorithmError)}r.inherits(InvalidAlgorithmError,HttpSignatureError);function validateAlgorithm(e){var t=e.toLowerCase().split("-");if(t.length!==2){throw new InvalidAlgorithmError(t[0].toUpperCase()+" is not a "+"valid algorithm")}if(t[0]!=="hmac"&&!o[t[0]]){throw new InvalidAlgorithmError(t[0].toUpperCase()+" type keys "+"are not supported")}if(!s[t[1]]){throw new InvalidAlgorithmError(t[1].toUpperCase()+" is not a "+"supported hash algorithm")}return t}e.exports={HASH_ALGOS:s,PK_ALGOS:o,HttpSignatureError:HttpSignatureError,InvalidAlgorithmError:InvalidAlgorithmError,validateAlgorithm:validateAlgorithm,sshKeyToPEM:function sshKeyToPEM(e){n.string(e,"ssh_key");var t=a.parseKey(e,"ssh");return t.toString("pem")},fingerprint:function fingerprint(e){n.string(e,"ssh_key");var t=a.parseKey(e,"ssh");return t.fingerprint("md5").toString("hex")},pemToRsaSSHKey:function pemToRsaSSHKey(e,t){n.equal("string",typeof e,"typeof pem");var i=a.parseKey(e,"pem");i.comment=t;return i.toString("ssh")}}},function(e,t,i){"use strict";var n=i(43);e.exports=n.DEFAULT=new n({include:[i(723)],explicit:[i(386),i(629),i(352)]})},,,function(e,t,i){"use strict";var n;try{var a=require;n=a("buffer").Buffer}catch(e){}var r=i(945);var s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function resolveYamlBinary(e){if(e===null)return false;var t,i,n=0,a=e.length,r=s;for(i=0;i64)continue;if(t<0)return false;n+=6}return n%8===0}function constructYamlBinary(e){var t,i,a=e.replace(/[\r\n=]/g,""),r=a.length,o=s,u=0,l=[];for(t=0;t>16&255);l.push(u>>8&255);l.push(u&255)}u=u<<6|o.indexOf(a.charAt(t))}i=r%4*6;if(i===0){l.push(u>>16&255);l.push(u>>8&255);l.push(u&255)}else if(i===18){l.push(u>>10&255);l.push(u>>2&255)}else if(i===12){l.push(u>>4&255)}if(n){return n.from?n.from(l):new n(l)}return l}function representYamlBinary(e){var t="",i=0,n,a,r=e.length,o=s;for(n=0;n>18&63];t+=o[i>>12&63];t+=o[i>>6&63];t+=o[i&63]}i=(i<<8)+e[n]}a=r%3;if(a===0){t+=o[i>>18&63];t+=o[i>>12&63];t+=o[i>>6&63];t+=o[i&63]}else if(a===2){t+=o[i>>10&63];t+=o[i>>4&63];t+=o[i<<2&63];t+=o[64]}else if(a===1){t+=o[i>>2&63];t+=o[i<<4&63];t+=o[64];t+=o[64]}return t}function isBinary(e){return n&&n.isBuffer(e)}e.exports=new r("tag:yaml.org,2002:binary",{kind:"scalar",resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary,represent:representYamlBinary})},function(e,t){"use strict";var i=typeof Reflect!=="undefined"?Reflect.construct:undefined;var n=Object.defineProperty;var a=Error.captureStackTrace;if(a===undefined){a=function captureStackTrace(e){var t=new Error;n(e,"stack",{configurable:true,get:function getStack(){var e=t.stack;n(this,"stack",{configurable:true,value:e,writable:true});return e},set:function setStack(t){n(e,"stack",{configurable:true,value:t,writable:true})}})}}function BaseError(e){if(e!==undefined){n(this,"message",{configurable:true,value:e,writable:true})}var t=this.constructor.name;if(t!==undefined&&t!==this.name){n(this,"name",{configurable:true,value:t,writable:true})}a(this,this.constructor)}BaseError.prototype=Object.create(Error.prototype,{constructor:{configurable:true,value:BaseError,writable:true}});var r=function(){function setFunctionName(e,t){return n(e,"name",{configurable:true,value:t})}try{var e=function(){};setFunctionName(e,"foo");if(e.name==="foo"){return setFunctionName}}catch(e){}}();function makeError(e,t){if(t==null||t===Error){t=BaseError}else if(typeof t!=="function"){throw new TypeError("super_ should be a function")}var n;if(typeof e==="string"){n=e;e=i!==undefined?function(){return i(t,arguments,this.constructor)}:function(){t.apply(this,arguments)};if(r!==undefined){r(e,n);n=undefined}}else if(typeof e!=="function"){throw new TypeError("constructor should be either a string or a function")}e.super_=e["super"]=t;var a={constructor:{configurable:true,value:e,writable:true}};if(n!==undefined){a.name={configurable:true,value:n,writable:true}}e.prototype=Object.create(t.prototype,a);return e}t=e.exports=makeError;t.BaseError=BaseError},function(e,t,i){const{diffieHellman:n,KeyObject:a,sign:r,verify:s}=i(373);const[o,u]=process.version.substr(1).split(".").map(e=>parseInt(e,10));e.exports={oaepHashSupported:o>12||o===12&&u>=9,keyObjectSupported:!!a&&o>=12,edDSASupported:!!r&&!!s,dsaEncodingSupported:o>13||o===13&&u>=2||o===12&&u>=16,improvedDH:!!n}},function(e,t,i){"use strict";const n=i(614);const a=i(145);const r=i(534);const s=i(657);const o=i(678);const{HTTPError:u,ParseError:l,ReadError:c}=i(774);const{options:d}=i(821);const{reNormalize:p}=i(523);const f=e=>{const t=new n;const i=new s((i,n,s)=>{const h=o(e);s(h.abort);h.on("response",async s=>{t.emit("response",s);const o=r.null(e.encoding)?a.buffer(s):a(s,e);let m;try{m=await o}catch(t){n(new c(t,e));return}const b=e.followRedirect?299:399;s.body=m;try{for(const[t,i]of Object.entries(e.hooks.afterResponse)){s=await i(s,i=>{i=p(d(e,{...i,retry:0,throwHttpErrors:false}));i.hooks.afterResponse=e.hooks.afterResponse.slice(0,t);return f(i)})}}catch(e){n(e);return}const{statusCode:g}=s;if(e.json&&s.body){try{s.body=JSON.parse(s.body)}catch(t){if(g>=200&&g<300){const i=new l(t,g,e,m);Object.defineProperty(i,"response",{value:s});n(i);return}}}if(g!==304&&(g<200||g>b)){const t=new u(s,e);Object.defineProperty(t,"response",{value:s});if(h.retry(t)===false){if(e.throwHttpErrors){n(t);return}i(s)}return}i(s)});h.once("error",n);["request","redirect","uploadProgress","downloadProgress"].forEach(e=>h.on(e,(...i)=>t.emit(e,...i)))});i.on=((e,n)=>{t.on(e,n);return i});return i};e.exports=f},function(e,t,i){"use strict";const n=i(958);e.exports=(e=>{const t={start:Date.now(),socket:null,lookup:null,connect:null,upload:null,response:null,end:null,error:null,phases:{wait:null,dns:null,tcp:null,request:null,firstByte:null,download:null,total:null}};const i=e=>{const i=e.emit.bind(e);e.emit=((n,...a)=>{if(n==="error"){t.error=Date.now();t.phases.total=t.error-t.start;e.emit=i}return i(n,...a)})};let a=false;const r=()=>{t.upload=Date.now();t.phases.request=t.upload-t.connect};i(e);e.once("socket",e=>{t.socket=Date.now();t.phases.wait=t.socket-t.start;const i=()=>{t.lookup=Date.now();t.phases.dns=t.lookup-t.socket};e.once("lookup",i);n(e,()=>{t.connect=Date.now();if(t.lookup===null){e.removeListener("lookup",i);t.lookup=t.connect;t.phases.dns=t.lookup-t.socket}t.phases.tcp=t.connect-t.lookup;if(a&&!t.upload){r()}})});e.once("finish",()=>{a=true;if(t.connect){r()}});e.once("response",e=>{t.response=Date.now();t.phases.firstByte=t.response-t.upload;i(e);e.once("end",()=>{t.end=Date.now();t.phases.download=t.end-t.response;t.phases.total=t.end-t.start})});return t})},function(e,t,i){const{JOSECritNotUnderstood:n,JWSInvalid:a}=i(466);const r=new Set(["alg","jku","jwk","kid","x5u","x5c","x5t","x5t#S256","typ","cty","crit","enc","zip","epk","apu","apv","iv","tag","p2s","p2c"]);e.exports=function validateCrit(e,t,i,s){if(t&&"crit"in t){if(!Array.isArray(t.crit)||t.crit.length===0||t.crit.some(e=>typeof e!=="string"||!e)){throw new e('"crit" Header Parameter MUST be an array of non-empty strings when present')}const o=new Set(s);const u={...t,...i};t.crit.forEach(i=>{if(r.has(i)){throw new e(`The critical list contains a non-extension Header Parameter ${i}`)}if(!o.has(i)){throw new n(`critical "${i}" is not understood`)}if(i==="b64"){if(!("b64"in t)){throw new a('"b64" critical parameter must be integrity protected')}if(typeof t.b64!=="boolean"){throw new a('"b64" critical parameter must be a boolean')}}else if(!(i in u)){throw new e(`critical parameter "${i}" is missing`)}})}if(i&&"crit"in i){throw new e('"crit" Header Parameter MUST be integrity protected when present')}}},function(e){e.exports={$id:"entry.json#",$schema:"http://json-schema.org/draft-06/schema#",type:"object",optional:true,required:["startedDateTime","time","request","response","cache","timings"],properties:{pageref:{type:"string"},startedDateTime:{type:"string",format:"date-time",pattern:"^(\\d{4})(-)?(\\d\\d)(-)?(\\d\\d)(T)?(\\d\\d)(:)?(\\d\\d)(:)?(\\d\\d)(\\.\\d+)?(Z|([+-])(\\d\\d)(:)?(\\d\\d))"},time:{type:"number",min:0},request:{$ref:"request.json#"},response:{$ref:"response.json#"},cache:{$ref:"cache.json#"},timings:{$ref:"timings.json#"},serverIPAddress:{type:"string",oneOf:[{format:"ipv4"},{format:"ipv6"}]},connection:{type:"string"},comment:{type:"string"}}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=i(422);const a=i(695);class ListWatch{constructor(e,t,i,n=true){this.path=e;this.watch=t;this.listFn=i;this.objects=[];this.indexCache={};this.callbackCache={};this.watch=t;this.listFn=i;if(n){this.doneHandler(null)}}start(){this.doneHandler(null)}on(e,t){if(e!==a.ADD&&e!==a.UPDATE&&e!==a.DELETE){throw new Error(`Unknown verb: ${e}`)}if(!this.callbackCache[e]){this.callbackCache[e]=[]}this.callbackCache[e].push(t)}get(e,t){return this.objects.find(i=>{return i.metadata.name===e&&(!t||i.metadata.namespace===t)})}list(e){if(!e){return this.objects}return this.indexCache[e]}doneHandler(e){return n.__awaiter(this,void 0,void 0,function*(){const e=this.listFn();const t=yield e;const i=t.body;deleteItems(this.objects,i.items,this.callbackCache[a.DELETE]);this.addOrUpdateItems(i.items);this.watch.watch(this.path,{resourceVersion:i.metadata.resourceVersion},this.watchHandler.bind(this),this.doneHandler.bind(this))})}addOrUpdateItems(e){e.forEach(e=>{addOrUpdateObject(this.objects,e,this.callbackCache[a.ADD],this.callbackCache[a.UPDATE]);if(e.metadata.namespace){this.indexObj(e)}})}indexObj(e){let t=this.indexCache[e.metadata.namespace];if(!t){t=[];this.indexCache[e.metadata.namespace]=t}addOrUpdateObject(t,e)}watchHandler(e,t){switch(e){case"ADDED":case"MODIFIED":addOrUpdateObject(this.objects,t,this.callbackCache[a.ADD],this.callbackCache[a.UPDATE]);if(t.metadata.namespace){this.indexObj(t)}break;case"DELETED":deleteObject(this.objects,t,this.callbackCache[a.DELETE]);if(t.metadata.namespace){const e=this.indexCache[t.metadata.namespace];if(e){deleteObject(e,t)}}break}}}t.ListWatch=ListWatch;function deleteItems(e,t,i){return e.filter(e=>{if(findKubernetesObject(t,e)===-1){if(i){i.forEach(t=>t(e))}return false}return true})}t.deleteItems=deleteItems;function addOrUpdateObject(e,t,i,n){const a=findKubernetesObject(e,t);if(a===-1){e.push(t);if(i){i.forEach(e=>e(t))}}else{e[a]=t;if(n){n.forEach(e=>e(t))}}}t.addOrUpdateObject=addOrUpdateObject;function isSameObject(e,t){return e.metadata.name===t.metadata.name&&e.metadata.namespace===t.metadata.namespace}function findKubernetesObject(e,t){return e.findIndex(e=>{return isSameObject(e,t)})}function deleteObject(e,t,i){const n=findKubernetesObject(e,t);if(n!==-1){e.splice(n,1);if(i){i.forEach(e=>e(t))}}}t.deleteObject=deleteObject},function(e,t,i){"use strict";var n=i(945);e.exports=new n("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})},,function(e,t,i){const{getCurves:n}=i(373);const{name:a}=i(997);const r=new Set;if(n().includes("prime256v1")){r.add("P-256")}if(n().includes("secp256k1")){r.add(a)}if(n().includes("secp384r1")){r.add("P-384")}if(n().includes("secp521r1")){r.add("P-521")}e.exports=r},,function(e,t,i){"use strict";const n=i(614);const a=i(211);const r=i(363);const s=i(631);const o=i(818);const{randomBytes:u,createHash:l}=i(373);const{URL:c}=i(835);const d=i(850);const p=i(954);const f=i(118);const{BINARY_TYPES:h,EMPTY_BUFFER:m,GUID:b,kStatusCode:g,kWebSocket:y,NOOP:S}=i(60);const{addEventListener:w,removeEventListener:v}=i(440);const{format:z,parse:j}=i(271);const{toBuffer:O}=i(676);const k=["CONNECTING","OPEN","CLOSING","CLOSED"];const C=[8,13];const T=30*1e3;class WebSocket extends n{constructor(e,t,i){super();this.readyState=WebSocket.CONNECTING;this.protocol="";this._binaryType=h[0];this._closeFrameReceived=false;this._closeFrameSent=false;this._closeMessage="";this._closeTimer=null;this._closeCode=1006;this._extensions={};this._receiver=null;this._sender=null;this._socket=null;if(e!==null){this._bufferedAmount=0;this._isServer=false;this._redirects=0;if(Array.isArray(t)){t=t.join(", ")}else if(typeof t==="object"&&t!==null){i=t;t=undefined}initAsClient(this,e,t,i)}else{this._isServer=true}}get CONNECTING(){return WebSocket.CONNECTING}get CLOSING(){return WebSocket.CLOSING}get CLOSED(){return WebSocket.CLOSED}get OPEN(){return WebSocket.OPEN}get binaryType(){return this._binaryType}set binaryType(e){if(!h.includes(e))return;this._binaryType=e;if(this._receiver)this._receiver._binaryType=e}get bufferedAmount(){if(!this._socket)return this._bufferedAmount;return this._socket._writableState.length+this._sender._bufferedBytes}get extensions(){return Object.keys(this._extensions).join()}setSocket(e,t,i){const n=new p(this._binaryType,this._extensions,this._isServer,i);this._sender=new f(e,this._extensions);this._receiver=n;this._socket=e;n[y]=this;e[y]=this;n.on("conclude",receiverOnConclude);n.on("drain",receiverOnDrain);n.on("error",receiverOnError);n.on("message",receiverOnMessage);n.on("ping",receiverOnPing);n.on("pong",receiverOnPong);e.setTimeout(0);e.setNoDelay();if(t.length>0)e.unshift(t);e.on("close",socketOnClose);e.on("data",socketOnData);e.on("end",socketOnEnd);e.on("error",socketOnError);this.readyState=WebSocket.OPEN;this.emit("open")}emitClose(){if(!this._socket){this.readyState=WebSocket.CLOSED;this.emit("close",this._closeCode,this._closeMessage);return}if(this._extensions[d.extensionName]){this._extensions[d.extensionName].cleanup()}this._receiver.removeAllListeners();this.readyState=WebSocket.CLOSED;this.emit("close",this._closeCode,this._closeMessage)}close(e,t){if(this.readyState===WebSocket.CLOSED)return;if(this.readyState===WebSocket.CONNECTING){const e="WebSocket was closed before the connection was established";return abortHandshake(this,this._req,e)}if(this.readyState===WebSocket.CLOSING){if(this._closeFrameSent&&this._closeFrameReceived)this._socket.end();return}this.readyState=WebSocket.CLOSING;this._sender.close(e,t,!this._isServer,e=>{if(e)return;this._closeFrameSent=true;if(this._closeFrameReceived)this._socket.end()});this._closeTimer=setTimeout(this._socket.destroy.bind(this._socket),T)}ping(e,t,i){if(this.readyState===WebSocket.CONNECTING){throw new Error("WebSocket is not open: readyState 0 (CONNECTING)")}if(typeof e==="function"){i=e;e=t=undefined}else if(typeof t==="function"){i=t;t=undefined}if(typeof e==="number")e=e.toString();if(this.readyState!==WebSocket.OPEN){sendAfterClose(this,e,i);return}if(t===undefined)t=!this._isServer;this._sender.ping(e||m,t,i)}pong(e,t,i){if(this.readyState===WebSocket.CONNECTING){throw new Error("WebSocket is not open: readyState 0 (CONNECTING)")}if(typeof e==="function"){i=e;e=t=undefined}else if(typeof t==="function"){i=t;t=undefined}if(typeof e==="number")e=e.toString();if(this.readyState!==WebSocket.OPEN){sendAfterClose(this,e,i);return}if(t===undefined)t=!this._isServer;this._sender.pong(e||m,t,i)}send(e,t,i){if(this.readyState===WebSocket.CONNECTING){throw new Error("WebSocket is not open: readyState 0 (CONNECTING)")}if(typeof t==="function"){i=t;t={}}if(typeof e==="number")e=e.toString();if(this.readyState!==WebSocket.OPEN){sendAfterClose(this,e,i);return}const n={binary:typeof e!=="string",mask:!this._isServer,compress:true,fin:true,...t};if(!this._extensions[d.extensionName]){n.compress=false}this._sender.send(e||m,n,i)}terminate(){if(this.readyState===WebSocket.CLOSED)return;if(this.readyState===WebSocket.CONNECTING){const e="WebSocket was closed before the connection was established";return abortHandshake(this,this._req,e)}if(this._socket){this.readyState=WebSocket.CLOSING;this._socket.destroy()}}}k.forEach((e,t)=>{WebSocket[e]=t});["open","error","close","message"].forEach(e=>{Object.defineProperty(WebSocket.prototype,`on${e}`,{get(){const t=this.listeners(e);for(let e=0;e{abortHandshake(e,S,"Opening handshake has timed out")})}S.on("error",t=>{if(e._req.aborted)return;S=e._req=null;e.readyState=WebSocket.CLOSING;e.emit("error",t);e.emitClose()});S.on("response",a=>{const r=a.headers.location;const o=a.statusCode;if(r&&s.followRedirects&&o>=300&&o<400){if(++e._redirects>s.maxRedirects){abortHandshake(e,S,"Maximum redirects exceeded");return}S.abort();const a=new c(r,t);initAsClient(e,a,i,n)}else if(!e.emit("unexpected-response",S,a)){abortHandshake(e,S,`Unexpected server response: ${a.statusCode}`)}});S.on("upgrade",(t,n,a)=>{e.emit("upgrade",t);if(e.readyState!==WebSocket.CONNECTING)return;S=e._req=null;const r=l("sha1").update(m+b).digest("base64");if(t.headers["sec-websocket-accept"]!==r){abortHandshake(e,n,"Invalid Sec-WebSocket-Accept header");return}const o=t.headers["sec-websocket-protocol"];const u=(i||"").split(/, */);let c;if(!i&&o){c="Server sent a subprotocol but none was requested"}else if(i&&!o){c="Server sent no subprotocol"}else if(o&&!u.includes(o)){c="Server sent an invalid subprotocol"}if(c){abortHandshake(e,n,c);return}if(o)e.protocol=o;if(y){try{const i=j(t.headers["sec-websocket-extensions"]);if(i[d.extensionName]){y.accept(i[d.extensionName]);e._extensions[d.extensionName]=y}}catch(t){abortHandshake(e,n,"Invalid Sec-WebSocket-Extensions header");return}}e.setSocket(n,a,s.maxPayload)})}function netConnect(e){e.path=e.socketPath;return s.connect(e)}function tlsConnect(e){e.path=undefined;if(!e.servername&&e.servername!==""){e.servername=e.host}return o.connect(e)}function abortHandshake(e,t,i){e.readyState=WebSocket.CLOSING;const n=new Error(i);Error.captureStackTrace(n,abortHandshake);if(t.setHeader){t.abort();t.once("abort",e.emitClose.bind(e));e.emit("error",n)}else{t.destroy(n);t.once("error",e.emit.bind(e,"error"));t.once("close",e.emitClose.bind(e))}}function sendAfterClose(e,t,i){if(t){const i=O(t).length;if(e._socket)e._sender._bufferedBytes+=i;else e._bufferedAmount+=i}if(i){const t=new Error(`WebSocket is not open: readyState ${e.readyState} `+`(${k[e.readyState]})`);i(t)}}function receiverOnConclude(e,t){const i=this[y];i._socket.removeListener("data",socketOnData);i._socket.resume();i._closeFrameReceived=true;i._closeMessage=t;i._closeCode=e;if(e===1005)i.close();else i.close(e,t)}function receiverOnDrain(){this[y]._socket.resume()}function receiverOnError(e){const t=this[y];t._socket.removeListener("data",socketOnData);t.readyState=WebSocket.CLOSING;t._closeCode=e[g];t.emit("error",e);t._socket.destroy()}function receiverOnFinish(){this[y].emitClose()}function receiverOnMessage(e){this[y].emit("message",e)}function receiverOnPing(e){const t=this[y];t.pong(e,!t._isServer,S);t.emit("ping",e)}function receiverOnPong(e){this[y].emit("pong",e)}function socketOnClose(){const e=this[y];this.removeListener("close",socketOnClose);this.removeListener("end",socketOnEnd);e.readyState=WebSocket.CLOSING;e._socket.read();e._receiver.end();this.removeListener("data",socketOnData);this[y]=undefined;clearTimeout(e._closeTimer);if(e._receiver._writableState.finished||e._receiver._writableState.errorEmitted){e.emitClose()}else{e._receiver.on("error",receiverOnFinish);e._receiver.on("finish",receiverOnFinish)}}function socketOnData(e){if(!this[y]._receiver.write(e)){this.pause()}}function socketOnEnd(){const e=this[y];e.readyState=WebSocket.CLOSING;e._receiver.end();this.end()}function socketOnError(){const e=this[y];this.removeListener("error",socketOnError);this.on("error",S);if(e){e.readyState=WebSocket.CLOSING;this.destroy()}}},function(e,t,i){const{deprecate:n,inspect:a}=i(669);const r=i(274);const{generate:s,generateSync:o}=i(626);const{USES_MAPPING:u}=i(771);const{isKey:l,asKey:c}=i(715);const d=(e,{alg:t,use:i,ops:n})=>{let a=0;if(t&&e.alg){a++}if(i&&e.use){a++}if(n&&e.key_ops){a++}return a};class KeyStore{constructor(...e){while(e.some(Array.isArray)){e=e.flat?e.flat():e.reduce((e,t)=>{if(Array.isArray(t)){return[...e,...t]}e.push(t);return e},[])}if(e.some(e=>!l(e)||!e.kty)){throw new TypeError("all keys must be instances of a key instantiated by JWK.asKey")}this._keys=new Set(e)}all({alg:e,kid:t,thumbprint:i,use:n,kty:a,key_ops:r,x5t:s,"x5t#S256":o,crv:l}={}){if(r!==undefined&&(!Array.isArray(r)||!r.length||r.some(e=>typeof e!=="string"))){throw new TypeError("`key_ops` must be a non-empty array of strings")}const c={alg:e,use:n,ops:r};return[...this._keys].filter(c=>{let d=true;if(d&&t!==undefined&&c.kid!==t){d=false}if(d&&i!==undefined&&c.thumbprint!==i){d=false}if(d&&s!==undefined&&c.x5t!==s){d=false}if(d&&o!==undefined&&c["x5t#S256"]!==o){d=false}if(d&&a!==undefined&&c.kty!==a){d=false}if(d&&l!==undefined&&c.crv!==l){d=false}if(e!==undefined&&!c.algorithms().has(e)){d=false}if(d&&n!==undefined&&(c.use!==undefined&&c.use!==n)){d=false}if(d&&r!==undefined&&(c.key_ops!==undefined||c.use!==undefined)){let e;if(c.key_ops){e=new Set(c.key_ops)}else{e=u[c.use]}if(r.some(t=>!e.has(t))){d=false}}return d}).sort((e,t)=>d(t,c)-d(e,c))}get(...e){return this.all(...e)[0]}add(e){if(!l(e)||!e.kty){throw new TypeError("key must be an instance of a key instantiated by JWK.asKey")}this._keys.add(e)}remove(e){if(!l(e)){throw new TypeError("key must be an instance of a key instantiated by JWK.asKey")}this._keys.delete(e)}toJWKS(e=false){return{keys:[...this._keys.values()].map(t=>t.toJWK(e&&(t.private||t.secret&&t.k)))}}async generate(...e){this._keys.add(await s(...e))}generateSync(...e){this._keys.add(o(...e))}get size(){return this._keys.size}[a.custom](){return`${this.constructor.name} ${a(this.toJWKS(false),{depth:Infinity,colors:process.stdout.isTTY,compact:false,sorted:true})}`}*[Symbol.iterator](){for(const e of this._keys){yield e}}}function asKeyStore(e,{ignoreErrors:t=false,calculateMissingRSAPrimes:i=false}={}){if(!r(e)||!Array.isArray(e.keys)||e.keys.some(e=>!r(e)||!("kty"in e))){throw new TypeError("jwks must be a JSON Web Key Set formatted object")}const n=e.keys.map(e=>{try{return c(e,{calculateMissingRSAPrimes:i})}catch(e){if(!t){throw e}}}).filter(Boolean);return new KeyStore(...n)}Object.defineProperty(KeyStore,"fromJWKS",{value:n(e=>asKeyStore(e,{calculateMissingRSAPrimes:true}),"JWKS.KeyStore.fromJWKS() is deprecated, use JWKS.asKeyStore() instead"),enumerable:false});e.exports={KeyStore:KeyStore,asKeyStore:asKeyStore}},,function(e,t,i){const n=i(65);const a=(e,t,i,a)=>{if(typeof i==="string"){a=i;i=undefined}try{return new n(e,i).inc(t,a).version}catch(e){return null}};e.exports=a},,,function(e,t,i){const n=i(150);const a=i(331);const r=i(745);const s=i(203);e.exports={decode:n,sign:a,verify:r,...s}},,function(e,t,i){const n=i(549);const a=i(295);class TokenSet{constructor(e){Object.assign(this,e)}set expires_in(e){this.expires_at=a()+Number(e)}get expires_in(){return Math.max.apply(null,[this.expires_at-a(),0])}expired(){return this.expires_in===0}claims(){if(!this.id_token){throw new TypeError("id_token not present in TokenSet")}return JSON.parse(n.decode(this.id_token.split(".")[1]))}}e.exports=TokenSet},function(e){e.exports={sign:new Map,verify:new Map,keyManagementEncrypt:new Map,keyManagementDecrypt:new Map,encrypt:new Map,decrypt:new Map}},,function(e,t,i){var n=i(602);n.register("set",_set,{allowGlobbing:false,wrapOutput:false});function _set(e){if(!e){var t=[].slice.call(arguments,0);if(t.length<2)n.error("must provide an argument");e=t[1]}var i=e[0]==="+";if(i){e="-"+e.slice(1)}e=n.parseOptions(e,{e:"fatal",v:"verbose",f:"noglob"});if(i){Object.keys(e).forEach(function(t){e[t]=!e[t]})}Object.keys(e).forEach(function(t){if(i!==e[t]){n.config[t]=e[t]}});return}e.exports=_set},,,function(e,t,i){var n=i(566),a=i(751);e.exports=terminator;function terminator(e){if(!Object.keys(this.jobs).length){return}this.index=this.size;n(this);a(e)(null,this.results)}},function(e,t,i){e.exports=SSHBuffer;var n=i(872);var a=i(215).Buffer;function SSHBuffer(e){n.object(e,"options");if(e.buffer!==undefined)n.buffer(e.buffer,"options.buffer");this._size=e.buffer?e.buffer.length:1024;this._buffer=e.buffer||a.alloc(this._size);this._offset=0}SSHBuffer.prototype.toBuffer=function(){return this._buffer.slice(0,this._offset)};SSHBuffer.prototype.atEnd=function(){return this._offset>=this._buffer.length};SSHBuffer.prototype.remainder=function(){return this._buffer.slice(this._offset)};SSHBuffer.prototype.skip=function(e){this._offset+=e};SSHBuffer.prototype.expand=function(){this._size*=2;var e=a.alloc(this._size);this._buffer.copy(e,0);this._buffer=e};SSHBuffer.prototype.readPart=function(){return{data:this.readBuffer()}};SSHBuffer.prototype.readBuffer=function(){var e=this._buffer.readUInt32BE(this._offset);this._offset+=4;n.ok(this._offset+e<=this._buffer.length,"length out of bounds at +0x"+this._offset.toString(16)+" (data truncated?)");var t=this._buffer.slice(this._offset,this._offset+e);this._offset+=e;return t};SSHBuffer.prototype.readString=function(){return this.readBuffer().toString()};SSHBuffer.prototype.readCString=function(){var e=this._offset;while(ethis._size)this.expand();this._buffer.writeUInt32BE(e.length,this._offset);this._offset+=4;e.copy(this._buffer,this._offset);this._offset+=e.length};SSHBuffer.prototype.writeString=function(e){this.writeBuffer(a.from(e,"utf8"))};SSHBuffer.prototype.writeCString=function(e){while(this._offset+1+e.length>this._size)this.expand();this._buffer.write(e,this._offset);this._offset+=e.length;this._buffer[this._offset++]=0};SSHBuffer.prototype.writeInt=function(e){while(this._offset+4>this._size)this.expand();this._buffer.writeUInt32BE(e,this._offset);this._offset+=4};SSHBuffer.prototype.writeInt64=function(e){n.buffer(e,"value");if(e.length>8){var t=e.slice(0,e.length-8);for(var i=0;ithis._size)this.expand();e.copy(this._buffer,this._offset);this._offset+=8};SSHBuffer.prototype.writeChar=function(e){while(this._offset+1>this._size)this.expand();this._buffer[this._offset++]=e};SSHBuffer.prototype.writePart=function(e){this.writeBuffer(e.data)};SSHBuffer.prototype.write=function(e){while(this._offset+e.length>this._size)this.expand();e.copy(this._buffer,this._offset);this._offset+=e.length}},,function(e,t,i){var n=i(373),a=i(835).parse;var r=["acl","location","logging","notification","partNumber","policy","requestPayment","torrent","uploadId","uploads","versionId","versioning","versions","website"];function authorization(e){return"AWS "+e.key+":"+sign(e)}e.exports=authorization;e.exports.authorization=authorization;function hmacSha1(e){return n.createHmac("sha1",e.secret).update(e.message).digest("base64")}e.exports.hmacSha1=hmacSha1;function sign(e){e.message=stringToSign(e);return hmacSha1(e)}e.exports.sign=sign;function signQuery(e){e.message=queryStringToSign(e);return hmacSha1(e)}e.exports.signQuery=signQuery;function stringToSign(e){var t=e.amazonHeaders||"";if(t)t+="\n";var i=[e.verb,e.md5,e.contentType,e.date?e.date.toUTCString():"",t+e.resource];return i.join("\n")}e.exports.stringToSign=stringToSign;function queryStringToSign(e){return"GET\n\n\n"+e.date+"\n"+e.resource}e.exports.queryStringToSign=queryStringToSign;function canonicalizeHeaders(e){var t=[],i=Object.keys(e);for(var n=0,a=i.length;n{let d;if(typeof t==="string"){d=normalizeUrlObject(a.parse(t));t={}}else if(t instanceof a.URL){d=normalizeUrlObject(a.parse(t.toString()));t={}}else{const[e,...i]=(t.path||"").split("?");const n=i.length>0?`?${i.join("?")}`:"";d=normalizeUrlObject({...t,pathname:e,search:n})}t={headers:{},method:"GET",cache:true,strictTtl:false,automaticFailover:false,...t,...urlObjectToRequestOptions(d)};t.headers=l(t.headers);const p=new n;const f=r(a.format(d),{stripWWW:false,removeTrailingSlash:false,stripAuthentication:false});const h=`${t.method}:${f}`;let m=false;let b=false;const g=t=>{b=true;let n=false;let a;const r=new Promise(e=>{a=(()=>{if(!n){n=true;e()}})});const l=e=>{if(m&&!t.forceRefresh){e.status=e.statusCode;const i=o.fromObject(m.cachePolicy).revalidatedPolicy(t,e);if(!i.modified){const t=i.policy.responseHeaders();e=new u(m.statusCode,t,m.body,m.url);e.cachePolicy=i.policy;e.fromCache=true}}if(!e.fromCache){e.cachePolicy=new o(t,e,t);e.fromCache=false}let a;if(t.cache&&e.cachePolicy.storable()){a=c(e);(async()=>{try{const i=s.buffer(e);await Promise.race([r,new Promise(t=>e.once("end",t))]);if(n){return}const a=await i;const o={cachePolicy:e.cachePolicy.toObject(),url:e.url,statusCode:e.fromCache?m.statusCode:e.statusCode,body:a};let u=t.strictTtl?e.cachePolicy.timeToLive():undefined;if(t.maxTtl){u=u?Math.min(u,t.maxTtl):t.maxTtl}await this.cache.set(h,o,u)}catch(e){p.emit("error",new CacheableRequest.CacheError(e))}})()}else if(t.cache&&m){(async()=>{try{await this.cache.delete(h)}catch(e){p.emit("error",new CacheableRequest.CacheError(e))}})()}p.emit("response",a||e);if(typeof i==="function"){i(a||e)}};try{const i=e(t,l);i.once("error",a);i.once("abort",a);p.emit("request",i)}catch(e){p.emit("error",new CacheableRequest.RequestError(e))}};(async()=>{const e=async e=>{await Promise.resolve();const t=e.cache?await this.cache.get(h):undefined;if(typeof t==="undefined"){return g(e)}const n=o.fromObject(t.cachePolicy);if(n.satisfiesWithoutRevalidation(e)&&!e.forceRefresh){const e=n.responseHeaders();const a=new u(t.statusCode,e,t.body,t.url);a.cachePolicy=n;a.fromCache=true;p.emit("response",a);if(typeof i==="function"){i(a)}}else{m=t;e.headers=n.revalidationHeaders(e);g(e)}};const n=e=>p.emit("error",new CacheableRequest.CacheError(e));this.cache.once("error",n);p.on("response",()=>this.cache.removeListener("error",n));try{await e(t)}catch(e){if(t.automaticFailover&&!b){g(t)}p.emit("error",new CacheableRequest.CacheError(e))}})();return p}}}function urlObjectToRequestOptions(e){const t={...e};t.path=`${e.pathname||"/"}${e.search||""}`;delete t.pathname;delete t.search;return t}function normalizeUrlObject(e){return{protocol:e.protocol,auth:e.auth,hostname:e.hostname||e.host||"localhost",port:e.port,pathname:e.pathname,search:e.search}}CacheableRequest.RequestError=class extends Error{constructor(e){super(e.message);this.name="RequestError";Object.assign(this,e)}};CacheableRequest.CacheError=class extends Error{constructor(e){super(e.message);this.name="CacheError";Object.assign(this,e)}};e.exports=CacheableRequest},function(e,t,i){"use strict";var n=i(945);var a=Object.prototype.toString;function resolveYamlPairs(e){if(e===null)return true;var t,i,n,r,s,o=e;s=new Array(o.length);for(t=0,i=o.length;t=i.length){t.set(this._buffers.shift(),n)}else{t.set(new Uint8Array(i.buffer,i.byteOffset,e),n);this._buffers[0]=i.slice(e)}e-=i.length}while(e>0);return t}startLoop(e){let t;this._loop=true;do{switch(this._state){case h:t=this.getInfo();break;case m:t=this.getPayloadLength16();break;case b:t=this.getPayloadLength64();break;case g:this.getMask();break;case y:t=this.getData(e);break;default:this._loop=false;return}}while(this._loop);e(t)}getInfo(){if(this._bufferedBytes<2){this._loop=false;return}const e=this.consume(2);if((e[0]&48)!==0){this._loop=false;return error(RangeError,"RSV2 and RSV3 must be clear",true,1002)}const t=(e[0]&64)===64;if(t&&!this._extensions[a.extensionName]){this._loop=false;return error(RangeError,"RSV1 must be clear",true,1002)}this._fin=(e[0]&128)===128;this._opcode=e[0]&15;this._payloadLength=e[1]&127;if(this._opcode===0){if(t){this._loop=false;return error(RangeError,"RSV1 must be clear",true,1002)}if(!this._fragmented){this._loop=false;return error(RangeError,"invalid opcode 0",true,1002)}this._opcode=this._fragmented}else if(this._opcode===1||this._opcode===2){if(this._fragmented){this._loop=false;return error(RangeError,`invalid opcode ${this._opcode}`,true,1002)}this._compressed=t}else if(this._opcode>7&&this._opcode<11){if(!this._fin){this._loop=false;return error(RangeError,"FIN must be set",true,1002)}if(t){this._loop=false;return error(RangeError,"RSV1 must be clear",true,1002)}if(this._payloadLength>125){this._loop=false;return error(RangeError,`invalid payload length ${this._payloadLength}`,true,1002)}}else{this._loop=false;return error(RangeError,`invalid opcode ${this._opcode}`,true,1002)}if(!this._fin&&!this._fragmented)this._fragmented=this._opcode;this._masked=(e[1]&128)===128;if(this._isServer){if(!this._masked){this._loop=false;return error(RangeError,"MASK must be set",true,1002)}}else if(this._masked){this._loop=false;return error(RangeError,"MASK must be clear",true,1002)}if(this._payloadLength===126)this._state=m;else if(this._payloadLength===127)this._state=b;else return this.haveLength()}getPayloadLength16(){if(this._bufferedBytes<2){this._loop=false;return}this._payloadLength=this.consume(2).readUInt16BE(0);return this.haveLength()}getPayloadLength64(){if(this._bufferedBytes<8){this._loop=false;return}const e=this.consume(8);const t=e.readUInt32BE(0);if(t>Math.pow(2,53-32)-1){this._loop=false;return error(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",false,1009)}this._payloadLength=t*Math.pow(2,32)+e.readUInt32BE(4);return this.haveLength()}haveLength(){if(this._payloadLength&&this._opcode<8){this._totalPayloadLength+=this._payloadLength;if(this._totalPayloadLength>this._maxPayload&&this._maxPayload>0){this._loop=false;return error(RangeError,"Max payload size exceeded",false,1009)}}if(this._masked)this._state=g;else this._state=y}getMask(){if(this._bufferedBytes<4){this._loop=false;return}this._mask=this.consume(4);this._state=y}getData(e){let t=s;if(this._payloadLength){if(this._bufferedBytes7)return this.controlMessage(t);if(this._compressed){this._state=S;this.decompress(t,e);return}if(t.length){this._messageLength=this._totalPayloadLength;this._fragments.push(t)}return this.dataMessage()}decompress(e,t){const i=this._extensions[a.extensionName];i.decompress(e,this._fin,(e,i)=>{if(e)return t(e);if(i.length){this._messageLength+=i.length;if(this._messageLength>this._maxPayload&&this._maxPayload>0){return t(error(RangeError,"Max payload size exceeded",false,1009))}this._fragments.push(i)}const n=this.dataMessage();if(n)return t(n);this.startLoop(t)})}dataMessage(){if(this._fin){const e=this._messageLength;const t=this._fragments;this._totalPayloadLength=0;this._messageLength=0;this._fragmented=0;this._fragments=[];if(this._opcode===2){let i;if(this._binaryType==="nodebuffer"){i=l(t,e)}else if(this._binaryType==="arraybuffer"){i=c(l(t,e))}else{i=t}this.emit("message",i)}else{const i=l(t,e);if(!f(i)){this._loop=false;return error(Error,"invalid UTF-8 sequence",true,1007)}this.emit("message",i.toString())}}this._state=h}controlMessage(e){if(this._opcode===8){this._loop=false;if(e.length===0){this.emit("conclude",1005,"");this.end()}else if(e.length===1){return error(RangeError,"invalid payload length 1",true,1002)}else{const t=e.readUInt16BE(0);if(!p(t)){return error(RangeError,`invalid status code ${t}`,true,1002)}const i=e.slice(2);if(!f(i)){return error(Error,"invalid UTF-8 sequence",true,1007)}this.emit("conclude",t,i.toString());this.end()}}else if(this._opcode===9){this.emit("ping",e)}else{this.emit("pong",e)}this._state=h}}e.exports=Receiver;function error(e,t,i,n){const a=new e(i?`Invalid WebSocket frame: ${t}`:t);Error.captureStackTrace(a,error);a[o]=n;return a}},function(e,t,i){"use strict";var n=i(855);e.exports=SchemaObject;function SchemaObject(e){n.copy(e,this)}},function(e,t,i){var n=i(872);var a=i(669);var r=i(887);var s=i(286).isError;var o=r.sprintf;e.exports=VError;VError.VError=VError;VError.SError=SError;VError.WError=WError;VError.MultiError=MultiError;function parseConstructorArguments(e){var t,i,a,r,u;n.object(e,"args");n.bool(e.strict,"args.strict");n.array(e.argv,"args.argv");t=e.argv;if(t.length===0){i={};a=[]}else if(s(t[0])){i={cause:t[0]};a=t.slice(1)}else if(typeof t[0]==="object"){i={};for(u in t[0]){i[u]=t[0][u]}a=t.slice(1)}else{n.string(t[0],"first argument to VError, SError, or WError "+"constructor must be a string, object, or Error");i={};a=t}n.object(i);if(!i.strict&&!e.strict){a=a.map(function(e){return e===null?"null":e===undefined?"undefined":e})}if(a.length===0){r=""}else{r=o.apply(null,a)}return{options:i,shortmessage:r}}function VError(){var e,t,i,a,r,o,u;e=Array.prototype.slice.call(arguments,0);if(!(this instanceof VError)){t=Object.create(VError.prototype);VError.apply(t,arguments);return t}i=parseConstructorArguments({argv:e,strict:false});if(i.options.name){n.string(i.options.name,'error\'s "name" must be a string');this.name=i.options.name}this.jse_shortmsg=i.shortmessage;o=i.shortmessage;a=i.options.cause;if(a){n.ok(s(a),"cause is not an Error");this.jse_cause=a;if(!i.options.skipCauseMessage){o+=": "+a.message}}this.jse_info={};if(i.options.info){for(u in i.options.info){this.jse_info[u]=i.options.info[u]}}this.message=o;Error.call(this,o);if(Error.captureStackTrace){r=i.options.constructorOpt||this.constructor;Error.captureStackTrace(this,r)}return this}a.inherits(VError,Error);VError.prototype.name="VError";VError.prototype.toString=function ve_toString(){var e=this.hasOwnProperty("name")&&this.name||this.constructor.name||this.constructor.prototype.name;if(this.message)e+=": "+this.message;return e};VError.prototype.cause=function ve_cause(){var e=VError.cause(this);return e===null?undefined:e};VError.cause=function(e){n.ok(s(e),"err must be an Error");return s(e.jse_cause)?e.jse_cause:null};VError.info=function(e){var t,i,a;n.ok(s(e),"err must be an Error");i=VError.cause(e);if(i!==null){t=VError.info(i)}else{t={}}if(typeof e.jse_info=="object"&&e.jse_info!==null){for(a in e.jse_info){t[a]=e.jse_info[a]}}return t};VError.findCauseByName=function(e,t){var i;n.ok(s(e),"err must be an Error");n.string(t,"name");n.ok(t.length>0,"name cannot be empty");for(i=e;i!==null;i=VError.cause(i)){n.ok(s(i));if(i.name==t){return i}}return null};VError.hasCauseWithName=function(e,t){return VError.findCauseByName(e,t)!==null};VError.fullStack=function(e){n.ok(s(e),"err must be an Error");var t=VError.cause(e);if(t){return e.stack+"\ncaused by: "+VError.fullStack(t)}return e.stack};VError.errorFromList=function(e){n.arrayOfObject(e,"errors");if(e.length===0){return null}e.forEach(function(e){n.ok(s(e))});if(e.length==1){return e[0]}return new MultiError(e)};VError.errorForEach=function(e,t){n.ok(s(e),"err must be an Error");n.func(t,"func");if(e instanceof MultiError){e.errors().forEach(function iterError(e){t(e)})}else{t(e)}};function SError(){var e,t,i,n;e=Array.prototype.slice.call(arguments,0);if(!(this instanceof SError)){t=Object.create(SError.prototype);SError.apply(t,arguments);return t}i=parseConstructorArguments({argv:e,strict:true});n=i.options;VError.call(this,n,"%s",i.shortmessage);return this}a.inherits(SError,VError);function MultiError(e){n.array(e,"list of errors");n.ok(e.length>0,"must be at least one error");this.ase_errors=e;VError.call(this,{cause:e[0]},"first of %d error%s",e.length,e.length==1?"":"s")}a.inherits(MultiError,VError);MultiError.prototype.name="MultiError";MultiError.prototype.errors=function me_errors(){return this.ase_errors.slice(0)};function WError(){var e,t,i,n;e=Array.prototype.slice.call(arguments,0);if(!(this instanceof WError)){t=Object.create(WError.prototype);WError.apply(t,e);return t}i=parseConstructorArguments({argv:e,strict:false});n=i.options;n["skipCauseMessage"]=true;VError.call(this,n,"%s",i.shortmessage);return this}a.inherits(WError,VError);WError.prototype.name="WError";WError.prototype.toString=function we_toString(){var e=this.hasOwnProperty("name")&&this.name||this.constructor.name||this.constructor.prototype.name;if(this.message)e+=": "+this.message;if(this.jse_cause&&this.jse_cause.message)e+="; caused by "+this.jse_cause.toString();return e};WError.prototype.cause=function we_cause(e){if(s(e))this.jse_cause=e;return this.jse_cause}},function(e,t,i){"use strict";const n=i(631);class TimeoutError extends Error{constructor(e,t){super(`Timeout awaiting '${t}' for ${e}ms`);this.name="TimeoutError";this.code="ETIMEDOUT";this.event=t}}const a=Symbol("reentry");const r=()=>{};e.exports=((e,t,i)=>{if(e[a]){return}e[a]=true;let s=false;const o=(e,t,...i)=>{if(s){return r}let n;const a=setTimeout(()=>{n=setImmediate(t,e,...i);if(n.unref){n.unref()}},e);if(a.unref){a.unref()}const o=()=>{clearTimeout(a);clearImmediate(n)};d.push(o);return o};const{host:u,hostname:l}=i;const c=(t,i)=>{e.emit("error",new TimeoutError(t,i));e.once("error",()=>{});e.abort()};const d=[];const p=()=>{s=true;d.forEach(e=>e())};e.once("error",p);e.once("response",e=>{e.once("end",p)});if(t.request!==undefined){o(t.request,c,"request")}if(t.socket!==undefined){const i=()=>{c(t.socket,"socket")};e.setTimeout(t.socket,i);d.push(()=>e.removeListener("timeout",i))}if(t.lookup!==undefined&&!e.socketPath&&!n.isIP(l||u)){e.once("socket",e=>{if(e.connecting){const i=o(t.lookup,c,"lookup");e.once("lookup",i)}})}if(t.connect!==undefined){e.once("socket",i=>{if(i.connecting){const a=()=>o(t.connect,c,"connect");if(e.socketPath||n.isIP(l||u)){i.once("connect",a())}else{i.once("lookup",e=>{if(e===null){i.once("connect",a())}})}}})}if(t.secureConnect!==undefined&&i.protocol==="https:"){e.once("socket",e=>{if(e.connecting){e.once("connect",()=>{const i=o(t.secureConnect,c,"secureConnect");e.once("secureConnect",i)})}})}if(t.send!==undefined){e.once("socket",i=>{const n=()=>o(t.send,c,"send");if(i.connecting){i.once("connect",()=>{e.once("upload-complete",n())})}else{e.once("upload-complete",n())}})}if(t.response!==undefined){e.once("upload-complete",()=>{const i=o(t.response,c,"response");e.once("response",i)})}});e.exports.TimeoutError=TimeoutError},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=i(818);const a=(e,t)=>{let i;if(typeof t==="function"){const e=t;i={connect:e}}else{i=t}const a=typeof i.connect==="function";const r=typeof i.secureConnect==="function";const s=typeof i.close==="function";const o=()=>{if(a){i.connect()}if(e instanceof n.TLSSocket&&r){if(e.authorized){i.secureConnect()}else if(!e.authorizationError){e.once("secureConnect",i.secureConnect)}}if(s){e.once("close",i.close)}};if(e.writable&&!e.connecting){o()}else if(e.connecting){e.once("connect",o)}else if(e.destroyed&&s){i.close(e._hadError)}};t.default=a;e.exports=a;e.exports.default=a},function(e,t,i){var n=i(242).BigInteger;var a=i(729).ECCurveFp;function X9ECParameters(e,t,i,n){this.curve=e;this.g=t;this.n=i;this.h=n}function x9getCurve(){return this.curve}function x9getG(){return this.g}function x9getN(){return this.n}function x9getH(){return this.h}X9ECParameters.prototype.getCurve=x9getCurve;X9ECParameters.prototype.getG=x9getG;X9ECParameters.prototype.getN=x9getN;X9ECParameters.prototype.getH=x9getH;function fromHex(e){return new n(e,16)}function secp128r1(){var e=fromHex("FFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFF");var t=fromHex("FFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFC");var i=fromHex("E87579C11079F43DD824993C2CEE5ED3");var r=fromHex("FFFFFFFE0000000075A30D1B9038A115");var s=n.ONE;var o=new a(e,t,i);var u=o.decodePointHex("04"+"161FF7528B899B2D0C28607CA52C5B86"+"CF5AC8395BAFEB13C02DA292DDED7A83");return new X9ECParameters(o,u,r,s)}function secp160k1(){var e=fromHex("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFAC73");var t=n.ZERO;var i=fromHex("7");var r=fromHex("0100000000000000000001B8FA16DFAB9ACA16B6B3");var s=n.ONE;var o=new a(e,t,i);var u=o.decodePointHex("04"+"3B4C382CE37AA192A4019E763036F4F5DD4D7EBB"+"938CF935318FDCED6BC28286531733C3F03C4FEE");return new X9ECParameters(o,u,r,s)}function secp160r1(){var e=fromHex("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7FFFFFFF");var t=fromHex("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7FFFFFFC");var i=fromHex("1C97BEFC54BD7A8B65ACF89F81D4D4ADC565FA45");var r=fromHex("0100000000000000000001F4C8F927AED3CA752257");var s=n.ONE;var o=new a(e,t,i);var u=o.decodePointHex("04"+"4A96B5688EF573284664698968C38BB913CBFC82"+"23A628553168947D59DCC912042351377AC5FB32");return new X9ECParameters(o,u,r,s)}function secp192k1(){var e=fromHex("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFEE37");var t=n.ZERO;var i=fromHex("3");var r=fromHex("FFFFFFFFFFFFFFFFFFFFFFFE26F2FC170F69466A74DEFD8D");var s=n.ONE;var o=new a(e,t,i);var u=o.decodePointHex("04"+"DB4FF10EC057E9AE26B07D0280B7F4341DA5D1B1EAE06C7D"+"9B2F2F6D9C5628A7844163D015BE86344082AA88D95E2F9D");return new X9ECParameters(o,u,r,s)}function secp192r1(){var e=fromHex("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFF");var t=fromHex("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFC");var i=fromHex("64210519E59C80E70FA7E9AB72243049FEB8DEECC146B9B1");var r=fromHex("FFFFFFFFFFFFFFFFFFFFFFFF99DEF836146BC9B1B4D22831");var s=n.ONE;var o=new a(e,t,i);var u=o.decodePointHex("04"+"188DA80EB03090F67CBF20EB43A18800F4FF0AFD82FF1012"+"07192B95FFC8DA78631011ED6B24CDD573F977A11E794811");return new X9ECParameters(o,u,r,s)}function secp224r1(){var e=fromHex("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000000000000000000001");var t=fromHex("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFE");var i=fromHex("B4050A850C04B3ABF54132565044B0B7D7BFD8BA270B39432355FFB4");var r=fromHex("FFFFFFFFFFFFFFFFFFFFFFFFFFFF16A2E0B8F03E13DD29455C5C2A3D");var s=n.ONE;var o=new a(e,t,i);var u=o.decodePointHex("04"+"B70E0CBD6BB4BF7F321390B94A03C1D356C21122343280D6115C1D21"+"BD376388B5F723FB4C22DFE6CD4375A05A07476444D5819985007E34");return new X9ECParameters(o,u,r,s)}function secp256r1(){var e=fromHex("FFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFF");var t=fromHex("FFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFC");var i=fromHex("5AC635D8AA3A93E7B3EBBD55769886BC651D06B0CC53B0F63BCE3C3E27D2604B");var r=fromHex("FFFFFFFF00000000FFFFFFFFFFFFFFFFBCE6FAADA7179E84F3B9CAC2FC632551");var s=n.ONE;var o=new a(e,t,i);var u=o.decodePointHex("04"+"6B17D1F2E12C4247F8BCE6E563A440F277037D812DEB33A0F4A13945D898C296"+"4FE342E2FE1A7F9B8EE7EB4A7C0F9E162BCE33576B315ECECBB6406837BF51F5");return new X9ECParameters(o,u,r,s)}function getSECCurveByName(e){if(e=="secp128r1")return secp128r1();if(e=="secp160k1")return secp160k1();if(e=="secp160r1")return secp160r1();if(e=="secp192k1")return secp192k1();if(e=="secp192r1")return secp192r1();if(e=="secp224r1")return secp224r1();if(e=="secp256r1")return secp256r1();return null}e.exports={secp128r1:secp128r1,secp160k1:secp160k1,secp160r1:secp160r1,secp192k1:secp192k1,secp192r1:secp192r1,secp224r1:secp224r1,secp256r1:secp256r1}},function(e,t,i){e.exports={der:i(94),pem:i(265)}},,function(e,t,i){const n=i(923);const a=i(651);const r=i(934);const s=i(18);const o=i(994);const u=i(798);const l=i(563);e.exports={EC_CURVES:n,ECDH_DERIVE_LENGTHS:l,IVLENGTHS:a,JWA:r,JWK:s,KEYLENGTHS:o,OKP_CURVES:u}},,function(e,t,i){"use strict";var n=i(373);function randomString(e){var t=(e+1)*6;var i=n.randomBytes(Math.ceil(t/8));var a=i.toString("base64").replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"");return a.slice(0,e)}function calculatePayloadHash(e,t,i){var a=n.createHash(t);a.update("hawk.1.payload\n");a.update((i?i.split(";")[0].trim().toLowerCase():"")+"\n");a.update(e||"");a.update("\n");return a.digest("base64")}t.calculateMac=function(e,t){var i="hawk.1.header\n"+t.ts+"\n"+t.nonce+"\n"+(t.method||"").toUpperCase()+"\n"+t.resource+"\n"+t.host.toLowerCase()+"\n"+t.port+"\n"+(t.hash||"")+"\n";if(t.ext){i=i+t.ext.replace("\\","\\\\").replace("\n","\\n")}i=i+"\n";if(t.app){i=i+t.app+"\n"+(t.dlg||"")+"\n"}var a=n.createHmac(e.algorithm,e.key).update(i);var r=a.digest("base64");return r};t.header=function(e,i,n){var a=n.timestamp||Math.floor((Date.now()+(n.localtimeOffsetMsec||0))/1e3);var r=n.credentials;if(!r||!r.id||!r.key||!r.algorithm){return""}if(["sha1","sha256"].indexOf(r.algorithm)===-1){return""}var s={ts:a,nonce:n.nonce||randomString(6),method:i,resource:e.pathname+(e.search||""),host:e.hostname,port:e.port||(e.protocol==="http:"?80:443),hash:n.hash,ext:n.ext,app:n.app,dlg:n.dlg};if(!s.hash&&(n.payload||n.payload==="")){s.hash=calculatePayloadHash(n.payload,r.algorithm,n.contentType)}var o=t.calculateMac(r,s);var u=s.ext!==null&&s.ext!==undefined&&s.ext!=="";var l='Hawk id="'+r.id+'", ts="'+s.ts+'", nonce="'+s.nonce+(s.hash?'", hash="'+s.hash:"")+(u?'", ext="'+s.ext.replace(/\\/g,"\\\\").replace(/"/g,'\\"'):"")+'", mac="'+o+'"';if(s.app){l=l+', app="'+s.app+(s.dlg?'", dlg="'+s.dlg:"")+'"'}return l}},function(e,t,i){const{createSign:n,createVerify:a}=i(373);const{KEYOBJECT:r}=i(771);const s=i(165);const{asInput:o}=i(40);const u=(e,{[r]:t},i)=>{return n(e).update(i).sign(o(t,false))};const l=(e,{[r]:t},i,n)=>{return a(e).update(i).verify(o(t,true),n)};const c={RS256:0,RS384:624,RS512:752};e.exports=((e,t)=>{["RS256","RS384","RS512"].forEach(i=>{const n=s(i);e.sign.set(i,u.bind(undefined,n));e.verify.set(i,l.bind(undefined,n));t.RSA.sign[i]=(e=>e.private&&t.RSA.verify[i](e));t.RSA.verify[i]=(e=>(e.use==="sig"||e.use===undefined)&&e.length>=c[i])})})},function(e,t,i){e.exports=Certificate;var n=i(872);var a=i(215).Buffer;var r=i(98);var s=i(373);var o=i(400);var u=i(575);var l=i(753);var c=i(669);var d=i(270);var p=i(852);var f=i(502);var h=i(378);var m={};m["openssh"]=i(893);m["x509"]=i(866);m["pem"]=i(680);var b=l.CertificateParseError;var g=l.InvalidAlgorithmError;function Certificate(e){n.object(e,"options");n.arrayOfObject(e.subjects,"options.subjects");d.assertCompatible(e.subjects[0],h,[1,0],"options.subjects");d.assertCompatible(e.subjectKey,p,[1,0],"options.subjectKey");d.assertCompatible(e.issuer,h,[1,0],"options.issuer");if(e.issuerKey!==undefined){d.assertCompatible(e.issuerKey,p,[1,0],"options.issuerKey")}n.object(e.signatures,"options.signatures");n.buffer(e.serial,"options.serial");n.date(e.validFrom,"options.validFrom");n.date(e.validUntil,"optons.validUntil");n.optionalArrayOfString(e.purposes,"options.purposes");this._hashCache={};this.subjects=e.subjects;this.issuer=e.issuer;this.subjectKey=e.subjectKey;this.issuerKey=e.issuerKey;this.signatures=e.signatures;this.serial=e.serial;this.validFrom=e.validFrom;this.validUntil=e.validUntil;this.purposes=e.purposes}Certificate.formats=m;Certificate.prototype.toBuffer=function(e,t){if(e===undefined)e="x509";n.string(e,"format");n.object(m[e],"formats[format]");n.optionalObject(t,"options");return m[e].write(this,t)};Certificate.prototype.toString=function(e,t){if(e===undefined)e="pem";return this.toBuffer(e,t).toString()};Certificate.prototype.fingerprint=function(e){if(e===undefined)e="sha256";n.string(e,"algorithm");var t={type:"certificate",hash:this.hash(e),algorithm:e};return new o(t)};Certificate.prototype.hash=function(e){n.string(e,"algorithm");e=e.toLowerCase();if(r.hashAlgs[e]===undefined)throw new g(e);if(this._hashCache[e])return this._hashCache[e];var t=s.createHash(e).update(this.toBuffer("x509")).digest();this._hashCache[e]=t;return t};Certificate.prototype.isExpired=function(e){if(e===undefined)e=new Date;return!(e.getTime()>=this.validFrom.getTime()&&e.getTime()0&&this.issuer.purposes.indexOf("ca")===-1){return false}return this.isSignedByKey(e.subjectKey)};Certificate.prototype.getExtension=function(e){n.string(e,"keyOrOid");var t=this.getExtensions().filter(function(t){if(t.format==="x509")return t.oid===e;if(t.format==="openssh")return t.name===e;return false})[0];return t};Certificate.prototype.getExtensions=function(){var e=[];var t=this.signatures.x509;if(t&&t.extras&&t.extras.exts){t.extras.exts.forEach(function(t){t.format="x509";e.push(t)})}var i=this.signatures.openssh;if(i&&i.exts){i.exts.forEach(function(t){t.format="openssh";e.push(t)})}return e};Certificate.prototype.isSignedByKey=function(e){d.assertCompatible(e,p,[1,2],"issuerKey");if(this.issuerKey!==undefined){return this.issuerKey.fingerprint("sha512").matches(e)}var t=Object.keys(this.signatures)[0];var i=m[t].verify(this,e);if(i)this.issuerKey=e;return i};Certificate.prototype.signWith=function(e){d.assertCompatible(e,f,[1,2],"key");var t=Object.keys(m);var i=false;for(var n=0;n0){if(c.indexOf("serverAuth")===-1)c.push("serverAuth")}if(m.length>0){if(c.indexOf("clientAuth")===-1)c.push("clientAuth")}if(m.length>0||p.length>0){if(c.indexOf("keyAgreement")===-1)c.push("keyAgreement");if(t.type==="rsa"&&c.indexOf("encryption")===-1)c.push("encryption")}}var b=new Certificate({subjects:r,issuer:r[0],subjectKey:t.toPublic(),issuerKey:t.toPublic(),signatures:{},serial:l,validFrom:s,validUntil:o,purposes:c});b.signWith(t);return b};Certificate.create=function(e,t,i,r,s){var o;if(Array.isArray(e))o=e;else o=[e];n.arrayOfObject(o);o.forEach(function(e){d.assertCompatible(e,h,[1,0],"subject")});d.assertCompatible(t,p,[1,0],"key");if(f.isPrivateKey(t))t=t.toPublic();d.assertCompatible(i,h,[1,0],"issuer");d.assertCompatible(r,f,[1,2],"issuer key");n.optionalObject(s,"options");if(s===undefined)s={};n.optionalObject(s.validFrom,"options.validFrom");n.optionalObject(s.validUntil,"options.validUntil");var u=s.validFrom;var l=s.validUntil;if(u===undefined)u=new Date;if(l===undefined){n.optionalNumber(s.lifetime,"options.lifetime");var c=s.lifetime;if(c===undefined)c=10*365*24*3600;l=new Date;l.setTime(l.getTime()+c*1e3)}n.optionalBuffer(s.serial,"options.serial");var m=s.serial;if(m===undefined)m=a.from("0000000000000001","hex");var b=s.purposes;if(b===undefined)b=[];if(b.indexOf("signature")===-1)b.push("signature");if(s.ca===true){if(b.indexOf("ca")===-1)b.push("ca");if(b.indexOf("crl")===-1)b.push("crl")}var g=o.filter(function(e){return e.type==="host"});var y=o.filter(function(e){return e.type==="user"});if(g.length>0){if(b.indexOf("serverAuth")===-1)b.push("serverAuth")}if(y.length>0){if(b.indexOf("clientAuth")===-1)b.push("clientAuth")}if(y.length>0||g.length>0){if(b.indexOf("keyAgreement")===-1)b.push("keyAgreement");if(t.type==="rsa"&&b.indexOf("encryption")===-1)b.push("encryption")}var S=new Certificate({subjects:o,issuer:i,subjectKey:t,issuerKey:r.toPublic(),signatures:{},serial:m,validFrom:u,validUntil:l,purposes:b});S.signWith(r);return S};Certificate.parse=function(e,t,i){if(typeof e!=="string")n.buffer(e,"data");if(t===undefined)t="auto";n.string(t,"format");if(typeof i==="string")i={filename:i};n.optionalObject(i,"options");if(i===undefined)i={};n.optionalString(i.filename,"options.filename");if(i.filename===undefined)i.filename="(unnamed)";n.object(m[t],"formats[format]");try{var a=m[t].read(e,i);return a}catch(e){throw new b(i.filename,t,e)}};Certificate.isCertificate=function(e,t){return d.isCompatible(e,Certificate,t)};Certificate.prototype._sshpkApiVersion=[1,1];Certificate._oldVersionDetect=function(e){return[1,0]}},function(e){"use strict";e.exports=function generate_validate(e,t,i){var n="";var a=e.schema.$async===true,r=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),s=e.self._getId(e.schema);if(e.opts.strictKeywords){var o=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(o){var u="unknown keyword: "+o;if(e.opts.strictKeywords==="log")e.logger.warn(u);else throw new Error(u)}}if(e.isTop){n+=" var validate = ";if(a){e.async=true;n+="async "}n+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ";if(s&&(e.opts.sourceCode||e.opts.processCode)){n+=" "+("/*# sourceURL="+s+" */")+" "}}if(typeof e.schema=="boolean"||!(r||e.schema.$ref)){var t="false schema";var l=e.level;var c=e.dataLevel;var d=e.schema[t];var p=e.schemaPath+e.util.getProperty(t);var f=e.errSchemaPath+"/"+t;var h=!e.opts.allErrors;var m;var b="data"+(c||"");var g="valid"+l;if(e.schema===false){if(e.isTop){h=true}else{n+=" var "+g+" = false; "}var y=y||[];y.push(n);n="";if(e.createErrors!==false){n+=" { keyword: '"+(m||"false schema")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(f)+" , params: {} ";if(e.opts.messages!==false){n+=" , message: 'boolean schema is false' "}if(e.opts.verbose){n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+b+" "}n+=" } "}else{n+=" {} "}var S=n;n=y.pop();if(!e.compositeRule&&h){if(e.async){n+=" throw new ValidationError(["+S+"]); "}else{n+=" validate.errors = ["+S+"]; return false; "}}else{n+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}}else{if(e.isTop){if(a){n+=" return data; "}else{n+=" validate.errors = null; return true; "}}else{n+=" var "+g+" = true; "}}if(e.isTop){n+=" }; return validate; "}return n}if(e.isTop){var w=e.isTop,l=e.level=0,c=e.dataLevel=0,b="data";e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema));e.baseId=e.baseId||e.rootId;delete e.isTop;e.dataPathArr=[undefined];if(e.schema.default!==undefined&&e.opts.useDefaults&&e.opts.strictDefaults){var v="default is ignored in the schema root";if(e.opts.strictDefaults==="log")e.logger.warn(v);else throw new Error(v)}n+=" var vErrors = null; ";n+=" var errors = 0; ";n+=" if (rootData === undefined) rootData = data; "}else{var l=e.level,c=e.dataLevel,b="data"+(c||"");if(s)e.baseId=e.resolve.url(e.baseId,s);if(a&&!e.async)throw new Error("async schema in sync schema");n+=" var errs_"+l+" = errors;"}var g="valid"+l,h=!e.opts.allErrors,z="",j="";var m;var O=e.schema.type,k=Array.isArray(O);if(O&&e.opts.nullable&&e.schema.nullable===true){if(k){if(O.indexOf("null")==-1)O=O.concat("null")}else if(O!="null"){O=[O,"null"];k=true}}if(k&&O.length==1){O=O[0];k=false}if(e.schema.$ref&&r){if(e.opts.extendRefs=="fail"){throw new Error('$ref: validation keywords used in schema at path "'+e.errSchemaPath+'" (see option extendRefs)')}else if(e.opts.extendRefs!==true){r=false;e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"')}}if(e.schema.$comment&&e.opts.$comment){n+=" "+e.RULES.all.$comment.code(e,"$comment")}if(O){if(e.opts.coerceTypes){var C=e.util.coerceToTypes(e.opts.coerceTypes,O)}var T=e.RULES.types[O];if(C||k||T===true||T&&!$shouldUseGroup(T)){var p=e.schemaPath+".type",f=e.errSchemaPath+"/type";var p=e.schemaPath+".type",f=e.errSchemaPath+"/type",R=k?"checkDataTypes":"checkDataType";n+=" if ("+e.util[R](O,b,e.opts.strictNumbers,true)+") { ";if(C){var E="dataType"+l,A="coerced"+l;n+=" var "+E+" = typeof "+b+"; var "+A+" = undefined; ";if(e.opts.coerceTypes=="array"){n+=" if ("+E+" == 'object' && Array.isArray("+b+") && "+b+".length == 1) { "+b+" = "+b+"[0]; "+E+" = typeof "+b+"; if ("+e.util.checkDataType(e.schema.type,b,e.opts.strictNumbers)+") "+A+" = "+b+"; } "}n+=" if ("+A+" !== undefined) ; ";var x=C;if(x){var N,V=-1,P=x.length-1;while(V{const i=n(e,t);return i&&i.prerelease.length?i.prerelease:null};e.exports=a},,,function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=i(414);function loadYaml(e,t){return n.safeLoad(e,t)}t.loadYaml=loadYaml;function loadAllYaml(e,t){return n.safeLoadAll(e,undefined,t)}t.loadAllYaml=loadAllYaml;function dumpYaml(e,t){return n.safeDump(e,t)}t.dumpYaml=dumpYaml},function(e,t,i){e.exports=i(512)},function(e,t,i){const{inspect:n}=i(669);const a=i(849);class EmbeddedJWK extends a{constructor(){super({type:"embedded"});Object.defineProperties(this,{kid:{value:undefined},kty:{value:undefined},thumbprint:{value:undefined},toJWK:{value:undefined},toPEM:{value:undefined}})}[n.custom](){return"Embedded.JWK {}"}algorithms(){return new Set}}e.exports=new EmbeddedJWK},,function(e,t,i){const n=i(274);let a=i(918);const{JWEInvalid:r}=i(466);a=a.bind(undefined,r);const s=(e,[t])=>{return`${e.protected}.${t.encrypted_key}.${e.iv}.${e.ciphertext}.${e.tag}`};s.validate=((e,t,i,{0:{header:n},length:s})=>{if(s!==1||i||t||n){throw new r("JWE Compact Serialization doesn't support multiple recipients, JWE unprotected headers or AAD")}a(e,t,e?e.crit:undefined)});const o=(e,[t])=>{const{header:i,encrypted_key:n}=t;return{...e.protected?{protected:e.protected}:undefined,...e.unprotected?{unprotected:e.unprotected}:undefined,...i?{header:i}:undefined,...n?{encrypted_key:n}:undefined,...e.aad?{aad:e.aad}:undefined,iv:e.iv,ciphertext:e.ciphertext,tag:e.tag}};o.validate=((e,t,i,{0:{header:n},length:s})=>{if(s!==1){throw new r("Flattened JWE JSON Serialization doesn't support multiple recipients")}a(e,{...t,...n},e?e.crit:undefined)});const u=(e,t)=>{const i={...e.protected?{protected:e.protected}:undefined,...e.unprotected?{unprotected:e.unprotected}:undefined,recipients:t.map(({header:e,encrypted_key:t,generatedHeader:i})=>{if(!e&&!t&&!i){return false}return{...e||i?{header:{...e,...i}}:undefined,...t?{encrypted_key:t}:undefined}}).filter(Boolean),...e.aad?{aad:e.aad}:undefined,iv:e.iv,ciphertext:e.ciphertext,tag:e.tag};if(!i.recipients.length){delete i.recipients}return i};u.validate=((e,t,i,n)=>{n.forEach(({header:i})=>{a(e,{...i,...t},e?e.crit:undefined)})});const l=e=>{return n(e)&&typeof e.ciphertext==="string"&&typeof e.iv==="string"&&typeof e.tag==="string"&&(e.unprotected===undefined||n(e.unprotected))&&(e.protected===undefined||typeof e.protected==="string")&&(e.aad===undefined||typeof e.aad==="string")};const c=e=>{return(e.encrypted_key===undefined||typeof e.encrypted_key==="string")&&(e.header===undefined||n(e.header))};const d=e=>{return n(e)&&typeof e.encrypted_key==="string"&&(e.header===undefined||n(e.header))};const p=e=>{if(Array.isArray(e.recipients)&&e.recipients.every(d)){return true}return false};const f=e=>{if(typeof e==="string"&&e.split(".").length===5){return"compact"}if(l(e)){if(p(e)){return"general"}if(c(e)){return"flattened"}}throw new r("JWE malformed or invalid serialization")};e.exports={compact:s,flattened:o,general:u,detect:f}},function(e,t,i){const{MAX_SAFE_COMPONENT_LENGTH:n}=i(181);const a=i(548);t=e.exports={};const r=t.re=[];const s=t.src=[];const o=t.t={};let u=0;const l=(e,t,i)=>{const n=u++;a(n,t);o[e]=n;s[n]=t;r[n]=new RegExp(t,i?"g":undefined)};l("NUMERICIDENTIFIER","0|[1-9]\\d*");l("NUMERICIDENTIFIERLOOSE","[0-9]+");l("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");l("MAINVERSION",`(${s[o.NUMERICIDENTIFIER]})\\.`+`(${s[o.NUMERICIDENTIFIER]})\\.`+`(${s[o.NUMERICIDENTIFIER]})`);l("MAINVERSIONLOOSE",`(${s[o.NUMERICIDENTIFIERLOOSE]})\\.`+`(${s[o.NUMERICIDENTIFIERLOOSE]})\\.`+`(${s[o.NUMERICIDENTIFIERLOOSE]})`);l("PRERELEASEIDENTIFIER",`(?:${s[o.NUMERICIDENTIFIER]}|${s[o.NONNUMERICIDENTIFIER]})`);l("PRERELEASEIDENTIFIERLOOSE",`(?:${s[o.NUMERICIDENTIFIERLOOSE]}|${s[o.NONNUMERICIDENTIFIER]})`);l("PRERELEASE",`(?:-(${s[o.PRERELEASEIDENTIFIER]}(?:\\.${s[o.PRERELEASEIDENTIFIER]})*))`);l("PRERELEASELOOSE",`(?:-?(${s[o.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${s[o.PRERELEASEIDENTIFIERLOOSE]})*))`);l("BUILDIDENTIFIER","[0-9A-Za-z-]+");l("BUILD",`(?:\\+(${s[o.BUILDIDENTIFIER]}(?:\\.${s[o.BUILDIDENTIFIER]})*))`);l("FULLPLAIN",`v?${s[o.MAINVERSION]}${s[o.PRERELEASE]}?${s[o.BUILD]}?`);l("FULL",`^${s[o.FULLPLAIN]}$`);l("LOOSEPLAIN",`[v=\\s]*${s[o.MAINVERSIONLOOSE]}${s[o.PRERELEASELOOSE]}?${s[o.BUILD]}?`);l("LOOSE",`^${s[o.LOOSEPLAIN]}$`);l("GTLT","((?:<|>)?=?)");l("XRANGEIDENTIFIERLOOSE",`${s[o.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);l("XRANGEIDENTIFIER",`${s[o.NUMERICIDENTIFIER]}|x|X|\\*`);l("XRANGEPLAIN",`[v=\\s]*(${s[o.XRANGEIDENTIFIER]})`+`(?:\\.(${s[o.XRANGEIDENTIFIER]})`+`(?:\\.(${s[o.XRANGEIDENTIFIER]})`+`(?:${s[o.PRERELEASE]})?${s[o.BUILD]}?`+`)?)?`);l("XRANGEPLAINLOOSE",`[v=\\s]*(${s[o.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${s[o.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${s[o.XRANGEIDENTIFIERLOOSE]})`+`(?:${s[o.PRERELEASELOOSE]})?${s[o.BUILD]}?`+`)?)?`);l("XRANGE",`^${s[o.GTLT]}\\s*${s[o.XRANGEPLAIN]}$`);l("XRANGELOOSE",`^${s[o.GTLT]}\\s*${s[o.XRANGEPLAINLOOSE]}$`);l("COERCE",`${"(^|[^\\d])"+"(\\d{1,"}${n}})`+`(?:\\.(\\d{1,${n}}))?`+`(?:\\.(\\d{1,${n}}))?`+`(?:$|[^\\d])`);l("COERCERTL",s[o.COERCE],true);l("LONETILDE","(?:~>?)");l("TILDETRIM",`(\\s*)${s[o.LONETILDE]}\\s+`,true);t.tildeTrimReplace="$1~";l("TILDE",`^${s[o.LONETILDE]}${s[o.XRANGEPLAIN]}$`);l("TILDELOOSE",`^${s[o.LONETILDE]}${s[o.XRANGEPLAINLOOSE]}$`);l("LONECARET","(?:\\^)");l("CARETTRIM",`(\\s*)${s[o.LONECARET]}\\s+`,true);t.caretTrimReplace="$1^";l("CARET",`^${s[o.LONECARET]}${s[o.XRANGEPLAIN]}$`);l("CARETLOOSE",`^${s[o.LONECARET]}${s[o.XRANGEPLAINLOOSE]}$`);l("COMPARATORLOOSE",`^${s[o.GTLT]}\\s*(${s[o.LOOSEPLAIN]})$|^$`);l("COMPARATOR",`^${s[o.GTLT]}\\s*(${s[o.FULLPLAIN]})$|^$`);l("COMPARATORTRIM",`(\\s*)${s[o.GTLT]}\\s*(${s[o.LOOSEPLAIN]}|${s[o.XRANGEPLAIN]})`,true);t.comparatorTrimReplace="$1$2$3";l("HYPHENRANGE",`^\\s*(${s[o.XRANGEPLAIN]})`+`\\s+-\\s+`+`(${s[o.XRANGEPLAIN]})`+`\\s*$`);l("HYPHENRANGELOOSE",`^\\s*(${s[o.XRANGEPLAINLOOSE]})`+`\\s+-\\s+`+`(${s[o.XRANGEPLAINLOOSE]})`+`\\s*$`);l("STAR","(<|>)?=?\\s*\\*");l("GTE0","^\\s*>=\\s*0.0.0\\s*$");l("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")},,function(e,t,i){const n=i(510);const a=i(372);const r=(e,t,i,a,r,s)=>{return new n(t,a,r,s).recipient(i).encrypt(e)};e.exports.Encrypt=n;e.exports.encrypt=r.bind(undefined,"compact");e.exports.encrypt.flattened=r.bind(undefined,"flattened");e.exports.encrypt.general=r.bind(undefined,"general");e.exports.decrypt=a},,,function(e,t,i){const{createHmac:n}=i(373);const{KEYOBJECT:a}=i(771);const r=i(355);const s=i(165);const{asInput:o}=i(40);const u=(e,t,{[a]:i},r)=>{const s=n(t,o(i,false));s.update(r);return s.digest()};const l=(e,t,i,n,a)=>{const s=u(e,t,i,n);const o=a;return r(o,s)};e.exports=((e,t)=>{["HS256","HS384","HS512"].forEach(i=>{const n=s(i);e.sign.set(i,u.bind(undefined,i,n));e.verify.set(i,l.bind(undefined,i,n));t.oct.sign[i]=t.oct.verify[i]=(e=>e.use==="sig"||e.use===undefined)})})},function(e,t,i){e.exports={read:read,write:write};var n=i(872);var a=i(215).Buffer;var r=i(852);var s=i(502);var o=i(270);var u=i(940);var l=i(532);var c={"rsa-sha1":5,"rsa-sha256":8,"rsa-sha512":10,"ecdsa-p256-sha256":13,"ecdsa-p384-sha384":14};var d={};Object.keys(c).forEach(function(e){d[c[e]]=e.toUpperCase()});function read(e,t){if(typeof e!=="string"){n.buffer(e,"buf");e=e.toString("ascii")}var i=e.split("\n");if(i[0].match(/^Private-key-format\: v1/)){var a=i[1].split(" ");var r=parseInt(a[1],10);var s=a[2];if(!d[r])throw new Error("Unsupported algorithm: "+s);return readDNSSECPrivateKey(r,i.slice(2))}var o=0;while(i[o].match(/^\;/))o++;if((i[o].match(/\. IN KEY /)||i[o].match(/\. IN DNSKEY /))&&i[o+1].length===0){return readRFC3110(i[o])}throw new Error("Cannot parse dnssec key")}function readRFC3110(e){var t=e.split(" ");var i=parseInt(t[5],10);if(!d[i])throw new Error("Unsupported algorithm: "+i);var n=t.slice(6,t.length).join();var s=a.from(n,"base64");if(d[i].match(/^RSA-/)){var u=s.readUInt8(0);if(u!=3&&u!=1)throw new Error("Cannot parse dnssec key: "+"unsupported exponent length");var l=s.slice(1,u+1);l=o.mpNormalize(l);var c=s.slice(1+u);c=o.mpNormalize(c);var p={type:"rsa",parts:[]};p.parts.push({name:"e",data:l});p.parts.push({name:"n",data:c});return new r(p)}if(d[i]==="ECDSA-P384-SHA384"||d[i]==="ECDSA-P256-SHA256"){var f="nistp384";var h=384;if(d[i].match(/^ECDSA-P256-SHA256/)){f="nistp256";h=256}var m={type:"ecdsa",curve:f,size:h,parts:[{name:"curve",data:a.from(f)},{name:"Q",data:o.ecNormalize(s)}]};return new r(m)}throw new Error("Unsupported algorithm: "+d[i])}function elementToBuf(e){return a.from(e.split(" ")[1],"base64")}function readDNSSECRSAPrivateKey(e){var t={};e.forEach(function(e){if(e.split(" ")[0]==="Modulus:")t["n"]=elementToBuf(e);else if(e.split(" ")[0]==="PublicExponent:")t["e"]=elementToBuf(e);else if(e.split(" ")[0]==="PrivateExponent:")t["d"]=elementToBuf(e);else if(e.split(" ")[0]==="Prime1:")t["p"]=elementToBuf(e);else if(e.split(" ")[0]==="Prime2:")t["q"]=elementToBuf(e);else if(e.split(" ")[0]==="Exponent1:")t["dmodp"]=elementToBuf(e);else if(e.split(" ")[0]==="Exponent2:")t["dmodq"]=elementToBuf(e);else if(e.split(" ")[0]==="Coefficient:")t["iqmp"]=elementToBuf(e)});var i={type:"rsa",parts:[{name:"e",data:o.mpNormalize(t["e"])},{name:"n",data:o.mpNormalize(t["n"])},{name:"d",data:o.mpNormalize(t["d"])},{name:"p",data:o.mpNormalize(t["p"])},{name:"q",data:o.mpNormalize(t["q"])},{name:"dmodp",data:o.mpNormalize(t["dmodp"])},{name:"dmodq",data:o.mpNormalize(t["dmodq"])},{name:"iqmp",data:o.mpNormalize(t["iqmp"])}]};return new s(i)}function readDNSSECPrivateKey(e,t){if(d[e].match(/^RSA-/)){return readDNSSECRSAPrivateKey(t)}if(d[e]==="ECDSA-P384-SHA384"||d[e]==="ECDSA-P256-SHA256"){var i=a.from(t[0].split(" ")[1],"base64");var n="nistp384";var r=384;if(d[e]==="ECDSA-P256-SHA256"){n="nistp256";r=256}var u=o.publicFromPrivateECDSA(n,i);var l=u.part["Q"].data;var c={type:"ecdsa",curve:n,size:r,parts:[{name:"curve",data:a.from(n)},{name:"d",data:i},{name:"Q",data:l}]};return new s(c)}throw new Error("Unsupported algorithm: "+d[e])}function dnssecTimestamp(e){var t=e.getFullYear()+"";var i=e.getMonth()+1;var n=t+i+e.getUTCDate();n+=""+e.getUTCHours()+e.getUTCMinutes();n+=e.getUTCSeconds();return n}function rsaAlgFromOptions(e){if(!e||!e.hashAlgo||e.hashAlgo==="sha1")return"5 (RSASHA1)";else if(e.hashAlgo==="sha256")return"8 (RSASHA256)";else if(e.hashAlgo==="sha512")return"10 (RSASHA512)";else throw new Error("Unknown or unsupported hash: "+e.hashAlgo)}function writeRSA(e,t){if(!e.part.dmodp||!e.part.dmodq){o.addRSAMissing(e)}var i="";i+="Private-key-format: v1.3\n";i+="Algorithm: "+rsaAlgFromOptions(t)+"\n";var n=o.mpDenormalize(e.part["n"].data);i+="Modulus: "+n.toString("base64")+"\n";var r=o.mpDenormalize(e.part["e"].data);i+="PublicExponent: "+r.toString("base64")+"\n";var s=o.mpDenormalize(e.part["d"].data);i+="PrivateExponent: "+s.toString("base64")+"\n";var u=o.mpDenormalize(e.part["p"].data);i+="Prime1: "+u.toString("base64")+"\n";var l=o.mpDenormalize(e.part["q"].data);i+="Prime2: "+l.toString("base64")+"\n";var c=o.mpDenormalize(e.part["dmodp"].data);i+="Exponent1: "+c.toString("base64")+"\n";var d=o.mpDenormalize(e.part["dmodq"].data);i+="Exponent2: "+d.toString("base64")+"\n";var p=o.mpDenormalize(e.part["iqmp"].data);i+="Coefficient: "+p.toString("base64")+"\n";var f=new Date;i+="Created: "+dnssecTimestamp(f)+"\n";i+="Publish: "+dnssecTimestamp(f)+"\n";i+="Activate: "+dnssecTimestamp(f)+"\n";return a.from(i,"ascii")}function writeECDSA(e,t){var i="";i+="Private-key-format: v1.3\n";if(e.curve==="nistp256"){i+="Algorithm: 13 (ECDSAP256SHA256)\n"}else if(e.curve==="nistp384"){i+="Algorithm: 14 (ECDSAP384SHA384)\n"}else{throw new Error("Unsupported curve")}var n=e.part["d"].data.toString("base64");i+="PrivateKey: "+n+"\n";var r=new Date;i+="Created: "+dnssecTimestamp(r)+"\n";i+="Publish: "+dnssecTimestamp(r)+"\n";i+="Activate: "+dnssecTimestamp(r)+"\n";return a.from(i,"ascii")}function write(e,t){if(s.isPrivateKey(e)){if(e.type==="rsa"){return writeRSA(e,t)}else if(e.type==="ecdsa"){return writeECDSA(e,t)}else{throw new Error("Unsupported algorithm: "+e.type)}}else if(r.isKey(e)){throw new Error('Format "dnssec" only supports '+"writing private keys")}else{throw new Error("key is not a Key or PrivateKey")}}},,,function(e,t,i){"use strict";const n=i(272).Component;const a=i(418)("kubernetes-client");const r=i(747);const s=i(314);const o=i(622);const u=i(903);const l=i(198);const c=i(610);class Root extends n{_getSpec(e){return this.backend.http({method:"GET",pathname:e}).then(e=>{return e.body})}loadSpec(){return this._getSpec("/openapi/v2").catch(()=>{return this._getSpec("/swagger.json")}).then(e=>{this._addSpec(e);return this}).catch(e=>{throw new Error(`Failed to get /openapi/v2 and /swagger.json: ${e.message}`)})}_getLogByteStream(e){return this.backend.getLogByteStream(Object.assign({method:"GET",pathItemObject:this.pathItemObject,pathname:this.getPath(),pathnameParameters:this.getPathnameParameters()},e))}async _getWatchObjectStream(e){return this.backend.getWatchObjectStream(Object.assign({method:"GET",pathItemObject:this.pathItemObject,pathname:this.getPath(),pathnameParameters:this.getPathnameParameters()},e))}_addEndpoint(e){const t=super._addEndpoint(e);if(!t)return t;if(e.pathItem.get){const i=e.pathItem.get["x-kubernetes-action"];if(i==="watch"||i==="watchlist"){t.getStream=a.function(t.getStream,".getStream use .getObjectStream, see "+"https://github.com/godaddy/kubernetes-client/blob/master/merging-with-kubernetes.md");t.getObjectStream=t._getWatchObjectStream}else if(e.name==="/api/v1/namespaces/{namespace}/pods/{name}/log"){t.getStream=a.function(t.getStream,".getStream use .getByteStream, see "+"https://github.com/godaddy/kubernetes-client/blob/master/merging-with-kubernetes.md");t.getByteStream=t._getLogByteStream}else{t.getStream=a.function(t.getStream,".getStream see https://github.com/godaddy/kubernetes-client/blob/master/merging-with-kubernetes.md")}}}addCustomResourceDefinition(e){const t=e.spec.group;const i=e.spec.names.plural;const n=e.spec.scope==="Cluster"?"":"/namespaces/{namespace}";const a=a=>{const r={paths:{}};const s=`/apis/${t}/${a}${n}/${i}/{name}`;r.paths[s]=["delete","get","patch","put"].reduce((e,t)=>{e[t]={operationId:`${t}Template${i}`};return e},{});const o=`/apis/${t}/${a}${n}/${i}`;r.paths[o]=["get","post"].reduce((e,t)=>{e[t]={operationId:`${t}${i}`};return e},{});if(e.spec.scope==="Namespaced"){const e=`/apis/${t}/${a}/${i}`;r.paths[e]={get:{operationId:`getCluster${i}`}}}const u={watchCluster:`/apis/${t}/${a}/watch/${i}`,watchNamespace:`/apis/${t}/${a}/watch${n}/${i}`,watchResource:`/apis/${t}/${a}/watch${n}/${i}/{name}`};Object.keys(u).forEach(e=>{const t=u[e];r.paths[t]={get:{"x-kubernetes-action":"watch",operationId:`operationId${i}`}}});if(e.spec.subresources&&e.spec.subresources.status){const e=`/apis/${t}/${a}${n}/${i}/{name}/status`;r.paths[e]=["get","put"].reduce((e,t)=>{e[t]={operationId:`${t}Template${i}`};return e},{})}if(e.spec.subresources&&e.spec.subresources.scale){const e=`/apis/${t}/${a}${n}/${i}/{name}/scale`;r.paths[e]=["get","put"].reduce((e,t)=>{e[t]={operationId:`${t}Template${i}`};return e},{})}this._addSpec(r)};if(e.spec.version){a(e.spec.version)}else{const t=e.spec.versions||[];t.forEach(e=>a(e.name))}}}class Client{constructor(e){e=e||{};if(e.config){a("Client({ config }), see "+"https://github.com/godaddy/kubernetes-client/blob/master/merging-with-kubernetes.md")}let t=e.backend;if(!t){if(e.config){t=new c(e.config)}else{const e=new s;e.loadFromDefault();t=new c({kubeconfig:e})}}let i=e.spec;if(!i&&e.version){const t=o.join(__dirname,"specs",`swagger-${e.version}.json.gz`);i=JSON.parse(u.gunzipSync(r.readFileSync(t)))}const n=new Root({splits:[],backend:t,getNames:e.getNames||l});if(i)n._addSpec(i);return n}}class Client1_13 extends Client{constructor(e){super(Object.assign({},e,{version:"1.13"}))}}e.exports={Client:Client,Client1_13:Client1_13}},function(e,t,i){"use strict";var n=this&&this.__awaiter||function(e,t,i,n){function adopt(e){return e instanceof i?e:new i(function(t){t(e)})}return new(i||(i=Promise))(function(i,a){function fulfilled(e){try{step(n.next(e))}catch(e){a(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){a(e)}}function step(e){e.done?i(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)if(Object.hasOwnProperty.call(e,i))t[i]=e[i];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const r=a(i(9));function exec(e,t,i){return n(this,void 0,void 0,function*(){const n=r.argStringToArray(e);if(n.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const a=n[0];t=n.slice(1).concat(t||[]);const s=new r.ToolRunner(a,t,i);return s.exec()})}t.exec=exec},,function(e,t,i){"use strict";var n=i(945);e.exports=new n("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})},function(e,t,i){var n=i(602);var a=i(747);n.register("sed",_sed,{globStart:3,canReceivePipe:true,cmdOptions:{i:"inplace"}});function _sed(e,t,i,r){var s=n.readFromPipe();if(typeof i!=="string"&&typeof i!=="function"){if(typeof i==="number"){i=i.toString()}else{n.error("invalid replacement string")}}if(typeof t==="string"){t=RegExp(t)}if(!r&&!s){n.error("no files given")}r=[].slice.call(arguments,3);if(s){r.unshift("-")}var o=[];r.forEach(function(r){if(!a.existsSync(r)&&r!=="-"){n.error("no such file or directory: "+r,2,{continue:true});return}var u=r==="-"?s:a.readFileSync(r,"utf8");var l=u.split("\n");var c=l.map(function(e){return e.replace(t,i)}).join("\n");o.push(c);if(e.inplace){a.writeFileSync(r,c,"utf8")}});return o.join("\n")}e.exports=_sed},,,,function(e){e.exports={$id:"cache.json#",$schema:"http://json-schema.org/draft-06/schema#",properties:{beforeRequest:{oneOf:[{type:"null"},{$ref:"beforeRequest.json#"}]},afterRequest:{oneOf:[{type:"null"},{$ref:"afterRequest.json#"}]},comment:{type:"string"}}}},function(e){e.exports=new Map([["A128CBC-HS256",256],["A128GCM",128],["A192CBC-HS384",384],["A192GCM",192],["A256CBC-HS512",512],["A256GCM",256]])},function(e,t,i){const n=i(274);let a=i(918);const{JWSInvalid:r}=i(466);a=a.bind(undefined,r);const s=(e,[t])=>{return`${t.protected}.${e}.${t.signature}`};s.validate=((e,{0:{unprotectedHeader:t,protectedHeader:i},length:n})=>{if(n!==1||t){throw new r("JWS Compact Serialization doesn't support multiple recipients or JWS unprotected headers")}a(i,t,i?i.crit:undefined)});const o=(e,[t])=>{const{header:i,signature:n,protected:a}=t;return{payload:e,...a?{protected:a}:undefined,...i?{header:i}:undefined,signature:n}};o.validate=((e,{0:{unprotectedHeader:t,protectedHeader:i},length:n})=>{if(n!==1){throw new r("Flattened JWS JSON Serialization doesn't support multiple recipients")}a(i,t,i?i.crit:undefined)});const u=(e,t)=>{return{payload:e,signatures:t.map(({header:e,signature:t,protected:i})=>{return{...i?{protected:i}:undefined,...e?{header:e}:undefined,signature:t}})}};u.validate=((e,t)=>{let i=false;t.forEach(({protectedHeader:e,unprotectedHeader:t})=>{if(e&&!i&&"b64"in e){i=true}a(e,t,e?e.crit:undefined)});if(i){const e=t.map(({protectedHeader:e})=>e&&e.b64);if(!e.every((e,t,[i])=>e===i)){throw new r('the "b64" Header Parameter value MUST be the same for all recipients')}}});const l=e=>{return n(e)&&(typeof e.payload==="string"||Buffer.isBuffer(e.payload))};const c=e=>{return n(e)&&typeof e.signature==="string"&&(e.header===undefined||n(e.header))&&(e.protected===undefined||typeof e.protected==="string")};const d=e=>{if(Array.isArray(e.signatures)&&e.signatures.every(c)){return true}return false};const p=e=>{if(typeof e==="string"&&e.split(".").length===3){return"compact"}if(l(e)){if(d(e)){return"general"}if(c(e)){return"flattened"}}throw new r("JWS malformed or invalid serialization")};e.exports={compact:s,flattened:o,general:u,detect:p}},function(e,t,i){const n=i(255);e.exports=function(){this.seq().obj(this.key("algorithm").objid(n),this.key("parameters").optional().choice({namedCurve:this.objid(n),null:this.null_()}))}},function(e,t,i){const{deprecate:n}=i(669);const a=n(()=>{},'"P-256K" EC curve name is deprecated');e.exports={name:"secp256k1",rename(t){if(t!=="secp256k1"){a()}e.exports.name=t}}},function(e,t,i){var n=i(357);var a=i(215).Buffer;var r=i(362);var s=i(584);var o=s.newInvalidAsn1Error;var u={size:1024,growthFactor:8};function merge(e,t){n.ok(e);n.equal(typeof e,"object");n.ok(t);n.equal(typeof t,"object");var i=Object.getOwnPropertyNames(e);i.forEach(function(i){if(t[i])return;var n=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,n)});return t}function Writer(e){e=merge(u,e||{});this._buf=a.alloc(e.size||1024);this._size=this._buf.length;this._offset=0;this._options=e;this._seq=[]}Object.defineProperty(Writer.prototype,"buffer",{get:function(){if(this._seq.length)throw o(this._seq.length+" unended sequence(s)");return this._buf.slice(0,this._offset)}});Writer.prototype.writeByte=function(e){if(typeof e!=="number")throw new TypeError("argument must be a Number");this._ensure(1);this._buf[this._offset++]=e};Writer.prototype.writeInt=function(e,t){if(typeof e!=="number")throw new TypeError("argument must be a Number");if(typeof t!=="number")t=r.Integer;var i=4;while(((e&4286578688)===0||(e&4286578688)===4286578688>>0)&&i>1){i--;e<<=8}if(i>4)throw o("BER ints cannot be > 0xffffffff");this._ensure(2+i);this._buf[this._offset++]=t;this._buf[this._offset++]=i;while(i-- >0){this._buf[this._offset++]=(e&4278190080)>>>24;e<<=8}};Writer.prototype.writeNull=function(){this.writeByte(r.Null);this.writeByte(0)};Writer.prototype.writeEnumeration=function(e,t){if(typeof e!=="number")throw new TypeError("argument must be a Number");if(typeof t!=="number")t=r.Enumeration;return this.writeInt(e,t)};Writer.prototype.writeBoolean=function(e,t){if(typeof e!=="boolean")throw new TypeError("argument must be a Boolean");if(typeof t!=="number")t=r.Boolean;this._ensure(3);this._buf[this._offset++]=t;this._buf[this._offset++]=1;this._buf[this._offset++]=e?255:0};Writer.prototype.writeString=function(e,t){if(typeof e!=="string")throw new TypeError("argument must be a string (was: "+typeof e+")");if(typeof t!=="number")t=r.OctetString;var i=a.byteLength(e);this.writeByte(t);this.writeLength(i);if(i){this._ensure(i);this._buf.write(e,this._offset);this._offset+=i}};Writer.prototype.writeBuffer=function(e,t){if(typeof t!=="number")throw new TypeError("tag must be a number");if(!a.isBuffer(e))throw new TypeError("argument must be a buffer");this.writeByte(t);this.writeLength(e.length);this._ensure(e.length);e.copy(this._buf,this._offset,0,e.length);this._offset+=e.length};Writer.prototype.writeStringArray=function(e){if(!e instanceof Array)throw new TypeError("argument must be an Array[String]");var t=this;e.forEach(function(e){t.writeString(e)})};Writer.prototype.writeOID=function(e,t){if(typeof e!=="string")throw new TypeError("argument must be a string");if(typeof t!=="number")t=r.OID;if(!/^([0-9]+\.){3,}[0-9]+$/.test(e))throw new Error("argument is not a valid OID string");function encodeOctet(e,t){if(t<128){e.push(t)}else if(t<16384){e.push(t>>>7|128);e.push(t&127)}else if(t<2097152){e.push(t>>>14|128);e.push((t>>>7|128)&255);e.push(t&127)}else if(t<268435456){e.push(t>>>21|128);e.push((t>>>14|128)&255);e.push((t>>>7|128)&255);e.push(t&127)}else{e.push((t>>>28|128)&255);e.push((t>>>21|128)&255);e.push((t>>>14|128)&255);e.push((t>>>7|128)&255);e.push(t&127)}}var i=e.split(".");var n=[];n.push(parseInt(i[0],10)*40+parseInt(i[1],10));i.slice(2).forEach(function(e){encodeOctet(n,parseInt(e,10))});var a=this;this._ensure(2+n.length);this.writeByte(t);this.writeLength(n.length);n.forEach(function(e){a.writeByte(e)})};Writer.prototype.writeLength=function(e){if(typeof e!=="number")throw new TypeError("argument must be a Number");this._ensure(4);if(e<=127){this._buf[this._offset++]=e}else if(e<=255){this._buf[this._offset++]=129;this._buf[this._offset++]=e}else if(e<=65535){this._buf[this._offset++]=130;this._buf[this._offset++]=e>>8;this._buf[this._offset++]=e}else if(e<=16777215){this._buf[this._offset++]=131;this._buf[this._offset++]=e>>16;this._buf[this._offset++]=e>>8;this._buf[this._offset++]=e}else{throw o("Length too long (> 4 bytes)")}};Writer.prototype.startSequence=function(e){if(typeof e!=="number")e=r.Sequence|r.Constructor;this.writeByte(e);this._seq.push(this._offset);this._ensure(3);this._offset+=3};Writer.prototype.endSequence=function(){var e=this._seq.pop();var t=e+3;var i=this._offset-t;if(i<=127){this._shift(t,i,-2);this._buf[e]=i}else if(i<=255){this._shift(t,i,-1);this._buf[e]=129;this._buf[e+1]=i}else if(i<=65535){this._buf[e]=130;this._buf[e+1]=i>>8;this._buf[e+2]=i}else if(i<=16777215){this._shift(t,i,1);this._buf[e]=131;this._buf[e+1]=i>>16;this._buf[e+2]=i>>8;this._buf[e+3]=i}else{throw o("Sequence too long")}};Writer.prototype._shift=function(e,t,i){n.ok(e!==undefined);n.ok(t!==undefined);n.ok(i);this._buf.copy(this._buf,e+i,e,e+t);this._offset+=i};Writer.prototype._ensure=function(e){n.ok(e);if(this._size-this._offset{e=new n(e,i);t=new n(t,i);let a=false;e:for(const n of e.set){for(const e of t.set){const t=u(n,e,i);a=a||t!==null;if(t)continue e}if(a)return false}return true};const u=(e,t,i)=>{if(e.length===1&&e[0].semver===a)return t.length===1&&t[0].semver===a;const n=new Set;let o,u;for(const t of e){if(t.operator===">"||t.operator===">=")o=l(o,t,i);else if(t.operator==="<"||t.operator==="<=")u=c(u,t,i);else n.add(t.semver)}if(n.size>1)return null;let d;if(o&&u){d=s(o.semver,u.semver,i);if(d>0)return null;else if(d===0&&(o.operator!==">="||u.operator!=="<="))return null}for(const e of n){if(o&&!r(e,String(o),i))return null;if(u&&!r(e,String(u),i))return null;for(const n of t){if(!r(e,String(n),i))return false}return true}let p,f;let h,m;for(const e of t){m=m||e.operator===">"||e.operator===">=";h=h||e.operator==="<"||e.operator==="<=";if(o){if(e.operator===">"||e.operator===">="){p=l(o,e,i);if(p===e)return false}else if(o.operator===">="&&!r(o.semver,String(e),i))return false}if(u){if(e.operator==="<"||e.operator==="<="){f=c(u,e,i);if(f===e)return false}else if(u.operator==="<="&&!r(u.semver,String(e),i))return false}if(!e.operator&&(u||o)&&d!==0)return false}if(o&&h&&!u&&d!==0)return false;if(u&&m&&!o&&d!==0)return false;return true};const l=(e,t,i)=>{if(!e)return t;const n=s(e.semver,t.semver,i);return n>0?e:n<0?t:t.operator===">"&&e.operator===">="?t:e};const c=(e,t,i)=>{if(!e)return t;const n=s(e.semver,t.semver,i);return n<0?e:n>0?t:t.operator==="<"&&e.operator==="<="?t:e};e.exports=o}],function(e){"use strict";!function(){e.nmd=function(e){e.paths=[];if(!e.children)e.children=[];Object.defineProperty(e,"loaded",{enumerable:true,get:function(){return e.l}});Object.defineProperty(e,"id",{enumerable:true,get:function(){return e.i}});return e}}();!function(){e.r=function(e){if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}}();!function(){var t=Object.prototype.hasOwnProperty;e.d=function(e,i,n){if(!t.call(e,i)){Object.defineProperty(e,i,{enumerable:true,get:n})}}}();!function(){e.t=function(t,i){if(i&1)t=this(t);if(i&8)return t;if(i&4&&typeof t==="object"&&t&&t.__esModule)return t;var n=Object.create(null);e.r(n);Object.defineProperty(n,"default",{enumerable:true,value:t});if(i&2&&typeof t!="string")for(var a in t)e.d(n,a,function(e){return t[e]}.bind(null,a));return n}}();!function(){e.n=function(t){var i=t&&t.__esModule?function getDefault(){return t["default"]}:function getModuleExports(){return t};e.d(i,"a",i);return i}}();!function(){e.hmd=function(e){e=Object.create(e);if(!e.children)e.children=[];Object.defineProperty(e,"loaded",{enumerable:true,get:function(){return e.l}});Object.defineProperty(e,"id",{enumerable:true,get:function(){return e.i}});Object.defineProperty(e,"exports",{enumerable:true,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}});return e}}()}); \ No newline at end of file diff --git a/src/model/image-tag.js b/src/model/image-tag.js index 539da3c2d..65fa7d344 100644 --- a/src/model/image-tag.js +++ b/src/model/image-tag.js @@ -1,4 +1,4 @@ -import { has, get, trimEnd, trimStart } from 'lodash-es'; +import { trimEnd, trimStart } from 'lodash-es'; import Platform from './platform'; class ImageTag { @@ -15,15 +15,7 @@ class ImageTag { throw new Error(`Invalid version "${version}".`); } - if (!has(ImageTag.targetPlatformToImageSuffixMap, platform)) { - throw new Error(`Platform "${platform}" is currently not supported.`); - } - - const builderPlatform = get( - ImageTag.targetPlatformToImageSuffixMap, - platform, - ImageTag.imageSuffixes.generic, - ); + const builderPlatform = ImageTag.getTargetPlatformToImageSuffixMap(platform, version); Object.assign(this, { repository, name, version, platform, builderPlatform, customImage }); } @@ -39,38 +31,78 @@ class ImageTag { mac: 'mac-mono', windows: 'windows-mono', linux: 'base', + linuxIl2cpp: 'linux-il2cpp', android: 'android', ios: 'ios', facebook: 'facebook', }; } - static get targetPlatformToImageSuffixMap() { - const { generic, webgl, mac, windows, linux, android, ios, facebook } = ImageTag.imageSuffixes; + static getTargetPlatformToImageSuffixMap(platform, version) { + const { + generic, + webgl, + mac, + windows, + linux, + linuxIl2cpp, + android, + ios, + facebook, + } = ImageTag.imageSuffixes; + const [major, minor] = version.split('.'); // @see: https://docs.unity3d.com/ScriptReference/BuildTarget.html - return { - [Platform.types.StandaloneOSX]: mac, - [Platform.types.StandaloneWindows]: windows, - [Platform.types.StandaloneWindows64]: windows, - [Platform.types.StandaloneLinux64]: linux, - [Platform.types.iOS]: ios, - [Platform.types.Android]: android, - [Platform.types.WebGL]: webgl, - [Platform.types.WSAPlayer]: windows, - [Platform.types.PS4]: windows, - [Platform.types.XboxOne]: windows, - [Platform.types.tvOS]: windows, - [Platform.types.Switch]: windows, + switch (platform) { + case Platform.types.StandaloneOSX: + return mac; + case Platform.types.StandaloneWindows: + return windows; + case Platform.types.StandaloneWindows64: + return windows; + case Platform.types.StandaloneLinux64: { + // Unity versions before 2019.3 do not support il2cpp + if (major >= 2020 || (major === 2019 && minor >= 3)) { + return linuxIl2cpp; + } + return linux; + } + case Platform.types.iOS: + return ios; + case Platform.types.Android: + return android; + case Platform.types.WebGL: + return webgl; + case Platform.types.WSAPlayer: + return windows; + case Platform.types.PS4: + return windows; + case Platform.types.XboxOne: + return windows; + case Platform.types.tvOS: + return windows; + case Platform.types.Switch: + return windows; // Unsupported - [Platform.types.Lumin]: windows, - [Platform.types.BJM]: windows, - [Platform.types.Stadia]: windows, - [Platform.types.Facebook]: facebook, - [Platform.types.NoTarget]: generic, + case Platform.types.Lumin: + return windows; + case Platform.types.BJM: + return windows; + case Platform.types.Stadia: + return windows; + case Platform.types.Facebook: + return facebook; + case Platform.types.NoTarget: + return generic; + // Test specific - [Platform.types.Test]: generic, - }; + case Platform.types.Test: + return generic; + default: + throw new Error(` + Platform must be one of the ones described in the documentation. + "${platform}" is currently not supported.`); + } } get tag() {