PageSourceSearch

https://soax.com/curlconverter/main.js

js soax.com collected 2026-10-02 02:18:54 UTC 405,570 bytes, 1 lines download raw bytes

1(()=>{var __webpack_modules__={5237:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{var r=n(9418),s=e([r]);r=(s.then?(await s)():s)[0],window.curlconverter=r,t()}catch(e){t(e)}}))},7159:e=>{"use strict";const t={},n=t.hasOwnProperty,r=(e,t)=>{for(const r in e)n.call(e,r)&&t(r,e[r])},s=e=>"\\u"+("0000"+e).slice(-4),o=(e,t)=>{let n=e.toString(16);return t?n:n.toUpperCase()},a=t.toString,i=Array.isArray,l={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},u=/[\\\b\f\n\r\t]/,c=/[0-9]/,p=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,d=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,_=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,h=(e,t)=>{const n=()=>{x=T,++t.indentLevel,T=t.indent.repeat(t.indentLevel)},m={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:"\t",indentLevel:0,__inline1__:!1,__inline2__:!1},f=t&&t.json;var y,g;f&&(m.quotes="double",m.wrap=!0),y=m,t=(g=t)?(r(g,((e,t)=>{y[e]=t})),y):y,"single"!=t.quotes&&"double"!=t.quotes&&"backtick"!=t.quotes&&(t.quotes="single");const w="double"==t.quotes?'"':"backtick"==t.quotes?"`":"'",S=t.compact,b=t.lowercaseHex;let T=t.indent.repeat(t.indentLevel),x="";const E=t.__inline1__,v=t.__inline2__,A=S?"":"\n";let R,C=!0;const O="binary"==t.numbers,P="octal"==t.numbers,L="decimal"==t.numbers,N="hexadecimal"==t.numbers;if(f&&e&&"function"==typeof e.toJSON&&(e=e.toJSON()),"string"!=typeof(F=e)&&"[object String]"!=a.call(F)){if((e=>"[object Map]"==a.call(e))(e))return 0==e.size?"new Map()":(S||(t.__inline1__=!0,t.__inline2__=!1),"new Map("+h(Array.from(e),t)+")");if((e=>"[object Set]"==a.call(e))(e))return 0==e.size?"new Set()":"new Set("+h(Array.from(e),t)+")";if((e=>"function"==typeof Buffer&&Buffer.isBuffer(e))(e))return 0==e.length?"Buffer.from([])":"Buffer.from("+h(Array.from(e),t)+")";if(i(e))return R=[],t.wrap=!0,E&&(t.__inline1__=!1,t.__inline2__=!0),v||n(),((e,t)=>{const n=e.length;let r=-1;for(;++r<n;)t(e[r])})(e,(e=>{C=!1,v&&(t.__inline2__=!1),R.push((S||v?"":T)+h(e,t))})),C?"[]":v?"["+R.join(", ")+"]":"["+A+R.join(","+A)+A+(S?"":x)+"]";if(!(e=>"number"==typeof e||"[object Number]"==a.call(e))(e))return(e=>"[object Object]"==a.call(e))(e)?(R=[],t.wrap=!0,n(),r(e,((e,n)=>{C=!1,R.push((S?"":T)+h(e,t)+":"+(S?"":" ")+h(n,t))})),C?"{}":"{"+A+R.join(","+A)+A+(S?"":x)+"}"):f?JSON.stringify(e)||"null":String(e);if(f)return JSON.stringify(e);if(L)return String(e);if(N){let t=e.toString(16);return b||(t=t.toUpperCase()),"0x"+t}if(O)return"0b"+e.toString(2);if(P)return"0o"+e.toString(8)}var F;const k=t.escapeEverything?d:_;return R=e.replace(k,((e,n,r,a,i,d)=>{if(n){if(t.minimal)return n;const e=n.charCodeAt(0),r=n.charCodeAt(1);return t.es6?"\\u{"+o(1024*(e-55296)+r-56320+65536,b)+"}":s(o(e,b))+s(o(r,b))}if(r)return s(o(r.charCodeAt(0),b));if("\0"==e&&!f&&!c.test(d.charAt(i+1)))return"\\0";if(a)return a==w||t.escapeEverything?"\\"+a:a;if(u.test(e))return l[e];if(t.minimal&&!p.test(e))return e;const _=o(e.charCodeAt(0),b);return f||_.length>2?s(_):"\\x"+("00"+_).slice(-2)})),"`"==w&&(R=R.replace(/\$\{/g,"\\${")),t.isScriptContext&&(R=R.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,f?"\\u003C!--":"\\x3C!--")),t.wrap&&(R=w+R+w),R};h.version="3.0.2",e.exports=h},2812:(module,__unused_webpack_exports,__webpack_require__)=>{var __dirname="/",Module=void 0!==Module?Module:{},ENVIRONMENT_IS_WEB="object"==typeof window,ENVIRONMENT_IS_WORKER="function"==typeof importScripts,ENVIRONMENT_IS_NODE="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,TreeSitter=function(){var initPromise,document="object"==typeof window?{currentScript:window.document.currentScript}:null;class Parser{constructor(){this.initialize()}initialize(){throw new Error("cannot construct a Parser before calling `init()`")}static init(moduleOptions){return initPromise||(Module=Object.assign({},Module,moduleOptions),initPromise=new Promise((resolveInitPromise=>{var moduleOverrides=Object.assign({},Module),arguments_=[],thisProgram="./this.program",quit_=(e,t)=>
1{throw t},scriptDirectory="",readAsync,readBinary;function locateFile(e){return Module.locateFile?Module.locateFile(e,scriptDirectory):scriptDirectory+e}if(ENVIRONMENT_IS_NODE){var fs=__webpack_require__(8075),nodePath=__webpack_require__(6279);scriptDirectory=__dirname+"/",readBinary=e=>(e=isFileURI(e)?new URL(e):nodePath.normalize(e),fs.readFileSync(e)),readAsync=(e,t=!0)=>(e=isFileURI(e)?new URL(e):nodePath.normalize(e),new Promise(((n,r)=>{fs.readFile(e,t?void 0:"utf8",((e,s)=>{e?r(e):n(t?s.buffer:s)}))}))),!Module.thisProgram&&process.argv.length>1&&(thisProgram=process.argv[1].replace(/\\/g,"/")),arguments_=process.argv.slice(2),module.exports=Module,quit_=(e,t)=>{throw process.exitCode=e,t}}else(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)&&(ENVIRONMENT_IS_WORKER?scriptDirectory=self.location.href:void 0!==document&&document.currentScript&&(scriptDirectory=document.currentScript.src),scriptDirectory=scriptDirectory.startsWith("blob:")?"":scriptDirectory.substr(0,scriptDirectory.replace(/[?#].*/,"").lastIndexOf("/")+1),ENVIRONMENT_IS_WORKER&&(readBinary=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),readAsync=e=>isFileURI(e)?new Promise(((t,n)=>{var r=new XMLHttpRequest;r.open("GET",e,!0),r.responseType="arraybuffer",r.onload=()=>{(200==r.status||0==r.status&&r.response)&&n(r.response),t(r.status)},r.onerror=t,r.send(null)})):fetch(e,{credentials:"same-origin"}).then((e=>e.ok?e.arrayBuffer():Promise.reject(new Error(e.status+" : "+e.url)))));var out=Module.print||console.log.bind(console),err=Module.printErr||console.error.bind(console);Object.assign(Module,moduleOverrides),moduleOverrides=null,Module.arguments&&(arguments_=Module.arguments),Module.thisProgram&&(thisProgram=Module.thisProgram),Module.quit&&(quit_=Module.quit);var dynamicLibraries=Module.dynamicLibraries||[],wasmBinary,wasmMemory;Module.wasmBinary&&(wasmBinary=Module.wasmBinary);var ABORT=!1,EXITSTATUS,HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64,HEAP_DATA_VIEW;function updateMemoryViews(){var e=wasmMemory.buffer;Module.HEAP_DATA_VIEW=HEAP_DATA_VIEW=new DataView(e),Module.HEAP8=HEAP8=new Int8Array(e),Module.HEAP16=HEAP16=new Int16Array(e),Module.HEAPU8=HEAPU8=new Uint8Array(e),Module.HEAPU16=HEAPU16=new Uint16Array(e),Module.HEAP32=HEAP32=new Int32Array(e),Module.HEAPU32=HEAPU32=new Uint32Array(e),Module.HEAPF32=HEAPF32=new Float32Array(e),Module.HEAPF64=HEAPF64=new Float64Array(e)}if(Module.wasmMemory)wasmMemory=Module.wasmMemory;else{var INITIAL_MEMORY=Module.INITIAL_MEMORY||33554432;wasmMemory=new WebAssembly.Memory({initial:INITIAL_MEMORY/65536,maximum:32768})}updateMemoryViews();var __ATPRERUN__=[],__ATINIT__=[],__ATMAIN__=[],__ATPOSTRUN__=[],__RELOC_FUNCS__=[],runtimeInitialized=!1;function preRun(){if(Module.preRun)for("function"==typeof Module.preRun&&(Module.preRun=[Module.preRun]);Module.preRun.length;)addOnPreRun(Module.preRun.shift());callRuntimeCallbacks(__ATPRERUN__)}function initRuntime(){runtimeInitialized=!0,callRuntimeCallbacks(__RELOC_FUNCS__),callRuntimeCallbacks(__ATINIT__)}function preMain(){callRuntimeCallbacks(__ATMAIN__)}function postRun(){if(Module.postRun)for("function"==typeof Module.postRun&&(Module.postRun=[Module.postRun]);Module.postRun.length;)addOnPostRun(Module.postRun.shift());callRuntimeCallbacks(__ATPOSTRUN__)}function addOnPreRun(e){__ATPRERUN__.unshift(e)}function addOnInit(e){__ATINIT__.unshift(e)}function addOnPostRun(e){__ATPOSTRUN__.unshift(e)}var runDependencies=0,runDependencyWatcher=null,dependenciesFulfilled=null;function getUniqueRunDependency(e){return e}function addRunDependency(e){runDependencies++,Module.monitorRunDependencies?.(runDependencies)}function removeRunDependency(e){if(runDependencies--,Module.monitorRunDependencies?.(runDependencies),0==runDependencies&&(null!==runDependencyWatcher&&(clearInterval(runDependencyWatcher),runDependencyWatcher=null),dependenciesFulfilled)){var t=dependenciesFulfilled;dependenciesFulfilled=null,t()}}function abort(e){throw Module.onAbort?.(e),err(e="Aborted("+e+")"),ABORT=!0,EXITSTATUS=1,e+=". Build with -sASSERTIONS for more info.",new WebAssembly.RuntimeError(e)}var dataURIPrefix="data:application/octet-stream;base64,",isDataURI=e=>e.startsWith(dataURIPrefix),isFileURI=e=>e.startsWith("file://"),wasmBinaryFile;function findWasmBinary(){var e="tree-sitter.wasm";return isDataURI(e)?e:locateFile(e)}function getBinarySync(e){if(e==wasmBinaryFile&&wasmBinary)return new Uint8Array(wasmBinary);if(readBinary)return readBinary(e);throw"both async and sync fetching of the wasm failed"}function getBinaryPromise(e){return wasmBinary?Promise.resolve().then((()=>getBinarySync(e))):readAsync(e).then((e=>new Uint8Array(e)),(()=>getBinarySync(e)))}function instantiateArrayBuffer(e,t,n){return getBinaryPromise(e).then((e=>WebAssembly.instantiate(e,t))).then(n,(e=>{err(`failed to asynchronously prepare wasm: ${e}`),abort(e)}))}function instantiateAsync(e,t,n,r){return e||"function"!=typeof WebAssembly.instantiateStreaming||isDataURI(t)||isFileURI(t)||ENVIRONMENT_IS_NODE||"function"!=typeof fetch?instantiateArrayBuffer(t,n,r):fetch(t,{credentials:"same-origin"}).then((e=>WebAssembly.instantiateStreaming(e,n).then(r,(function(e){return err(`wasm streaming compile failed: ${e}`),err("falling back to ArrayBuffer instantiation"),instantiateArrayBuffer(t,n,r)}))))}function getWasmImports(){return{env:wasmImports,wasi_snapshot_preview1:wasmImports,"GOT.mem":new Proxy(wasmImports,GOTHandler),"GOT.func":new Proxy(wasmImports,GOTHandler)}}function createWasm(){var e=getWasmImports();function t(e,t){wasmExports=e.exports,wasmExports=relocateExports(wasmExports,1024);var n=getDylinkMetadata(t);return n.neededDynlibs&&(dynamicLibraries=n.neededDynlibs.concat(dynamicLibraries)),mergeLibSymbols(wasmExports,"main"),LDSO.init(),loadDylibs(),addOn
vendor: 6,344 bytes, line 1
1Init(wasmExports.__wasm_call_ctors),__RELOC_FUNCS__.push(wasmExports.__wasm_apply_data_relocs),removeRunDependency("wasm-instantiate"),wasmExports}if(addRunDependency("wasm-instantiate"),Module.instantiateWasm)try{return Module.instantiateWasm(e,t)}catch(e){return err(`Module.instantiateWasm callback failed with error: ${e}`),!1}return wasmBinaryFile||(wasmBinaryFile=findWasmBinary()),instantiateAsync(wasmBinary,wasmBinaryFile,e,(function(e){t(e.instance,e.module)})),{}}var ASM_CONSTS={};function ExitStatus(e){this.name="ExitStatus",this.message=`Program terminated with exit(${e})`,this.status=e}var GOT={},currentModuleWeakSymbols=new Set([]),GOTHandler={get(e,t){var n=GOT[t];return n||(n=GOT[t]=new WebAssembly.Global({value:"i32",mutable:!0})),currentModuleWeakSymbols.has(t)||(n.required=!0),n}},LE_HEAP_LOAD_F32=e=>HEAP_DATA_VIEW.getFloat32(e,!0),LE_HEAP_LOAD_F64=e=>HEAP_DATA_VIEW.getFloat64(e,!0),LE_HEAP_LOAD_I16=e=>HEAP_DATA_VIEW.getInt16(e,!0),LE_HEAP_LOAD_I32=e=>HEAP_DATA_VIEW.getInt32(e,!0),LE_HEAP_LOAD_U32=e=>HEAP_DATA_VIEW.getUint32(e,!0),LE_HEAP_STORE_F32=(e,t)=>HEAP_DATA_VIEW.setFloat32(e,t,!0),LE_HEAP_STORE_F64=(e,t)=>HEAP_DATA_VIEW.setFloat64(e,t,!0),LE_HEAP_STORE_I16=(e,t)=>HEAP_DATA_VIEW.setInt16(e,t,!0),LE_HEAP_STORE_I32=(e,t)=>HEAP_DATA_VIEW.setInt32(e,t,!0),LE_HEAP_STORE_U32=(e,t)=>HEAP_DATA_VIEW.setUint32(e,t,!0),callRuntimeCallbacks=e=>{for(;e.length>0;)e.shift()(Module)},UTF8Decoder="undefined"!=typeof TextDecoder?new TextDecoder:void 0,UTF8ArrayToString=(e,t,n)=>{for(var r=t+n,s=t;e[s]&&!(s>=r);)++s;if(s-t>16&&e.buffer&&UTF8Decoder)return UTF8Decoder.decode(e.subarray(t,s));for(var o="";t<s;){var a=e[t++];if(128&a){var i=63&e[t++];if(192!=(224&a)){var l=63&e[t++];if((a=224==(240&a)?(15&a)<<12|i<<6|l:(7&a)<<18|i<<12|l<<6|63&e[t++])<65536)o+=String.fromCharCode(a);else{var u=a-65536;o+=String.fromCharCode(55296|u>>10,56320|1023&u)}}else o+=String.fromCharCode((31&a)<<6|i)}else o+=String.fromCharCode(a)}return o},getDylinkMetadata=e=>{var t=0,n=0;function r(){for(var n=0,r=1;;){var s=e[t++];if(n+=(127&s)*r,r*=128,!(128&s))break}return n}function s(){var n=r();return UTF8ArrayToString(e,(t+=n)-n,n)}function o(e,t){if(e)throw new Error(t)}var a="dylink.0";if(e instanceof WebAssembly.Module){var i=WebAssembly.Module.customSections(e,a);0===i.length&&(a="dylink",i=WebAssembly.Module.customSections(e,a)),o(0===i.length,"need dylink section"),n=(e=new Uint8Array(i[0])).length}else{var l=new Uint32Array(new Uint8Array(e.subarray(0,24)).buffer);o(!(1836278016==l[0]||6386541==l[0]),"need to see wasm magic number"),o(0!==e[8],"need the dylink section to be first"),t=9;var u=r();n=t+u,a=s()}var c={neededDynlibs:[],tlsExports:new Set,weakImports:new Set};if("dylink"==a){c.memorySize=r(),c.memoryAlign=r(),c.tableSize=r(),c.tableAlign=r();for(var p=r(),d=0;d<p;++d){var _=s();c.neededDynlibs.push(_)}}else for(o("dylink.0"!==a);t<n;){var h=e[t++],m=r();if(1===h)c.memorySize=r(),c.memoryAlign=r(),c.tableSize=r(),c.tableAlign=r();else if(2===h)for(p=r(),d=0;d<p;++d)_=s(),c.neededDynlibs.push(_);else if(3===h)for(var f=r();f--;){var y=s();256&r()&&c.tlsExports.add(y)}else if(4===h)for(f=r();f--;)s(),y=s(),1==(3&r())&&c.weakImports.add(y);else t+=m}return c};function getValue(e,t="i8"){switch(t.endsWith("*")&&(t="*"),t){case"i1":case"i8":return HEAP8[e];case"i16":return LE_HEAP_LOAD_I16(2*(e>>1));case"i32":return LE_HEAP_LOAD_I32(4*(e>>2));case"i64":abort("to do getValue(i64) use WASM_BIGINT");case"float":return LE_HEAP_LOAD_F32(4*(e>>2));case"double":return LE_HEAP_LOAD_F64(8*(e>>3));case"*":return LE_HEAP_LOAD_U32(4*(e>>2));default:abort(`invalid type for getValue: ${t}`)}}var newDSO=(e,t,n)=>{var r={refcount:1/0,name:e,exports:n,global:!0};return LDSO.loadedLibsByName[e]=r,null!=t&&(LDSO.loadedLibsByHandle[t]=r),r},LDSO={loadedLibsByName:{},loadedLibsByHandle:{},init(){newDSO("__main__",0,wasmImports)}},___heap_base=78112,zeroMemory=(e,t)=>(HEAPU8.fill(0,e,e+t),e),alignMemory=(e,t)=>Math.ceil(e/t)*t,getMemory=e=>{if(runtimeInitialized)return zeroMemory(_malloc(e),e);var t=___heap_base,n=t+alignMemory(e,16);return ___heap_base=n,GOT.__heap_base.value=n,t},isInternalSym=e=>["__cpp_exception","__c_longjmp","__wasm_apply_data_relocs","__dso_handle","__tls_size","__tls_align","__set_stack_limits","_emscripten_tls_init","__wasm_init_tls","__wasm_call_ctors","__start_em_asm","__stop_em_asm","__start_em_js","__stop_em_js"].includes(e)||e.startsWith("__em_js__"),uleb128Encode=(e,t)=>{e<128?t.push(e):t.push(e%128|128,e>>7)},sigToWasmTypes=e=>{for(var t={i:"i32",j:"i64",f:"f32",d:"f64",e:"externref",p:"i32"},n={parameters:[],results:"v"==e[0]?[]:[t[e[0]]]},r=1;r<e.length;++r)n.parameters.push(t[e[r]]);return n},generateFuncType=(e,t)=>{var n=e.slice(0,1),r=e.slice(1),s={i:127,p:127,j:126,f:125,d:124,e:111};t.push(96),uleb128Encode(r.length,t);for(var o=0;o<r.length;++o)t.push(s[r[o]]);"v"==n?t.push(0):t.push(1,s[n])},convertJsFunctionToWasm=(e,t)=>{if("function"==typeof WebAssembly.Function)return new WebAssembly.Function(sigToWasmTypes(t),e);var n=[1];generateFuncType(t,n);var r=[0,97,115,109,1,0,0,0,1];uleb128Encode(n.length,r),r.push(...n),r.push(2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0);var s=new WebAssembly.Module(new Uint8Array(r));return new WebAssembly.Instance(s,{e:{f:e}}).exports.f},wasmTableMirror=[],wasmTable=new WebAssembly.Table({initial:28,element:"anyfunc"}),getWasmTableEntry=e=>{var t=wasmTableMirror[e];return t||(e>=wasmTableMirror.length&&(wasmTableMirror.length=e+1),wasmTableMirror[e]=t=wasmTable.get(e)),t},updateTableMap=(e,t)=>{if(functionsInTableMap)for(var n=e;n<e+t;n++){var r=getWasmTableEntry(n);r&&functionsInTableMap.set(r,n)}},functionsInTableMap,getFunctionAddress=e=>(functionsInTableMap||(functionsInTableMap=new WeakMap,updateTableMap(0,wasmTable.length)),functionsInTableMap.get(e)||0),freeTableIndexes=[],getEmptyTableSlot=()=>{if(freeTableIndexes.length)return freeTableIndexes.pop();try{wasmTable.grow(1)}catch(e){if(!(e instanceof RangeError))throw e;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}return wasmTable.length-1},setWasmTableEntry=(e,t)=>{wasmTable.set(e,t),wasmTableMirror[e]=wasmTable.get(e)},addFunction=(e,t)=>{var n=getFunctionAddress(e);if(n)return n;var r=getEmptyTableSlot();try{setWasmTableEntry(r,e)}catch(n){if(!(n instanceof TypeError))throw n;var s=convertJsFunctionToWasm(e,t);
1setWasmTableEntry(r,s)}return functionsInTableMap.set(e,r),r},updateGOT=(e,t)=>{for(var n in e)if(!isInternalSym(n)){var r=e[n];n.startsWith("orig$")&&(n=n.split("$")[1],t=!0),GOT[n]||=new WebAssembly.Global({value:"i32",mutable:!0}),(t||0==GOT[n].value)&&("function"==typeof r?GOT[n].value=addFunction(r):"number"==typeof r?GOT[n].value=r:err(`unhandled export type for '${n}': ${typeof r}`))}},relocateExports=(e,t,n)=>{var r={};for(var s in e){var o=e[s];"object"==typeof o&&(o=o.value),"number"==typeof o&&(o+=t),r[s]=o}return updateGOT(r,n),r},isSymbolDefined=e=>{var t=wasmImports[e];return!(!t||t.stub)},dynCallLegacy=(e,t,n)=>(e=e.replace(/p/g,"i"),(0,Module["dynCall_"+e])(t,...n)),dynCall=(e,t,n=[])=>e.includes("j")?dynCallLegacy(e,t,n):getWasmTableEntry(t)(...n),stackSave=()=>_emscripten_stack_get_current(),stackRestore=e=>__emscripten_stack_restore(e),createInvokeFunction=e=>(t,...n)=>{var r=stackSave();try{return dynCall(e,t,n)}catch(e){if(stackRestore(r),e!==e+0)throw e;_setThrew(1,0)}},resolveGlobalSymbol=(e,t=!1)=>{var n;return t&&"orig$"+e in wasmImports&&(e="orig$"+e),isSymbolDefined(e)?n=wasmImports[e]:e.startsWith("invoke_")&&(n=wasmImports[e]=createInvokeFunction(e.split("_")[1])),{sym:n,name:e}},UTF8ToString=(e,t)=>e?UTF8ArrayToString(HEAPU8,e,t):"",loadWebAssemblyModule=(binary,flags,libName,localScope,handle)=>{var metadata=getDylinkMetadata(binary);function loadModule(){var firstLoad=!handle||!HEAP8[handle+8];if(firstLoad){var memAlign=Math.pow(2,metadata.memoryAlign),memoryBase=metadata.memorySize?alignMemory(getMemory(metadata.memorySize+memAlign),memAlign):0,tableBase=metadata.tableSize?wasmTable.length:0;handle&&(HEAP8[handle+8]=1,LE_HEAP_STORE_U32(4*(handle+12>>2),memoryBase),LE_HEAP_STORE_I32(4*(handle+16>>2),metadata.memorySize),LE_HEAP_STORE_U32(4*(handle+20>>2),tableBase),LE_HEAP_STORE_I32(4*(handle+24>>2),metadata.tableSize))}else memoryBase=LE_HEAP_LOAD_U32(4*(handle+12>>2)),tableBase=LE_HEAP_LOAD_U32(4*(handle+20>>2));var tableGrowthNeeded=tableBase+metadata.tableSize-wasmTable.length,moduleExports;function resolveSymbol(e){var t=resolveGlobalSymbol(e).sym;return!t&&localScope&&(t=localScope[e]),t||(t=moduleExports[e]),t}tableGrowthNeeded>0&&wasmTable.grow(tableGrowthNeeded);var proxyHandler={get(e,t){switch(t){case"__memory_base":return memoryBase;case"__table_base":return tableBase}return t in wasmImports&&!wasmImports[t].stub?wasmImports[t]:(t in e||(e[t]=(...e)=>(n||=resolveSymbol(t),n(...e))),e[t]);var n}},proxy=new Proxy({},proxyHandler),info={"GOT.mem":new Proxy({},GOTHandler),"GOT.func":new Proxy({},GOTHandler),env:proxy,wasi_snapshot_preview1:proxy};function postInstantiation(module,instance){function addEmAsm(addr,body){for(var args=[],arity=0;arity<16&&-1!=body.indexOf("$"+arity);arity++)args.push("$"+arity);args=args.join(",");var func=`(${args}) => { ${body} };`;ASM_CONSTS[start]=eval(func)}if(updateTableMap(tableBase,metadata.tableSize),moduleExports=relocateExports(instance.exports,memoryBase),flags.allowUndefined||reportUndefinedSymbols(),"__start_em_asm"in moduleExports)for(var start=moduleExports.__start_em_asm,stop=moduleExports.__stop_em_asm;start<stop;){var jsString=UTF8ToString(start);addEmAsm(start,jsString),start=HEAPU8.indexOf(0,start)+1}function addEmJs(name,cSig,body){var jsArgs=[];if(cSig=cSig.slice(1,-1),"void"!=cSig)for(var i in cSig=cSig.split(","),cSig){var jsArg=cSig[i].split(" ").pop();jsArgs.push(jsArg.replace("*",""))}var func=`(${jsArgs}) => ${body};`;moduleExports[name]=eval(func)}for(var name in moduleExports)if(name.startsWith("__em_js__")){var start=moduleExports[name],jsString=UTF8ToString(start),parts=jsString.split("<::>");addEmJs(name.replace("__em_js__",""),parts[0],parts[1]),delete moduleExports[name]}var applyRelocs=moduleExports.__wasm_apply_data_relocs;applyRelocs&&(runtimeInitialized?applyRelocs():__RELOC_FUNCS__.push(applyRelocs));var init=moduleExports.__wasm_call_ctors;return init&&(runtimeInitialized?init():__ATINIT__.push(init)),moduleExports}if(flags.loadAsync){if(binary instanceof WebAssembly.Module){var instance=new WebAssembly.Instance(binary,info);return Promise.resolve(postInstantiation(binary,instance))}return WebAssembly.instantiate(binary,info).then((e=>postInstantiation(e.module,e.instance)))}var module=binary instanceof WebAssembly.Module?binary:new WebAssembly.Module(binary),instance=new WebAssembly.Instance(module,info);return postInstantiation(module,instance)}return currentModuleWeakSymbols=metadata.weakImports,flags.loadAsync?metadata.neededDynlibs.reduce(((e,t)=>e.then((()=>loadDynamicLibrary(t,flags,localScope)))),Promise.resolve()).then(loadModule):(metadata.neededDynlibs.forEac
1h((e=>loadDynamicLibrary(e,flags,localScope))),loadModule())},mergeLibSymbols=(e,t)=>{for(var[n,r]of Object.entries(e)){const e=e=>{isSymbolDefined(e)||(wasmImports[e]=r)};e(n);const t="__main_argc_argv";"main"==n&&e(t),n==t&&e("main"),n.startsWith("dynCall_")&&!Module.hasOwnProperty(n)&&(Module[n]=r)}},asyncLoad=(e,t,n,r)=>{var s=r?"":getUniqueRunDependency(`al ${e}`);readAsync(e).then((e=>{t(new Uint8Array(e)),s&&removeRunDependency(s)}),(t=>{if(!n)throw`Loading data file "${e}" failed.`;n()})),s&&addRunDependency(s)};function loadDynamicLibrary(e,t={global:!0,nodelete:!0},n,r){var s=LDSO.loadedLibsByName[e];if(s)return t.global?s.global||(s.global=!0,mergeLibSymbols(s.exports,e)):n&&Object.assign(n,s.exports),t.nodelete&&s.refcount!==1/0&&(s.refcount=1/0),s.refcount++,r&&(LDSO.loadedLibsByHandle[r]=s),!t.loadAsync||Promise.resolve(!0);function o(){if(r){var n=LE_HEAP_LOAD_U32(4*(r+28>>2)),s=LE_HEAP_LOAD_U32(4*(r+32>>2));if(n&&s){var o=HEAP8.slice(n,n+s);return t.loadAsync?Promise.resolve(o):o}}var a=locateFile(e);if(t.loadAsync)return new Promise((function(e,t){asyncLoad(a,e,t)}));if(!readBinary)throw new Error(`${a}: file not found, and synchronous loading of external files is not available`);return readBinary(a)}function a(){return t.loadAsync?o().then((s=>loadWebAssemblyModule(s,t,e,n,r))):loadWebAssemblyModule(o(),t,e,n,r)}function i(t){s.global?mergeLibSymbols(t,e):n&&Object.assign(n,t),s.exports=t}return(s=newDSO(e,r,"loading")).refcount=t.nodelete?1/0:1,s.global=t.global,t.loadAsync?a().then((e=>(i(e),!0))):(i(a()),!0)}var reportUndefinedSymbols=()=>{for(var[e,t]of Object.entries(GOT))if(0==t.value){var n=resolveGlobalSymbol(e,!0).sym;if(!n&&!t.required)continue;if("function"==typeof n)t.value=addFunction(n,n.sig);else{if("number"!=typeof n)throw new Error(`bad export type for '${e}': ${typeof n}`);t.value=n}}},loadDylibs=()=>{dynamicLibraries.length?(addRunDependency("loadDylibs"),dynamicLibraries.reduce(((e,t)=>e.then((()=>loadDynamicLibrary(t,{loadAsync:!0,global:!0,nodelete:!0,allowUndefined:!0})))),Promise.resolve()).then((()=>{reportUndefinedSymbols(),removeRunDependency("loadDylibs")}))):reportUndefinedSymbols()},noExitRuntime=Module.noExitRuntime||!0;function setValue(e,t,n="i8"){switch(n.endsWith("*")&&(n="*"),n){case"i1":case"i8":HEAP8[e]=t;break;case"i16":LE_HEAP_STORE_I16(2*(e>>1),t);break;case"i32":LE_HEAP_STORE_I32(4*(e>>2),t);break;case"i64":abort("to do setValue(i64) use WASM_BIGINT");case"float":LE_HEAP_STORE_F32(4*(e>>2),t);break;case"double":LE_HEAP_STORE_F64(8*(e>>3),t);break;case"*":LE_HEAP_STORE_U32(4*(e>>2),t);break;default:abort(`invalid type for setValue: ${n}`)}}var ___memory_base=new WebAssembly.Global({value:"i32",mutable:!1},1024),___stack_pointer=new WebAssembly.Global({value:"i32",mutable:!0},78112),___table_base=new WebAssembly.Global({value:"i32",mutable:!1},1),__abort_js=()=>{abort("")};__abort_js.sig="v";var nowIsMonotonic=1,__emscripten_get_now_is_monotonic=()=>nowIsMonotonic;__emscripten_get_now_is_monotonic.sig="i";var __emscripten_memcpy_js=(e,t,n)=>HEAPU8.copyWithin(e,t,t+n);__emscripten_memcpy_js.sig="vppp";var _emscripten_date_now=()=>Date.now(),_emscripten_get_now;_emscripten_date_now.sig="d",_emscripten_get_now=()=>performance.now(),_emscripten_get_now.sig="d";var getHeapMax=()=>2147483648,growMemory=e=>{var t=(e-wasmMemory.buffer.byteLength+65535)/65536;try{return wasmMemory.grow(t),updateMemoryViews(),1}catch(e){}},_emscripten_resize_heap=e=>{var t=HEAPU8.length;e>>>=0;var n=getHeapMax();if(e>n)return!1;for(var r,s=1;s<=4;s*=2){var o=t*(1+.2/s);o=Math.min(o,e+100663296);var a=Math.min(n,(r=Math.max(e,o))+(65536-r%65536)%65536);if(growMemory(a))return!0}return!1};_emscripten_resize_heap.sig="ip";var _fd_close=e=>52;_fd_close.sig="ii";var convertI32PairToI53Checked=(e,t)=>t+2097152>>>0<4194305-!!e?(e>>>0)+4294967296*t:NaN;function _fd_seek(e,t,n,r,s){return convertI32PairToI53Checked(t,n),70}_fd_seek.sig="iiiiip";var printCharBuffers=[null,[],[]],printChar=(e,t)=>{var n=printCharBuffers[e];0===t||10===t?((1===e?out:err)(UTF8ArrayToString(n,0)),n.length=0):n.push(t)},_fd_write=(e,t,n,r)=>{for(var s=0,o=0;o<n;o++){var a=LE_HEAP_LOAD_U32(4*(t>>2)),i=LE_HEAP_LOAD_U32(4*(t+4>>2));t+=8;for(var l=0;l<i;l++)printChar(e,HEAPU8[a+l]);s+=i}return LE_HEAP_STORE_U32(4*(r>>2),s),0};function _tree_sitter_log_callback(e,t){if(currentLogCallback){const n=UTF8ToString(t);currentLogCallback(n,0!==e)}}
1function _tree_sitter_parse_callback(e,t,n,r,s){const o=currentParseCallback(t,{row:n,column:r});"string"==typeof o?(setValue(s,o.length,"i32"),stringToUTF16(o,e,10240)):setValue(s,0,"i32")}_fd_write.sig="iippp";var runtimeKeepaliveCounter=0,keepRuntimeAlive=()=>noExitRuntime||runtimeKeepaliveCounter>0,_proc_exit=e=>{EXITSTATUS=e,keepRuntimeAlive()||(Module.onExit?.(e),ABORT=!0),quit_(e,new ExitStatus(e))};_proc_exit.sig="vi";var exitJS=(e,t)=>{EXITSTATUS=e,_proc_exit(e)},handleException=e=>{if(e instanceof ExitStatus||"unwind"==e)return EXITSTATUS;quit_(1,e)},lengthBytesUTF8=e=>{for(var t=0,n=0;n<e.length;++n){var r=e.charCodeAt(n);r<=127?t++:r<=2047?t+=2:r>=55296&&r<=57343?(t+=4,++n):t+=3}return t},stringToUTF8Array=(e,t,n,r)=>{if(!(r>0))return 0;for(var s=n,o=n+r-1,a=0;a<e.length;++a){var i=e.charCodeAt(a);if(i>=55296&&i<=57343&&(i=65536+((1023&i)<<10)|1023&e.charCodeAt(++a)),i<=127){if(n>=o)break;t[n++]=i}else if(i<=2047){if(n+1>=o)break;t[n++]=192|i>>6,t[n++]=128|63&i}else if(i<=65535){if(n+2>=o)break;t[n++]=224|i>>12,t[n++]=128|i>>6&63,t[n++]=128|63&i}else{if(n+3>=o)break;t[n++]=240|i>>18,t[n++]=128|i>>12&63,t[n++]=128|i>>6&63,t[n++]=128|63&i}}return t[n]=0,n-s},stringToUTF8=(e,t,n)=>stringToUTF8Array(e,HEAPU8,t,n),stackAlloc=e=>__emscripten_stack_alloc(e),stringToUTF8OnStack=e=>{var t=lengthBytesUTF8(e)+1,n=stackAlloc(t);return stringToUTF8(e,n,t),n},stringToUTF16=(e,t,n)=>{if(n??=2147483647,n<2)return 0;for(var r=t,s=(n-=2)<2*e.length?n/2:e.length,o=0;o<s;++o){var a=e.charCodeAt(o);LE_HEAP_STORE_I16(2*(t>>1),a),t+=2}return LE_HEAP_STORE_I16(2*(t>>1),0),t-r},AsciiToString=e=>{for(var t="";;){var n=HEAPU8[e++];if(!n)return t;t+=String.fromCharCode(n)}},wasmImports={__heap_base:___heap_base,__indirect_function_table:wasmTable,__memory_base:___memory_base,__stack_pointer:___stack_pointer,__table_base:___table_base,_abort_js:__abort_js,_emscripten_get_now_is_monotonic:__emscripten_get_now_is_monotonic,_emscripten_memcpy_js:__emscripten_memcpy_js,emscripten_get_now:_emscripten_get_now,emscripten_resize_heap:_emscripten_resize_heap,fd_close:_fd_close,fd_seek:_fd_seek,fd_write:_fd_write,memory:wasmMemory,tree_sitter_log_callback:_tree_sitter_log_callback,tree_sitter_parse_callback:_tree_sitter_parse_callback},wasmExports=createWasm(),___wasm_call_ctors=()=>(___wasm_call_ctors=wasmExports.__wasm_call_ctors)(),___wasm_apply_data_relocs=()=>(___wasm_apply_data_relocs=wasmExports.__wasm_apply_data_relocs)(),_malloc=Module._malloc=e=>(_malloc=Module._malloc=wasmExports.malloc)(e),_calloc=Module._calloc=(e,t)=>(_calloc=Module._calloc=wasmExports.calloc)(e,t),_realloc=Module._realloc=(e,t)=>(_realloc=Module._realloc=wasmExports.realloc)(e,t),_free=Module._free=e=>(_free=Module._free=wasmExports.free)(e),_ts_language_symbol_count=Module._ts_language_symbol_count=e=>(_ts_language_symbol_count=Module._ts_language_symbol_count=wasmExports.ts_language_symbol_count)(e),_ts_language_state_count=Module._ts_language_state_count=e=>(_ts_language_state_count=Module._ts_language_state_count=wasmExports.ts_language_state_count)(e),_ts_language_version=Module._ts_language_version=e=>(_ts_language_version=Module._ts_language_version=wasmExports.ts_language_version)(e),_ts_language_field_count=Module._ts_language_field_count=e=>(_ts_language_field_count=Module._ts_language_field_count=wasmExports.ts_language_field_count)(e),_ts_language_next_state=Module._ts_language_next_state=(e,t,n)=>(_ts_language_next_state=Module._ts_language_next_state=wasmExports.ts_language_next_state)(e,t,n),_ts_language_symbol_name=Module._ts_language_symbol_name=(e,t)=>(_ts_language_symbol_name=Module._ts_language_symbol_name=wasmExports.ts_language_symbol_name)(e,t),_ts_language_symbol_for_name=Module._ts_language_symbol_for_name=(e,t,n,r)=>(_ts_language_symbol_for_name=Module._ts_language_symbol_for_name=wasmExports.ts_language_symbol_for_name)(e,t,n,r),_strncmp=Module._strncmp=(e,t,n)=>(_strncmp=Module._strncmp=wasmExports.strncmp)(e,t,n),_ts_language_symbol_type=Module._ts_language_symbol_type=(e,t)=>(_ts_language_symbol_type=Module._ts_language_symbol_type=wasmExports.ts_language_symbol_type)(e,t),_ts_language_field_name_for_id=Module._ts_language_field_name_for_id=(e,t)=>(_ts_language_field_name_for_id=Module._ts_language_field_name_for_id=wasmExports.ts_language_field_name_for_id)(e,t),_ts_lookahead_iterator_new=Module._ts_lookahead_iterator_new=(e,t)=>(_ts_lookahead_iterator_new=Module._ts_lookahead_iterator_new=wasmExports.ts_lookahead_iterator_new)(e,t),_ts_lookahead_iterator_delete=Module._ts_lookahead_iterator_delete=e=>(_ts_lookahead_iterator_delete=Module._ts_lookahead_iterator_delete=wasmExports.ts_lookahead_iterator_delete)(e),_ts_lookahead_iterator_reset_state=Module._ts_lookahead_iterator_reset_state=(e,t)=>
vendor: 4,124 bytes, line 1
1(_ts_lookahead_iterator_reset_state=Module._ts_lookahead_iterator_reset_state=wasmExports.ts_lookahead_iterator_reset_state)(e,t),_ts_lookahead_iterator_reset=Module._ts_lookahead_iterator_reset=(e,t,n)=>(_ts_lookahead_iterator_reset=Module._ts_lookahead_iterator_reset=wasmExports.ts_lookahead_iterator_reset)(e,t,n),_ts_lookahead_iterator_next=Module._ts_lookahead_iterator_next=e=>(_ts_lookahead_iterator_next=Module._ts_lookahead_iterator_next=wasmExports.ts_lookahead_iterator_next)(e),_ts_lookahead_iterator_current_symbol=Module._ts_lookahead_iterator_current_symbol=e=>(_ts_lookahead_iterator_current_symbol=Module._ts_lookahead_iterator_current_symbol=wasmExports.ts_lookahead_iterator_current_symbol)(e),_memset=Module._memset=(e,t,n)=>(_memset=Module._memset=wasmExports.memset)(e,t,n),_memcpy=Module._memcpy=(e,t,n)=>(_memcpy=Module._memcpy=wasmExports.memcpy)(e,t,n),_ts_parser_delete=Module._ts_parser_delete=e=>(_ts_parser_delete=Module._ts_parser_delete=wasmExports.ts_parser_delete)(e),_ts_parser_reset=Module._ts_parser_reset=e=>(_ts_parser_reset=Module._ts_parser_reset=wasmExports.ts_parser_reset)(e),_ts_parser_set_language=Module._ts_parser_set_language=(e,t)=>(_ts_parser_set_language=Module._ts_parser_set_language=wasmExports.ts_parser_set_language)(e,t),_ts_parser_timeout_micros=Module._ts_parser_timeout_micros=e=>(_ts_parser_timeout_micros=Module._ts_parser_timeout_micros=wasmExports.ts_parser_timeout_micros)(e),_ts_parser_set_timeout_micros=Module._ts_parser_set_timeout_micros=(e,t,n)=>(_ts_parser_set_timeout_micros=Module._ts_parser_set_timeout_micros=wasmExports.ts_parser_set_timeout_micros)(e,t,n),_ts_parser_set_included_ranges=Module._ts_parser_set_included_ranges=(e,t,n)=>(_ts_parser_set_included_ranges=Module._ts_parser_set_included_ranges=wasmExports.ts_parser_set_included_ranges)(e,t,n),_memmove=Module._memmove=(e,t,n)=>(_memmove=Module._memmove=wasmExports.memmove)(e,t,n),_memcmp=Module._memcmp=(e,t,n)=>(_memcmp=Module._memcmp=wasmExports.memcmp)(e,t,n),_ts_query_new=Module._ts_query_new=(e,t,n,r,s)=>(_ts_query_new=Module._ts_query_new=wasmExports.ts_query_new)(e,t,n,r,s),_ts_query_delete=Module._ts_query_delete=e=>(_ts_query_delete=Module._ts_query_delete=wasmExports.ts_query_delete)(e),_iswspace=Module._iswspace=e=>(_iswspace=Module._iswspace=wasmExports.iswspace)(e),_iswalnum=Module._iswalnum=e=>(_iswalnum=Module._iswalnum=wasmExports.iswalnum)(e),_ts_query_pattern_count=Module._ts_query_pattern_count=e=>(_ts_query_pattern_count=Module._ts_query_pattern_count=wasmExports.ts_query_pattern_count)(e),_ts_query_capture_count=Module._ts_query_capture_count=e=>(_ts_query_capture_count=Module._ts_query_capture_count=wasmExports.ts_query_capture_count)(e),_ts_query_string_count=Module._ts_query_string_count=e=>(_ts_query_string_count=Module._ts_query_string_count=wasmExports.ts_query_string_count)(e),_ts_query_capture_name_for_id=Module._ts_query_capture_name_for_id=(e,t,n)=>(_ts_query_capture_name_for_id=Module._ts_query_capture_name_for_id=wasmExports.ts_query_capture_name_for_id)(e,t,n),_ts_query_string_value_for_id=Module._ts_query_string_value_for_id=(e,t,n)=>(_ts_query_string_value_for_id=Module._ts_query_string_value_for_id=wasmExports.ts_query_string_value_for_id)(e,t,n),_ts_query_predicates_for_pattern=Module._ts_query_predicates_for_pattern=(e,t,n)=>(_ts_query_predicates_for_pattern=Module._ts_query_predicates_for_pattern=wasmExports.ts_query_predicates_for_pattern)(e,t,n),_ts_query_disable_capture=Module._ts_query_disable_capture=(e,t,n)=>(_ts_query_disable_capture=Module._ts_query_disable_capture=wasmExports.ts_query_disable_capture)(e,t,n),_ts_tree_copy=Module._ts_tree_copy=e=>(_ts_tree_copy=Module._ts_tree_copy=wasmExports.ts_tree_copy)(e),_ts_tree_delete=Module._ts_tree_delete=e=>(_ts_tree_delete=Module._ts_tree_delete=wasmExports.ts_tree_delete)(e),_ts_init=Module._ts_init=()=>(_ts_init=Module._ts_init=wasmExports.ts_init)(),_ts_parser_new_wasm=Module._ts_parser_new_wasm=()=>(_ts_parser_new_wasm=Module._ts_parser_new_wasm=wasmExports.ts_parser_new_wasm)(),_ts_parser_enable_logger_wasm=Module._ts_parser_enable_logger_wasm
vendor: 14,555 bytes, line 1
1=(e,t)=>(_ts_parser_enable_logger_wasm=Module._ts_parser_enable_logger_wasm=wasmExports.ts_parser_enable_logger_wasm)(e,t),_ts_parser_parse_wasm=Module._ts_parser_parse_wasm=(e,t,n,r,s)=>(_ts_parser_parse_wasm=Module._ts_parser_parse_wasm=wasmExports.ts_parser_parse_wasm)(e,t,n,r,s),_ts_parser_included_ranges_wasm=Module._ts_parser_included_ranges_wasm=e=>(_ts_parser_included_ranges_wasm=Module._ts_parser_included_ranges_wasm=wasmExports.ts_parser_included_ranges_wasm)(e),_ts_language_type_is_named_wasm=Module._ts_language_type_is_named_wasm=(e,t)=>(_ts_language_type_is_named_wasm=Module._ts_language_type_is_named_wasm=wasmExports.ts_language_type_is_named_wasm)(e,t),_ts_language_type_is_visible_wasm=Module._ts_language_type_is_visible_wasm=(e,t)=>(_ts_language_type_is_visible_wasm=Module._ts_language_type_is_visible_wasm=wasmExports.ts_language_type_is_visible_wasm)(e,t),_ts_tree_root_node_wasm=Module._ts_tree_root_node_wasm=e=>(_ts_tree_root_node_wasm=Module._ts_tree_root_node_wasm=wasmExports.ts_tree_root_node_wasm)(e),_ts_tree_root_node_with_offset_wasm=Module._ts_tree_root_node_with_offset_wasm=e=>(_ts_tree_root_node_with_offset_wasm=Module._ts_tree_root_node_with_offset_wasm=wasmExports.ts_tree_root_node_with_offset_wasm)(e),_ts_tree_edit_wasm=Module._ts_tree_edit_wasm=e=>(_ts_tree_edit_wasm=Module._ts_tree_edit_wasm=wasmExports.ts_tree_edit_wasm)(e),_ts_tree_included_ranges_wasm=Module._ts_tree_included_ranges_wasm=e=>(_ts_tree_included_ranges_wasm=Module._ts_tree_included_ranges_wasm=wasmExports.ts_tree_included_ranges_wasm)(e),_ts_tree_get_changed_ranges_wasm=Module._ts_tree_get_changed_ranges_wasm=(e,t)=>(_ts_tree_get_changed_ranges_wasm=Module._ts_tree_get_changed_ranges_wasm=wasmExports.ts_tree_get_changed_ranges_wasm)(e,t),_ts_tree_cursor_new_wasm=Module._ts_tree_cursor_new_wasm=e=>(_ts_tree_cursor_new_wasm=Module._ts_tree_cursor_new_wasm=wasmExports.ts_tree_cursor_new_wasm)(e),_ts_tree_cursor_delete_wasm=Module._ts_tree_cursor_delete_wasm=e=>(_ts_tree_cursor_delete_wasm=Module._ts_tree_cursor_delete_wasm=wasmExports.ts_tree_cursor_delete_wasm)(e),_ts_tree_cursor_reset_wasm=Module._ts_tree_cursor_reset_wasm=e=>(_ts_tree_cursor_reset_wasm=Module._ts_tree_cursor_reset_wasm=wasmExports.ts_tree_cursor_reset_wasm)(e),_ts_tree_cursor_reset_to_wasm=Module._ts_tree_cursor_reset_to_wasm=(e,t)=>(_ts_tree_cursor_reset_to_wasm=Module._ts_tree_cursor_reset_to_wasm=wasmExports.ts_tree_cursor_reset_to_wasm)(e,t),_ts_tree_cursor_goto_first_child_wasm=Module._ts_tree_cursor_goto_first_child_wasm=e=>(_ts_tree_cursor_goto_first_child_wasm=Module._ts_tree_cursor_goto_first_child_wasm=wasmExports.ts_tree_cursor_goto_first_child_wasm)(e),_ts_tree_cursor_goto_last_child_wasm=Module._ts_tree_cursor_goto_last_child_wasm=e=>(_ts_tree_cursor_goto_last_child_wasm=Module._ts_tree_cursor_goto_last_child_wasm=wasmExports.ts_tree_cursor_goto_last_child_wasm)(e),_ts_tree_cursor_goto_first_child_for_index_wasm=Module._ts_tree_cursor_goto_first_child_for_index_wasm=e=>(_ts_tree_cursor_goto_first_child_for_index_wasm=Module._ts_tree_cursor_goto_first_child_for_index_wasm=wasmExports.ts_tree_cursor_goto_first_child_for_index_wasm)(e),_ts_tree_cursor_goto_first_child_for_position_wasm=Module._ts_tree_cursor_goto_first_child_for_position_wasm=e=>(_ts_tree_cursor_goto_first_child_for_position_wasm=Module._ts_tree_cursor_goto_first_child_for_position_wasm=wasmExports.ts_tree_cursor_goto_first_child_for_position_wasm)(e),_ts_tree_cursor_goto_next_sibling_wasm=Module._ts_tree_cursor_goto_next_sibling_wasm=e=>(_ts_tree_cursor_goto_next_sibling_wasm=Module._ts_tree_cursor_goto_next_sibling_wasm=wasmExports.ts_tree_cursor_goto_next_sibling_wasm)(e),_ts_tree_cursor_goto_previous_sibling_wasm=Module._ts_tree_cursor_goto_previous_sibling_wasm=e=>(_ts_tree_cursor_goto_previous_sibling_wasm=Module._ts_tree_cursor_goto_previous_sibling_wasm=wasmExports.ts_tree_cursor_goto_previous_sibling_wasm)(e),_ts_tree_cursor_goto_descendant_wasm=Module._ts_tree_cursor_goto_descendant_wasm=(e,t)=>(_ts_tree_cursor_goto_descendant_wasm=Module._ts_tree_cursor_goto_descendant_wasm=wasmExports.ts_tree_cursor_goto_descendant_wasm)(e,t),_ts_tree_cursor_goto_parent_wasm=Module._ts_tree_cursor_goto_parent_wasm=e=>(_ts_tree_cursor_goto_parent_wasm=Module._ts_tree_cursor_goto_parent_wasm=wasmExports.ts_tree_cursor_goto_parent_wasm)(e),_ts_tree_cursor_current_node_type_id_wasm=Module._ts_tree_cursor_current_node_type_id_wasm=e=>(_ts_tree_cursor_current_node_type_id_wasm=Module._ts_tree_cursor_current_node_type_id_wasm=wasmExports.ts_tree_cursor_current_node_type_id_wasm)(e),_ts_tree_cursor_current_node_state_id_wasm=Module._ts_tree_cursor_current_node_state_id_wasm=e=>(_ts_tree_cursor_current_node_state_id_wasm=Module._ts_tree_cursor_current_node_state_id_wasm=wasmExports.ts_tree_cursor_current_node_state_id_wasm)(e),_ts_tree_cursor_current_node_is_named_wasm=Module._ts_tree_cursor_current_node_is_named_wasm=e=>(_ts_tree_cursor_current_node_is_named_wasm=Module._ts_tree_cursor_current_node_is_named_wasm=wasmExports.ts_tree_cursor_current_node_is_named_wasm)(e),_ts_tree_cursor_current_node_is_missing_wasm=Module._ts_tree_cursor_current_node_is_missing_wasm=e=>(_ts_tree_cursor_current_node_is_missing_wasm=Module._ts_tree_cursor_current_node_is_missing_wasm=wasmExports.ts_tree_cursor_current_node_is_missing_wasm)(e),_ts_tree_cursor_current_node_id_wasm=Module._ts_tree_cursor_current_node_id_wasm=e=>(_ts_tree_cursor_current_node_id_wasm=Module._ts_tree_cursor_current_node_id_wasm=wasmExports.ts_tree_cursor_current_node_id_wasm)(e),_ts_tree_cursor_start_position_wasm=Module._ts_tree_cursor_start_position_wasm=e=>(_ts_tree_cursor_start_position_wasm=Module._ts_tree_cursor_start_position_wasm=wasmExports.ts_tree_cursor_start_position_wasm)(e),_ts_tree_cursor_end_position_wasm=Module._ts_tree_cursor_end_position_wasm=e=>(_ts_tree_cursor_end_position_wasm=Module._ts_tree_cursor_end_position_wasm=wasmExports.ts_tree_cursor_end_position_wasm)(e),_ts_tree_cursor_start_index_wasm=Module._ts_tree_cursor_start_index_wasm=e=>(_ts_tree_cursor_start_index_wasm=Module._ts_tree_cursor_start_index_wasm=wasmExports.ts_tree_cursor_start_index_wasm)(e),_ts_tree_cursor_end_index_wasm=Module._ts_tree_cursor_end_index_wasm=e=>(_ts_tree_cursor_end_index_wasm=Module._ts_tree_cursor_end_index_wasm=wasmExports.ts_tree_cursor_end_index_wasm)(e),_ts_tree_cursor_current_field_id_wasm=Module._ts_tree_cursor_current_field_id_wasm=e=>(_ts_tree_cursor_current_field_id_wasm=Module._ts_tree_cursor_current_field_id_wasm=wasmExports.ts_tree_cursor_current_field_id_wasm)(e),_ts_tree_cursor_current_depth_wasm=Module._ts_tree_cursor_current_depth_wasm=e=>(_ts_tree_cursor_current_depth_wasm=Module._ts_tree_cursor_current_depth_wasm=wasmExports.ts_tree_cursor_current_depth_wasm)(e),_ts_tree_cursor_current_descendant_index_wasm=Module._ts_tree_cursor_current_descendant_index_wasm=e=>(_ts_tree_cursor_current_descendant_index_wasm=Module._ts_tree_cursor_current_descendant_index_wasm=wasmExports.ts_tree_cursor_current_descendant_index_wasm)(e),_ts_tree_cursor_current_node_wasm=Module._ts_tree_cursor_current_node_wasm=e=>(_ts_tree_cursor_current_node_wasm=Module._ts_tree_cursor_current_node_wasm=wasmExports.ts_tree_cursor_current_node_wasm)(e),_ts_node_symbol_wasm=Module._ts_node_symbol_wasm=e=>(_ts_node_symbol_wasm=Module._ts_node_symbol_wasm=wasmExports.ts_node_symbol_wasm)(e),_ts_node_field_name_for_child_wasm=Module._ts_node_field_name_for_child_wasm=(e,t)=>(_ts_node_field_name_for_child_wasm=Module._ts_node_field_name_for_child_wasm=wasmExports.ts_node_field_name_for_child_wasm)(e,t),_ts_node_children_by_field_id_wasm=Module._ts_node_children_by_field_id_wasm=(e,t)=>(_ts_node_children_by_field_id_wasm=Module._ts_node_children_by_field_id_wasm=wasmExports.ts_node_children_by_field_id_wasm)(e,t),_ts_node_first_child_for_byte_wasm=Module._ts_node_first_child_for_byte_wasm=e=>(_ts_node_first_child_for_byte_wasm=Module._ts_node_first_child_for_byte_wasm=wasmExports.ts_node_first_child_for_byte_wasm)(e),_ts_node_first_named_child_for_byte_wasm=Module._ts_node_first_named_child_for_byte_wasm=e=>(_ts_node_first_named_child_for_byte_wasm=Module._ts_node_first_named_child_for_byte_wasm=wasmExports.ts_node_first_named_child_for_byte_wasm)(e),_ts_node_grammar_symbol_wasm=Module._ts_node_grammar_symbol_wasm=e=>(_ts_node_grammar_symbol_wasm=Module._ts_node_grammar_symbol_wasm=wasmExports.ts_node_grammar_symbol_wasm)(e),_ts_node_child_count_wasm=Module._ts_node_child_count_wasm=e=>(_ts_node_child_count_wasm=Module._ts_node_child_count_wasm=wasmExports.ts_node_child_count_wasm)(e),_ts_node_named_child_count_wasm=Module._ts_node_named_child_count_wasm=e=>(_ts_node_named_child_count_wasm=Module._ts_node_named_child_count_wasm=wasmExports.ts_node_named_child_count_wasm)(e),_ts_node_child_wasm=Module._ts_node_child_wasm=(e,t)=>(_ts_node_child_wasm=Module._ts_node_child_wasm=wasmExports.ts_node_child_wasm)(e,t),_ts_node_named_child_wasm=Module._ts_node_named_child_wasm=(e,t)=>(_ts_node_named_child_wasm=Module._ts_node_named_child_wasm=wasmExports.ts_node_named_child_wasm)(e,t),_ts_node_child_by_field_id_wasm=Module._ts_node_child_by_field_id_wasm=(e,t)=>(_ts_node_child_by_field_id_wasm=Module._ts_node_child_by_field_id_wasm=wasmExports.ts_node_child_by_field_id_wasm)(e,t),_ts_node_next_sibling_wasm=Module._ts_node_next_sibling_wasm=e=>(_ts_node_next_sibling_wasm=Module._ts_node_next_sibling_wasm=wasmExports.ts_node_next_sibling_wasm)(e),_ts_node_prev_sibling_wasm=Module._ts_node_prev_sibling_wasm=e=>(_ts_node_prev_sibling_wasm=Module._ts_node_prev_sibling_wasm=wasmExports.ts_node_prev_sibling_wasm)(e),_ts_node_next_named_sibling_wasm=Module._ts_node_next_named_sibling_wasm=e=>(_ts_node_next_named_sibling_wasm=Module._ts_node_next_named_sibling_wasm=wasmExports.ts_node_next_named_sibling_wasm)(e),_ts_node_prev_named_sibling_wasm=Module._ts_node_prev_named_sibling_wasm=e=>(_ts_node_prev_named_sibling_wasm=Module._ts_node_prev_named_sibling_wasm=wasmExports.ts_node_prev_named_sibling_wasm)(e),_ts_node_descendant_count_wasm=Module._ts_node_descendant_count_wasm=e=>(_ts_node_descendant_count_wasm=Module._ts_node_descendant_count_wasm=wasmExports.ts_node_descendant_count_wasm)(e),_ts_node_parent_wasm=Module._ts_node_parent_wasm=e=>(_ts_node_parent_wasm=Module._ts_node_parent_wasm=wasmExports.ts_node_parent_wasm)(e),_ts_node_descendant_for_index_wasm=Module._ts_node_descendant_for_index_wasm=e=>(_ts_node_descendant_for_index_wasm=Module._ts_node_descendant_for_index_wasm=wasmExports.ts_node_descendant_for_index_wasm)(e),_ts_node_named_descendant_for_index_wasm=Module._ts_node_named_descendant_for_index_wasm=e=>(_ts_node_named_descendant_for_index_wasm=Module._ts_node_named_descendant_for_index_wasm=wasmExports.ts_node_named_descendant_for_index_wasm)(e),_ts_node_descendant_for_position_wasm=Module._ts_node_descendant_for_position_wasm=e=>(_ts_node_descendant_for_position_wasm=Module._ts_node_descendant_for_position_wasm=wasmExports.ts_node_descendant_for_position_wasm)(e),_ts_node_named_descendant_for_position_wasm=Module._ts_node_named_descendant_for_position_wasm=e=>(_ts_node_named_descendant_for_position_wasm=Module._ts_node_named_descendant_for_position_wasm=wasmExports.ts_node_named_descendant_for_position_wasm)(e),_ts_node_start_point_wasm=Module._ts_node_start_point_wasm=e=>(_ts_node_start_point_wasm=Module._ts_node_start_point_wasm=wasmExports.ts_node_start_point_wasm)(e),_ts_node_end_point_wasm=Module._ts_node_end_point_wasm=e=>(_ts_node_end_point_wasm=Module._ts_node_end_point_wasm=wasmExports.ts_node_end_point_wasm)(e),_ts_node_start_index_wasm=Module._ts_node_start_index_wasm=e=>(_ts_node_start_index_wasm=Module._ts_node_start_index_wasm=wasmExports.ts_node_start_index_wasm)(e),_ts_node_end_index_wasm=Module._ts_node_end_index_wasm=e=>(_ts_node_end_index_wasm=Module._ts_node_end_index_wasm=wasmExports.ts_node_end_index_wasm)(e),_ts_node_to_string_wasm=Module._ts_node_to_string_wasm=e=>(_ts_node_to_string_wasm=Module._ts_node_to_string_wasm=wasmExports.ts_node_to_string_wasm)(e),_ts_node_children_wasm=Module._ts_node_children_wasm=e=>(_ts_node_children_wasm=Module._ts_node_children_wasm=wasmExports.ts_node_children_wasm)(e),_ts_node_named_children_wasm=Module._ts_node_named_children_wasm=e=>(_ts_node_named_children_wasm=Module._ts_node_named_children_wasm=wasmExports.ts_node_named_children_wasm)(e),_ts_node_descendants_of_type_wasm=Module._ts_node_descendants_of_type_wasm=(e,t,n,r,s,o,a)=>(_ts_node_descendants_of_type_wasm=Module._ts_node_descendants_of_type_wasm=wasmExports.ts_node_descendants_of_type_wasm)(e,t,n,r,s,o,a),_ts_node_is_named_wasm=Module._ts_node_is_named_wasm=e=>(_ts_node_is_named_wasm=Module._ts_node_is_named_wasm=wasmExports.ts_node_is_named_wasm)(e),_ts_node_has_changes_wasm=Module._ts_node_has_changes_wasm=e=>(_ts_node_has_changes_wasm=Module._ts_node_has_changes_wasm=wasmExports.ts_node_has_changes_wasm)(e),_ts_node_has_error_wasm=Module._ts_node_has_error_wasm=e=>(_ts_node_has_error_wasm=Module._ts_node_has_error_wasm=wasmExports.ts_node_has_error_wasm)(e),_ts_node_is_error_wasm=Module._ts_node_is_error_wasm=e=>(_ts_node_is_error_wasm=Module._ts_node_is_error_wasm=wasmExports.ts_node_is_error_wasm)(e),_ts_node_is_missing_wasm=Module._ts_node_is_missing_wasm=e=>(_ts_node_is_missing_wasm=Module._ts_node_is_missing_wasm=wasmExports.ts_node_is_missing_wasm)(e),_ts_node_is_extra_wasm=Module._ts_node_is_extra_wasm=e=>(_ts_node_is_extra_wasm=Module._ts_node_is_extra_wasm=wasmExports.ts_node_is_extra_wasm)(e),_ts_node_parse_state_wasm=Module._ts_node_parse_state_wasm=e=>(_ts_node_parse_state_wasm=Module._ts_node_parse_state_wasm=wasmExports.ts_node_parse_state_wasm)(e),_ts_node_next_parse_state_wasm=Module._ts_node_next_parse_state_wasm=e=>(_ts_node_next_parse_state_wasm=Module._ts_node_next_parse_state_wasm=wasmExports.ts_node_next_parse_state_wasm)(e),_ts_query_matches_wasm=Module._ts_query_matches_wasm=(e,t,n,r,s,o,a,i,l,u,c)=>(_ts_query_matches_wasm=Module._ts_query_matches_wasm=wasmExports.ts_query_matches_wasm)(e,t,n,r,s,o,a,i,l,u,c),_ts_query_captures_wasm=Module._ts_query_captures_wasm=(e,t,n,r,s,o,a,i,l,u,c)=>(_ts_query_captures_wasm=Module._ts_query_captures_wasm=wasmExports.ts_query_captures_wasm)(e,t,n,r,s,o,a,i,l,u,c),_iswalpha=Module._iswalpha=e=>(_iswalpha=Module._iswalpha=wasmExports.iswalpha)(e),_iswblank=Module._iswblank=e=>(_iswblank=Module._iswblank=wasmExports.iswblank)(e),_iswdigit=Module._iswdigit=e=>(_iswdigit=Module._iswdigit=wasmExports.iswdigit)(e),_iswlower=M
1odule._iswlower=e=>(_iswlower=Module._iswlower=wasmExports.iswlower)(e),_iswupper=Module._iswupper=e=>(_iswupper=Module._iswupper=wasmExports.iswupper)(e),_iswxdigit=Module._iswxdigit=e=>(_iswxdigit=Module._iswxdigit=wasmExports.iswxdigit)(e),_memchr=Module._memchr=(e,t,n)=>(_memchr=Module._memchr=wasmExports.memchr)(e,t,n),_strlen=Module._strlen=e=>(_strlen=Module._strlen=wasmExports.strlen)(e),_strcmp=Module._strcmp=(e,t)=>(_strcmp=Module._strcmp=wasmExports.strcmp)(e,t),_strncat=Module._strncat=(e,t,n)=>(_strncat=Module._strncat=wasmExports.strncat)(e,t,n),_strncpy=Module._strncpy=(e,t,n)=>(_strncpy=Module._strncpy=wasmExports.strncpy)(e,t,n),_towlower=Module._towlower=e=>(_towlower=Module._towlower=wasmExports.towlower)(e),_towupper=Module._towupper=e=>(_towupper=Module._towupper=wasmExports.towupper)(e),_setThrew=(e,t)=>(_setThrew=wasmExports.setThrew)(e,t),__emscripten_stack_restore=e=>(__emscripten_stack_restore=wasmExports._emscripten_stack_restore)(e),__emscripten_stack_alloc=e=>(__emscripten_stack_alloc=wasmExports._emscripten_stack_alloc)(e),_emscripten_stack_get_current=()=>(_emscripten_stack_get_current=wasmExports.emscripten_stack_get_current)(),dynCall_jiji=Module.dynCall_jiji=(e,t,n,r,s)=>(dynCall_jiji=Module.dynCall_jiji=wasmExports.dynCall_jiji)(e,t,n,r,s),_orig$ts_parser_timeout_micros=Module._orig$ts_parser_timeout_micros=e=>(_orig$ts_parser_timeout_micros=Module._orig$ts_parser_timeout_micros=wasmExports.orig$ts_parser_timeout_micros)(e),_orig$ts_parser_set_timeout_micros=Module._orig$ts_parser_set_timeout_micros=(e,t)=>(_orig$ts_parser_set_timeout_micros=Module._orig$ts_parser_set_timeout_micros=wasmExports.orig$ts_parser_set_timeout_micros)(e,t),calledRun;function callMain(e=[]){var t=resolveGlobalSymbol("main").sym;if(t){e.unshift(thisProgram);var n=e.length,r=stackAlloc(4*(n+1)),s=r;e.forEach((e=>{LE_HEAP_STORE_U32(4*(s>>2),stringToUTF8OnStack(e)),s+=4})),LE_HEAP_STORE_U32(4*(s>>2),0);try{var o=t(n,r);return exitJS(o,!0),o}catch(e){return handleException(e)}}}function run(e=arguments_){function t(){calledRun||(calledRun=!0,Module.calledRun=!0,ABORT||(initRuntime(),preMain(),Module.onRuntimeInitialized?.(),shouldRunNow&&callMain(e),postRun()))}runDependencies>0||(preRun(),runDependencies>0||(Module.setStatus?(Module.setStatus("Running..."),setTimeout((function(){setTimeout((function(){Module.setStatus("")}),1),t()}),1)):t()))}if(Module.AsciiToString=AsciiToString,Module.stringToUTF16=stringToUTF16,dependenciesFulfilled=function e(){calledRun||run(),calledRun||(dependenciesFulfilled=e)},Module.preInit)for("function"==typeof Module.preInit&&(Module.preInit=[Module.preInit]);Module.preInit.length>0;)Module.preInit.pop()();var shouldRunNow=!0;Module.noInitialRun&&(shouldRunNow=!1),run();const C=Module,INTERNAL={},SIZE_OF_INT=4,SIZE_OF_CURSOR=4*SIZE_OF_INT,SIZE_OF_NODE=5*SIZE_OF_INT,SIZE_OF_POINT=2*SIZE_OF_INT,SIZE_OF_RANGE=2*SIZE_OF_INT+2*SIZE_OF_POINT,ZERO_POINT={row:0,column:0},QUERY_WORD_REGEX=/[\w-.]*/g,PREDICATE_STEP_TYPE_CAPTURE=1,PREDICATE_STEP_TYPE_STRING=2,LANGUAGE_FUNCTION_REGEX=/^_?tree_sitter_\w+/;let VERSION,MIN_COMPATIBLE_VERSION,TRANSFER_BUFFER,currentParseCallback,currentLogCallback;class ParserImpl{static init(){TRANSFER_BUFFER=C._ts_init(),VERSION=getValue(TRANSFER_BUFFER,"i32"),MIN_COMPATIBLE_VERSION=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32")}initialize(){C._ts_parser_new_wasm(),this[0]=getValue(TRANSFER_BUFFER,"i32"),this[1]=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32")}delete(){C._ts_parser_delete(this[0]),C._free(this[1]),this[0]=0,this[1]=0}setLanguage(e){let t;if(e){if(e.constructor!==Language)throw new Error("Argument must be a Language");{t=e[0];const n=C._ts_language_version(t);if(n<MIN_COMPATIBLE_VERSION||VERSION<n)throw new Error(`Incompatible language version ${n}. Compatibility range ${MIN_COMPATIBLE_VERSION} through ${VERSION}.`)}}else t=0,e=null;return this.language=e,C._ts_parser_set_language(this[0],t),this}getLanguage(){return this.language}parse(e,t,n){if("string"==typeof e)currentParseCallback=(t,n)=>e.slice(t);else{if("function"!=typeof e)throw new Error("Argument must be a string or a function");currentParseCallback=e}this.logCallback?(currentLogCallback=this.logCallback,C._ts_parser_enable_logger_wasm(this[0],1
1)):(currentLogCallback=null,C._ts_parser_enable_logger_wasm(this[0],0));let r=0,s=0;if(n?.includedRanges){r=n.includedRanges.length,s=C._calloc(r,SIZE_OF_RANGE);let e=s;for(let t=0;t<r;t++)marshalRange(e,n.includedRanges[t]),e+=SIZE_OF_RANGE}const o=C._ts_parser_parse_wasm(this[0],this[1],t?t[0]:0,s,r);if(!o)throw currentParseCallback=null,currentLogCallback=null,new Error("Parsing failed");const a=new Tree(INTERNAL,o,this.language,currentParseCallback);return currentParseCallback=null,currentLogCallback=null,a}reset(){C._ts_parser_reset(this[0])}getIncludedRanges(){C._ts_parser_included_ranges_wasm(this[0]);const e=getValue(TRANSFER_BUFFER,"i32"),t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),n=new Array(e);if(e>0){let r=t;for(let t=0;t<e;t++)n[t]=unmarshalRange(r),r+=SIZE_OF_RANGE;C._free(t)}return n}getTimeoutMicros(){return C._ts_parser_timeout_micros(this[0])}setTimeoutMicros(e){C._ts_parser_set_timeout_micros(this[0],e)}setLogger(e){if(e){if("function"!=typeof e)throw new Error("Logger callback must be a function")}else e=null;return this.logCallback=e,this}getLogger(){return this.logCallback}}class Tree{constructor(e,t,n,r){assertInternal(e),this[0]=t,this.language=n,this.textCallback=r}copy(){const e=C._ts_tree_copy(this[0]);return new Tree(INTERNAL,e,this.language,this.textCallback)}delete(){C._ts_tree_delete(this[0]),this[0]=0}edit(e){marshalEdit(e),C._ts_tree_edit_wasm(this[0])}get rootNode(){return C._ts_tree_root_node_wasm(this[0]),unmarshalNode(this)}rootNodeWithOffset(e,t){const n=TRANSFER_BUFFER+SIZE_OF_NODE;return setValue(n,e,"i32"),marshalPoint(n+SIZE_OF_INT,t),C._ts_tree_root_node_with_offset_wasm(this[0]),unmarshalNode(this)}getLanguage(){return this.language}walk(){return this.rootNode.walk()}getChangedRanges(e){if(e.constructor!==Tree)throw new TypeError("Argument must be a Tree");C._ts_tree_get_changed_ranges_wasm(this[0],e[0]);const t=getValue(TRANSFER_BUFFER,"i32"),n=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),r=new Array(t);if(t>0){let e=n;for(let n=0;n<t;n++)r[n]=unmarshalRange(e),e+=SIZE_OF_RANGE;C._free(n)}return r}getIncludedRanges(){C._ts_tree_included_ranges_wasm(this[0]);const e=getValue(TRANSFER_BUFFER,"i32"),t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),n=new Array(e);if(e>0){let r=t;for(let t=0;t<e;t++)n[t]=unmarshalRange(r),r+=SIZE_OF_RANGE;C._free(t)}return n}}class Node{constructor(e,t){assertInternal(e),this.tree=t}get typeId(){return marshalNode(this),C._ts_node_symbol_wasm(this.tree[0])}get grammarId(){return marshalNode(this),C._ts_node_grammar_symbol_wasm(this.tree[0])}get type(){return this.tree.language.types[this.typeId]||"ERROR"}get grammarType(){return this.tree.language.types[this.grammarId]||"ERROR"}get endPosition(){return marshalNode(this),C._ts_node_end_point_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get endIndex(){return marshalNode(this),C._ts_node_end_index_wasm(this.tree[0])}get text(){return getText(this.tree,this.startIndex,this.endIndex)}get parseState(){return marshalNode(this),C._ts_node_parse_state_wasm(this.tree[0])}get nextParseState(){return marshalNode(this),C._ts_node_next_parse_state_wasm(this.tree[0])}get isNamed(){return marshalNode(this),1===C._ts_node_is_named_wasm(this.tree[0])}get hasError(){return marshalNode(this),1===C._ts_node_has_error_wasm(this.tree[0])}get hasChanges(){return marshalNode(this),1===C._ts_node_has_changes_wasm(this.tree[0])}get isError(){return marshalNode(this),1===C._ts_node_is_error_wasm(this.tree[0])}get isMissing(){return marshalNode(this),1===C._ts_node_is_missing_wasm(this.tree[0])}get isExtra(){return marshalNode(this),1===C._ts_node_is_extra_wasm(this.tree[0])}equals(e){return this.id===e.id}child(e){return marshalNode(this),C._ts_node_child_wasm(this.tree[0],e),unmarshalNode(this.tree)}namedChild(e){return marshalNode(this),C._ts_node_named_child_wasm(this.tree[0],e),unmarshalNode(this.tree)}childForFieldId(e){return marshalNode(this),C._ts_node_child_by_field_id_wasm(this.tree[0],e),unmarshalNode(this.tree)}childForFieldName(e){const t=this.tree.language.fields.indexOf(e);return-1!==t?this.childForFieldId(t):null}fieldNameForChild(e){marshalNode(this);const t=C._ts_node_field_name_for_child_wasm(this.tree[0],e);return t?AsciiToString(t):null}childrenForFieldName(e){const t=this.tree.language.fields.indexOf(e);return-1!==t&&0!==t?this.childrenForFieldId(t):[]}childrenForFieldId(e){marshalNode(this),C._ts_node_children_by_field_id_wasm(this.tree[0],e);const t=getValue(TRANSFER_BUFFER,"i32"),n=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),r=new Array(t);if(t>0){let e=n;for(let n=0;n<t;n++)r[n]=unmarshalNode(this.tree,e),e+=SIZE_OF_NODE;C._free(n)}return r}firstChildForIndex(e){return marshalNode(this),setValue(TRANSFER_BUFFER+SIZE_OF_NODE,e,"i32"),C._ts_node_first_child_for_byte_wasm(this.tree[0]),unmarshalNode(this.tree)}firstNamedChildForIndex(e){return marshalNode(this),setValue(TRANSFER_BUFFER+SIZE_OF_NODE,e,"i32"),C._ts_node_first_named_child_for_byte_wasm(this.tree[0]),unmarshalNode(this.tree)}get childCount(){return marshalNode(this),C._ts_node_child_count_wasm(this.tree[0])}get namedChildCount(){return marshalNode(this),C._ts_node_named_child_count_wasm(this.tree[0])}get firstChild(){return this.child(0)}get firstNamedChild(){return this.namedChild(0)}get lastChild(){return this.child(this.childCount-1)}get lastNamedChild(){return this.namedChild(this.namedChildCount-1)}get children(){if(!this._children){marshalNode(this),C._ts_node_children_wasm(this.tree[0]);const e=getValue(TRANSFER_BUFFER,"i32"),t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32");if(this._children=new Array(e),e>0){let n=t;for(let t=0;t<e;
1t++)this._children[t]=unmarshalNode(this.tree,n),n+=SIZE_OF_NODE;C._free(t)}}return this._children}get namedChildren(){if(!this._namedChildren){marshalNode(this),C._ts_node_named_children_wasm(this.tree[0]);const e=getValue(TRANSFER_BUFFER,"i32"),t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32");if(this._namedChildren=new Array(e),e>0){let n=t;for(let t=0;t<e;t++)this._namedChildren[t]=unmarshalNode(this.tree,n),n+=SIZE_OF_NODE;C._free(t)}}return this._namedChildren}descendantsOfType(e,t,n){Array.isArray(e)||(e=[e]),t||(t=ZERO_POINT),n||(n=ZERO_POINT);const r=[],s=this.tree.language.types;for(let t=0,n=s.length;t<n;t++)e.includes(s[t])&&r.push(t);const o=C._malloc(SIZE_OF_INT*r.length);for(let e=0,t=r.length;e<t;e++)setValue(o+e*SIZE_OF_INT,r[e],"i32");marshalNode(this),C._ts_node_descendants_of_type_wasm(this.tree[0],o,r.length,t.row,t.column,n.row,n.column);const a=getValue(TRANSFER_BUFFER,"i32"),i=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),l=new Array(a);if(a>0){let e=i;for(let t=0;t<a;t++)l[t]=unmarshalNode(this.tree,e),e+=SIZE_OF_NODE}return C._free(i),C._free(o),l}get nextSibling(){return marshalNode(this),C._ts_node_next_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get previousSibling(){return marshalNode(this),C._ts_node_prev_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get nextNamedSibling(){return marshalNode(this),C._ts_node_next_named_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get previousNamedSibling(){return marshalNode(this),C._ts_node_prev_named_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get descendantCount(){return marshalNode(this),C._ts_node_descendant_count_wasm(this.tree[0])}get parent(){return marshalNode(this),C._ts_node_parent_wasm(this.tree[0]),unmarshalNode(this.tree)}descendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");marshalNode(this);const n=TRANSFER_BUFFER+SIZE_OF_NODE;return setValue(n,e,"i32"),setValue(n+SIZE_OF_INT,t,"i32"),C._ts_node_descendant_for_index_wasm(this.tree[0]),unmarshalNode(this.tree)}namedDescendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");marshalNode(this);const n=TRANSFER_BUFFER+SIZE_OF_NODE;return setValue(n,e,"i32"),setValue(n+SIZE_OF_INT,t,"i32"),C._ts_node_named_descendant_for_index_wasm(this.tree[0]),unmarshalNode(this.tree)}descendantForPosition(e,t=e){if(!isPoint(e)||!isPoint(t))throw new Error("Arguments must be {row, column} objects");marshalNode(this);const n=TRANSFER_BUFFER+SIZE_OF_NODE;return marshalPoint(n,e),marshalPoint(n+SIZE_OF_POINT,t),C._ts_node_descendant_for_position_wasm(this.tree[0]),unmarshalNode(this.tree)}namedDescendantForPosition(e,t=e){if(!isPoint(e)||!isPoint(t))throw new Error("Arguments must be {row, column} objects");marshalNode(this);const n=TRANSFER_BUFFER+SIZE_OF_NODE;return marshalPoint(n,e),marshalPoint(n+SIZE_OF_POINT,t),C._ts_node_named_descendant_for_position_wasm(this.tree[0]),unmarshalNode(this.tree)}walk(){return marshalNode(this),C._ts_tree_cursor_new_wasm(this.tree[0]),new TreeCursor(INTERNAL,this.tree)}toString(){marshalNode(this);const e=C._ts_node_to_string_wasm(this.tree[0]),t=AsciiToString(e);return C._free(e),t}}class TreeCursor{constructor(e,t){assertInternal(e),this.tree=t,unmarshalTreeCursor(this)}delete(){marshalTreeCursor(this),C._ts_tree_cursor_delete_wasm(this.tree[0]),this[0]=this[1]=this[2]=0}reset(e){marshalNode(e),marshalTreeCursor(this,TRANSFER_BUFFER+SIZE_OF_NODE),C._ts_tree_cursor_reset_wasm(this.tree[0]),unmarshalTreeCursor(this)}resetTo(e){marshalTreeCursor(this,TRANSFER_BUFFER),marshalTreeCursor(e,TRANSFER_BUFFER+SIZE_OF_CURSOR),C._ts_tree_cursor_reset_to_wasm(this.tree[0],e.tree[0]),unmarshalTreeCursor(this)}get nodeType(){return this.tree.language.types[this.nodeTypeId]||"ERROR"}get nodeTypeId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_type_id_wasm(this.tree[0])}get nodeStateId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_state_id_wasm(this.tree[0])}get nodeId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_id_wasm(this.tree[0])}get nodeIsNamed(){return marshalTreeCursor(this),1===C._ts_tree_cursor_current_node_is_named_wasm(this.tree[0])}get nodeIsMissing(){return marshalTreeCursor(this),1===C._ts_tree_cursor_current_node_is_missing_wasm(this.tree[0])}get nodeText(){marshalTreeCursor(this);const e=C._ts_tree_cursor_start_index_wasm(this.tree[0]),t=C._ts_tree_cursor_end_index_wasm(this.tree[0]);return getText(this.tree,e,t)}get startPosition(){return marshalTreeCursor(this),C._ts_tree_cursor_start_position_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get endPosition(){return marshalTreeCursor(this),C._ts_tree_cursor_end_position_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get startIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_start_index_wasm(this.tree[0])}get endIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_end_index_wasm(this.tree[0])}get currentNode(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_wasm(this.tree[0]),unmarshalNode(this.tree)}get currentFieldId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_field_id_wasm(this.tree[0])}get currentFieldName(){return this.tree.language.fields[this.currentFieldId]}get currentDepth(){return marshalTreeCursor(this),C._ts_tree_cursor_current_depth_wasm(this.tree[0])}get currentDescendantIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_current_descendant_index_wasm(this.tree[0])}gotoFirstChild(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_first_child_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoLastChild(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_last_child_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoFirstChildForIndex(e){marshalTreeCursor(this),setValue(TRANSFER_BUFFER+SIZE_OF_CURSOR,e,"i32");const t=C._ts_tree_cursor_goto_first_child_for_index_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===t}gotoFirstChildForPosition(e){marshalTreeCursor(this),marshalPoint(TRANSFER_BUFFER+SIZE_OF_CURSOR,e);const t=C._ts_tree_cursor_goto_first_child_for_position_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===t}gotoNextSibling(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_next_sibling_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoPreviousSibling(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_previous_sibling_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoDescendant(e){marshalTreeCursor(this),C._ts_tree_cursor_goto_descendant_wasm(this.tree[0],e),unmarshalTreeCursor(this)}gotoParent(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_parent_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}}class Language{constructor(e,t){assertInternal(e),this[0]=t,this.types=new Array(C._ts_language_symbol_count(this[0]));
1for(let e=0,t=this.types.length;e<t;e++)C._ts_language_symbol_type(this[0],e)<2&&(this.types[e]=UTF8ToString(C._ts_language_symbol_name(this[0],e)));this.fields=new Array(C._ts_language_field_count(this[0])+1);for(let e=0,t=this.fields.length;e<t;e++){const t=C._ts_language_field_name_for_id(this[0],e);this.fields[e]=0!==t?UTF8ToString(t):null}}get version(){return C._ts_language_version(this[0])}get fieldCount(){return this.fields.length-1}get stateCount(){return C._ts_language_state_count(this[0])}fieldIdForName(e){const t=this.fields.indexOf(e);return-1!==t?t:null}fieldNameForId(e){return this.fields[e]||null}idForNodeType(e,t){const n=lengthBytesUTF8(e),r=C._malloc(n+1);stringToUTF8(e,r,n+1);const s=C._ts_language_symbol_for_name(this[0],r,n,t);return C._free(r),s||null}get nodeTypeCount(){return C._ts_language_symbol_count(this[0])}nodeTypeForId(e){const t=C._ts_language_symbol_name(this[0],e);return t?UTF8ToString(t):null}nodeTypeIsNamed(e){return!!C._ts_language_type_is_named_wasm(this[0],e)}nodeTypeIsVisible(e){return!!C._ts_language_type_is_visible_wasm(this[0],e)}nextState(e,t){return C._ts_language_next_state(this[0],e,t)}lookaheadIterator(e){const t=C._ts_lookahead_iterator_new(this[0],e);return t?new LookaheadIterable(INTERNAL,t,this):null}query(e){const t=lengthBytesUTF8(e),n=C._malloc(t+1);stringToUTF8(e,n,t+1);const r=C._ts_query_new(this[0],n,t,TRANSFER_BUFFER,TRANSFER_BUFFER+SIZE_OF_INT);if(!r){const t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),r=getValue(TRANSFER_BUFFER,"i32"),s=UTF8ToString(n,r).length,o=e.substr(s,100).split("\n")[0];let a,i=o.match(QUERY_WORD_REGEX)[0];switch(t){case 2:a=new RangeError(`Bad node name '${i}'`);break;case 3:a=new RangeError(`Bad field name '${i}'`);break;case 4:a=new RangeError(`Bad capture name @${i}`);break;case 5:a=new TypeError(`Bad pattern structure at offset ${s}: '${o}'...`),i="";break;default:a=new SyntaxError(`Bad syntax at offset ${s}: '${o}'...`),i=""}throw a.index=s,a.length=i.length,C._free(n),a}const s=C._ts_query_string_count(r),o=C._ts_query_capture_count(r),a=C._ts_query_pattern_count(r),i=new Array(o),l=new Array(s);for(let e=0;e<o;e++){const t=C._ts_query_capture_name_for_id(r,e,TRANSFER_BUFFER),n=getValue(TRANSFER_BUFFER,"i32");i[e]=UTF8ToString(t,n)}for(let e=0;e<s;e++){const t=C._ts_query_string_value_for_id(r,e,TRANSFER_BUFFER),n=getValue(TRANSFER_BUFFER,"i32");l[e]=UTF8ToString(t,n)}const u=new Array(a),c=new Array(a),p=new Array(a),d=new Array(a),_=new Array(a);for(let e=0;e<a;e++){const t=C._ts_query_predicates_for_pattern(r,e,TRANSFER_BUFFER),n=getValue(TRANSFER_BUFFER,"i32");d[e]=[],_[e]=[];const s=[];let o=t;for(let t=0;t<n;t++){const t=getValue(o,"i32");o+=SIZE_OF_INT;const n=getValue(o,"i32");if(o+=SIZE_OF_INT,t===PREDICATE_STEP_TYPE_CAPTURE)s.push({type:"capture",name:i[n]});else if(t===PREDICATE_STEP_TYPE_STRING)s.push({type:"string",value:l[n]});else if(s.length>0){if("string"!==s[0].type)throw new Error("Predicates must begin with a literal value");const t=s[0].value;let n,r=!0,o=!0;switch(t){case"any-not-eq?":case"not-eq?":r=!1;case"any-eq?":case"eq?":if(3!==s.length)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 2, got ${s.length-1}`);if("capture"!==s[1].type)throw new Error(`First argument of \`#${t}\` predicate must be a capture. Got "${s[1].value}"`);if(o=!t.startsWith("any-"),"capture"===s[2].type){const t=s[1].name,n=s[2].name;_[e].push((e=>{const s=[],a=[];for(const r of e)r.name===t&&s.push(r.node),r.name===n&&a.push(r.node);const i=(e,t,n)=>n?e.text===t.text:e.text!==t.text;return o?s.every((e=>a.some((t=>i(e,t,r))))):s.some((e=>a.some((t=>i(e,t,r)))))}))}else{n=s[1].name;const t=s[2].value,a=e=>e.text===t,i=e=>e.text!==t;_[e].push((e=>{const t=[];for(const r of e)r.name===n&&t.push(r.node);const s=r?a:i;return o?t.every(s):t.some(s)}))}break;case"any-not-match?":case"not-match?":r=!1;case"any-match?":case"match?":if(3!==s.length)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 2, got ${s.length-1}.`);if("capture"!==s[1].type)throw new Error(`First argument of \`#${t}\` predicate must be a capture. Got "${s[1].value}".`);if("string"!==s[2].type)throw new Error(`Second argument of \`#${t}\` predicate must be a string. Got @${s[2].value}.`);n=s[1].name;const a=new RegExp(s[2].value);o=!t.startsWith("any-"),_[e].push((e=>{const t=[];for(const r of e)r.name===n&&t.push(r.node.text);const s=(e,t)=>t?a.test(e):!a.test(e);return 0===t.length?!r:o?t.every((e=>s(e,r))):t.some((e=>s(e,r)))}));break;case"set!":if(s.length<2||s.length>3)throw new Error(`Wrong number of arguments to \`#set!\` predicate. Expected 1 or 2. Got ${s.length-1}.`);if(s.some((e=>"string"!==e.type)))throw new Error('Arguments to `#set!` predicate must be a strings.".');u[e]||(u[e]={}),u[e][s[1].value]=s[2]?s[2].value:null;break;case"is?":case"is-not?":if(s.length<2||s.length>3)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 1 or 2. Got ${s.length-1}.`);if(s.some((e=>"string"!==e.type)))throw new Error(`Arguments to \`#${t}\` predicate must be a strings.".`);const i="is?"===t?c:p;i[e]||(i[e]={}),i[e][s[1].value]=s[2]?s[2].value:null;break;case"not-any-of?":r=!1;case"any-of?":if(s.length<2)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected at least 1. Got ${s.length-1}.`);if("capture"!==s[1].type)throw new Error(`First argument of \`#${t}\` predicate must be a capture. Got "${s[1].value}".`);for(let e=2;e<s.length;e++)if("string"!==s[e].type)throw new Error(`Arguments to \`#${t}\` predicate must be a strings.".`);n=s[1].name;const l=s.slice(2).map((e=>e.value));_[e].push((e=>{const t=[];for(const r of e)r.name===n&&t.push(r.node.text);return 0===t.length?!r:t.every((e=>l.includes(e)))===r}));break;default:d[e].push({operator:t,operands:s.slice(1)})}s.length=0}}Object.freeze(u[e]),Object.freeze(c[e]),Object.freeze(p[e])}return C._free(n),new Query(INTERNAL,r,i,_,d,Object.freeze(u),Object.freeze(c),Object.freeze(p))}static load(e){let t;if(e instanceof Uint8Array)t=Promise.resolve(e);else{const n=e;if("undefined"!=typeof process&&process.versions&&process.versions.node){const e=__webpack_require__(8075);t=Promise.resolve(e.readFileSync(n))}else t=fetch(n).then((e=>e.arrayBuffer().then((t=>{if(e.ok)return new Uint8Array(t);{const n=new TextDecoder("utf-8").decode(t);throw new Error(`Language.load failed with status ${e.status}.\n\n${n}`)}}))))}return t.then((e=>
1loadWebAssemblyModule(e,{loadAsync:!0}))).then((e=>{const t=Object.keys(e),n=t.find((e=>LANGUAGE_FUNCTION_REGEX.test(e)&&!e.includes("external_scanner_")));n||console.log(`Couldn't find language function in WASM file. Symbols:\n${JSON.stringify(t,null,2)}`);const r=e[n]();return new Language(INTERNAL,r)}))}}class LookaheadIterable{constructor(e,t,n){assertInternal(e),this[0]=t,this.language=n}get currentTypeId(){return C._ts_lookahead_iterator_current_symbol(this[0])}get currentType(){return this.language.types[this.currentTypeId]||"ERROR"}delete(){C._ts_lookahead_iterator_delete(this[0]),this[0]=0}resetState(e){return C._ts_lookahead_iterator_reset_state(this[0],e)}reset(e,t){return!!C._ts_lookahead_iterator_reset(this[0],e[0],t)&&(this.language=e,!0)}[Symbol.iterator](){const e=this;return{next:()=>C._ts_lookahead_iterator_next(e[0])?{done:!1,value:e.currentType}:{done:!0,value:""}}}}class Query{constructor(e,t,n,r,s,o,a,i){assertInternal(e),this[0]=t,this.captureNames=n,this.textPredicates=r,this.predicates=s,this.setProperties=o,this.assertedProperties=a,this.refutedProperties=i,this.exceededMatchLimit=!1}delete(){C._ts_query_delete(this[0]),this[0]=0}matches(e,{startPosition:t=ZERO_POINT,endPosition:n=ZERO_POINT,startIndex:r=0,endIndex:s=0,matchLimit:o=4294967295,maxStartDepth:a=4294967295,timeoutMicros:i=0}={}){if("number"!=typeof o)throw new Error("Arguments must be numbers");marshalNode(e),C._ts_query_matches_wasm(this[0],e.tree[0],t.row,t.column,n.row,n.column,r,s,o,a,i);const l=getValue(TRANSFER_BUFFER,"i32"),u=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),c=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),p=new Array(l);this.exceededMatchLimit=Boolean(c);let d=0,_=u;for(let t=0;t<l;t++){const t=getValue(_,"i32");_+=SIZE_OF_INT;const n=getValue(_,"i32");_+=SIZE_OF_INT;const r=new Array(n);if(_=unmarshalCaptures(this,e.tree,_,r),this.textPredicates[t].every((e=>e(r)))){p[d]={pattern:t,captures:r};const e=this.setProperties[t];e&&(p[d].setProperties=e);const n=this.assertedProperties[t];n&&(p[d].assertedProperties=n);const s=this.refutedProperties[t];s&&(p[d].refutedProperties=s),d++}}return p.length=d,C._free(u),p}captures(e,{startPosition:t=ZERO_POINT,endPosition:n=ZERO_POINT,startIndex:r=0,endIndex:s=0,matchLimit:o=4294967295,maxStartDepth:a=4294967295,timeoutMicros:i=0}={}){if("number"!=typeof o)throw new Error("Arguments must be numbers");marshalNode(e),C._ts_query_captures_wasm(this[0],e.tree[0],t.row,t.column,n.row,n.column,r,s,o,a,i);const l=getValue(TRANSFER_BUFFER,"i32"),u=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),c=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),p=[];this.exceededMatchLimit=Boolean(c);const d=[];let _=u;for(let t=0;t<l;t++){const t=getValue(_,"i32");_+=SIZE_OF_INT;const n=getValue(_,"i32");_+=SIZE_OF_INT;const r=getValue(_,"i32");if(_+=SIZE_OF_INT,d.length=n,_=unmarshalCaptures(this,e.tree,_,d),this.textPredicates[t].every((e=>e(d)))){const e=d[r],n=this.setProperties[t];n&&(e.setProperties=n);const s=this.assertedProperties[t];s&&(e.assertedProperties=s);const o=this.refutedProperties[t];o&&(e.refutedProperties=o),p.push(e)}}return C._free(u),p}predicatesForPattern(e){return this.predicates[e]}disableCapture(e){const t=lengthBytesUTF8(e),n=C._malloc(t+1);stringToUTF8(e,n,t+1),C._ts_query_disable_capture(this[0],n,t),C._free(n)}didExceedMatchLimit(){return this.exceededMatchLimit}}function getText(e,t,n){const r=n-t;let s=e.textCallback(t,null,n);for(t+=s.length;t<n;){const r=e.textCallback(t,null,n);if(!(r&&r.length>0))break;t+=r.length,s+=r}return t>n&&(s=s.slice(0,r)),s}function unmarshalCaptures(e,t,n,r){for(let s=0,o=r.length;s<o;s++){const o=getValue(n,"i32"),a=unmarshalNode(t,n+=SIZE_OF_INT);n+=SIZE_OF_NODE,r[s]={name:e.captureNames[o],node:a}}return n}function assertInternal(e){if(e!==INTERNAL)throw new Error("Illegal constructor")}function isPoint(e){return e&&"number"==typeof e.row&&"number"==typeof e.column}function marshalNode(e){let t=TRANSFER_BUFFER;setValue(t,e.id,"i32"),t+=SIZE_OF_INT,setValue(t,e.startIndex,"i32"),t+=SIZE_OF_INT,setValue(t,e.startPosition.row,"i32"),t+=SIZE_OF_INT,setValue(t,e.startPosition.column,"i32"),t+=SIZE_OF_INT,setValue(t,e[0],"i32")}function unmarshalNode(e,t=TRANSFER_BUFFER){const n=getValue(t,"i32");if(0===n)return null;const r=getValue(t+=SIZE_OF_INT,"i32"),s=getValue(t+=SIZE_OF_INT,"i32"),o=getValue(t+=SIZE_OF_INT,"i32"),a=getValue(t+=SIZE_OF_INT,"i32"),i=new Node(INTERNAL,e);return i.id=n,i.startIndex=r,i.startPosition={row:s,column:o},i[0]=a,i}function marshalTreeCursor(e,t=TRANSFER_BUFFER){setValue(t+0*SIZE_OF_INT,e[0],"i32"),setValue(t+1*SIZE_OF_INT,e[1],"i32"),setValue(t+2*SIZE_OF_INT,e[2],"i32"),setValue(t+3*SIZE_OF_INT,e[3],"i32")}function unmarshalTreeCursor(e){e[0]=getValue(TRANSFER_BUFFER+0*SIZE_OF_INT,"i32"),e[1]=getValue(TRANSFER_BUFFER+1*SIZE_OF_INT,"i32"),e[2]=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),e[3]=getValue(TRANSFER_BUFFER+3*SIZE_OF_INT,"i32")}function marshalPoint(e,t){setValue(e,t.row,"i32"),setValue(e+SIZE_OF_INT,t.column,"i32")}function unmarshalPoint(e){return{row:getValue(e,"i32")>>>0,column:getValue(e+SIZE_OF_INT,"i32")>>>0}}function marshalRange(e,t){marshalPoint(e,t.startPosition),marshalPoint(e+=SIZE_OF_POINT,t.endPosition),setValue(e+=SIZE_OF_POINT,t.startIndex,"i32"),setValue(e+=SIZE_OF_INT,t.endIndex,"i32"),e+=SIZE_OF_INT}function unmarshalRange(e){const t={};return t.startPosition=unmarshalPoint(e),e+=SIZE_OF_POINT,t.endPosition=unmarshalPoint(e),e+=SIZE_OF_POINT,t.startIndex=getValue(e,"i32")>>>0,e+=SIZE_OF_INT,t.endIndex=getValue(e,"i32")>>>0,t}function marshalEdit(e){let t=TRANSFER_BUFFER;marshalPoint(t,e.startPosition),t+=SIZE_OF_POINT,marshalPoint(t,e.oldEndPosition),t+=SIZE_OF_POINT,marshalPoint(t,e.newEndPosition),t+=SIZE_OF_POINT,setValue(t,e.startIndex,"i32"),t+=SIZE_OF_INT,setValue(t,e.oldEndIndex,"i32"),t+=SIZE_OF_INT,setValue(t,e.newEndIndex,"i32"),t+=SIZE_OF_INT}for(const e of Object.getOwnPropertyNames(ParserImpl.prototype))Object.defineProperty(Parser.prototype,e,{value:ParserImpl.prototype[e],enumerable:!1,writable:!1});Parser.Language=Language,Module.onRuntimeInitialized=()=>{ParserImpl.init(),resolveInitPromise()}})))}}return Parser}();module.exports=TreeSitter}
1,4648:(e,t,n)=>{var r,s,o;o=n(5288),s=n(3432),r=function(){function e(){}return e.indentation=4,e.prototype.dump=function(e,t,n,r,a){var i,l,u,c,p,d,_;if(null==t&&(t=0),null==n&&(n=0),null==r&&(r=!1),null==a&&(a=null),c="",p=n?o.strRepeat(" ",n):"",t<=0||"object"!=typeof e||e instanceof Date||o.isEmpty(e))c+=p+s.dump(e,r,a);else if(e instanceof Array)for(i=0,u=e.length;i<u;i++)d=e[i],c+=p+"-"+((_=t-1<=0||"object"!=typeof d||o.isEmpty(d))?" ":"\n")+this.dump(d,t-1,_?0:n+this.indentation,r,a)+(_?"\n":"");else for(l in e)d=e[l],_=t-1<=0||"object"!=typeof d||o.isEmpty(d),c+=p+s.dump(l,r,a)+":"+(_?" ":"\n")+this.dump(d,t-1,_?0:n+this.indentation,r,a)+(_?"\n":"");return c},e}(),e.exports=r},5666:(e,t,n)=>{var r,s;s=n(1459),r=function(){var e;function t(){}return t.LIST_ESCAPEES=["\\","\\\\",'\\"','"',"\0","�","�","�","�","�","�","�","\b","\t","\n","\v","\f","\r","�","�","�","�","�","�","�","�","�","�","�","�","�","�","�","�","�","�",(e=String.fromCharCode)(133),e(160),e(8232),e(8233)],t.LIST_ESCAPED=["\\\\",'\\"','\\"','\\"',"\\0","\\x01","\\x02","\\x03","\\x04","\\x05","\\x06","\\a","\\b","\\t","\\n","\\v","\\f","\\r","\\x0e","\\x0f","\\x10","\\x11","\\x12","\\x13","\\x14","\\x15","\\x16","\\x17","\\x18","\\x19","\\x1a","\\e","\\x1c","\\x1d","\\x1e","\\x1f","\\N","\\_","\\L","\\P"],t.MAPPING_ESCAPEES_TO_ESCAPED=function(){var e,n,r,s;for(r={},e=n=0,s=t.LIST_ESCAPEES.length;0<=s?n<s:n>s;e=0<=s?++n:--n)r[t.LIST_ESCAPEES[e]]=t.LIST_ESCAPED[e];return r}(),t.PATTERN_CHARACTERS_TO_ESCAPE=new s("[\\x00-\\x1f]|…| |
|
"),t.PATTERN_MAPPING_ESCAPEES=new s(t.LIST_ESCAPEES.join("|").split("\\").join("\\\\")),t.PATTERN_SINGLE_QUOTING=new s("[\\s'\":{}[\\],&*#?]|^[-?|<>=!%@`]"),t.requiresDoubleQuoting=function(e){return this.PATTERN_CHARACTERS_TO_ESCAPE.test(e)},t.escapeWithDoubleQuotes=function(e){var t;return'"'+this.PATTERN_MAPPING_ESCAPEES.replace(e,(t=this,function(e){return t.MAPPING_ESCAPEES_TO_ESCAPED[e]}))+'"'},t.requiresSingleQuoting=function(e){return this.PATTERN_SINGLE_QUOTING.test(e)},t.escapeWithSingleQuotes=function(e){return"'"+e.replace(/'/g,"''")+"'"},t}(),e.exports=r},4916:e=>{var t,n={}.hasOwnProperty;t=function(){function e(e,t,n){this.message=e,this.parsedLine=t,this.snippet=n}return function(e,t){for(var r in t)n.call(t,r)&&(e[r]=t[r]);function s(){this.constructor=e}s.prototype=t.prototype,e.prototype=new s,e.__super__=t.prototype}(e,Error),e.prototype.toString=function(){return null!=this.parsedLine&&null!=this.snippet?"<DumpException> "+this.message+" (line "+this.parsedLine+": '"+this.snippet+"')":"<DumpException> "+this.message},e}(),e.exports=t},2087:e=>{var t,n={}.hasOwnProperty;t=function(){function e(e,t,n){this.message=e,this.parsedLine=t,this.snippet=n}return function(e,t){for(var r in t)n.call(t,r)&&(e[r]=t[r]);function s(){this.constructor=e}s.prototype=t.prototype,e.prototype=new s,e.__super__=t.prototype}(e,Error),e.prototype.toString=function(){return null!=this.parsedLine&&null!=this.snippet?"<ParseException> "+this.message+" (line "+this.parsedLine+": '"+this.snippet+"')":"<ParseException> "+this.message},e}(),e.exports=t},9589:e=>{var t,n={}.hasOwnProperty;t=function(){function e(e,t,n){this.message=e,this.parsedLine=t,this.snippet=n}return function(e,t){for(var r in t)n.call(t,r)&&(e[r]=t[r]);function s(){this.constructor=e}s.prototype=t.prototype,e.prototype=new s,e.__super__=t.prototype}(e,Error),e.prototype.toString=function(){return null!=this.parsedLine&&null!=this.snippet?"<ParseMore> "+this.message+" (line "+this.parsedLine+": '"+this.snippet+"')":"<ParseMore> "+this.message},e}(),e.exports=t},3432:(e,t,n)=>{var r,s,o,a,i,l,u,c=[].indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(t in this&&this[t]===e)return t;return-1};i=n(1459),l=n(1963),r=n(5666),u=n(5288),o=n(2087),a=n(9589),n(4916),s=function(){function e(){}return e.REGEX_QUOTED_STRING="(?:\"(?:[^\"\\\\]*(?:\\\\.[^\"\\\\]*)*)\"|'(?:[^']*(?:''[^']*)*)')",e.PATTERN_TRAILING_COMMENTS=new i("^\\s*#.*$"),e.PATTERN_QUOTED_SCALAR=new i("^"+e.REGEX_QUOTED_STRING),e.PATTERN_THOUSAND_NUMERIC_SCALAR=new i("^(-|\\+)?[0-9,]+(\\.[0-9]+)?$"),e.PATTERN_SCALAR_BY_DELIMITERS={},e.settings={},e.configure=function(e,t){null==e&&(e=null),null==t&&(t=null),this.settings.exceptionOnInvali
1dType=e,this.settings.objectDecoder=t},e.parse=function(e,t,n){var r,s;if(null==t&&(t=!1),null==n&&(n=null),this.settings.exceptionOnInvalidType=t,this.settings.objectDecoder=n,null==e)return"";if(0===(e=u.trim(e)).length)return"";switch(r={exceptionOnInvalidType:t,objectDecoder:n,i:0},e.charAt(0)){case"[":s=this.parseSequence(e,r),++r.i;break;case"{":s=this.parseMapping(e,r),++r.i;break;default:s=this.parseScalar(e,null,['"',"'"],r)}if(""!==this.PATTERN_TRAILING_COMMENTS.replace(e.slice(r.i),""))throw new o('Unexpected characters near "'+e.slice(r.i)+'".');return s},e.dump=function(e,t,n){var s,o,a;return null==t&&(t=!1),null==n&&(n=null),null==e?"null":"object"==(a=typeof e)?e instanceof Date?e.toISOString():null==n||"string"!=typeof(o=n(e))&&null==o?this.dumpObject(e):o:"boolean"===a?e?"true":"false":u.isDigits(e)?"string"===a?"'"+e+"'":String(parseInt(e)):u.isNumeric(e)?"string"===a?"'"+e+"'":String(parseFloat(e)):"number"===a?Infinity===e?".Inf":-Infinity===e?"-.Inf":isNaN(e)?".NaN":e:r.requiresDoubleQuoting(e)?r.escapeWithDoubleQuotes(e):r.requiresSingleQuoting(e)?r.escapeWithSingleQuotes(e):""===e?'""':u.PATTERN_DATE.test(e)||"null"===(s=e.toLowerCase())||"~"===s||"true"===s||"false"===s?"'"+e+"'":e},e.dumpObject=function(e,t,n){var r,s,o,a,i;if(null==n&&(n=null),e instanceof Array){for(a=[],r=0,o=e.length;r<o;r++)i=e[r],a.push(this.dump(i));return"["+a.join(", ")+"]"}for(s in a=[],e)i=e[s],a.push(this.dump(s)+": "+this.dump(i));return"{"+a.join(", ")+"}"},e.parseScalar=function(e,t,n,r,s){var a,l,p,d,_,h,m,f;if(null==t&&(t=null),null==n&&(n=['"',"'"]),null==r&&(r=null),null==s&&(s=!0),null==r&&(r={exceptionOnInvalidType:this.settings.exceptionOnInvalidType,objectDecoder:this.settings.objectDecoder,i:0}),a=r.i,h=e.charAt(a),c.call(n,h)>=0){if(d=this.parseQuotedScalar(e,r),a=r.i,null!=t&&(m=u.ltrim(e.slice(a)," ").charAt(0),!(c.call(t,m)>=0)))throw new o("Unexpected characters ("+e.slice(a)+").")}else{if(t){if(l=t.join("|"),null==(_=this.PATTERN_SCALAR_BY_DELIMITERS[l])&&(_=new i("^(.+?)("+l+")"),this.PATTERN_SCALAR_BY_DELIMITERS[l]=_),!(p=_.exec(e.slice(a))))throw new o("Malformed inline YAML string ("+e+").");a+=(d=p[1]).length}else a+=(d=e.slice(a)).length,-1!==(f=d.indexOf(" #"))&&(d=u.rtrim(d.slice(0,f)));s&&(d=this.evaluateScalar(d,r))}return r.i=a,d},e.parseQuotedScalar=function(e,t){var n,r,s;if(n=t.i,!(r=this.PATTERN_QUOTED_SCALAR.exec(e.slice(n))))throw new a("Malformed inline YAML string ("+e.slice(n)+").");return s=r[0].substr(1,r[0].length-2),s='"'===e.charAt(n)?l.unescapeDoubleQuotedString(s):l.unescapeSingleQuotedString(s),n+=r[0].length,t.i=n,s},e.parseSequence=function(e,t){var n,r,s,o,i,l;for(o=[],s=e.length,n=t.i,n+=1;n<s;){switch(t.i=n,e.charAt(n)){case"[":o.push(this.parseSequence(e,t)),n=t.i;break;case"{":o.push(this.parseMapping(e,t)),n=t.i;break;case"]":return o;case",":case" ":case"\n":break;default:if(r='"'===(i=e.charAt(n))||"'"===i,l=this.parseScalar(e,[",","]"],['"',"'"],t),n=t.i,!r&&"string"==typeof l&&(-1!==l.indexOf(": ")||-1!==l.indexOf(":\n")))try{l=this.parseMapping("{"+l+"}")}catch(e){}o.push(l),--n}++n}throw new a("Malformed inline YAML string "+e)},e.parseMapping=function(e,t){var n,r,s,o,i,l,u;for(i={},o=e.length,r=t.i,r+=1,l=!1;r<o;){switch(t.i=r,e.charAt(r)){case" ":case",":case"\n":++r,t.i=r,l=!0;break;case"}":return i}if(l)l=!1;else for(s=this.parseScalar(e,[":"," ","\n"],['"',"'"],t,!1),r=t.i,n=!1;r<o;){switch(t.i=r,e.charAt(r)){case"[":u=this.parseSequence(e,t),r=t.i,void 0===i[s]&&(i[s]=u),n=!0;break;case"{":u=this.parseMapping(e,t),r=t.i,void 0===i[s]&&(i[s]=u),n=!0;break;case":":case" ":case"\n":break;default:u=this.parseScalar(e,[",","}"],['"',"'"],t),r=t.i,void 0===i[s]&&(i[s]=u),n=!0,--r}if(++r,n)break}}throw new a("Malformed inline YAML string "+e)},e.evaluateScalar=function(e,t){var n,r,s,a,i,l,c,p,d;switch(c=(e=u.trim(e)).toLowerCase()){case"null":case"":case"~":return null;case"true":return!0;case"false":return!1;case".inf":case"-.inf":return Infinity;case".nan":return NaN;default:switch(c.charAt(0)){case"!":switch(-1===(a=e.indexOf(" "))?c:c.slice(0,a)){case"!":return-1!==a?parseInt(this.parseScalar(e.slice(2))):null;case"!str":return u.ltrim(e.slice(4));case"!!str":return u.ltrim(e.slice(5));case"!!int":return parseInt(this.parseScalar(e.slice(5)));case"!!bool":return u.parseBoolean(this.parseScalar(e.slice(6)),!1);case"!!float":return parseFloat(this.parseScalar(e.slice(7)));case"!!timestamp":return u.stringToDate(u.ltrim(e.slice(11)));
1default:if(null==t&&(t={exceptionOnInvalidType:this.settings.exceptionOnInvalidType,objectDecoder:this.settings.objectDecoder,i:0}),i=t.objectDecoder,s=t.exceptionOnInvalidType,i)return-1===(a=(d=u.rtrim(e)).indexOf(" "))?i(d,null):((p=u.ltrim(d.slice(a+1))).length>0||(p=null),i(d.slice(0,a),p));if(s)throw new o("Custom object support when parsing a YAML file has been disabled.");return null}break;case"0":return"0x"===e.slice(0,2)?u.hexDec(e):u.isDigits(e)?u.octDec(e):u.isNumeric(e)?parseFloat(e):e;case"+":return u.isDigits(e)?(l=e,n=parseInt(l),l===String(n)?n:l):u.isNumeric(e)?parseFloat(e):this.PATTERN_THOUSAND_NUMERIC_SCALAR.test(e)?parseFloat(e.replace(",","")):e;case"-":return u.isDigits(e.slice(1))?"0"===e.charAt(1)?-u.octDec(e.slice(1)):(l=e.slice(1),n=parseInt(l),l===String(n)?-n:-l):u.isNumeric(e)?parseFloat(e):this.PATTERN_THOUSAND_NUMERIC_SCALAR.test(e)?parseFloat(e.replace(",","")):e;default:return(r=u.stringToDate(e))?r:u.isNumeric(e)?parseFloat(e):this.PATTERN_THOUSAND_NUMERIC_SCALAR.test(e)?parseFloat(e.replace(",","")):e}}},e}(),e.exports=s},8450:(e,t,n)=>{var r,s,o,a,i,l;r=n(3432),i=n(1459),l=n(5288),s=n(2087),o=n(9589),a=function(){function e(e){this.offset=null!=e?e:0,this.lines=[],this.currentLineNb=-1,this.currentLine="",this.refs={}}return e.prototype.PATTERN_FOLDED_SCALAR_ALL=new i("^(?:(?<type>![^\\|>]*)\\s+)?(?<separator>\\||>)(?<modifiers>\\+|\\-|\\d+|\\+\\d+|\\-\\d+|\\d+\\+|\\d+\\-)?(?<comments> +#.*)?$"),e.prototype.PATTERN_FOLDED_SCALAR_END=new i("(?<separator>\\||>)(?<modifiers>\\+|\\-|\\d+|\\+\\d+|\\-\\d+|\\d+\\+|\\d+\\-)?(?<comments> +#.*)?$"),e.prototype.PATTERN_SEQUENCE_ITEM=new i("^\\-((?<leadspaces>\\s+)(?<value>.+?))?\\s*$"),e.prototype.PATTERN_ANCHOR_VALUE=new i("^&(?<ref>[^ ]+) *(?<value>.*)"),e.prototype.PATTERN_COMPACT_NOTATION=new i("^(?<key>"+r.REGEX_QUOTED_STRING+"|[^ '\"\\{\\[].*?) *\\:(\\s+(?<value>.+?))?\\s*$"),e.prototype.PATTERN_MAPPING_ITEM=new i("^(?<key>"+r.REGEX_QUOTED_STRING+"|[^ '\"\\[\\{].*?) *\\:(\\s+(?<value>.+?))?\\s*$"),e.prototype.PATTERN_DECIMAL=new i("\\d+"),e.prototype.PATTERN_INDENT_SPACES=new i("^ +"),e.prototype.PATTERN_TRAILING_LINES=new i("(\n*)$"),e.prototype.PATTERN_YAML_HEADER=new i("^\\%YAML[: ][\\d\\.]+.*\n","m"),e.prototype.PATTERN_LEADING_COMMENTS=new i("^(\\#.*?\n)+","m"),e.prototype.PATTERN_DOCUMENT_MARKER_START=new i("^\\-\\-\\-.*?\n","m"),e.prototype.PATTERN_DOCUMENT_MARKER_END=new i("^\\.\\.\\.\\s*$","m"),e.prototype.PATTERN_FOLDED_SCALAR_BY_INDENTATION={},e.prototype.CONTEXT_NONE=0,e.prototype.CONTEXT_SEQUENCE=1,e.prototype.CONTEXT_MAPPING=2,e.prototype.parse=function(t,n,o){var a,i,u,c,p,d,_,h,m,f,y,g,w,S,b,T,x,E,v,A,R,C,O,P,L,N,F,k,I,j,U,q,M,D,H;for(null==n&&(n=!1),null==o&&(o=null),this.currentLineNb=-1,this.currentLine="",this.lines=this.cleanup(t).split("\n"),p=null,c=this.CONTEXT_NONE,i=!1;this.moveToNextLine();)if(!this.isCurrentLineEmpty()){if("\t"===this.currentLine[0])throw new s("A YAML file cannot contain tabs as indentation.",this.getRealCurrentLineNb()+1,this.currentLine);if(f=O=!1,H=this.PATTERN_SEQUENCE_ITEM.exec(this.currentLine)){if(this.CONTEXT_MAPPING===c)throw new s("You cannot define a sequence item when in a mapping");c=this.CONTEXT_SEQUENCE,null==p&&(p=[]),null!=H.value&&(C=this.PATTERN_ANCHOR_VALUE.exec(H.value))&&(f=C.ref,H.value=C.value),null==H.value||""===l.trim(H.value," ")||0===l.ltrim(H.value," ").indexOf("#")?this.currentLineNb<this.lines.length-1&&!this.isNextLineUnIndentedCollection()?((k=new e(this.getRealCurrentLineNb()+1)).refs=this.refs,p.push(k.parse(this.getNextEmbedBlock(null,!0),n,o))):p.push(null):(null!=(I=H.leadspaces)?I.length:void 0)&&(C=this.PATTERN_COMPACT_NOTATION.exec(H.value))?((k=new e(this.getRealCurrentLineNb())).refs=this.refs,u=H.value,m=this.getCurrentLineIndentation(),this.isNextLineIndented(!1)&&(u+="\n"+this.getNextEmbedBlock(m+H.leadspaces.length+1,!0)),p.push(k.parse(u,n,o))):p.push(this.parseValue(H.value,n,o))}else{if(!(H=this.PATTERN_MAPPING_ITEM.exec(this.currentLine))||-1!==H.key.indexOf(" #")){if(1===(A=this.lines.length)||2===A&&l.isEmpty(this.lines[1])){try{t=r.parse(this.lines[0],n,o)}catch(e){throw(d=e).parsedLine=this.getRealCurrentLineNb()+1,d.snippet=this.currentLine,d}if("object"==typeof t){if(t instanceof Array)_=t[0];else for(w in t){_=t[w];break}if("string"==typeof _&&0===_.indexOf("*")){for(p=[],P=0,v=t.length;P<v;P++)a=t[P],p.push(this.refs[a.slice(1)]);t=p}}return t}if("["===(U=l.ltrim(t).charAt(0))||"{"===U)try{return r.parse(t,n,o)}catch(e){throw(d=e).parsedLine=this.getRealCurrentLineNb()+1,d.snippet=this.currentLine,d}throw new s("Unable to parse.",this.getRealCurrentLineNb()+1,this.currentLine)}if(this.CONTEXT_SEQUENCE===c)throw new s("You cannot define a mapping item when in a sequence");c=this.CONTEXT_MAPPING,null==p&&(p={}),r.configure(n,o);try{w=r.parseScalar(H.key)}catch(e){throw(d=e).parsedLine=this.getRealCurrentLineNb()+1,d.snippet=this.currentLine,d}if("<<"===w)if(O=!0,i=!0,0===(null!=(j=H.value)?j.indexOf("*"):void 0)){if(q
1=H.value.slice(1),null==this.refs[q])throw new s('Reference "'+q+'" does not exist.',this.getRealCurrentLineNb()+1,this.currentLine);if("object"!=typeof(M=this.refs[q]))throw new s("YAML merge keys used with a scalar value instead of an object.",this.getRealCurrentLineNb()+1,this.currentLine);if(M instanceof Array)for(h=y=0,T=M.length;y<T;h=++y)t=M[h],null==p[L=String(h)]&&(p[L]=t);else for(w in M)t=M[w],null==p[w]&&(p[w]=t)}else{if(t=null!=H.value&&""!==H.value?H.value:this.getNextEmbedBlock(),(k=new e(this.getRealCurrentLineNb()+1)).refs=this.refs,"object"!=typeof(N=k.parse(t,n)))throw new s("YAML merge keys used with a scalar value instead of an object.",this.getRealCurrentLineNb()+1,this.currentLine);if(N instanceof Array)for(S=0,x=N.length;S<x;S++){if("object"!=typeof(F=N[S]))throw new s("Merge items must be objects.",this.getRealCurrentLineNb()+1,F);if(F instanceof Array)for(h=R=0,E=F.length;R<E;h=++R)t=F[h],g=String(h),p.hasOwnProperty(g)||(p[g]=t);else for(w in F)t=F[w],p.hasOwnProperty(w)||(p[w]=t)}else for(w in N)t=N[w],p.hasOwnProperty(w)||(p[w]=t)}else null!=H.value&&(C=this.PATTERN_ANCHOR_VALUE.exec(H.value))&&(f=C.ref,H.value=C.value);O||(null==H.value||""===l.trim(H.value," ")||0===l.ltrim(H.value," ").indexOf("#")?this.isNextLineIndented()||this.isNextLineUnIndentedCollection()?((k=new e(this.getRealCurrentLineNb()+1)).refs=this.refs,D=k.parse(this.getNextEmbedBlock(),n,o),(i||void 0===p[w])&&(p[w]=D)):(i||void 0===p[w])&&(p[w]=null):(D=this.parseValue(H.value,n,o),(i||void 0===p[w])&&(p[w]=D)))}if(f)if(p instanceof Array)this.refs[f]=p[p.length-1];else{for(w in b=null,p)b=w;this.refs[f]=p[b]}}return l.isEmpty(p)?null:p},e.prototype.getRealCurrentLineNb=function(){return this.currentLineNb+this.offset},e.prototype.getCurrentLineIndentation=function(){return this.currentLine.length-l.ltrim(this.currentLine," ").length},e.prototype.getNextEmbedBlock=function(e,t){var n,r,o,a,i,u,c;if(null==e&&(e=null),null==t&&(t=!1),this.moveToNextLine(),null==e){if(a=this.getCurrentLineIndentation(),c=this.isStringUnIndentedCollectionItem(this.currentLine),!this.isCurrentLineEmpty()&&0===a&&!c)throw new s("Indentation problem.",this.getRealCurrentLineNb()+1,this.currentLine)}else a=e;for(n=[this.currentLine.slice(a)],t||(o=this.isStringUnIndentedCollectionItem(this.currentLine)),i=!(u=this.PATTERN_FOLDED_SCALAR_END).test(this.currentLine);this.moveToNextLine();)if((r=this.getCurrentLineIndentation())===a&&(i=!u.test(this.currentLine)),!i||!this.isCurrentLineComment())if(this.isCurrentLineBlank())n.push(this.currentLine.slice(a));else{if(o&&!this.isStringUnIndentedCollectionItem(this.currentLine)&&r===a){this.moveToPreviousLine();break}if(r>=a)n.push(this.currentLine.slice(a));else if("#"!==l.ltrim(this.currentLine).charAt(0)){if(0===r){this.moveToPreviousLine();break}throw new s("Indentation problem.",this.getRealCurrentLineNb()+1,this.currentLine)}}return n.join("\n")},e.prototype.moveToNextLine=function(){return!(this.currentLineNb>=this.lines.length-1||(this.currentLine=this.lines[++this.currentLineNb],0))},e.prototype.moveToPreviousLine=function(){this.currentLine=this.lines[--this.currentLineNb]},e.prototype.parseValue=function(e,t,n){var a,i,u,c,p,d,_,h;if(0===e.indexOf("*")){if(p=e.indexOf("#"),e=-1!==p?e.substr(1,p-2):e.slice(1),void 0===this.refs[e])throw new s('Reference "'+e+'" does not exist.',this.currentLine);return this.refs[e]}if(u=this.PATTERN_FOLDED_SCALAR_ALL.exec(e))return c=null!=(d=u.modifiers)?d:"",i=Math.abs(parseInt(c)),isNaN(i)&&(i=0),h=this.parseFoldedScalar(u.separator,this.PATTERN_DECIMAL.replace(c,""),i),null!=u.type?(r.configure(t,n),r.parseScalar(u.type+" "+h)):h;if("["!==(_=e.charAt(0))&&"{"!==_&&'"'!==_&&"'"!==_)return this.isNextLineIndented()&&(e+="\n"+this.getNextEmbedBlock()),r.parse(e,t,n);for(;;)try{return r.parse(e,t,n)}catch(t){if(!((a=t)instanceof o&&this.moveToNextLine()))throw a.parsedLine=this.getRealCurrentLineNb()+1,a.snippet=this.currentLine,a;e+="\n"+l.trim(this.currentLine," ")}},e.prototype.parseFoldedScalar=function(t,n,r){var s,o,a,u,c,p,d,_,h,m;
1if(null==n&&(n=""),null==r&&(r=0),!(d=this.moveToNextLine()))return"";for(s=this.isCurrentLineBlank(),m="";d&&s;)(d=this.moveToNextLine())&&(m+="\n",s=this.isCurrentLineBlank());if(0===r&&(c=this.PATTERN_INDENT_SPACES.exec(this.currentLine))&&(r=c[0].length),r>0)for(null==(_=this.PATTERN_FOLDED_SCALAR_BY_INDENTATION[r])&&(_=new i("^ {"+r+"}(.*)$"),e.prototype.PATTERN_FOLDED_SCALAR_BY_INDENTATION[r]=_);d&&(s||(c=_.exec(this.currentLine)));)m+=s?this.currentLine.slice(r):c[1],(d=this.moveToNextLine())&&(m+="\n",s=this.isCurrentLineBlank());else d&&(m+="\n");if(d&&this.moveToPreviousLine(),">"===t){for(p="",o=0,a=(h=m.split("\n")).length;o<a;o++)0===(u=h[o]).length||" "===u.charAt(0)?p=l.rtrim(p," ")+u+"\n":p+=u+" ";m=p}return"+"!==n&&(m=l.rtrim(m)),""===n?m=this.PATTERN_TRAILING_LINES.replace(m,"\n"):"-"===n&&(m=this.PATTERN_TRAILING_LINES.replace(m,"")),m},e.prototype.isNextLineIndented=function(e){var t,n,r;if(null==e&&(e=!0),n=this.getCurrentLineIndentation(),t=!this.moveToNextLine(),e)for(;!t&&this.isCurrentLineEmpty();)t=!this.moveToNextLine();else for(;!t&&this.isCurrentLineBlank();)t=!this.moveToNextLine();return!t&&(r=!1,this.getCurrentLineIndentation()>n&&(r=!0),this.moveToPreviousLine(),r)},e.prototype.isCurrentLineEmpty=function(){var e;return 0===(e=l.trim(this.currentLine," ")).length||"#"===e.charAt(0)},e.prototype.isCurrentLineBlank=function(){return""===l.trim(this.currentLine," ")},e.prototype.isCurrentLineComment=function(){return"#"===l.ltrim(this.currentLine," ").charAt(0)},e.prototype.cleanup=function(e){var t,n,r,s,o,a,i,u,c,p,d,_,h,m;
1for(-1!==e.indexOf("\r")&&(e=e.split("\r\n").join("\n").split("\r").join("\n")),t=0,e=(p=this.PATTERN_YAML_HEADER.replaceAll(e,""))[0],t=p[1],this.offset+=t,m=(d=this.PATTERN_LEADING_COMMENTS.replaceAll(e,"",1))[0],1===(t=d[1])&&(this.offset+=l.subStrCount(e,"\n")-l.subStrCount(m,"\n"),e=m),m=(_=this.PATTERN_DOCUMENT_MARKER_START.replaceAll(e,"",1))[0],1===(t=_[1])&&(this.offset+=l.subStrCount(e,"\n")-l.subStrCount(m,"\n"),e=m,e=this.PATTERN_DOCUMENT_MARKER_END.replace(e,"")),h=-1,s=0,a=(c=e.split("\n")).length;s<a;s++)u=c[s],0!==l.trim(u," ").length&&(r=u.length-l.ltrim(u).length,(-1===h||r<h)&&(h=r));if(h>0){for(n=o=0,i=c.length;o<i;n=++o)u=c[n],c[n]=u.slice(h);e=c.join("\n")}return e},e.prototype.isNextLineUnIndentedCollection=function(e){var t,n;for(null==e&&(e=null),null==e&&(e=this.getCurrentLineIndentation()),t=this.moveToNextLine();t&&this.isCurrentLineEmpty();)t=this.moveToNextLine();return!1!==t&&(n=!1,this.getCurrentLineIndentation()===e&&this.isStringUnIndentedCollectionItem(this.currentLine)&&(n=!0),this.moveToPreviousLine(),n)},e.prototype.isStringUnIndentedCollectionItem=function(){return"-"===this.currentLine||"- "===this.currentLine.slice(0,2)},e}(),e.exports=a},1459:e=>{var t;t=function(){function e(e,t){var n,r,s,o,a,i,l,u,c;for(null==t&&(t=""),s="",a=e.length,i=null,r=0,o=0;o<a;){if("\\"===(n=e.charAt(o)))s+=e.slice(o,+(o+1)+1||9e9),o++;else if("("===n)if(o<a-2)if("(?:"===(u=e.slice(o,+(o+2)+1||9e9)))o+=2,s+=u;else if("(?<"===u)for(r++,o+=2,l="";o+1<a;){if(">"===(c=e.charAt(o+1))){s+="(",o++,l.length>0&&(null==i&&(i={}),i[l]=r);break}l+=c,o++}else s+=n,r++;else s+=n;else s+=n;o++}this.rawRegex=e,this.cleanedRegex=s,this.regex=new RegExp(this.cleanedRegex,"g"+t.replace("g","")),this.mapping=i}return e.prototype.regex=null,e.prototype.rawRegex=null,e.prototype.cleanedRegex=null,e.prototype.mapping=null,e.prototype.exec=function(e){var t,n,r,s;if(this.regex.lastIndex=0,null==(n=this.regex.exec(e)))return null;if(null!=this.mapping)for(r in s=this.mapping)t=s[r],n[r]=n[t];return n},e.prototype.test=function(e){return this.regex.lastIndex=0,this.regex.test(e)},e.prototype.replace=function(e,t){return this.regex.lastIndex=0,e.replace(this.regex,t)},e.prototype.replaceAll=function(e,t,n){var r;for(null==n&&(n=0),this.regex.lastIndex=0,r=0;this.regex.test(e)&&(0===n||r<n);)this.regex.lastIndex=0,e=e.replace(this.regex,t),r++;return[e,r]},e}(),e.exports=t},1963:(e,t,n)=>{var r,s,o;o=n(5288),r=n(1459),s=function(){function e(){}return e.PATTERN_ESCAPED_CHARACTER=new r('\\\\([0abt\tnvfre "\\/\\\\N_LP]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})'),e.unescapeSingleQuotedString=function(e){return e.replace(/\'\'/g,"'")},e.unescapeDoubleQuotedString=function(e){var t;return null==this._unescapeCallback&&(this._unescapeCallback=(t=this,function(e){return t.unescapeCharacter(e)})),this.PATTERN_ESCAPED_CHARACTER.replace(e,this._unescapeCallback)},e.unescapeCharacter=function(e){var t;switch(t=String.fromCharCode,e.charAt(1)){case"0":return t(0);case"a":return t(7);case"b":return t(8);case"t":case"\t":return"\t";case"n":return"\n";case"v":return t(11);case"f":return t(12);case"r":return t(13);case"e":return t(27);case" ":return" ";case'"':return'"';case"/":return"/";case"\\":return"\\";case"N":return t(133);case"_":return t(160);case"L":return t(8232);case"P":return t(8233);case"x":return o.utf8chr(o.hexDec(e.substr(2,2)));case"u":return o.utf8chr(o.hexDec(e.substr(2,4)));case"U":return o.utf8chr(o.hexDec(e.substr(2,8)));default:return""}},e}(),e.exports=s},5288:(e,t,n)=>{var r,s,o={}.hasOwnProperty;r=n(1459),s=function(){function e(){}return e.REGEX_LEFT_TRIM_BY_CHAR={},e.REGEX_RIGHT_TRIM_BY_CHAR={},e.REGEX_SPACES=/\s+/g,e.REGEX_DIGITS=/^\d+$/,e.REGEX_OCTAL=/[^0-7]/gi,e.REGEX_HEXADECIMAL=/[^a-f0-9]/gi,e.PATTERN_DATE=new r("^(?<year>[0-9][0-9][0-9][0-9])-(?<month>[0-9][0-9]?)-(?<day>[0-9][0-9]?)(?:(?:[Tt]|[ \t]+)(?<hour>[0-9][0-9]?):(?<minute>[0-9][0-9]):(?<second>[0-9][0-9])(?:.(?<fraction>[0-9]*))?(?:[ \t]*(?<tz>Z|(?<tz_sign>[-+])(?<tz_hour>[0-9][0-9]?)(?::(?<tz_minute>[0-9][0-9]))?))?)?$","i"),e.LOCAL_TIMEZONE_OFFSET=60*(new Date).getTimezoneOffset()*1e3,e.trim=function(e,t){var n,r;return null==t&&(t="\\s"),null==(n=this.REGEX_LEFT_TRIM_BY_CHAR[t])&&(this.REGEX_LEFT_TRIM_BY_CHAR[t]=n=new RegExp("^"+t+t+"*")),n.lastIndex=0,null==(r=this.REGEX_RIGHT_TRIM_BY_CHAR[t])&&(this.REGEX_RIGHT_TRIM_BY_CHAR[t]=r=new RegExp(t+""+t+"*$")),r.lastIndex=0,e.replace(n,"").replace(r,"")},e.ltrim=function(e,t){var n;return null==t&&(t="\\s"),null==(n=this.REGEX_LEFT_TRIM_BY_CHAR[t])&&(this.REGEX_LEFT_TRIM_BY_CHAR[t]=n=new RegExp("^"+t+t+"*")),n.lastIndex=0,e.replace(n,"")},e.rtrim=function(e,t){var n;return null==t&&(t="\\s"),null==(n=this.REGEX_RIGHT_TRIM_BY_CHAR[t])&&(this.REGEX_RIGHT_TRIM_BY_CHAR[t]=n=new RegExp(t+""+t+"*$")),n.lastIndex=0,e.replace(n,"")},e.isEmpty=function(e){return!e||""===e||"0"===e||e instanceof Array&&0===e.length||this.isEmptyObject(e)}
1,e.isEmptyObject=function(e){var t;return e instanceof Object&&0===function(){var n;for(t in n=[],e)o.call(e,t)&&n.push(t);return n}().length},e.subStrCount=function(e,t,n,r){var s,o,a,i,l,u;for(s=0,e=""+e,t=""+t,null!=n&&(e=e.slice(n)),null!=r&&(e=e.slice(0,r)),i=e.length,u=t.length,o=a=0,l=i;0<=l?a<l:a>l;o=0<=l?++a:--a)t===e.slice(o,u)&&(s++,o+=u-1);return s},e.isDigits=function(e){return this.REGEX_DIGITS.lastIndex=0,this.REGEX_DIGITS.test(e)},e.octDec=function(e){return this.REGEX_OCTAL.lastIndex=0,parseInt((e+"").replace(this.REGEX_OCTAL,""),8)},e.hexDec=function(e){return this.REGEX_HEXADECIMAL.lastIndex=0,"0x"===((e=this.trim(e))+"").slice(0,2)&&(e=(e+"").slice(2)),parseInt((e+"").replace(this.REGEX_HEXADECIMAL,""),16)},e.utf8chr=function(e){var t;return t=String.fromCharCode,128>(e%=2097152)?t(e):2048>e?t(192|e>>6)+t(128|63&e):65536>e?t(224|e>>12)+t(128|e>>6&63)+t(128|63&e):t(240|e>>18)+t(128|e>>12&63)+t(128|e>>6&63)+t(128|63&e)},e.parseBoolean=function(e,t){var n;return null==t&&(t=!0),"string"==typeof e?(n=e.toLowerCase(),!(!t&&"no"===n)&&"0"!==n&&"false"!==n&&""!==n):!!e},e.isNumeric=function(e){return this.REGEX_SPACES.lastIndex=0,"number"==typeof e||"string"==typeof e&&!isNaN(e)&&""!==e.replace(this.REGEX_SPACES,"")},e.stringToDate=function(e){var t,n,r,s,o,a,i,l,u,c;if(!(null!=e?e.length:void 0))return null;if(!(o=this.PATTERN_DATE.exec(e)))return null;if(c=parseInt(o.year,10),i=parseInt(o.month,10)-1,n=parseInt(o.day,10),null==o.hour)return new Date(Date.UTC(c,i,n));if(s=parseInt(o.hour,10),a=parseInt(o.minute,10),l=parseInt(o.second,10),null!=o.fraction){for(r=o.fraction.slice(0,3);r.length<3;)r+="0";r=parseInt(r,10)}else r=0;return null!=o.tz&&(u=6e4*(60*parseInt(o.tz_hour,10)+(null!=o.tz_minute?parseInt(o.tz_minute,10):0)),"-"===o.tz_sign&&(u*=-1)),t=new Date(Date.UTC(c,i,n,s,a,l,r)),u&&t.setTime(t.getTime()-u),t},e.strRepeat=function(e,t){var n,r;for(r="",n=0;n<t;)r+=e,n++;return r},e.getStringFromFile=function(e,t){var r,s,o,a,i,l,u;if(null==t&&(t=null),u=null,"undefined"!=typeof window&&null!==window)if(window.XMLHttpRequest)u=new XMLHttpRequest;else if(window.ActiveXObject)for(o=0,a=(l=["Msxml2.XMLHTTP.6.0","Msxml2.XMLHTTP.3.0","Msxml2.XMLHTTP","Microsoft.XMLHTTP"]).length;o<a;o++){i=l[o];try{u=new ActiveXObject(i)}catch(e){}}return null!=u?null!=t?(u.onreadystatechange=function(){if(4===u.readyState)return 200===u.status||0===u.status?t(u.responseText):t(null)},u.open("GET",e,!0),u.send(null)):(u.open("GET",e,!1),u.send(null),200===u.status||0===u.status?u.responseText:null):(s=n(7218),null!=t?s.readFile(e,(function(e,n){return t(e?null:String(n))})):null!=(r=s.readFileSync(e))?String(r):null)},e}(),e.exports=s},9238:function(e,t,n){var r,s,o,a;s=n(8450),r=n(4648),o=n(5288),a=function(){function e(){}return e.parse=function(e,t,n){return null==t&&(t=!1),null==n&&(n=null),(new s).parse(e,t,n)},e.parseFile=function(e,t,n,r){var s,a;return null==t&&(t=null),null==n&&(n=!1),null==r&&(r=null),null!=t?o.getStringFromFile(e,(a=this,function(e){var s;s=null,null!=e&&(s=a.parse(e,n,r)),t(s)})):null!=(s=o.getStringFromFile(e))?this.parse(s,n,r):null},e.dump=function(e,t,n,s,o){var a;return null==t&&(t=2),null==n&&(n=4),null==s&&(s=!1),null==o&&(o=null),(a=new r).indentation=n,a.dump(e,t,0,s,o)},e.stringify=function(e,t,n,r,s){return this.dump(e,t,n,r,s)},e.load=function(e,t,n,r){return this.parseFile(e,t,n,r)},e}(),"undefined"!=typeof window&&null!==window&&(window.YAML=a),"undefined"!=typeof window&&null!==window||(this.YAML=a),e.exports=a},8075:()=>{},6279:()=>{},7218:()=>{},5210:(e,t,n)=>{"use strict";n.d(t,{JO:()=>u,a:()=>a,i5:()=>l,sf:()=>i});var r=n(6711),s=n(9531);function o(e){return[...s.eb.encode(e)].map((e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||45===e||46===e||95===e||126===e?String.fromCharCode(e):"%"+e.toString(16).toUpperCase().padStart(2,"0"))).join("")}function a(e){const t=[];for(const n of e.tokens)"string"==typeof n?t.push(o(n)):t.push(n);return new r.vZ(t)}function i(e){const t=[];for(const n of e.tokens)"string"==typeof n?t.push(o(n).replace(/%20/g,"+")):t.push(n);return new r.vZ(t)}function l(e){const t=[];for(const n of e.tokens)"string"==typeof n?t.push(decodeURIComponent(n)):t.push(n);return new r.vZ(t)}
1function u(e){if(!e||e.isEmpty())return[null,null];const t=[];for(const n of e.split("&")){if(!n.includes("="))return[null,null];const[e,s]=n.split("=",2);let o,i;try{o=l(e.replace(/\+/g," ")),i=l(s.replace(/\+/g," "))}catch(e){if(e instanceof URIError)return[null,null];throw e}const u=a(o),c=a(i);if(!(0,r.eq)(u,e)&&!(0,r.eq)(u.replace(/%20/g,"+"),e)||!(0,r.eq)(c,s)&&!(0,r.eq)(c.replace(/%20/g,"+"),s))return[null,null];t.push([o,i])}const n={},s={};let o=null;for(const[e,r]of t){const a=e.toString();if(o===a)s[a].push(r);else{if(Object.prototype.hasOwnProperty.call(s,a))return[t,null];s[a]=[r],n[a]=e}o=a}const i=[];for(const[e,t]of Object.entries(s))i.push([n[e],1===t.length?t[0]:t]);return[t,i]}},8081:(e,t,n)=>{"use strict";n.d(t,{r:()=>w,d:()=>S});var r=n(6711),s=n(9531),o=n(7277);const a=new Set(["A-IM","Accept","Accept-Charset","Accept-Encoding","Accept-Language","Access-Control-Request-Headers","Cache-Control","Connection","Content-Encoding","Expect","Forwarded","If-Match","If-None-Match","Range","TE","Trailer","Transfer-Encoding","Upgrade","Via","Warning"].map((e=>e.toLowerCase()))),i=new Set(["Content-Type","Cookie","Prefer"].map((e=>e.toLowerCase())));class l{constructor(e,t=[],n="--header/H"){let s=[];if(e)for(const o of e)if(o.startsWith("@"))t.push(["header-file","passing a file for "+n+" is not supported: "+JSON.stringify(o.toString())]);else if(o.includes(":")){const[e,t]=o.split(":",2),n=t&&((0,r.eq)(e,"Host")?t:t.trim()).toBool()?t.removeFirstChar(" "):null;s.push([e,n])}else if(o.includes(";")){const[e]=o.split(";",2);s.push([e,new r.vZ])}this.lowercase=s.length>0&&s.every((e=>(0,r.eq)(e[0],e[0].toLowerCase())));const o={};for(const[e,t]of s){const n=e.toLowerCase().toString();o[n]||(o[n]=[]),o[n].push([e,t])}s=[];for(const[e,n]of Object.entries(o)){if(1===n.length){s.push(n[0]);continue}if(n.every((e=>null===e[1]))){const e=n[n.length-1];new Set(n.map((e=>e[0]))).size>1&&t.push(["repeated-header",`"${e[0]}" header unset ${n.length} times`]),s.push(e);continue}const o=n.filter((e=>null!==e[1]));if(1===o.length){s.push(o[0]);continue}let l="";if(a.has(e)?l=", ":i.has(e)&&(l="; "),l){const e=(0,r.yZ)(o.map((e=>e[1])),l);t.push(["repeated-header",`merged ${o.length} "${o[o.length-1][0]}" headers together with "${l.trim()}"`]),s.push([o[0][0],e])}else t.push(["repeated-header",`found ${o.length} "${o[o.length-1][0]}" headers, only the last one will be sent`]),s=s.concat(o)}this.headers=s}get length(){return this.headers.length}*[Symbol.iterator](){for(const e of this.headers)yield e}get(e){const t=e.toLowerCase();for(const[e,n]of this.headers)if(e.toLowerCase().toString()===t)return n}getContentType(){const e=this.get("content-type");return e?e.split(";")[0].trim().toString():e}has(e){const t=e.toLowerCase();for(const e of this.headers)if((0,r.eq)(e[0].toLowerCase(),t))return!0;return!1}setIfMissing(e,t){if(this.has(e))return!1;this.lowercase&&(e=e.toLowerCase());const n="string"==typeof e?new r.vZ(e):e,s="string"==typeof t?new r.vZ(t):t;return this.headers.push([n,s]),!0}prependIfMissing(e,t){if(this.has(e))return!1;this.lowercase&&(e=e.toLowerCase());const n="string"==typeof e?new r.vZ(e):e,s="string"==typeof t?new r.vZ(t):t;return this.headers.unshift([n,s]),!0}set(e,t){this.lowercase&&(e=e.toLowerCase());const n="string"==typeof e?new r.vZ(e):e,s="string"==typeof t?new r.vZ(t):t,o=n.toLowerCase().toString();for(let e=0;e<this.headers.length;e++)if((0,r.eq)(this.headers[e][0].toLowerCase(),o))return void(this.headers[e][1]=s);this.headers.push([n,s])}delete(e){const t=e.toLowerCase();for(let e=this.headers.length-1;e>=0;e--)this.headers[e][0].toLowerCase().toString()===t&&this.headers.splice(e,1)}clearNulls(){for(let e=this.headers.length-1;e>=0;e--)null===this.headers[e][1]&&this.headers.splice(e,1)}count(e){let t=0;const n=e.toLowerCase();for(const e of this.headers||[])e[0].toLowerCase().toString()===n&&(t+=1);return t}toBool(){return this.headers.length>0&&this.headers.some((e=>null!==e[1]))}}var u=n(7511);const c=128;function p(e){return!(e.length>c||e.includes("-"))}var d=n(5210);function _(e){return"string"==typeof e&&(" "===e||"\t"===e||e>="\n"&&e<="\r")}function h(e,t,n){let s=t;if('"'===e.charAt(s)){s+=1;const t=[];for(;s<e.length;){let o=e.charAt(s);if("\\"===o){if(s+1<e.length){const t=e.charAt(s+1);'"'!==t&&"\\"!==t||(s+=1,o=e.charAt(s))}}else if('"'===o){s+=1;let o=!1;for(;s<e.length&&";"!==e.charAt(s);)_(e.charAt(s))||(o=!0),s+=1;return o&&n.push(["trailing-form-data","Trailing data after quoted form parameter"]),[new r.vZ(t),s]}t.push(o),s+=1}}let o=e.indexOf(";",t);return-1===o&&(o=e.length),[e.slice(t,o),o]}
1function m(e,t,n,r,s){for(;n<t.length&&_(t.charAt(n));)n+=1;const[o,a]=h(t,n,s);return e.content=o,function(e,t,n,r,s){for(;n<t.length&&";"===t.charAt(n);){for(n+=1;n<t.length&&_(t.charAt(n));)n+=1;if(n>=t.length)return e;const o=t.slice(n);if(o.startsWith("type="))[e.contentType,n]=h(t,n+5,s);else if(o.startsWith("filename=")){const[o,a]=h(t,n+9,s);n=a,r.filename?e.filename=o:s.push(["unsupported-form-detail","Field file name not allowed here: "+o.toString()])}else if(o.startsWith("encoder=")){const[o,a]=h(t,n+8,s);n=a,r.encoder?e.encoder=o:s.push(["unsupported-form-detail","Field encoder not allowed here: "+o.toString()])}else if(o.startsWith("headers=")){const[o,a]=h(t,n+8,s);n=a,r.headers?o.startsWith("@")?(void 0===e.headerFiles&&(e.headerFiles=[]),e.headerFiles.push(o.slice(1))):(void 0===e.headers&&(e.headers=[]),e.headers.push(o)):s.push(["unsupported-form-detail","Field headers not allowed here: "+o.toString()])}else n=h(t,n,s)[1],s.push(["unknown-form-detail","skip unknown form field: "+o.toString()])}}(e,t,a,r,s),e}function f(e,t,n,a,i,l,u){const c=n,_=function(e,t,n){var s;const a={scheme:new r.vZ,host:new r.vZ,port:new r.vZ,path:new r.vZ,query:new r.vZ,fragment:new r.vZ};t.globoff||(n.isString()&&function(e,t){let n="";for(let r=0;r<t.length;r++){const s=t[r];if("["===s&&"\\"!==n){let s=r+1;for(;s<t.length&&"]"!==t[s];)s++;if(!(s<t.length&&"]"===t[s]))return void(0,o.p4)(e,["unbalanced-glob",`bracket doesn't have a closing bracket:\n${t}\n${" ".repeat(r)}^`]);{const a=t.slice(r,s+1);p(a)||(0,o.p4)(e,["glob-in-url",`globs in the URL are not supported:\n${t}\n`+" ".repeat(r)+"^".repeat(a.length)]),n=""}}else if("{"===s&&"\\"!==n){let s=r+1;for(;s<t.length&&"}"!==t[s];)s++;if(!(s<t.length&&"}"===t[s]))return void(0,o.p4)(e,["unbalanced-glob",`bracket doesn't have a closing bracket:\n${t}\n${" ".repeat(r)}^`]);{const a=t.slice(r,s+1);(0,o.p4)(e,["glob-in-url",`globs in the URL are not supported:\n${t}\n`+" ".repeat(r)+"^".repeat(a.length)]),n=""}}n=s}}(e,n.toString()),n=n.replace(/\\([[\]{}])/g,"$1"));let i=null;if(n.tokens.length&&"string"==typeof n.tokens[0]&&(i=n.tokens[0].match(/^([a-zA-Z0-9+-.]*):\/\/*/)),i){const[e,t]=i;a.scheme=new r.vZ(t.toLowerCase()),n=n.slice(e.length)}else a.scheme=null!==(s=t["proto-default"])&&void 0!==s?s:new r.vZ("http");(0,r.eq)(a.scheme,"http")||(0,r.eq)(a.scheme,"https")||(0,o.p4)(e,["bad-scheme",`Protocol "${a.scheme}" not supported`]);const l=n.indexOfFirstChar("/?#");if(-1!==l){a.host=n.slice(0,l),a.path=n.slice(l);const e=a.path.indexOf("#"),t=a.path.indexOf("?");-1!==e?(a.fragment=a.path.slice(e),-1!==t&&t<e?(a.query=a.path.slice(t,e),a.path=a.path.slice(0,t)):a.path=a.path.slice(0,e)):-1!==t&&(a.query=a.path.slice(t),a.path=a.path.slice(0,t))}else a.host=n;const u=a.host.indexOf("@");if(-1!==u){const n=a.host.slice(0,u);a.host=a.host.slice(u+1),t["disallow-username-in-url"]?(0,o.p4)(e,["login-denied",`Found auth in URL but --disallow-username-in-url was passed: ${n.toString()}`]):(a.auth=n,n.includes(":")?[a.user,a.password]=n.split(":",2):(a.user=n,a.password=new r.vZ))}return a}(e,t,n);a&&(_.path.isEmpty()?_.path=a.prepend("/"):_.path.endsWith("/")&&(_.path=_.path.add(a)),t.get&&(0,o.p4)(e,["data-ignored","curl doesn't let you pass --get and --upload-file together"]));const h=(0,r.__)(_.scheme,"://",_.host,_.path,_.query,_.fragment);let m=null,f=null,g=null;if(_.query.toBool()||t["url-query"]&&t["url-query"].length){let e=null,n=[];_.query.toBool()&&(n.push(["raw",_.query.slice(1)]),[f,e,g]=y(n,l,u),m=f),t["url-query"]&&(n=n.concat(t["url-query"]),[f,e,g]=y(n,l,u)),_.query=new r.vZ,e&&e.toBool()&&(_.query=e.prepend("?"))}const w=(0,r.__)(_.scheme,"://",_.host,_.path,_.fragment);let S=n=(0,r.__)(_.scheme,"://",_.host,_.path,_.query,_.fragment),[b,T]=(0,d.JO)(_.query.toBool()?_.query.slice(1):new r.vZ);b&&b.length?S=(0,r.__)(_.scheme,"://",_.host,_.path,_.fragment):(b=null,T=null);let x=new r.vZ("GET");t.request&&!(0,r.eq)(t.request,"null")?x=t.request:t.head?x=new r.vZ("HEAD"):a&&a.toBool()?x=new r.vZ("PUT"):t.get||!(0,s.zy)(t,"data")&&!(0,s.zy)(t,"form")||(x=new r.vZ("POST"));const E={originalUrl:c,urlWithoutQueryList:S,url:n,urlObj:_,urlWithOriginalQuery:h,urlWithoutQueryArray:w,method:x};g&&(E.queryReadsFile=g),b&&(E.queryList=b,T&&(E.queryDict=T)),f&&(E.queryArray=f),m&&(E.urlQueryArray=m),a&&((0,r.eq)(a,"-")||(0,r.eq)(a,".")?u?E.uploadFile=u:l?((0,o.p4)(e,["upload-file-with-stdin-content","--upload-file with stdin content is not supported"]),E.uploadFile=a):E.uploadFile=a:E.uploadFile=a),i&&(E.output=i);const v=t.user||_.auth;if(v){const[e,t]=v.split(":",2);E.auth=[e,t||new r.vZ]}return E}function y(e,t,n){const s=[];let o=new r.vZ;for(const[a,i]of e.entries()){const e=i[0];let l=i[1],u=null;if(a>0&&"json"!==e&&(o=o.append("&")),"urlencode"===e){const e=l.includes("=")||!l.includes("@")?"
1=":"@";if((l.includes("@")||l.includes("="))&&([u,l]=l.split(e,2)),"="===e){u&&u.toBool()&&(o=o.add(u).append("=")),o=o.add((0,d.sf)(l));continue}u=u&&u.toBool()?u:null,l=l.prepend("@")}let c=null;if("raw"!==e&&l.startsWith("@")&&(c=l.slice(1),(0,r.eq)(c,"-")))if(void 0!==t){switch(e){case"binary":case"json":l=t;break;case"urlencode":l=(0,r.__)(u&&u.length?u.append("="):new r.vZ,(0,d.sf)(t));break;default:l=t.replace(/[\n\r]/g,"")}c=null}else void 0!==n&&(c=n);if(null!==c){o.toBool()&&(s.push(o),o=new r.vZ);const t={filetype:e,filename:c};u&&(t.name=u),s.push(t)}else o=o.add(l)}o.toBool()&&s.push(o);let a=null;const i=(0,r.__)(...s.map((e=>e instanceof r.vZ?e:(a||(a=e.filename.toString()),e.name?(0,r.__)(e.name,"=@",e.filename):e.filename.prepend("@")))));return[s,i,a]}function g(e){if(!e.includes(";"))return[e,[]];const t=e.indexOf(";"),n=e.slice(0,t),r=e.slice(t),s=r.match(/;\s*([^;=]+)=(?:("[^"]*")|([^()<>@,;:\\"/[\]?.=]*))/g);if(r.trim()&&!s)return null;const o=[];for(const e of s||[]){const t=e.match(/;\s*([^;=]+)=(?:("[^"]*")|([^()<>@,;:\\"/[\]?.=]*))/);if(!t)return null;const n=t[1],r=t[3]||t[2].slice(1,-1);o.push([n,r])}return[n,o]}function w(e,t,n){return e.configs.length||(0,o.p4)(e,["no-configs","got empty config object"]),e.configs.map((a=>function(e,t,n,a){var i,c;if(!t.url||!t.url.length)throw new s.fA("no URL specified!");const p=new l(t.header,e.warnings),d=new l(t["proxy-header"],e.warnings,"--proxy-header");let _;const h=[],w=p.get("cookie");if(w){const e=function(e){const t=[];for(let n of e.split(";")){n=n.replace(/^ /,"");const[e,r]=n.split("=",2);if(void 0===r)return null;t.push([e,r])}return new Set(t.map((e=>e[0]))).size!==t.length?null:t}(w);e&&(_=e)}else if(void 0===w&&t.cookie){const e=[];for(const n of t.cookie)n.includes("=")?e.push(n):h.push(n);if(e.length){const e=(0,r.yZ)(t.cookie,"; ");p.setIfMissing("Cookie",e);const n=function(e){const t=[];for(let n of e.split(";")){if(n=n.trim(),!n)continue;const[e,r]=n.split("=",2);t.push([e.trim(),(r||"").trim()])}return new Set(t.map((e=>e[0]))).size!==t.length?null:t}(e);n&&(_=n)}}let S,b,T,x,E=!1;if(t["user-agent"]&&p.setIfMissing("User-Agent",t["user-agent"]),t.referer){t.referer.includes(";auto")&&(E=!0);const e=t.referer.replace(/;auto$/,"");e.length&&p.setIfMissing("Referer",e)}if(t.range){let e=t.range.prepend("bytes=");e.includes("-")||(e=e.append("-")),p.setIfMissing("Range",e)}if(t["time-cond"]){let e=t["time-cond"],n="If-Modified-Since";switch(e.charAt(0)){case"+":e=e.slice(1);break;case"-":e=e.slice(1),n="If-Unmodified-Since";break;case"=":e=e.slice(1),n="Last-Modified"}p.setIfMissing(n,e)}t.data&&t.data.length&&(t.get?(t["url-query"]=t.data,delete t.data):[S,b,T]=y(t.data,n,a)),t["url-query"]&&([x]=y(t["url-query"],n,a));const v=[],A=t["upload-file"]||[],R=t.output||[];for(const[r,s]of t.url.entries())v.push(f(e,t,s,A[r],R[r],n,a));t.get&&t.data&&delete t.data,(t["upload-file"]||[]).length>t.url.length&&(0,o.p4)(e,["too-many-upload-files","Got more --upload-file/-T options than URLs: "+(null===(i=t["upload-file"])||void 0===i?void 0:i.map((e=>JSON.stringify(e.toString()))).join(", "))]),(t.output||[]).length>t.url.length&&(0,o.p4)(e,["too-many-ouptut-files","Got more --output/-o options than URLs: "+(null===(c=t.output)||void 0===c?void 0:c.map((e=>JSON.stringify(e.toString()))).join(", "))]);const C={urls:v,authType:(0,u.wk)(t.authtype),proxyAuthType:(0,u.wk)(t.proxyauthtype),headers:p,proxyHeaders:d};n&&(C.stdin=n),a&&(C.stdinFile=a),Object.prototype.hasOwnProperty.call(t,"globoff")&&(C.globoff=t.globoff),Object.prototype.hasOwnProperty.call(t,"disallow-username-in-url")&&(C.disallowUsernameInUrl=t["disallow-username-in-url"]),Object.prototype.hasOwnProperty.call(t,"path-as-is")&&(C.pathAsIs=t["path-as-is"]),E&&(C.refererAuto=!0),_&&(C.cookies=_),h.length&&(C.cookieFiles=h),t["cookie-jar"]&&(C.cookieJar=t["cookie-jar"]),Object.prototype.hasOwnProperty.call(t,"junk-session-cookies")&&(C.junkSessionCookies=t["junk-session-cookies"]),Object.prototype.hasOwnProperty.call(t,"compressed")&&(C.compressed=t.compressed),Object.prototype.hasOwnProperty.call(t,"tr-encoding")&&(C.transferEncoding=t["tr-encoding"]),t.json?(p.setIfMissing("Content-Type","application/json"),p.setIfMissing("Accept","application/json")):t.data?p.setIfMissing("Content-Type","application/x-www-form-urlencoded"):t.form&&(C.multipartUploads=function(e,t){const n=[];let o=0;for(const a of e){const e="string"===a.type;if(!a.value.includes("="))throw new s.fA('invalid value for --form/-F, missing "=": '+JSON.stringify(a.value.toString()));const[i,l]=a.value.split("=",2),u={name:i};if(e||"("!==l.charAt(0))if(!e&&0===i.length&&(0,r.eq)(l,")")){if(o-=1,o<0)throw new s.fA("no multipart to terminate: "+JSON.stringify(a.value.toString()))}else e||"@"!==l.charAt(0)?e||"<"!==l.charAt(0)?e?u.content=l:m(u,l,0,{filename:!0,encoder:!0,headers:!0},t):(m(u,l,1,{encoder:!0,headers:!0},t),u.contentFile=u.content,delete u.content,null===u.contentType||u.contentType):(m(u,l,1,{filename:!0,encoder:!0,headers:!0},t),u.contentFile=u.content,delete u.content,null!==u.filename&&void 0!==u.filename||(u.filename=u.contentFile),null===u.contentType||u.contentType);else o+=1,t.push(["nested-form",'Nested form data with "=(" is not supported, it will be flattened']),m(u,l,1,{headers:!0},t);n.push(u)}return n}
1(t.form,e.warnings));const O=p.getContentType(),P=p.get("Content-Type");if(t.data&&!T&&b&&b.isString()&&!t.form&&!C.multipartUploads&&"multipart/form-data"===O&&P&&P.isString()){const e=function(e){const t=g(e);if(!t)return null;for(const[e,n]of t[1])if("boundary"===e)return n;return null}(P.toString());if(e){const t=function(e,t){const n="\r\n--"+t+"--\r\n";if(!e.endsWith(n))return null;if(t="--"+t+"\r\n",(e=e.slice(0,-n.length))&&!e.startsWith(t))return null;const s=(e=e.slice(t.length)).split("\r\n"+t),o=[];let a=!0;for(const e of s){const t=e.split("\r\n");if(t.length<2)return null;const n={name:new r.vZ,content:new r.vZ};let s=!1;const i=[];let l=0;for(;l<t.length&&0!==t[l].length;l++){const[e,o]=t[l].split(": ",2);if(void 0===e||void 0===o)return null;if("content-disposition"===e.toLowerCase()){if(s)return null;const e=g(o);if(!e)return null;const[t,i]=e;if("form-data"!==t)return null;let l=0;for(const[e,t]of i)switch(e){case"name":n.name=new r.vZ(t);break;case"filename":n.filename=new r.vZ(t);break;default:l++}l&&(a=!1),s=!0}else"content-type"===e.toLowerCase()?n.contentType=new r.vZ(o):i.push(new r.vZ(t[l]))}if(i.length&&(n.headers=i),!s)return null;if(l===t.length)return null;if(n.name.isEmpty())return null;n.content=new r.vZ(t.slice(l+1).join("\n")),o.push(n)}return[o,a]}(b.toString(),e);if(t){const[e,n]=t;C.multipartUploads=e,n||(C.multipartUploadsDoesntRoundtrip=!0)}}}if(Object.prototype.hasOwnProperty.call(t,"form-escape")&&(C.formEscape=t["form-escape"]),t["aws-sigv4"]&&(C.authType="aws-sigv4",C.awsSigV4=t["aws-sigv4"]),"bearer"===C.authType&&t["oauth2-bearer"]){const e=t["oauth2-bearer"].prepend("Bearer ");p.setIfMissing("Authorization",e),C.oauth2Bearer=t["oauth2-bearer"]}if(t.delegation&&(C.delegation=t.delegation),t.krb&&(C.krb=t.krb),t["sasl-authzid"]&&(C.saslAuthzid=t["sasl-authzid"]),Object.prototype.hasOwnProperty.call(t,"sasl-ir")&&(C.saslIr=t["sasl-ir"]),t.negotiate&&(C.authType="negotiate"),t["service-name"]&&(C.serviceName=t["service-name"]),p.clearNulls(),t.data&&t.data.length&&(C.data=b,T&&(C.dataReadsFile=T),C.dataArray=S,C.isDataRaw=!1,C.isDataBinary=(S||[]).some((e=>!(e instanceof r.vZ)&&"binary"===e.filetype))),x&&(C.queryArray=x),Object.prototype.hasOwnProperty.call(t,"ipv4")&&(C.ipv4=t.ipv4),Object.prototype.hasOwnProperty.call(t,"ipv6")&&(C.ipv6=t.ipv6),t.proto&&(C.proto=t.proto),t["proto-redir"]&&(C.protoRedir=t["proto-redir"]),t["proto-default"]&&(C.protoDefault=t["proto-default"]),t["tcp-fastopen"]&&(C.tcpFastopen=t["tcp-fastopen"]),t["local-port"]){const[e,n]=t["local-port"].split("-",1);n&&n.toBool()?C.localPort=[e,n]:C.localPort=[t["local-port"],null]}if(Object.prototype.hasOwnProperty.call(t,"ignore-content-length")&&(C.ignoreContentLength=t["ignore-content-length"]),t.interface&&(C.interface=t.interface),t.ciphers&&(C.ciphers=t.ciphers),t.curves&&(C.curves=t.curves),t.insecure&&(C.insecure=!0),Object.prototype.hasOwnProperty.call(t,"cert-status")&&(C.certStatus=t["cert-status"]),t.cert)if(t.cert.startsWith("pkcs11:")||!t.cert.match(/[:\\]/))C.cert=[t.cert,null];else{let e=-1;try{e=t.cert.search(/(?<!\\)(?:\\\\)*:/)}catch(n){e=t.cert.search(/:/)}if(-1===e)C.cert=[t.cert,null];else{const n=t.cert.slice(0,e),r=t.cert.slice(e+1);r.toBool()?C.cert=[n,r]:C.cert=[n,null]}}if(t["cert-type"]){const n=t["cert-type"];C.certType=n,n.isString()&&!["PEM","DER","ENG","P12"].includes(n.toString().toUpperCase())&&(0,o.p4)(e,["cert-type-unknown","not supported file type "+JSON.stringify(n.toString())+" for certificate"])}return t.key&&(C.key=t.key),t["key-type"]&&(C.keyType=t["key-type"]),t.pass&&(C.pass=t.pass),t.cacert&&(C.cacert=t.cacert),Object.prototype.hasOwnProperty.call(t,"ca-native")&&(C.caNative=t["ca-native"]),Object.prototype.hasOwnProperty.call(t,"ssl-allow-beast")&&(C.sslAllowBeast=t["ssl-allow-beast"]),t.capath&&(C.capath=t.capath),t.crlfile&&(C.crlfile=t.crlfile),t.pinnedpubkey&&(C.pinnedpubkey=t.pinnedpubkey),t["random-file"]&&(C.randomFile=t["random-file"]),t["egd-file"]&&(C.egdFile=t["egd-file"]),t.hsts&&(C.hsts=t.hsts),Object.prototype.hasOwnProperty.call(t,"alpn")&&(C.alpn=t.alpn),t.tlsVersion&&(C.tlsVersion=t.tlsVersion),t["tls-max"]&&(C.tlsMax=t["tls-max"]),t["tls13-ciphers"]&&(C.tls13Ciphers=t["tls13-ciphers"]),t.tlsauthtype&&(C.tlsauthtype=t.tlsauthtype),t.tlspassword&&(C.tlspassword=t.tlspassword),t.tlsuser&&(C.tlsuser=t.tlsuser),Object.prototype.hasOwnProperty.call(t,"ssl-allow-beast")&&(C.sslAllowBeast=t["ssl-allow-beast"]),Object.prototype.hasOwnProperty.call(t,"ssl-auto-client-cert")&&(C.sslAutoClientCert=t["ssl-auto-client-cert"]),Object.prototype.hasOwnProperty.call(t,"ssl-no-revoke")&&(C.sslNoRevoke=t["ssl-no-revoke"]),Object.prototype.hasOwnProperty.call(t,"ssl-reqd")&&(C.sslReqd=t["ssl-reqd"]),Ob
1ject.prototype.hasOwnProperty.call(t,"ssl-revoke-best-effort")&&(C.sslRevokeBestEffort=t["ssl-revoke-best-effort"]),Object.prototype.hasOwnProperty.call(t,"ssl")&&(C.ssl=t.ssl),Object.prototype.hasOwnProperty.call(t,"sslv2")&&(C.sslv2=t.sslv2),Object.prototype.hasOwnProperty.call(t,"sslv3")&&(C.sslv3=t.sslv3),t["doh-url"]&&(C.dohUrl=t["doh-url"]),Object.prototype.hasOwnProperty.call(t,"doh-insecure")&&(C.dohInsecure=t["doh-insecure"]),Object.prototype.hasOwnProperty.call(t,"doh-cert-status")&&(C.dohCertStatus=t["doh-cert-status"]),t.proxy&&(C.proxy=t.proxy,C.proxyType&&"http2"!==C.proxyType&&delete C.proxyType,t["proxy-user"]&&(C.proxyAuth=t["proxy-user"])),Object.prototype.hasOwnProperty.call(t,"proxytunnel")&&(C.proxytunnel=t.proxytunnel),t.noproxy&&(C.noproxy=t.noproxy),t.preproxy&&(C.preproxy=t.preproxy),Object.prototype.hasOwnProperty.call(t,"proxy-anyauth")&&(C.proxyAnyauth=t["proxy-anyauth"]),Object.prototype.hasOwnProperty.call(t,"proxy-basic")&&(C.proxyBasic=t["proxy-basic"]),Object.prototype.hasOwnProperty.call(t,"proxy-digest")&&(C.proxyDigest=t["proxy-digest"]),Object.prototype.hasOwnProperty.call(t,"proxy-negotiate")&&(C.proxyNegotiate=t["proxy-negotiate"]),Object.prototype.hasOwnProperty.call(t,"proxy-ntlm")&&(C.proxyNtlm=t["proxy-ntlm"]),Object.prototype.hasOwnProperty.call(t,"proxy-ca-native")&&(C.proxyCaNative=t["proxy-ca-native"]),t["proxy-cacert"]&&(C.proxyCacert=t["proxy-cacert"]),t["proxy-capath"]&&(C.proxyCapath=t["proxy-capath"]),t["proxy-cert-type"]&&(C.proxyCertType=t["proxy-cert-type"]),t["proxy-cert"]&&(C.proxyCert=t["proxy-cert"]),t["proxy-ciphers"]&&(C.proxyCiphers=t["proxy-ciphers"]),t["proxy-crlfile"]&&(C.proxyCrlfile=t["proxy-crlfile"]),t["proxy-http2"]&&(C.proxyType="http2"),t["proxy1.0"]&&(C.proxy=t["proxy1.0"],C.proxyType="http1"),Object.prototype.hasOwnProperty.call(t,"proxy-insecure")&&(C.proxyInsecure=t["proxy-insecure"]),t["proxy-key"]&&(C.proxyKey=t["proxy-key"]),t["proxy-key-type"]&&(C.proxyKeyType=t["proxy-key-type"]),t["proxy-pass"]&&(C.proxyPass=t["proxy-pass"]),t["proxy-pinnedpubkey"]&&(C.proxyPinnedpubkey=t["proxy-pinnedpubkey"]),t["proxy-pinnedpubkey"]&&(C.proxyPinnedpubkey=t["proxy-pinnedpubkey"]),t["proxy-service-name"]&&(C.proxyServiceName=t["proxy-service-name"]),Object.prototype.hasOwnProperty.call(t,"proxy-ssl-allow-beast")&&(C.proxySslAllowBeast=t["proxy-ssl-allow-beast"]),Object.prototype.hasOwnProperty.call(t,"proxy-ssl-auto-client-cert")&&(C.proxySslAutoClientCert=t["proxy-ssl-auto-client-cert"]),t["proxy-tls13-ciphers"]&&(C.proxyTls13Ciphers=t["proxy-tls13-ciphers"]),t["proxy-tlsauthtype"]&&(C.proxyTlsauthtype=t["proxy-tlsauthtype"],C.proxyTlsauthtype.isString()&&!(0,r.eq)(C.proxyTlsauthtype,"SRP")&&(0,o.p4)(e,["proxy-tlsauthtype","proxy-tlsauthtype is not supported: "+C.proxyTlsauthtype])),t["proxy-tlspassword"]&&(C.proxyTlspassword=t["proxy-tlspassword"]),t["proxy-tlsuser"]&&(C.proxyTlsuser=t["proxy-tlsuser"]),Object.prototype.hasOwnProperty.call(t,"proxy-tlsv1")&&(C.proxyTlsv1=t["proxy-tlsv1"]),t["proxy-user"]&&(C.proxyUser=t["proxy-user"]),Object.prototype.hasOwnProperty.call(t,"proxytunnel")&&(C.proxytunnel=t.proxytunnel),t.socks4&&(C.proxy=t.socks4,C.proxyType="socks4"),t.socks4a&&(C.proxy=t.socks4a,C.proxyType="socks4a"),t.socks5&&(C.proxy=t.socks5,C.proxyType="socks5"),t["socks5-hostname"]&&(C.proxy=t["socks5-hostname"],C.proxyType="socks5-hostname"),Object.prototype.hasOwnProperty.call(t,"socks5-basic")&&(C.socks5Basic=t["socks5-basic"]),Object.prototype.hasOwnProperty.call(t,"socks5-gssapi-nec")&&(C.socks5GssapiNec=t["socks5-gssapi-nec"]),t["socks5-gssapi-service"]&&(C.socks5GssapiService=t["socks5-gssapi-service"]),Object.prototype.hasOwnProperty.call(t,"socks5-gssapi")&&(C.socks5Gssapi=t["socks5-gssapi"]),t["haproxy-clientip"]&&(C.haproxyClientIp=t["haproxy-clientip"]),Object.prototype.hasOwnProperty.call(t,"haproxy-protocol")&&(C.haproxyProtocol=t["haproxy-protocol"]),t["max-time"]&&(C.timeout=t["max-time"],t["max-time"].isString()&&isNaN(parseFloat(t["max-time"].toString()))&&(0,o.p4)(e,["max-time-not-number","option --max-time: expected a proper numerical parameter: "+JSON.stringify(t["max-time"].toString())])),t["connect-timeout"]&&(C.connectTimeout=t["connect-timeout"],t["connect-timeout"].isString()&&isNaN(parseFloat(t["connect-timeout"].toString()))&&(0,o.p4)(e,["connect-timeout-not-number","option --connect-timeout: expected a proper numerical parameter: "+JSON.stringify(t["connect-timeout"].toString())])),t["expect100-timeout"]&&(C.expect100Timeout=t["expect100-timeout"],t["expect100-timeout"].isString()&&isNaN(parseFloat(t["expect100-timeout"].toString()))&&(0,o.p4)(e,["expect100-timeout-not-number","option --expect100-timeout: expected a proper numerical parameter: "+JSON.stringify(t["expect100-timeout"].toString())])),t["happy-eyeballs-timeout-ms"]&&(C.happyEyeballsTimeoutMs=t["happy-eyeballs-timeout-ms"]),t["speed-limit"]&&(C.speedLimit=t["speed-limit"]),t["speed-time"]&&(C.speedTime=t["speed-time"]),t["limit-rate"]&&(C.limitRate=t["limit-rate"]),t["max-filesize"]&&(C.maxFilesize=t["max-filesize"]),Object.prototype.hasOwnProperty.call(t,"keepalive")&&(C.keepAlive=t.keepalive),t["keepalive-time"]&&(C.keepAliveTime=t["keepalive-time"]),t["alt-svc"]&&(C.altSvc=t["alt-svc"]),Object.prototype.hasOwnProperty.call(t,"location")&&(C.followRedirects=t.location),t["location-trusted"]&&(C.followRedirectsTrusted=t["location-trusted"]),t["max-redirs"]&&(C.maxRedirects=t["max-redirs"].trim(),t["max-redirs"].isString()&&!(0,s.E6)(t["max-redirs"].toString())&&
1(0,o.p4)(e,["max-redirs-not-int","option --max-redirs: expected a proper numerical parameter: "+JSON.stringify(t["max-redirs"].toString())])),Object.prototype.hasOwnProperty.call(t,"post301")&&(C.post301=t.post301),Object.prototype.hasOwnProperty.call(t,"post302")&&(C.post302=t.post302),Object.prototype.hasOwnProperty.call(t,"post303")&&(C.post303=t.post303),t.fail&&(C.fail=t.fail),t.retry&&(C.retry=t.retry),t["retry-max-time"]&&(C.retryMaxTime=t["retry-max-time"]),Object.prototype.hasOwnProperty.call(t,"ftp-skip-pasv-ip")&&(C.ftpSkipPasvIp=t["ftp-skip-pasv-ip"]),t.httpVersion&&("2"!==t.httpVersion&&"2-prior-knowledge"!==t.httpVersion||(C.http2=!0),"3"!==t.httpVersion&&"3-only"!==t.httpVersion||(C.http3=!0),C.httpVersion=t.httpVersion),Object.prototype.hasOwnProperty.call(t,"http0.9")&&(C.http0_9=t["http0.9"]),t.resolve&&t.resolve.length&&(C.resolve=t.resolve),t["connect-to"]&&t["connect-to"].length&&(C.connectTo=t["connect-to"]),t["unix-socket"]&&(C.unixSocket=t["unix-socket"]),t["abstract-unix-socket"]&&(C.abstractUnixSocket=t["abstract-unix-socket"]),t["netrc-optional"]?C.netrc="optional":t.netrc||t["netrc-file"]?C.netrc="required":!1===t.netrc&&(C.netrc="ignored"),t["netrc-file"]&&(C.netrcFile=t["netrc-file"]),t["use-ascii"]&&(C.useAscii=t["use-ascii"]),t["continue-at"]&&(C.continueAt=t["continue-at"]),Object.prototype.hasOwnProperty.call(t,"crlf")&&(C.crlf=t.crlf),Object.prototype.hasOwnProperty.call(t,"clobber")&&(C.clobber=t.clobber),Object.prototype.hasOwnProperty.call(t,"remote-time")&&(C.remoteTime=t["remote-time"]),Object.prototype.hasOwnProperty.call(e,"verbose")&&(C.verbose=e.verbose),Object.prototype.hasOwnProperty.call(e,"silent")&&(C.silent=e.silent),C}(e,a,t,n)))}function S(e,t,n){e.length>1&&t.push(["next","got "+e.length+" curl requests, only converting the first one"]);const r=e[0];return(0,o.cY)(r,t,n),r}},7277:(e,t,n)=>{"use strict";function r(e,t){e.warnings.push(t)}function s(e,t,n,r){t===n&&n++;let s=t;t>0&&(s=r.lastIndexOf("\n",t-1)+1);let o=n-t,a=r.indexOf("\n",t);return-1===a?a=r.length:a<n&&(o=a-t+1),r.slice(s,a)+"\n"+(" ".repeat(t-s)+"^".repeat(o))}function o(e,t){return s(0,e.startIndex,e.endIndex,t)}function a(e,t){const n=e.tree.rootNode;let r=e.startIndex,o=e.endIndex;return t||(t=n.text,r-=n.startIndex,o-=n.startIndex),s(0,r,o,t)}function i(e,t,n){e.urls.length>1&&!(null==n?void 0:n.multipleUrls)&&t.push(["multiple-urls","found "+e.urls.length+" URLs, only the first one will be used: "+e.urls.map((e=>JSON.stringify(e.originalUrl.toString()))).join(", ")]),e.dataReadsFile&&!(null==n?void 0:n.dataReadsFile)&&t.push(["unsafe-data","the generated data content is wrong, "+JSON.stringify("@"+e.dataReadsFile)+" means read the file "+JSON.stringify(e.dataReadsFile)]),e.urls[0].queryReadsFile&&!(null==n?void 0:n.queryReadsFile)&&t.push(["unsafe-query","the generated URL query string is wrong, "+JSON.stringify("@"+e.urls[0].queryReadsFile)+" means read the file "+JSON.stringify(e.urls[0].queryReadsFile)]),e.cookieFiles&&!(null==n?void 0:n.cookieFiles)&&t.push(["cookie-files","passing a file for --cookie/-b is not supported: "+e.cookieFiles.map((e=>JSON.stringify(e.toString()))).join(", ")])}n.d(t,{TO:()=>a,XP:()=>o,cY:()=>i,p4:()=>r})},7511:(e,t,n)=>{"use strict";n.d(t,{AM:()=>o,H4:()=>l,J_:()=>i,L0:()=>u,MN:()=>c,bo:()=>a,ct:()=>r,iB:()=>s,wk:()=>p});const r=1,s=2,o=4,a=8,i=32,l=64,u=128,c=-17;function p(e){if(e===c)return"basic";const t=[[o,"negotiate"],[l,"bearer"],[s,"digest"],[a,"ntlm"],[i,"ntlm-wb"],[r,"basic"],[u,"aws-sigv4"]];for(const[n,r]of t)if(e&n)return r;return"none"}},9407:(e,t,n)=>{"use strict";n.d(t,{Lk:()=>i,N4:()=>l,U$:()=>p,Zy:()=>g,xv:()=>u});var r=n(9531),s=n(6711),o=n(7277),a=n(7511);const i={url:{type:"string",name:"url"},"dns-ipv4-addr":{type:"string",name:"dns-ipv4-addr"},"dns-ipv6-addr":{type:"string",name:"dns-ipv6-addr"},"random-file":{type:"string",name:"random-file"},"egd-file":{type:"string",name:"egd-file"},"oauth2-bearer":{type:"string",name:"oauth2-bearer"},"connect-timeout":{type:"string",name:"connect-timeout"},"doh-url":{type:"string",name:"doh-url"},ciphers:{type:"string",name:"ciphers"},"dns-interface":{type:"string",name:"dns-interface"},"disable-epsv":{type:"bool",name:"disable-epsv"},"no-disable-epsv":{type:"bool",name:"disable-epsv",expand:!1},"disallow-username-in-url":{type:"bool",name:"disallow-username-in-url"},"no-disallow-username-in-url":{type:"bool",name:"disallow-username-in-url",expand:!1},epsv:{type:"bool",name:"epsv"},"no-epsv":{type:"bool",name:"epsv",expand:!1},"dns-servers":{type:"string",name:"dns-servers"},trace:{type:"string",name:"trace"},npn:{type:"bool",name:"npn"},"no-npn":{type:"bool",name:"npn",expand:!1},"trace-ascii":{type:"string",name:"trace-ascii"},alpn:{type:"bool",name:"alpn"},"no-alpn":{type:"bool",name:"alpn",expand:!1},"limit-rate":{type:"string",name:"limit-rate"},rate:{type:"string",name:"rate"},compressed:{type:"bool",name:"compressed"},"no-compressed":{type:"bool",name:"compressed",expand:!1},"tr-encoding":{type:"bool",name:"tr-encoding"},"no-tr-encoding":{type:"bool",name:"tr-encoding",expand:!1},digest:{type:"bool",name:"digest"},"no-digest":{type:"bool",name:"digest",expand:!1},negotiate:{type:"bool",name:"negotiate"},"no-negotiate":{type:"bool",name:"negotiate",expand:!1},ntlm:{type:"bool",name:"ntlm"},"no-ntlm":{type:"bool",name:"ntlm",expand:!1},"ntlm-wb":{type:"bool",name:"ntlm-wb"},"no-ntlm-wb":{type:"bool",name:"ntlm-wb",expand:!1},basic:{type:"bool",name:"basic"},"no-basic":{type:"bool",name:"basic",expand:!1},anyauth:{type:"bool",name:"anyauth"},"no-anyauth":{type:"bool",name:"anyauth",expand:!1},wdebug:{type:"bool",name:"wdebug"},"no-wdebug":{type:"bool",name:"wdebug",expand:!1},"ftp-create-dirs":{type:"bool",name:"ftp-create-dirs"},"no-ftp-create-dirs":{type:"bool",name:"ftp-create-dirs",expand:!1},"create-dirs":{type:"bool",name:"create-dirs"},"no-create-dirs":{type:"bool",name:"create-dirs",expand:!1},"create-file-mode":{type:"string",name:"create-file-mode"},"max-redirs":{type:"string",name:"max-redirs"},"proxy-ntlm":{type:"bool",name:"proxy-ntlm"},"no-proxy-ntlm":{type:"bool",name:"proxy-ntlm",expand:!1},crlf:{type:"bool",name:"crlf"},"no-crlf":{type:"bool",name:"crlf",expand:!1},stderr:{type:"string",name:"stderr"},"aws-sigv4":{type:"string",name:"aws-sigv4"},interface:{type:"string",name:"interface"},krb:{type:"string",name:"krb"},krb4:{type:"string",name:"krb"},"haproxy-protocol":{type:"bool",name:"haproxy-protocol"},"no-haproxy-protocol":{type:"bool",name:"haproxy-protocol",expand:!1},"haproxy-clientip":{type:"string",name:"haproxy-clientip"},"max-filesize":{type:"string",name:"max-filesize"},"disable-eprt":{type:"bool",name:"disable-eprt"},"no-disable-eprt":{type:"bool",name:"disable-eprt",expand:!1},eprt:{type:"bool",name:"eprt"},"no-eprt":{type:"bool",name:"eprt",expand:!1},xattr:{type:"bool",name:"xattr"},"no-xattr":{type:"bool",name:"xattr",expand:!1}
1,"ftp-ssl":{type:"bool",name:"ssl"},"no-ftp-ssl":{type:"bool",name:"ssl",expand:!1},ssl:{type:"bool",name:"ssl"},"no-ssl":{type:"bool",name:"ssl",expand:!1},"ftp-pasv":{type:"bool",name:"ftp-pasv"},"no-ftp-pasv":{type:"bool",name:"ftp-pasv",expand:!1},socks5:{type:"string",name:"socks5"},"tcp-nodelay":{type:"bool",name:"tcp-nodelay"},"no-tcp-nodelay":{type:"bool",name:"tcp-nodelay",expand:!1},"proxy-digest":{type:"bool",name:"proxy-digest"},"no-proxy-digest":{type:"bool",name:"proxy-digest",expand:!1},"proxy-basic":{type:"bool",name:"proxy-basic"},"no-proxy-basic":{type:"bool",name:"proxy-basic",expand:!1},retry:{type:"string",name:"retry"},"retry-connrefused":{type:"bool",name:"retry-connrefused"},"no-retry-connrefused":{type:"bool",name:"retry-connrefused",expand:!1},"retry-delay":{type:"string",name:"retry-delay"},"retry-max-time":{type:"string",name:"retry-max-time"},"proxy-negotiate":{type:"bool",name:"proxy-negotiate"},"no-proxy-negotiate":{type:"bool",name:"proxy-negotiate",expand:!1},"form-escape":{type:"bool",name:"form-escape"},"no-form-escape":{type:"bool",name:"form-escape",expand:!1},"ftp-account":{type:"string",name:"ftp-account"},"proxy-anyauth":{type:"bool",name:"proxy-anyauth"},"no-proxy-anyauth":{type:"bool",name:"proxy-anyauth",expand:!1},"trace-time":{type:"bool",name:"trace-time"},"no-trace-time":{type:"bool",name:"trace-time",expand:!1},"ignore-content-length":{type:"bool",name:"ignore-content-length"},"no-ignore-content-length":{type:"bool",name:"ignore-content-length",expand:!1},"ftp-skip-pasv-ip":{type:"bool",name:"ftp-skip-pasv-ip"},"no-ftp-skip-pasv-ip":{type:"bool",name:"ftp-skip-pasv-ip",expand:!1},"ftp-method":{type:"string",name:"ftp-method"},"local-port":{type:"string",name:"local-port"},socks4:{type:"string",name:"socks4"},socks4a:{type:"string",name:"socks4a"},"ftp-alternative-to-user":{type:"string",name:"ftp-alternative-to-user"},"ftp-ssl-reqd":{type:"bool",name:"ssl-reqd"},"no-ftp-ssl-reqd":{type:"bool",name:"ssl-reqd",expand:!1},"ssl-reqd":{type:"bool",name:"ssl-reqd"},"no-ssl-reqd":{type:"bool",name:"ssl-reqd",expand:!1},sessionid:{type:"bool",name:"sessionid"},"no-sessionid":{type:"bool",name:"sessionid",expand:!1},"ftp-ssl-control":{type:"bool",name:"ftp-ssl-control"},"no-ftp-ssl-control":{type:"bool",name:"ftp-ssl-control",expand:!1},"ftp-ssl-ccc":{type:"bool",name:"ftp-ssl-ccc"},"no-ftp-ssl-ccc":{type:"bool",name:"ftp-ssl-ccc",expand:!1},"ftp-ssl-ccc-mode":{type:"string",name:"ftp-ssl-ccc-mode"},libcurl:{type:"string",name:"libcurl"},raw:{type:"bool",name:"raw"},"no-raw":{type:"bool",name:"raw",expand:!1},post301:{type:"bool",name:"post301"},"no-post301":{type:"bool",name:"post301",expand:!1},keepalive:{type:"bool",name:"keepalive"},"no-keepalive":{type:"bool",name:"keepalive",expand:!1},"socks5-hostname":{type:"string",name:"socks5-hostname"},"keepalive-time":{type:"string",name:"keepalive-time"},post302:{type:"bool",name:"post302"},"no-post302":{type:"bool",name:"post302",expand:!1},noproxy:{type:"string",name:"noproxy"},"socks5-gssapi-nec":{type:"bool",name:"socks5-gssapi-nec"},"no-socks5-gssapi-nec":{type:"bool",name:"socks5-gssapi-nec",expand:!1},"proxy1.0":{type:"string",name:"proxy1.0"},"tftp-blksize":{type:"string",name:"tftp-blksize"},"mail-from":{type:"string",name:"mail-from"},"mail-rcpt":{type:"string",name:"mail-rcpt"},"ftp-pret":{type:"bool",name:"ftp-pret"},"no-ftp-pret":{type:"bool",name:"ftp-pret",expand:!1},proto:{type:"string",name:"proto"},"proto-redir":{type:"string",name:"proto-redir"},resolve:{type:"string",name:"resolve"},delegation:{type:"string",name:"delegation"},"mail-auth":{type:"string",name:"mail-auth"},post303:{type:"bool",name:"post303"},"no-post303":{type:"bool",name:"post303",expand:!1},metalink:{type:"bool",name:"metalink"},"no-metalink":{type:"bool",name:"metalink",expand:!1},"sasl-authzid":{type:"string",name:"sasl-authzid"},"sasl-ir":{type:"bool",name:"sasl-ir"},"no-sasl-ir":{type:"bool",name:"sasl-ir",expand:!1},"test-event":{type:"bool",name:"test-event"},"no-test-event":{type:"bool",name:"test-event",expand:!1},"unix-socket":{type:"string",name:"unix-socket"},"path-as-is":{type:"bool",name:"path-as-is"},"no-path-as-is":{type:"bool",name:"path-as-is",expand:!1},"socks5-gssapi-service":{type:"string",name:"proxy-service-name"},"proxy-service-name":{type:"string",name:"proxy-service-name"},"service-name":{type:"string",name:"service-name"},"proto-default":{type:"string",name:"proto-default"},"expect100-timeout":{type:"string",name:"expect100-timeout"},"tftp-no-options":{type:"bool",name:"tftp-no-options"},"no-tftp-no-options":{type:"bool",name:"tftp-no-options",expand:!1},"connect-to":{type:"string",name:"connect-to"},"abstract-unix-socket":{type:"string",name:"abstract-unix-socket"},"tls-max":{type:"string",name:"tls-max"},"suppress-connect-headers":{type:"bool",name:"suppress-connect-headers"},"no-suppress-connect-headers":{type:"bool",name:"suppress-connect-headers",expand:!1}
1,"compressed-ssh":{type:"bool",name:"compressed-ssh"},"no-compressed-ssh":{type:"bool",name:"compressed-ssh",expand:!1},"happy-eyeballs-timeout-ms":{type:"string",name:"happy-eyeballs-timeout-ms"},"retry-all-errors":{type:"bool",name:"retry-all-errors"},"no-retry-all-errors":{type:"bool",name:"retry-all-errors",expand:!1},"trace-ids":{type:"bool",name:"trace-ids"},"no-trace-ids":{type:"bool",name:"trace-ids",expand:!1},"http1.0":{type:"bool",name:"http1.0"},"http1.1":{type:"bool",name:"http1.1"},http2:{type:"bool",name:"http2"},"http2-prior-knowledge":{type:"bool",name:"http2-prior-knowledge"},http3:{type:"bool",name:"http3"},"http3-only":{type:"bool",name:"http3-only"},"http0.9":{type:"bool",name:"http0.9"},"no-http0.9":{type:"bool",name:"http0.9",expand:!1},"proxy-http2":{type:"bool",name:"proxy-http2"},"no-proxy-http2":{type:"bool",name:"proxy-http2",expand:!1},tlsv1:{type:"bool",name:"tlsv1"},"tlsv1.0":{type:"bool",name:"tlsv1.0"},"tlsv1.1":{type:"bool",name:"tlsv1.1"},"tlsv1.2":{type:"bool",name:"tlsv1.2"},"tlsv1.3":{type:"bool",name:"tlsv1.3"},"tls13-ciphers":{type:"string",name:"tls13-ciphers"},"proxy-tls13-ciphers":{type:"string",name:"proxy-tls13-ciphers"},sslv2:{type:"bool",name:"sslv2"},sslv3:{type:"bool",name:"sslv3"},ipv4:{type:"bool",name:"ipv4"},ipv6:{type:"bool",name:"ipv6"},append:{type:"bool",name:"append"},"no-append":{type:"bool",name:"append",expand:!1},"user-agent":{type:"string",name:"user-agent"},cookie:{type:"string",name:"cookie"},"alt-svc":{type:"string",name:"alt-svc"},hsts:{type:"string",name:"hsts"},"use-ascii":{type:"bool",name:"use-ascii"},"no-use-ascii":{type:"bool",name:"use-ascii",expand:!1},"cookie-jar":{type:"string",name:"cookie-jar"},"continue-at":{type:"string",name:"continue-at"},data:{type:"string",name:"data"},"data-raw":{type:"string",name:"data-raw"},"data-ascii":{type:"string",name:"data-ascii"},"data-binary":{type:"string",name:"data-binary"},"data-urlencode":{type:"string",name:"data-urlencode"},json:{type:"string",name:"json"},"url-query":{type:"string",name:"url-query"},"dump-header":{type:"string",name:"dump-header"},referer:{type:"string",name:"referer"},cert:{type:"string",name:"cert"},cacert:{type:"string",name:"cacert"},"cert-type":{type:"string",name:"cert-type"},key:{type:"string",name:"key"},"key-type":{type:"string",name:"key-type"},pass:{type:"string",name:"pass"},engine:{type:"string",name:"engine"},"ca-native":{type:"bool",name:"ca-native"},"no-ca-native":{type:"bool",name:"ca-native",expand:!1},"proxy-ca-native":{type:"bool",name:"proxy-ca-native"},"no-proxy-ca-native":{type:"bool",name:"proxy-ca-native",expand:!1},capath:{type:"string",name:"capath"},pubkey:{type:"string",name:"pubkey"},hostpubmd5:{type:"string",name:"hostpubmd5"},hostpubsha256:{type:"string",name:"hostpubsha256"},crlfile:{type:"string",name:"crlfile"},tlsuser:{type:"string",name:"tlsuser"},tlspassword:{type:"string",name:"tlspassword"},tlsauthtype:{type:"string",name:"tlsauthtype"},"ssl-allow-beast":{type:"bool",name:"ssl-allow-beast"},"no-ssl-allow-beast":{type:"bool",name:"ssl-allow-beast",expand:!1},"ssl-auto-client-cert":{type:"bool",name:"ssl-auto-client-cert"},"no-ssl-auto-client-cert":{type:"bool",name:"ssl-auto-client-cert",expand:!1},"proxy-ssl-auto-client-cert":{type:"bool",name:"proxy-ssl-auto-client-cert"},"no-proxy-ssl-auto-client-cert":{type:"bool",name:"proxy-ssl-auto-client-cert",expand:!1},pinnedpubkey:{type:"string",name:"pinnedpubkey"},"proxy-pinnedpubkey":{type:"string",name:"proxy-pinnedpubkey"},"cert-status":{type:"bool",name:"cert-status"},"no-cert-status":{type:"bool",name:"cert-status",expand:!1},"doh-cert-status":{type:"bool",name:"doh-cert-status"},"no-doh-cert-status":{type:"bool",name:"doh-cert-status",expand:!1},"false-start":{type:"bool",name:"false-start"},"no-false-start":{type:"bool",name:"false-start",expand:!1},"ssl-no-revoke":{type:"bool",name:"ssl-no-revoke"},"no-ssl-no-revoke":{type:"bool",name:"ssl-no-revoke",expand:!1},"ssl-revoke-best-effort":{type:"bool",name:"ssl-revoke-best-effort"},"no-ssl-revoke-best-effort":{type:"bool",name:"ssl-revoke-best-effort",expand:!1},"tcp-fastopen":{type:"bool",name:"tcp-fastopen"},"no-tcp-fastopen":{type:"bool",name:"tcp-fastopen",expand:!1},"proxy-tlsuser":{type:"string",name:"proxy-tlsuser"},"proxy-tlspassword":{type:"string",name:"proxy-tlspassword"},"proxy-tlsauthtype":{type:"string",name:"proxy-tlsauthtype"},"proxy-cert":{type:"string",name:"proxy-cert"},"proxy-cert-type":{type:"string",name:"proxy-cert-type"},"proxy-key":{type:"string",name:"proxy-key"},"proxy-key-type":{type:"string",name:"proxy-key-type"},"proxy-pass":{type:"string",name:"proxy-pass"},"proxy-ciphers":{type:"string",name:"proxy-ciphers"},"proxy-crlfile":{type:"string",name:"proxy-crlfile"},"proxy-ssl-allow-beast":{type:"bool",name:"proxy-ssl-allow-beast"},"no-proxy-ssl-allow-beast":{type:"bool",name:"proxy-ssl-allow-beast",expand:!1},"login-options":{type:"string",name:"login-options"},"proxy-cacert":{type:"string",name:"proxy-cacert"},"proxy-capath":{type:"string",name:"proxy-capath"},"proxy-insecure":{type:"bool",name:"proxy-insecure"},"no-proxy-insecure":{type:"bool",name:"proxy-insecure",expand:!1},"proxy-tlsv1":{type:"bool",name:"proxy-tlsv1"},"socks5-basic":{type:"bool",name:"socks5-basic"},"no-socks5-basic":{type:"bool",name:"socks5-basic",expand:!1},"socks5-gssapi":{type:"bool",name:"socks5-gssapi"},"no-socks5-gssapi":{type:"bool",name:"socks5-gssapi",expand:!1},"etag-save":{type:"string",name:"etag-save"},"etag-compare":{type:"string",name:"etag-compare"},curves:{type:"string",name:"curves"},fail:{type:"bool",name:"fail"},"no-fail":{type:"bool",name:"fail",expand:!1},"fail-early":{type:"bool",name:"fail-early"},"no-fail-early":{type:"bool",name:"fail-early",expand:!1},"styled-output":{type:"bool",name:"styled-output"},"no-styled-output":{type:"bool",name:"styled-output",expand:!1},"mail-rcpt-allowfails":{type:"bool",name:"mail-rcpt-allowfails"},"no-mail-rcpt-allowfails":{type:"bool",name:"mail-rcpt-allowfails",expand:!1},"fail-with-body":{type:"bool",name:"fail-with-body"},"no-fail-with-body":{type:"bool",name:"fail-with-body",expand:!1},"remove-on-error":{type:"bool",name:"remove-on-error"},"no-remove-on-error":{type:"bool",name:"remove-on-error",expand:!1},form:{type:"string",name:"form"},"form-string":{type:"string",name:"form-string"},globoff:{type:"bool",name:"globoff"},"no-globoff":{type:"bool",name:"globoff",expand:!1},get:{type:"bool",name:"get"},"no-get":{type:"bool",name:"get",expand:!1},"request-target":{type:"string",name:"request-target"},help:{type:"bool",name:"help"},"no-help":{type:"bool",name:"help",expand:!1},header:{type:"string",name:"header"},"proxy-header":{type:"string",name:"proxy-header"},include:{type:"bool",name:"include"},"no-include":{type:"bool",name:"include",expand:!1},head:{type:"bool",name:"head"},"no-head":{type:"bool",name:"head",expand:!1},"junk-session-cookies":{type:"bool",name:"junk-session-cookies"},"no-junk-session-cookies":{type:"bool",name:"junk-session-cookies",expand:!1},"remote-header-name":{type:"bool",name:"remote-header-name"},"no-remote-header-name":{type:"bool",name:"remote-header-name",expand:!1},insecure:{type:"bool",name:"insecure"},"no-insecure":{type:"bool",name:"insecure",expand:!1},"doh-insecure":{type:"bool",name:"doh-insecure"},"no-doh-insecure":{type:"bool",name:"doh-insecure",expand:!1},config:{type:"string",name:"config"},"list-only":{type:"bool",name:"list-only"},"no-list-only":{type:"bool",name:"list-only",expand:!1},location:{type:"bool",name:"location"},"no-location":{type:"bool",name:"location",expand:!1},"location-trusted":{type:"bool",name:"location-trusted"},"no-location-trusted":{type:"bool",name:"location-trusted",expand:!1},"max-time":{type:"string",name:"max-time"},manual:{type:"bool",name:"manual"}
1,"no-manual":{type:"bool",name:"manual",expand:!1},netrc:{type:"bool",name:"netrc"},"no-netrc":{type:"bool",name:"netrc",expand:!1},"netrc-optional":{type:"bool",name:"netrc-optional"},"no-netrc-optional":{type:"bool",name:"netrc-optional",expand:!1},"netrc-file":{type:"string",name:"netrc-file"},buffer:{type:"bool",name:"buffer"},"no-buffer":{type:"bool",name:"buffer",expand:!1},output:{type:"string",name:"output"},"remote-name":{type:"bool",name:"remote-name"},"no-remote-name":{type:"bool",name:"remote-name",expand:!1},"remote-name-all":{type:"bool",name:"remote-name-all"},"no-remote-name-all":{type:"bool",name:"remote-name-all",expand:!1},"output-dir":{type:"string",name:"output-dir"},clobber:{type:"bool",name:"clobber"},"no-clobber":{type:"bool",name:"clobber",expand:!1},proxytunnel:{type:"bool",name:"proxytunnel"},"no-proxytunnel":{type:"bool",name:"proxytunnel",expand:!1},"ftp-port":{type:"string",name:"ftp-port"},disable:{type:"bool",name:"disable"},"no-disable":{type:"bool",name:"disable",expand:!1},quote:{type:"string",name:"quote"},range:{type:"string",name:"range"},"remote-time":{type:"bool",name:"remote-time"},"no-remote-time":{type:"bool",name:"remote-time",expand:!1},silent:{type:"bool",name:"silent"},"no-silent":{type:"bool",name:"silent",expand:!1},"show-error":{type:"bool",name:"show-error"},"no-show-error":{type:"bool",name:"show-error",expand:!1},"telnet-option":{type:"string",name:"telnet-option"},"upload-file":{type:"string",name:"upload-file"},user:{type:"string",name:"user"},"proxy-user":{type:"string",name:"proxy-user"},verbose:{type:"bool",name:"verbose"},"no-verbose":{type:"bool",name:"verbose",expand:!1},version:{type:"bool",name:"version"},"no-version":{type:"bool",name:"version",expand:!1},"write-out":{type:"string",name:"write-out"},proxy:{type:"string",name:"proxy"},preproxy:{type:"string",name:"preproxy"},request:{type:"string",name:"request"},"speed-limit":{type:"string",name:"speed-limit"},"speed-time":{type:"string",name:"speed-time"},"time-cond":{type:"string",name:"time-cond"},parallel:{type:"bool",name:"parallel"},"no-parallel":{type:"bool",name:"parallel",expand:!1},"parallel-max":{type:"string",name:"parallel-max"},"parallel-immediate":{type:"bool",name:"parallel-immediate"},"no-parallel-immediate":{type:"bool",name:"parallel-immediate",expand:!1},"progress-bar":{type:"bool",name:"progress-bar"},"no-progress-bar":{type:"bool",name:"progress-bar",expand:!1},"progress-meter":{type:"bool",name:"progress-meter"},"no-progress-meter":{type:"bool",name:"progress-meter",expand:!1},next:{type:"bool",name:"next"},port:{type:"string",name:"port",removed:"7.3"},"ftp-ascii":{type:"bool",name:"use-ascii",removed:"7.10.7"},"3p-url":{type:"string",name:"3p-url",removed:"7.16.0"},"3p-user":{type:"string",name:"3p-user",removed:"7.16.0"},"3p-quote":{type:"string",name:"3p-quote",removed:"7.16.0"},"http2.0":{type:"bool",name:"http2",removed:"7.36.0"},"no-http2.0":{type:"bool",name:"http2",removed:"7.36.0"},"telnet-options":{type:"string",name:"telnet-option",removed:"7.49.0"},"http-request":{type:"string",name:"request",removed:"7.49.0"},"capath ":{type:"string",name:"capath",removed:"7.49.0"},ftpport:{type:"string",name:"ftp-port",removed:"7.49.0"},environment:{type:"bool",name:"environment",removed:"7.54.1"},"no-tlsv1":{type:"bool",name:"tlsv1",removed:"7.54.1"},"no-tlsv1.2":{type:"bool",name:"tlsv1.2",removed:"7.54.1"},"no-http2-prior-knowledge":{type:"bool",name:"http2-prior-knowledge",removed:"7.54.1"},"no-ipv6":{type:"bool",name:"ipv6",removed:"7.54.1"},"no-ipv4":{type:"bool",name:"ipv4",removed:"7.54.1"},"no-sslv2":{type:"bool",name:"sslv2",removed:"7.54.1"},"no-tlsv1.0":{type:"bool",name:"tlsv1.0",removed:"7.54.1"},"no-tlsv1.1":{type:"bool",name:"tlsv1.1",removed:"7.54.1"},"no-sslv3":{type:"bool",name:"sslv3",removed:"7.54.1"},"no-http1.0":{type:"bool",name:"http1.0",removed:"7.54.1"},"no-next":{type:"bool",name:"next",removed:"7.54.1"},"no-tlsv1.3":{type:"bool",name:"tlsv1.3",removed:"7.54.1"},"no-environment":{type:"bool",name:"environment",removed:"7.54.1"},"no-http1.1":{type:"bool",name:"http1.1",removed:"7.54.1"},"no-proxy-tlsv1":{type:"bool",name:"proxy-tlsv1",removed:"7.54.1"},"no-http2":{type:"bool",name:"http2",removed:"7.54.1"}},l={};for(const[e,t]of Object.entries(i)){const n=!("expand"in t)||t.expand,r="removed"in t&&t.removed;if(n&&!r)for(let n=1;n<e.length;n++){const r=e.slice(0,n);Object.prototype.hasOwnProperty.call(l,r)?l[r]=null:Object.prototype.hasOwnProperty.call(i,r)||(l[r]=t)}}const u=["url","proto-default","globoff","disallow-username-in-url","request","get","head","no-head","header","user-agent","referer","range","t
1ime-cond","cookie","oauth2-bearer","user","basic","no-basic","data","data-raw","data-ascii","data-binary","data-urlencode","json","url-query"];function c(e){return!!e.startsWith("no-disable-")||!e.startsWith("disable-")&&!e.startsWith("no-")}const p={0:"http1.0",1:"tlsv1",2:"sslv2",3:"sslv3",4:"ipv4",6:"ipv6",a:"append",A:"user-agent",b:"cookie",B:"use-ascii",c:"cookie-jar",C:"continue-at",d:"data",D:"dump-header",e:"referer",E:"cert",f:"fail",F:"form",g:"globoff",G:"get",h:"help",H:"header",i:"include",I:"head",j:"junk-session-cookies",J:"remote-header-name",k:"insecure",K:"config",l:"list-only",L:"location",m:"max-time",M:"manual",n:"netrc",N:"no-buffer",o:"output",O:"remote-name",p:"proxytunnel",P:"ftp-port",q:"disable",Q:"quote",r:"range",R:"remote-time",s:"silent",S:"show-error",t:"telnet-option",T:"upload-file",u:"user",U:"proxy-user",v:"verbose",V:"version",w:"write-out",x:"proxy",X:"request",Y:"speed-limit",y:"speed-time",z:"time-cond",Z:"parallel","#":"progress-bar",":":"next"},d={p:"used to be short for --port <port> (a since-deleted flag) until curl 7.3",t:"used to be short for --upload (a since-deleted boolean flag) until curl 7.7",c:"used to be short for --continue (a since-deleted boolean flag) until curl 7.9","@":"used to be short for --create-dirs until curl 7.10.7",Z:"used to be short for --max-redirs <num> until curl 7.10.7",9:"used to be short for --crlf until curl 7.10.8",8:"used to be short for --stderr <file> until curl 7.10.8",7:"used to be short for --interface <name> until curl 7.10.8",6:"used to be short for --krb <level> (which itself used to be --krb4 <level>) until curl 7.10.8",5:"used to be another way to specify the url until curl 7.10.8","*":"used to be another way to specify the url until curl 7.49.0","~":"used to be short for --xattr until curl 7.49.0"},_=new Set(["connect-to","cookie","data","form","header","hsts","mail-rcpt","output","proxy-header","quote","resolve","telnet-option","upload-file","url-query","url"]);function h(e,t,n,r){r&&!r.has(n.name)&&(0,o.p4)(e,[n.name,t+" is not a supported option"+(n.removed?", it was removed in curl "+n.removed:"")])}function m(e,t,n){return Object.prototype.hasOwnProperty.call(e,t)||(e[t]=[]),e[t].push(n),e}function f(e,t,n,r){switch(n){case"data":case"data-ascii":return m(t,"data",["data",r]);case"data-binary":return m(t,"data",[r.startsWith("@")?"binary":"data",r]);case"data-raw":return m(t,"data",[r.startsWith("@")?"raw":"data",r]);case"data-urlencode":return m(t,"data",["urlencode",r]);case"json":return t.json=!0,m(t,"data",["json",r]);case"url-query":return r.startsWith("+")?m(t,"url-query",["raw",r.slice(1)]):m(t,"url-query",["urlencode",r]);case"form":return m(t,"form",{value:r,type:"form"});case"form-string":return m(t,"form",{value:r,type:"string"});case"aws-sigv4":t.authtype|=a.L0;break;case"oauth2-bearer":t.authtype|=a.H4;break;case"unix-socket":case"abstract-unix-socket":m(t,"unix-socket",r);break;case"trace":case"trace-ascii":case"stderr":case"libcurl":case"config":case"parallel-max":e[n]=r;break;case"language":return void(e[n]=r.toString())}return m(t,n,r)}function y(e,t,n,r){switch(n){case"digest":r?t.authtype|=a.iB:t.authtype&=~a.iB;break;case"proxy-digest":r?t.proxyauthtype|=a.iB:t.proxyauthtype&=~a.iB;break;case"negotiate":r?t.authtype|=a.AM:t.authtype&=~a.AM;break;case"proxy-negotiate":r?t.proxyauthtype|=a.AM:t.proxyauthtype&=~a.AM;break;case"ntlm":r?t.authtype|=a.bo:t.authtype&=~a.bo;break;case"proxy-ntlm":r?t.proxyauthtype|=a.bo:t.proxyauthtype&=~a.bo;break;case"ntlm-wb":r?t.authtype|=a.J_:t.authtype&=~a.J_;break;case"basic":r?t.authtype|=a.ct:t.authtype&=~a.ct;break;case"proxy-basic":r?t.proxyauthtype|=a.ct:t.proxyauthtype&=~a.ct;break;case"anyauth":r&&(t.authtype=a.MN);break;case"proxy-anyauth":r&&(t.proxyauthtype=a.MN);break;case"location":t.location=r;break;case"location-trusted":t.location=r,t["location-trusted"]=r;break;case"http1.0":t.httpVersion="1.0";break;case"http1.1":t.httpVersion="1.1";break;case"http2":t.httpVersion="2";break;case"http2-prior-knowledge":t.httpVersion="2-prior-knowledge";break;case"http3":t.httpVersion="3";break;case"http3-only":t.httpVersion="3-only";break;case"tlsv1":t.tlsVersion="1";break;case"tlsv1.0":t.tlsVersion="1.0";break;case"tlsv1.1":t.tlsVersion="1.1";break;case"tlsv1.2":t.tlsVersion="1.2";break;case"tlsv1.3":t.tlsVersion="1.3";break;case"verbose":case"version":case"trace-time":case"test-event":case"progress-bar":case"progress-meter":case"fail-early":case"styled-output":case"help":case"silent":case"show-error":case"parallel":case"parallel-immediate":case"stdin":e[n]=r;break;case"next":r&&t.url&&t.url.length>0&&t.url.length>=(t["upload-file"]||[]).length&&t.url.length>=(t.output||[]).length&&(t={authtype:a.ct,proxyauthtype:a.ct},e.configs.push(t));break;default:t[n]=r}return t}function g(e,t=i,n=l,u=p,m,g=[]){let w={authtype:a.ct,proxyauthtype:a.ct};const S={configs:[w],warnings:g},b=[];for(let a=1,i=!0;a<e.length;a++){const l=e[a];if(i&&l.startsWith("-"))if((0,s.eq)(l,"--"))i=!1;else if(l.startsWith("--")){const i=(0,s.WL)(l);if(i)throw new r.fA("this "+i.type+" could "+("command"===i.type?"return":"be")+" anything\n"+(0,o.TO)(i.syntaxNode));const u=l.toString(),p=u.slice(2);let d=n[p];if(void 0===d&&(d=t[p]),null===d)throw new r.fA("option "+u+": is ambiguous");if(void 0===d)throw new r.fA("option "+u+": is unknown");if("string"===d.type){if(a++,a>=e.length)throw new r.fA("option "+u+": requires parameter");f(S,w,d.name,e[a])}else w=y(S,w,d.name,c(u.slice(2)));h(S,u,d,m),b.push([d.name,u])}else{if(1===l.length){if(!Object.prototype.hasOwnProperty.call(u,""))throw new r.fA("option -: is unknown");{const e=u[""],n=t[e];if(null===n)throw new r.fA("option -: is unknown");w=y(S,w,n.name,c(e)),b.push([n.name,"-"])}}for(let n=1;n<l.length;n++){const s=l.get(n);if("string"!=typeof s)throw new r.fA("this "+s.type+" could "+("command"===s.type?"return":"be")+" anything\n"+(0,o.TO)(s.syntaxNode));if(!(0,r.zy)(u,s)){if((0,r.zy)(d,s))throw new r.fA("option "+l+": "+d[s]);throw new r.fA("option "+l+": is unknown")}const i=s,p=u[i],_=t[p];if(null===_)throw new r.fA("ambiguous short option -"+s);if("string"===_.type){let t;if(n+1<l.length)t=l.slice(n+1),n=l.length;else{if(!(a+1<e.length))throw new r.fA("option "+l.toString()+": requires parameter");a++,t=e[a]}f(S,w,_.name,t)}else w=y(S,w,_.name,c(p));i&&(h(S,"-"+i,_,m),b.push([_.name,"-"+i]))}}else{if("string"!=typeof l&&l.tokens.length&&"string"!=typeof l.tokens[0]){const e=1===l.tokens.length?"is":"begins with";g.push(["ambiguous argument","argument "+e+" a "+l.tokens[0].type+", assuming it's a URL\n"+(0,o.TO)(l.tokens[0].syntaxNode)])}f(S,w,"url",l),b.push(["url","--url"])}}for(const e of S.configs)for(const[t,n]of Object.entries(e))Array.isArray(n)&&!_.has(t)&&(e[t]=n[n.length-1]);return[S,b]}},6313:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{YB:()=>d,m_:()=>_});var s=n(6711),o=n(5385),a=n(5210),i=n(9238),l=e([o]);o=(l.then?(await l)():l)[0];const u=new Set([...o.xv,"compressed","no-compressed","netrc","netrc-optional","no-netrc","no-netrc-optional","cacert","cert","key","ciphers","insecure","no-insecure","anyauth","no-anyauth","digest","no-digest","aws-sigv4","negotiate","no-negotiate","ntlm","no-ntlm","ntlm-wb","no-ntlm-wb","unix-socket","abstract-unix-socket","max-time","location","no-location","location-trusted","no-location-trusted","upload-file","output","form","form-string"]);function c(e,t){if(!e.data||!e.data.isString())return;const n=e.data.toString(),r=e.headers.getContentType();if("application/json"===r)try{return[JSON.parse(n),"json"]}catch(e){}else if("application/x-www-form-urlencoded"===r){if(e.dataArray&&1===e.dataArray.length&&!(e.dataArray[0]instanceof s.vZ)&&!e.dataArray[0].name){const n=e.dataArray[0].filetype,r=e.dataArray[0].filename.toString();return"urlencode"===n&&t.push(["urlencoded-file","the file needs to be urlencoded: "+JSON.stringify(r)]),[r,"src"]}const[n,r]=(0,a.JO)(e.data);if(r)return[Object.fromEntries(r.map((e=>[e[0].toString(),Array.isArray(e[1])?e[1].map((e=>e.toString())):e[1].toString()]))),"form-urlencoded"];if(n)return[n.map((e=>[e[0].toString(),e[1].toString()])),"form-urlencoded"]}}function p(e,t=[]){const n=(0,o.dH)(e,t,{dataReadsFile:!0});n.dataReadsFile&&n.dataArray&&(n.dataArray.length>1||!(n.dataArray[0]instanceof s.vZ)&&n.dataArray[0].name)&&t.push(["unsafe-data","the generated body is wrong, "+JSON.stringify("@"+n.dataReadsFile)+" means read the file "+JSON.stringify(n.dataReadsFile)]);const r={url:n.urls[0].url.toString(),method:n.urls[0].method.toString()};if(n.multipartUploads){const e={};for(const r of n.multipartUploads){const n=r.name.toString();e[n]={},"content"in r?e[n].content=r.content.toString():(e[n].filename=r.contentFile.toString(),r.filename&&!(0,s.eq)(r.filename,r.contentFile)&&t.push(["multipart-fake-filename","Ansible doesn't allow reading from a file and changing the sent filename: "+JSON.stringify(r.contentFile.toString())])),"contentType"in r&&r.contentType&&(e[n].mime_type=r.contentType.toString())}r.body=e,r.body_format="form-multipart"}else if(n.data){const e=c(n,t);if(e){const[t,n]=e;"src"===n?r.src=t:(r.body=t,"raw"!==n&&(r.body_format=n))}else r.body=n.data.toString()}else n.urls[0].uploadFile&&(r.src=n.urls[0].uploadFile.toString());if(n.urls[0].output&&(r.dest=n.urls[0].output.toString()),n.headers.length){r.headers={};for(const e of n.headers){const[t,n]=e;null!==n&&(r.headers[t.toString()]=n.toString())}}if(n.urls[0].auth){const[e,t]=n.urls[0].auth;e.toBool()&&(r.url_username=e.toString()),t.toBool()&&(r.url_password=t.toString())}switch(n.authType){case"basic":break;case"negotiate":r.use_gssapi=!0;break;case"ntlm":case"ntlm-wb":t.push(["ntlm","Ansible doesn't support NTLM authentication."])}if(n.cacert&&(r.ca_path=n.cacert.toString()),n.cert){const[e,s]=n.cert;r.client_cert=e.toString(),s&&t.push(["cert-password","Ansible does not support client certificate passwords: "+JSON.stringify(s.toString())])}
1if(n.key&&(r.client_key=n.key.toString()),n.ciphers&&(r.ciphers=n.ciphers.toString()),n.insecure&&(r.validate_certs=!1),"ignored"===n.netrc&&(r.use_netrc=!1),!1===n.compressed&&(r.decompress=!1),!1===n.followRedirects?r.follow_redirects="none":!0===n.followRedirects&&(r.follow_redirects=n.followRedirectsTrusted?"all":"safe"),n.timeout){const e=n.timeout.toString(),s=parseInt(e);isNaN(s)?(r.timeout=e,t.push(["ansible-timeout-not-int","couldn't parse timeout as an integer: "+JSON.stringify(e)])):r.timeout=s,t.push(["ansible-timeout","Ansible's timeout is socket-level but curl's is for the entire request."])}return n.unixSocket&&(r.unix_socket=n.unixSocket.toString()),i.stringify([{name:n.urls[0].urlWithoutQueryList.toString(),uri:r,register:"result"}],100,2)}function d(e,t=[]){return[p((0,o.qg)(e,u,t),t),t]}function _(e){return d(e)[0]}r()}catch(h){r(h)}}))},5648:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{$9:()=>g,D7:()=>w});var s=n(6711),o=n(5385),a=e([o]);o=(a.then?(await a)():a)[0];const i=new Set([...o.xv,"disallow-username-in-url","path-as-is","alt-svc","unix-socket","abstract-unix-socket","compressed","no-compressed","verbose","no-verbose","proxy","proxy-user","proxytunnel","noproxy","preproxy","proxy-anyauth","proxy-basic","proxy-digest","proxy-negotiate","proxy-ntlm","proxy-ca-native","proxy-cacert","proxy-capath","proxy-cert-type","proxy-cert","proxy-ciphers","proxy-crlfile","proxy-header","proxy-http2","proxy-insecure","proxy-key","proxy-key-type","proxy-pass","proxy-pinnedpubkey","proxy-service-name","proxy-ssl-allow-beast","proxy-ssl-auto-client-cert","proxy-tls13-ciphers","proxy-tlsuser","proxy-tlspassword","proxy-tlsauthtype","proxy-tlsv1","socks4","socks4a","socks5","socks5-hostname","socks5-basic","socks5-gssapi","socks5-gssapi-nec","socks5-gssapi-service","haproxy-clientip","haproxy-protocol","interface","netrc","netrc-file","netrc-optional","digest","no-digest","negotiate","no-negotiate","service-name","ntlm","no-ntlm","ntlm-wb","no-ntlm-wb","aws-sigv4","delegation","oauth2-bearer","ipv4","ipv6","local-port","ftp-skip-pasv-ip","sasl-authzid","sasl-ir","tr-encoding","tcp-fastopen","proto-default","ignore-content-length","no-ignore-content-length","remote-time","fail","continue-at","speed-limit","speed-time","limit-rate","max-filesize","http0.9","http1.0","http1.1","http2","http2-prior-knowledge","http3","http3-only","cookie-jar","junk-session-cookies","crlf","no-crlf","use-ascii","pass","cacert","capath","crlfile","pinnedpubkey","curves","cert","cert-status","cert-type","key","key-type","ca-native","ssl-allow-beast","ciphers","tls13-ciphers","tlsuser","tlspassword","tlsauthtype","ssl","ssl-auto-client-cert","ssl-no-revoke","ssl-reqd","ssl-revoke-best-effort","tlsv1","tlsv1.0","tlsv1.1","tlsv1.2","tlsv1.3","tls-max","hsts","alpn","no-alpn","form","form-string","form-escape","no-form-escape","doh-url","doh-cert-status","location","no-location","location-trusted","no-location-trusted","max-redirs","post301","post302","post303","max-time","connect-timeout","expect100-timeout","happy-eyeballs-timeout-ms","resolve","connect-to","keepalive","no-keepalive","keepalive-time","insecure","no-insecure"]),l=/"|\\|\p{C}|[^ \P{Z}]/gu;function u(e){return'"'+e.replace(l,(e=>{switch(e){case"�":return"\\a";case"\b":return"\\b";case"\f":return"\\f";case"\n":return"\\n";case"\r":return"\\r";case"\t":return"\\t";case"\v":return"\\v";case"\\":return"\\\\";case'"':return'\\"'}const t=e.codePointAt(0).toString(16);return t.length<=2?"\\x"+t.padStart(2,"0"):t.length<=4?"\\u"+t.padStart(4,"0"):"\\U"+t.padStart(8,"0")}))+'"'}function c(e,t){const n=[];for(const r of e.tokens)"string"==typeof r?n.push(u(r)):"variable"===r.type?(n.push("getenv("+u(r.value)+")"),t.add("stdlib.h")):"command"===r.type&&(n.push("popen("+u(r.value)+', "r")'),t.add("stdio.h"));return n.join(" + ")}function p(e,t){if(e.isString()){const t=parseFloat(e.toString());if(!Number.isNaN(t))return Math.floor(1e3*t)+"L"}return"(long)(atof("+c(e,t)+") * 1000)"}function d(e,t){return e.isString()?e.toString():"atoi("+c(e,t)+")"}function _(e,t){return e.isString()?e.toString()+"L":"atol("+c(e,t)+")"}const h={basic:"CURLAUTH_BASIC",negotiate:"CURLAUTH_NEGOTIATE",digest:"CURLAUTH_DIGEST",ntlm:"CURLAUTH_NTLM","ntlm-wb":"CURLAUTH_NTLM_WB",bearer:"CURLAUTH_BEARER","aws-sigv4":"CURLAUTH_AWS_SIGV4",none:"CURLAUTH_NONE"};function m(e,t=[],n){let r="";r+="int main(int argc, char *argv[])\n",r+="{\n",r+="  CURLcode ret;\n",r+="  CURL *hnd;\n";let o="",a="";a+="  hnd = curl_easy_init();\n";let i="";if(i+="  curl_easy_cleanup(hnd);
1\n",i+="  hnd = NULL;\n",e.tcpFastopen&&(a+="  curl_easy_setopt(hnd, CURLOPT_TCP_FASTOPEN, 1L);\n"),a+="  curl_easy_setopt(hnd, CURLOPT_BUFFERSIZE, "+(e.limitRate?_(e.limitRate,n):"102400L")+");\n",e.localPort){const[t,r]=e.localPort;a+="  curl_easy_setopt(hnd, CURLOPT_LOCALPORT, "+_(t,n)+");\n";let s="1L";r&&(s=_(r,n)+"-"+_(t,n)),a+="  curl_easy_setopt(hnd, CURLOPT_LOCALPORTRANGE, "+s+");\n"}if(a+="  curl_easy_setopt(hnd, CURLOPT_URL, "+c(e.urls[0].url,n)+");\n",a+="  curl_easy_setopt(hnd, CURLOPT_NOPROGRESS, 1L);\n",e.oauth2Bearer&&(a+="  curl_easy_setopt(hnd, CURLOPT_XOAUTH2_BEARER, "+c(e.oauth2Bearer,n)+");\n"),e.proxy&&(a+="  curl_easy_setopt(hnd, CURLOPT_PROXY, "+c(e.proxy,n)+");\n"),e.proxyType&&("http2"===e.proxyType?a+="  curl_easy_setopt(hnd, CURLOPT_PROXYTYPE, 3L);\n":"http1"===e.proxyType?a+="  curl_easy_setopt(hnd, CURLOPT_PROXYTYPE, (long)CURLPROXY_HTTP_1_0);\n":"socks4"===e.proxyType?a+="  curl_easy_setopt(hnd, CURLOPT_PROXYTYPE, (long)CURLPROXY_SOCKS4);\n":"socks4a"===e.proxyType?a+="  curl_easy_setopt(hnd, CURLOPT_PROXYTYPE, (long)CURLPROXY_SOCKS4A);\n":"socks5"===e.proxyType?a+="  curl_easy_setopt(hnd, CURLOPT_PROXYTYPE, (long)CURLPROXY_SOCKS5);\n":"socks5-hostname"===e.proxyType&&(a+="  curl_easy_setopt(hnd, CURLOPT_PROXYTYPE, (long)CURLPROXY_SOCKS5_HOSTNAME);\n")),e.proxyAuth&&(a+="  curl_easy_setopt(hnd, CURLOPT_PROXYUSERPWD, "+c(e.proxyAuth,n)+");\n"),e.proxytunnel&&(a+="  curl_easy_setopt(hnd, CURLOPT_HTTPPROXYTUNNEL, 1L);\n"),e.proxyAuth&&(a+="  curl_easy_setopt(hnd, CURLOPT_PROXYAUTH, (long)"+h[e.proxyAuthType]+");\n"),e.preproxy&&(a+="  curl_easy_setopt(hnd, CURLOPT_PRE_PROXY, "+c(e.preproxy,n)+");\n"),e.noproxy&&(a+="  curl_easy_setopt(hnd, CURLOPT_NOPROXY, "+c(e.noproxy,n)+");\n"),e.fail&&(a+="  curl_easy_setopt(hnd, CURLOPT_FAILONERROR, 1L);\n"),e.netrc&&(a+="  curl_easy_setopt(hnd, CURLOPT_NETRC, (long)"+{optional:"CURL_NETRC_OPTIONAL",required:"CURL_NETRC_REQUIRED",ignored:"CURL_NETRC_IGNORED"}[e.netrc||"ignored"]+");\n"),e.netrcFile&&(a+="  curl_easy_setopt(hnd, CURLOPT_NETRC_FILE, "+c(e.netrcFile,n)+");\n"),e.useAscii&&(a+="  curl_easy_setopt(hnd, CURLOPT_TRANSFERTEXT, 1L);\n"),e.urls[0].auth){const[t,r]=e.urls[0].auth;a+="  curl_easy_setopt(hnd, CURLOPT_USERPWD, "+c((0,s.__)(t,":",r),n)+");\n"}if(e.timeout&&(a+="  curl_easy_setopt(hnd, CURLOPT_TIMEOUT_MS, "+p(e.timeout,n)+");\n"),e.urls[0].uploadFile);else if(e.multipartUploads){r+="  curl_mime *mime1;\n",r+="  curl_mimepart *part1;\n",o+="  mime1 = NULL;\n",a+="  mime1 = curl_mime_init(hnd);\n";for(const r of e.multipartUploads)a+="  part1 = curl_mime_addpart(mime1);\n","contentFile"in r&&r.contentFile?a+="  curl_mime_filedata(part1, "+c(r.contentFile,n)+");\n":"content"in r&&r.content&&(a+="  curl_mime_data(part1, "+c(r.content,n)+", CURL_ZERO_TERMINATED);\n"),"encoder"in r&&r.encoder&&(a+="  curl_mime_encoder(part1, "+c(r.encoder,n)+");\n"),!("filename"in r)||!r.filename||"contentFile"in r&&r.contentFile&&(0,s.eq)(r.filename,r.contentFile)?!r.filename&&"contentFile"in r&&r.contentFile&&(a+="  curl_mime_filename(part1, NULL);\n"):a+="  curl_mime_filename(part1, "+c(r.filename,n)+");\n",a+="  curl_mime_name(part1, "+c(r.name,n)+");\n","contentType"in r&&r.contentType&&(a+="  curl_mime_type(part1, "+c(r.contentType,n)+");\n"),"headers"in r&&r.headers&&t.push(["multipart-headers","multipart headers are not supported: "+r.headers.map((e=>e.toString())).join(", ")]),"headerFiles"in r&&r.headerFiles&&t.push(["multipart-headers","multipart header files are not supported: "+r.headerFiles.map((e=>e.toString())).join(", ")]);a+="  curl_easy_setopt(hnd, CURLOPT_MIMEPOST, mime1);\n",i+="  curl_mime_free(mime1);\n",i+="  mime1 = NULL;\n"}else e.data&&(a+="  curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "+c(e.data,n)+");\n",a+="  curl_easy_setopt(hnd, CURLOPT_POSTFIELDSIZE_LARGE, (curl_off_t)"+e.data.length.toString()+");\n");e.formEscape&&(a+="  curl_easy_setopt(hnd, CURLOPT_MIME_OPTIONS, 1L);\n"),e.urls[0].auth&&(a+="  curl_easy_setopt(hnd, CURLOPT_HTTPAUTH, (long)"+h[e.authType]+");\n");const l=[];for(const[t,r]of e.headers){const e=t.toLowerCase();(0,s.eq)(e,"user-agent")||(0,s.eq)(e,"referer")||(null===r?l.push("  headers = curl_slist_append(headers, "+c((0,s.__)(t,":"),n)+");\n"):(0,s.eq)(r,"")?l.push("  headers = curl_slist_append(headers, "+c((0,s.__)(t,";"),n)+");\n"):l.push("  headers = curl_slist_append(headers, "+c((0,s.__)(t,": ",r),n)+");\n"))}l.length&&(r+="  struct curl_slist *headers;\n",o+="  headers = NULL;\n",o+=l.join(""),a+="  curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n",i+="  curl_slist_free_all(headers);\n",i+="  headers = NULL;\n");const u=e.headers.get("referer");u&&(a+="  curl_easy_setopt(hnd, CURLOPT_REFERER, "+c(u,n)+");\n");const m=e.headers.get("user-agent");
1if(m?a+="  curl_easy_setopt(hnd, CURLOPT_USERAGENT, "+c(m,n)+");\n":void 0===m&&(a+='  curl_easy_setopt(hnd, CURLOPT_USERAGENT, "curl/8.2.1");\n'),e.followRedirects&&(a+="  curl_easy_setopt(hnd, CURLOPT_FOLLOWLOCATION, 1L);\n",e.followRedirectsTrusted&&(a+="  curl_easy_setopt(hnd, CURLOPT_UNRESTRICTED_AUTH, 1L);\n")),e.awsSigV4&&(a+="  curl_easy_setopt(hnd, CURLOPT_AWS_SIGV4, "+c(e.awsSigV4,n)+");\n"),e.refererAuto&&(a+="  curl_easy_setopt(hnd, CURLOPT_AUTOREFERER, 1L);\n"),e.proxyHeaders.length){r+="  struct curl_slist *proxy_headers;\n",o&&(o+="\n"),o+="  proxy_headers = NULL;\n";for(const[t,r]of e.proxyHeaders)null===r?o+="  proxy_headers = curl_slist_append(proxy_headers, "+c((0,s.__)(t,":"),n)+");\n":(0,s.eq)(r,"")?o+="  proxy_headers = curl_slist_append(proxy_headers, "+c((0,s.__)(t,";"),n)+");\n":o+="  proxy_headers = curl_slist_append(proxy_headers, "+c((0,s.__)(t,": ",r),n)+");\n";a+="  curl_easy_setopt(hnd, CURLOPT_PROXYHEADER, proxy_headers);\n",a+="  curl_easy_setopt(hnd, CURLOPT_HEADEROPT, (long)CURLHEADER_SEPARATE);\n",i+="  curl_slist_free_all(proxy_headers);\n",i+="  proxy_headers = NULL;\n"}a+="  curl_easy_setopt(hnd, CURLOPT_MAXREDIRS, "+_(e.maxRedirects||new s.vZ("50"),n)+");\n";let f="CURL_HTTP_VERSION_2TLS";if(e.httpVersion&&(f={"1.0":"CURL_HTTP_VERSION_1_0",1.1:"CURL_HTTP_VERSION_1_1",2:"CURL_HTTP_VERSION_2_0","2-prior-knowledge":"CURL_HTTP_VERSION_2_PRIOR_KNOWLEDGE",3:"CURL_HTTP_VERSION_3","3-only":"CURL_HTTP_VERSION_3ONLY"}[e.httpVersion]),a+="  curl_easy_setopt(hnd, CURLOPT_HTTP_VERSION, (long)"+f+");\n",e.http0_9&&(a+="  curl_easy_setopt(hnd, CURLOPT_HTTP09_ALLOWED, 1L);\n"),e.post301||e.post302||e.post303){const t=[];e.post301&&t.push("CURL_REDIR_POST_301"),e.post302&&t.push("CURL_REDIR_POST_302"),e.post303&&t.push("CURL_REDIR_POST_303"),a+="  curl_easy_setopt(hnd, CURLOPT_POSTREDIR, "+t.join(" | ")+");\n"}if(e.compressed&&(a+='  curl_easy_setopt(hnd, CURLOPT_ACCEPT_ENCODING, "");\n'),e.transferEncoding&&(a+="  curl_easy_setopt(hnd, CURLOPT_TRANSFER_ENCODING, 1L);\n"),(e.speedLimit||e.speedTime)&&(a+="  curl_easy_setopt(hnd, CURLOPT_LOW_SPEED_LIMIT, "+_(e.speedLimit||new s.vZ("1"),n)+");\n",a+="  curl_easy_setopt(hnd, CURLOPT_LOW_SPEED_TIME, "+_(e.speedTime||new s.vZ("30"),n)+");\n"),e.limitRate){const t=c(e.limitRate,n);a+="  curl_easy_setopt(hnd, CURLOPT_MAX_SEND_SPEED_LARGE, (curl_off_t)"+t+");\n",a+="  curl_easy_setopt(hnd, CURLOPT_MAX_RECV_SPEED_LARGE, (curl_off_t)"+t+");\n"}if(e.continueAt&&!(0,s.eq)(e.continueAt,"-")&&(a+="  curl_easy_setopt(hnd, CURLOPT_RESUME_FROM_LARGE, (curl_off_t)"+d(e.continueAt,n)+");\n"),e.pass&&(a+="  curl_easy_setopt(hnd, CURLOPT_KEYPASSWD, "+c(e.pass,n)+");\n"),e.proxyPass&&(a+="  curl_easy_setopt(hnd, CURLOPT_PROXY_KEYPASSWD, "+c(e.proxyPass,n)+");\n"),e.cacert&&(a+="  curl_easy_setopt(hnd, CURLOPT_CAINFO, "+c(e.cacert,n)+");\n"),e.proxyCacert&&(a+="  curl_easy_setopt(hnd, CURLOPT_PROXY_CAINFO, "+c(e.proxyCacert,n
1)+");\n"),(e.capath||e.proxyCapath)&&(e.capath?(a+="  curl_easy_setopt(hnd, CURLOPT_CAPATH, "+c(e.capath,n)+");\n",a+="  curl_easy_setopt(hnd, CURLOPT_PROXY_CAPATH, "+c(e.proxyCapath||e.capath,n)+");\n"):e.proxyCapath&&(a+="  curl_easy_setopt(hnd, CURLOPT_PROXY_CAPATH, "+c(e.proxyCapath,n)+");\n")),(e.crlfile||e.proxyCrlfile)&&(e.crlfile?(a+="  curl_easy_setopt(hnd, CURLOPT_CRLFILE, "+c(e.crlfile,n)+");\n",a+="  curl_easy_setopt(hnd, CURLOPT_PROXY_CRLFILE, "+c(e.proxyCrlfile||e.crlfile,n)+");\n"):e.proxyCrlfile&&(a+="  curl_easy_setopt(hnd, CURLOPT_PROXY_CRLFILE, "+c(e.proxyCrlfile,n)+");\n")),e.pinnedpubkey&&(a+="  curl_easy_setopt(hnd, CURLOPT_PINNEDPUBLICKEY, "+c(e.pinnedpubkey,n)+");\n"),e.curves&&(a+="  curl_easy_setopt(hnd, CURLOPT_SSL_EC_CURVES, "+c(e.curves,n)+");\n"),e.cert){const[t,r]=e.cert;r&&(a+="  curl_easy_setopt(hnd, CURLOPT_KEYPASSWD, "+c(r,n)+");\n"),a+="  curl_easy_setopt(hnd, CURLOPT_SSLCERT, "+c(t,n)+");\n"}e.proxyCert&&(a+="  curl_easy_setopt(hnd, CURLOPT_PROXY_SSLCERT, "+c(e.proxyCert,n)+");\n"),e.certType&&(a+="  curl_easy_setopt(hnd, CURLOPT_SSLCERTTYPE, "+c(e.certType,n)+");\n"),e.proxyCertType&&(a+="  curl_easy_setopt(hnd, CURLOPT_PROXY_SSLCERTTYPE, "+c(e.proxyCertType,n)+");\n"),e.key&&(a+="  curl_easy_setopt(hnd, CURLOPT_SSLKEY, "+c(e.key,n)+");\n"),e.proxyKey&&(a+="  curl_easy_setopt(hnd, CURLOPT_PROXY_SSLKEY, "+c(e.proxyKey,n)+");\n"),e.keyType&&(a+="  curl_easy_setopt(hnd, CURLOPT_SSLKEYTYPE, "+c(e.keyType,n)+");\n"),e.proxyKeyType&&(a+="  curl_easy_setopt(hnd, CURLOPT_PROXY_SSLKEYTYPE, "+c(e.proxyKeyType,n)+");\n"),e.insecure&&(a+="  curl_easy_setopt(hnd, CURLOPT_SSL_VERIFYPEER, 0L);\n",a+="  curl_easy_setopt(hnd, CURLOPT_SSL_VERIFYHOST, 0L);\n"),e.proxyInsecure&&(a+="  curl_easy_setopt(hnd, CURLOPT_PROXY_SSL_VERIFYPEER, 0L);\n",a+="  curl_easy_setopt(hnd, CURLOPT_PROXY_SSL_VERIFYHOST, 0L);\n"),e.certStatus&&(a+="  curl_easy_setopt(hnd, CURLOPT_SSL_VERIFYSTATUS, 1L);\n"),e.dohCertStatus&&(a+="  curl_easy_setopt(hnd, CURLOPT_DOH_SSL_VERIFYSTATUS, 1L);\n");let y=null;e.tlsVersion&&(y={1:"CURL_SSLVERSION_TLSv1","1.0":"CURL_SSLVERSION_TLSv1_0",1.1:"CURL_SSLVERSION_TLSv1_1",1.2:"CURL_SSLVERSION_TLSv1_2",1.3:"CURL_SSLVERSION_TLSv1_3"}[e.tlsVersion]);let g=null;if(e.tlsMax)if(e.tlsMax.isString()){const n=e.tlsMax.toString();switch(n){case"1.0":g="CURL_SSLVERSION_MAX_TLSv1_0";break;case"1.1":g="CURL_SSLVERSION_MAX_TLSv1_1";break;case"1.2":g="CURL_SSLVERSION_MAX_TLSv1_2";break;case"1.3":g="CURL_SSLVERSION_MAX_TLSv1_3";break;case"default":g="CURL_SSLVERSION_MAX_DEFAULT";break;default:t.push(["tls-max","unknown value for --tls-max: "+JSON.stringify(n)])}}else t.push(["tls-max","unparseable value for --tls-max: "+JSON.stringify(e.tlsMax.toString())]);if((y||g)&&(y||(y="CURL_SSLVERSION_DEFAULT"),a+="  curl_easy_setopt(hnd, CURLOPT_SSLVERSION, (long)",a+=g?"("+y+" | "+g+")":y,a+=");\n"),e.proxyTlsv1&&(a+="  curl_easy_setopt(hnd, CURLOPT_PROXY_SSLVERSION, (long)CURL_SSLVERSION_TLSv1);\n"),e.sslAllowBeast||e.sslNoRevoke||e.sslRevokeBestEffort||e.caNative||e.sslAutoClientCert){const t=[];e.sslAllowBeast&&t.push("CURLSSLOPT_ALLOW_BEAST"),e.sslNoRevoke&&t.push("CURLSSLOPT_NO_REVOKE"),e.sslRevokeBestEffort&&t.push("CURLSSLOPT_REVOKE_BEST_EFFORT"),e.caNative&&t.push("CURLSSLOPT_NATIVE_CA"),e.sslAutoClientCert&&t.push("CURLSSLOPT_AUTO_CLIENT_CERT"),a+="  curl_easy_setopt(hnd, CURLOPT_SSL_OPTIONS, (long)"+(t.length>1?"(":"")+t.join(" | ")+(t.length>1?")":"")+");\n"}if(e.proxySslAllowBeast||e.proxyCaNative||e.proxySslAutoClientCert){const t=[];e.proxySslAllowBeast&&t.push("CURLSSLOPT_ALLOW_BEAST"),e.proxyCaNative&&t.push("CURLSSLOPT_NATIVE_CA"),e.proxySslAutoClientCert&&t.push("CURLSSLOPT_AUTO_CLIENT_CERT"),a+="  curl_easy_setopt(hnd, CURLOPT_PROXY_SSL_OPTIONS, (long)"+t.join(" | (long)")+");\n"}if(e.pathAsIs&&(a+="  curl_easy_setopt(hnd, CURLOPT_PATH_AS_IS, 1L);\n"),e.remoteTime&&(a+="  curl_easy_setopt(hnd, CURLOPT_FILETIME, 1L);\n"),e.crlf&&(a+="  curl_easy_setopt(hnd, CURLOPT_CRLF, 1L);\n"),e.cookieFiles)for(const t of e.cookieFiles)a+="  curl_easy_setopt(hnd, CURLOPT_COOKIEFILE, "+c(t,n)+");\n";e.cookieJar&&(a+="  curl_easy_setopt(hnd, CURLOPT_COOKIEJAR, "+c(e.cookieJar,n)+");\n"),e.junkSessionCookies&&(a+="  curl_easy_setopt(hnd, CURLOPT_COOKIESESSION, 1L);\n");let w="GET";if((e.data||e.multipartUploads)&&(w="POST"),(0,s.eq)(e.urls[0].method,w)||(a+="  curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "+c(e.urls[0].method,n)+");\n"),e.interface&&(a+="  curl_easy_setopt(hnd, CURLOPT_INTERFACE, "+c(e.interface,n)+");\n"),e.krb&&(a+="  curl_easy_setopt(hnd, CURLOPT_KRBLEVEL, "+c(e.krb,n)+");\n"),e.connectTimeout&&(a+="  curl_easy_setopt(hnd, CURLOPT_CONNECTTIMEOUT_MS, "+p(e.connectTimeout,n)+");\n"),e.dohUrl&&(a+="  curl_easy_setopt(hnd, CURLOPT_DOH_URL, "+c(e.dohUrl,n)+");\n"),e.ciphers&&(a+="  curl_easy_setopt(hnd, CURLOPT_SSL_CIPHER_LIST, "+c(e.ciphers,n)+");\n"),e.proxyCiphers&&(a+="  curl_easy_setopt(hnd, CURLOPT_PROXY_SSL_CIPHER_LIST, "+c(e.proxyCiphers,n)+");\n"),e.tls13Ciphers&&(a+="  curl_easy_setopt(hnd, CURLOPT_TLS13_CIPHERS, "+c(e.tls13Ciphers,n)+");\n"),e.proxyTls13Ciphers&&(a+="  curl_easy_setopt(hnd, CURLOPT_PROXY_TLS13_CIPHERS, "+c(e.proxyTls13Ciphers,n)+");\n"),e.verbose&&(a+="  curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L);\n"),e.maxFilesize&&(a+="  curl_easy_setopt(hnd, CURLOPT_MAXFILESIZE_LARGE, (curl_off_t)"+_(e.maxFilesize,n)+");\n"),e.ipv6?a+="  curl_easy_setopt(hnd, CURLOPT_IPRESOLVE, 2L);\n":e.ipv4&&(a+="  curl_easy_setopt(hnd, CURLOPT_IPRESOLVE, 1L);\n"),(e.sslReqd||e.ssl)&&(e.sslReqd?a+="  curl_easy_setopt(hnd, CURLOPT_USE_SSL, (long)CURLUSESSL_ALL);\n":e.ssl&&(a+="  curl_easy_setopt(hnd, CURLOPT_USE_SSL, (long)CURLUSESSL_TRY);\n")),e.socks5GssapiNec&&(a+="  curl_easy_setopt(hnd, CURLOPT_SOCKS5_GSSAPI_NEC, 1L);\n"),e.socks5Basic?a+="  curl_easy_setopt(hnd, CURLOPT_SOCKS5_AUTH, (long)CURLAUTH_BASIC);\n":e.socks5Gssapi&&(a+="  curl_easy_setopt(hnd, CURLOPT_SOCKS5_AUTH, (long)CURLAUTH_GSSNEGOTIATE);\n"),e.socks5GssapiService&&(a+="  curl_easy_setopt(hnd, CURLOPT_PROXY_SERVICE_NAME, "+c(e.socks5GssapiService,n)+");\n"),e.serviceName&&(a+="  curl_easy_setopt(hnd, CURLOPT_SERVICE_NAME, "+c(e.serviceName,n)+");\n"),e.proxyServiceName&&(a+="  curl_easy_setopt(hnd, CURLOPT_PROXY_SERVICE_NAME, "+c(e.proxyServiceName,n)+");\n"),e.ignoreContentLength&&(a+="  curl_easy_setopt(hnd, CURLOPT_IGNORE_CONTENT_LENGTH, 1L);\n"),!1!==e.ftpSkipPasvIp&&(a+="  curl_easy_setopt(hnd, CURLOPT_FTP_SKIP_PASV_IP, 1L);\n"),!1!==e.keepAlive&&(a+="  curl_easy_setopt(hnd, CURLOPT_TCP_KEEPALIVE, 1L);\n",e.keepAliveTime)){const t=_(e.keepAliveTime,n);a+="  curl_easy_setopt(hnd, CURLOPT_TCP_KEEPIDLE, "+t+");\n",a+="  curl_easy_setopt(hnd, CURLOPT_TCP_KEEPINTVL, "+t+");\n"}if(e.proto&&(a+="  curl_easy_setopt(hnd, CURLOPT_PROTOCOLS_STR, "+c(e.proto,n)+");\n"),e.protoRedir&&(a+="  curl_easy_setopt(hnd, CURLOPT_REDIR_PROTOCOLS_STR, "+c(e.protoRedir,n)+");\n"),e.resolve){r+="  struct curl_slist *resolve;\n",o&&(o+="\n"),o+="  resolve = NULL;\n";for(const t of e.resolve)o+="  resolve = curl_slist_append(resolve, "+c(t,n)+");\n";a+="  curl_easy_setopt(hnd, CURLOPT_RESOLVE, resolve);\n",i+="  curl_slist_free_all(resolve);\n",i+="  resolve = NULL;\n"}if(e.connectTo){r+="  struct curl_slist *connect_to;\n",o&&(o+="\n"),o+="  connect_to = NULL;\n";for(const t of e.connectTo)o+="  connect_to = curl_slist_append(connect_to, "+c(t,n)+");\n";a+="  curl_easy_setopt(hnd, CURLOPT_CONNECT_TO, connect_to);\n",i+="  curl_slist_free_all(connect_to);\n",i+="  connect_to = NULL;\n"}e.tlsuser&&(a+="  curl_easy_setopt(hnd, CURLOPT_TLSAUTH_USERNAME, "+c(e.tlsuser,n)+");\n"),e.tlspassword&&(a+="  curl_easy_setopt(hnd, CURLOPT_TLSAUTH_PASSWORD, "+c(e.tlspassword,n)+");\n"),e.tlsauthtype&&(a+="  curl_easy_setopt(hnd, CURLOPT_TLSAUTH_TYPE, "+c(e.tlsauthtype,n)+");\n"),e.proxyTlsuser&&(a+="  curl_easy_setopt(hnd, CURLOPT_PROXY_TLSAUTH_USERNAME, "+c(e.proxyTlsuser,n)+");\n"),e.proxyTlspassword&&(a+="  curl_easy_setopt(hnd, CURLOPT_PROXY_TLSAUTH_PASSWORD, "+c(e.proxyTlspassword,n)+");\n"),e.proxyTlsauthtype&&(a+="  curl_easy_setopt(hnd, CURLOPT_PROXY_TLSAUTH_TYPE, "+c(e.proxyTlsauthtype,n)+");\n"),e.delegation&&((0,s.eq)(e.delegation,"always")?a+="  curl_easy_setopt(hnd, CURLOPT_GSSAPI_DELEGATION, 2L);\n":(0,s.eq)(e.delegation,"policy")&&(a+="  curl_easy_setopt(hnd, CURLOPT_GSSAPI_DELEGATION, 1L);\n")),e.saslAuthzid&&(a+="  curl_easy_setopt(hnd, CURLOPT_SASL_AUTHZID, "+c(e.saslAuthzid,n)+");\n"),e.saslIr&&(a+="  curl_easy_setopt(hnd, CURLOPT_SASL_IR, 1L);\n"),!1===e.alpn&&(a+="  curl_easy_setopt(hnd, CURLOPT_SSL_ENABLE_ALPN, 0L);\n"),e.unixSocket&&(a+="  curl_easy_setopt(hnd, CURLOPT_UNIX_SOCKET_PATH, "+c(e.unixSocket,n)+");\n"),e.abstractUnixSocket&&(a+="  curl_easy_setopt(hnd, CURLOPT_ABSTRACT_UNIX_SOCKET, "+c(e.abstractUnixSocket,n)+");\n"),e.protoDefault&&(a+="  curl_easy_setopt(hnd, CURLOPT_DEFAULT_PROTOCOL, "+c(e.protoDefault,n)+");\n"),e.expect100Timeout&&(a+="  curl_easy_setopt(hnd, CURLOPT_EXPECT_100_TIMEOUT_MS, "+p(e.expect100Timeout,n)+");\n"),e.happyEyeballsTimeoutMs&&(a+="  curl_easy_setopt(hnd, CURLOPT_HAPPY_EYEBALLS_TIMEOUT_MS, "+_(e.happyEyeballsTimeoutMs,n)+");\n"),e.haproxyClientIp&&(a+="  curl_easy_setopt(hnd, CURLOPT_HAPROXY_CLIENT_IP, "+c(e.haproxyClientIp,n)+");\n"),e.haproxyProtocol&&(a+="  curl_easy_setopt(hnd, CURLOPT_HAPROXYPROTOCOL, 1L);
1\n"),e.disallowUsernameInUrl&&(a+="  curl_easy_setopt(hnd, CURLOPT_DISALLOW_USERNAME_IN_URL, 1L);\n"),e.altSvc&&(a+="  curl_easy_setopt(hnd, CURLOPT_ALTSVC, "+c(e.altSvc,n)+");\n"),e.hsts&&(a+="  curl_easy_setopt(hnd, CURLOPT_HSTS, "+c(e.hsts[e.hsts.length-1],n)+");\n"),a+="\n",a+="  ret = curl_easy_perform(hnd);\n";let S="";return S+="  return (int)ret;\n",S+="}\n",r+(o?"\n"+o:"")+"\n"+a+"\n"+i+"\n  return (int)ret;\n}\n"}function f(e){let t="";for(const n of Array.from(e).sort())t+="#include <"+n+">\n";return t}function y(e,t=[]){const n=new Set(["curl/curl.h"]),r=m((0,o.dH)(e,t,{cookieFiles:!0}),t,n);return f(n)+"\n"+r}function g(e,t=[]){return[y((0,o.qg)(e,i,t),t),t]}function w(e){return g(e)[0]}r()}catch(S){r(S)}}))},3361:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{GM:()=>p,sL:()=>d});var s=n(6711),o=n(5385),a=n(7730),i=e([o,a]);[o,a]=i.then?(await i)():i;const l=new Set([...o.xv,"form","form-string","max-time","proxy","proxy-user"]);function u(e){"string"!=typeof e&&e.isString();let t=e.toString(),n='"';return t.includes('"')&&!t.includes("'")&&(n="'"),t=(0,a.UQ)(t,n).replace(/#/g,"##"),'"'===n?'"'+t.replace(/"/g,'""')+'"':"'"+t.replace(/'/g,"''")+"'"}function c(e,t=[]){const n=(0,o.dH)(e,t);let r="";if(r+="httpService = new http();\n",r+="httpService.setUrl("+u(n.urls[0].url)+");\n",r+="httpService.setMethod("+u(n.urls[0].method)+");\n",n.cookies){for(const[e,t]of n.cookies)r+='httpService.addParam(type="cookie", name='+u(e)+", value="+u(t)+");\n";n.headers.delete("Cookie")}if(n.headers.length)for(const[e,t]of n.headers)r+='httpService.addParam(type="header", name='+u(e)+", value="+u(t||new s.vZ)+");\n";if(n.timeout&&(r+="httpService.setTimeout("+(parseInt(n.timeout.toString(),10)||0)+");\n"),n.urls[0].auth){const[e,t]=n.urls[0].auth;r+="httpService.setUsername("+u(e)+");\n",r+="httpService.setPassword("+u(t||"")+");\n"}if(n.proxy){const e=n.proxy.toString();let t=e,s="1080";const o=e.match(/:([0-9]+)/);if(o&&(t=e.slice(0,o.index),s=o[1]),r+="httpService.setProxyServer("+u(t)+");\n",r+="httpService.setProxyPort("+s.trim()+");\n",n.proxyAuth){const[e,t]=n.proxyAuth.split(":",2);r+="httpService.setProxyUser("+u(e)+");\n",r+="httpService.setProxyPassword("+u(t||"")+");\n"}}if(n.data||n.multipartUploads)if(n.multipartUploads)for(const e of n.multipartUploads)r+="contentFile"in e?'httpService.addParam(type="file", name='+u(e.name)+', file="#expandPath('+u(e.contentFile)+')#");\n':'httpService.addParam(type="formfield", name='+u(e.name)+", value="+u(e.content)+");\n";else!n.isDataRaw&&n.data&&"@"===n.data.charAt(0)?r+='httpService.addParam(type="body", value="#'+(n.isDataBinary?"fileReadBinary":"fileRead")+"(expandPath("+u(n.data.toString().substring(1))+'))#");\n':r+='httpService.addParam(type="body", value='+u(n.data)+");\n";return r+="\nresult = httpService.send().getPrefix();\n",r+="writeDump(result);\n",r}function p(e,t=[]){return[c((0,o.qg)(e,l,t),t),t]}function d(e){return p(e)[0]}r()}catch(_){r(_)}}))},6237:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{KW:()=>x,gN:()=>E});var s=n(9531),o=n(6711),a=n(5385),i=n(5210),l=n(4164),u=e([a,l]);[a,l]=u.then?(await u)():u;const c=new Set([...a.xv,"form","form-string","insecure","no-insecure","compressed","no-compressed","max-time","connect-timeout","max-redirs","location","no-location","location-trusted","no-location-trusted","digest","no-digest","ntlm","no-ntlm","ntlm-wb","no-ntlm-wb"]);function p(e,t){const n=[];for(const r of e.tokens)"string"==typeof r?n.push((0,l.rx)(r)):"variable"===r.type?n.push("(str (System/getenv "+(0,l.rx)(r.value)+"))"):(t.add("(use '[clojure.java.shell :only [sh]])"),n.push('(sh "bash" "-c" '+(0,l.rx)(r.value)+")"));return n.length>1?"(str "+n.join(" ")+")":n[0]}function d(e){return/^[a-zA-Z_][a-zA-Z0-9*+!\-_'?<>=]*$/.test(e)}function _(e,t){return"{"+e.map((e=>{const n=e[0].toString();if(!e[0].isString()||!d(n))throw new s.fA("can't use query key as Clojure keyword: "+JSON.stringify(n));return":"+n+" "+(Array.isArray(e[1])?"["+e[1].map((e=>p(e,t))).join(" ")+"]":p(e[1],t))})).join("\n ")+"}"}function h(e,t){return"["+e.map((e=>"["+p(e[0],t)+" "+p(e[1],t)+"]")).join("\n ")+"]"}function m(e,t,n){if(t)try{return _(t,n)}catch(e){}if(e)try{return h(e,n)}catch(e){}return null}function f(e,t){return"{"+e.headers.map((e=>p(e[0],t)+" "+p(e[1],t))).join(",\n ")+"}"}
1function y(e,t){const n="\n"+" ".repeat(t);return e.replace(/\n/g,n)}function g(e,t){if(t&&e instanceof o.vZ)return p(e,t);switch(typeof e){case"string":return(0,l.rx)(e);case"number":return e.toString();case"boolean":return e?"true":"false";case"object":if(null===e)return"nil";if(Array.isArray(e)){const t=e.map((e=>g(e)));return t.reduce(((e,t)=>e+t.length),0)<100?"["+t.join(" ")+"]":"["+y(t.join("\n"),1)+"]"}{const t=Object.entries(e).map((([e,t])=>{if(!d(e))throw new s.fA("can't use JSON key as Clojure keyword: "+JSON.stringify(e));return":"+e+" "+y(g(t),1+e.length+1)}));return t.reduce(((e,t)=>e+t.length),0)<100&&t.every((e=>!e.includes("\n")))?"{"+t.join(" ")+"}":"{"+y(t.join("\n"),1)+"}"}default:throw new s.fA("unexpect type in JSON: "+typeof e)}}function w(e,t,n,r){const s=t.headers.getContentType(),a=t.headers.get("content-type");if("application/json"===s){const s=n.toString(),i=JSON.parse(s);if("object"!=typeof i||null===i)return void(e.body=p(n,r));const l=JSON.stringify(i)===s,u=g(i),c=p(n,r);return e["form-params"]=u,r.add("(require '[cheshire.core :as json])"),l||(e["commented-body"]=c),(0,o.eq)(a,"application/json")&&t.headers.delete("content-type"),e["content-type"]=":json",void((0,o.eq)(t.headers.get("accept"),"application/json")&&(t.headers.delete("accept"),e.accept=":json"))}if("application/x-www-form-urlencoded"===s){const[s,l]=(0,i.JO)(n),u=m(s,l,r);if(null!==u)return(0,o.eq)(a,"application/x-www-form-urlencoded")&&t.headers.delete("content-type"),void(e["form-params"]=u)}e.body=p(n,r)}function S(e,t,n,r){if(1===n.length&&n[0]instanceof o.vZ&&n[0].isString())try{return w(e,t,n[0],r)}catch(e){}const s=[];for(const e of n)if(e instanceof o.vZ)s.push(p(e,r));else{const{filetype:t,name:n,filename:a}=e;"urlencode"===t&&n&&s.push(p(n,r)),(0,o.eq)(a,"-")?s.push("(slurp *in*)"):s.push("(clojure.java.io/file "+p(a,r)+")")}1===s.length?e.body=s[0]:e.body="(str "+s.join(" ")+")"}function b(e,t,n){const r=[];for(const s of e){let e="{:name "+p(s.name,t);"content"in s?e+=" :content "+p(s.content,t):(e+=" :content (clojure.java.io/file "+p(s.contentFile,t)+")",s.filename&&!(0,o.eq)(s.filename,s.contentFile)&&n.push(["cant-fake-filename","there's no way to send the filename "+JSON.stringify(s.filename.toString())+" instead of "+JSON.stringify(s.contentFile.toString())])),r.push(e+"}")}return"["+r.join("\n ")+"]"}function T(e,t=[]){const n=(0,a.dH)(e,t,{dataReadsFile:!0}),r=new Set(["(require '[clj-http.client :as client])"]),s=new Set(["GET","HEAD","POST","PUT","DELETE","OPTIONS","COPY","MOVE","PATCH"]),o=new Set(["POST","PUT","PATCH","DELETE"]),i=n.urls[0].method,l=i.toString(),u={};let c;i.isString()&&s.has(l)?c="client/"+l.toLowerCase():(c="client/request",u.url="",u.method=p(i,r));let d=n.urls[0].url;try{const e=m(n.urls[0].queryList,n.urls[0].queryDict,r);e&&(u["query-params"]=e,d=n.urls[0].urlWithoutQueryList)}catch(e){}if(u.headers="",n.urls[0].auth){const[e,t]=n.urls[0].auth;u[{basic:"basic-auth",digest:"digest-auth",ntlm:"ntlm-auth","ntlm-wb":"ntlm-auth",negotiate:"basic-auth",bearer:"basic-auth","aws-sigv4":"basic-auth",none:"basic-auth"}[n.authType]]="["+p(e,r)+" "+p(t,r)+"]"}n.multipartUploads?u.multipart=b(n.multipartUploads,r,t):n.dataArray&&n.data&&(S(u,n,n.dataArray,r),o.has(l)||t.push(["data-not-posted","clj-http doesn't send data with "+l+" requests"])),n.headers.length?u.headers=f(n.headers,r):delete u.headers,!1===n.compressed&&(u[":decompress-body"]="false"),n.insecure&&(u["insecure?"]="true"),!1===n.followRedirects?u["redirect-strategy"]=":none":n.followRedirects&&n.followRedirectsTrusted&&(u["redirect-strategy"]=":lax"),n.maxRedirects&&(u["max-redirects"]=n.maxRedirects.toString());const _=(e,t)=>{if(e.isString()){const t=parseFloat(e.toString());if(!isNaN(t))return(1e3*t).toString()}return"(* (Float/parseFloat "+p(e,t)+") 1000)"};if(n.timeout){const e=_(n.timeout,r);u["socket-timeout"]=e,u["connection-timeout"]=e}n.connectTimeout&&(u["connection-timeout"]=_(n.connectTimeout,r));let h="("+c;"client/request"===c?u.url=p(d,r):h+=" "+p(d,r);const g=[];let w,T;for([w,T]of Object.entries(u)){let e=!1;"commented-body"===w&&(e=!0,w="body");const t=":"+w+" ";let n=t+y(T,t.length);e&&(n=n.replace(/^/gm,";; ")),g.push(n)}if(g.length){let e=h.length+1;h.length>70?(e=1+c.length+1,h+="\n"+" ".repeat(e)):h+=" ",h+=y("{"+g.join("\n")+"}",e+1)}return[...r].sort().join("\n")+"\n\n"+h+")\n"}function x(e,t=[]){return[T((0,a.qg)(e,c,t),t),t]}function E(e){return x(e)[0]}r()}catch(v){r(v)}}))},4170:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{D0:()=>h,Te:()=>_});var s=n(9531),o=n(6711),a=n(5385),i=e([a]);a=(i.then?(await i)():i)[0];const l=new Set([...a.xv,"compressed","form","form-string","http0.9","http1.0","http1.1","insecure","no-compressed","no-digest","no-http0.9","no-insecure","proxy","upload-file"]),u=/"|\\|\p{C}|[^ \P{Z}]/gu;function c(e){return'"'+e.replace(u,(e=>{switch(e){case"\0":return"\\0";case"�":return"\\a";case"\b":return"\\b";case"\f":return"\\f";case"\n":return"\\n";case"\r":return"\\r";case"\t":return"\\t";case"\v":return"\\v";case"\\":return"\\\\";case'"':return'\\"'}if(2===e.length){const t=e.charCodeAt(0),n=e.charCodeAt(1);return"\\u"+t.toString(16).padStart(4,"0")+"\\u"+n.toString(16).padStart(4,"0")}const t=e.charCodeAt(0).toString(16);return t.length<=4?"\\u"+t.padStart(4,"0"):"\\U"+t.padStart(8,"0")}))+'"'}function p(e,t){const n=[];for(const r of e.tokens)"string"==typeof r?n.push(c(r)):"variable"===r.type?(n.push("Environment.GetEnvironmentVariable("+c(r.value)+")"),t.add("System")):(n.push("System.Diagnostics.Process.Start("+c(r.value)+")"),t.add("System.Diagnostics"));return n.join(" + ")}function d(e,t=[]){const n=(0,a.dH)(e,t),r=new Set(["System.Net.Http"]),i={DELETE:"Delete",GET:"Get",PATCH:"Patch",POST:"Post",PUT:"Put"},l={DELETE:"Delete",GET:"Get",HEAD:"Head",OPTIONS:"Options",PATCH:"Patch",POST:"Post",PUT:"Put",TRACE:"Trace"},u=n.urls[0].method.toString();let c="new HttpMethod("+p(n.urls[0].method,r)+")";(0,s.zy)(l,u)&&(c="HttpMethod."+l[u]);const d=(0,s.zy)(i,u)&&!(n.headers.length||n.urls[0].auth&&"basic"===n.authType||n.multipartUploads||n.data||n.urls[0].uploadFile||n.urls[0].output);let _="";if(n.insecure||n.proxy||n.compressed?(_+="HttpClientHandler handler = new HttpClientHandler();\n",n.insecure&&(_+="handler.ServerCertificateCustomValidationCallback = HttpClientHandler.DangerousAcceptAnyServerCertificateValidator;\n"),n.proxy&&(_+="handler.Proxy = new WebProxy("+p(n.proxy,r)+");\n"),n.compressed&&(_+="handler.AutomaticDecompression = DecompressionMethods.All;\n"),_+="\n",_+="HttpClient client = new HttpClient(handler);\n\n"):_+="HttpClient client = new HttpClient();\n\n",d)return"GET"===u?_+="string responseBody = await client.GetStringAsync("+p(n.urls[0].url,r)+");\n":(_+="HttpResponseMessage response = await client."+i[u]+"Async("+p(n.urls[0].url,r)+");\n",_+="response.EnsureSuccessStatusCode();\n",_+="string responseBody = await response.Content.ReadAsStringAsync();\n"),_;_+="HttpRequestMessage request = new HttpRequestMessage("+c+", "+p(n.urls[0].url,r)+");\n";
1const h={"content-length":"ContentLength","content-location":"ContentLocation","content-md5":"ContentMD5","content-range":"ContentRange","content-type":"ContentType",expires:"Expires","last-modified":"LastModified"},m=n.headers.headers.filter((e=>!Object.keys(h).includes(e[0].toLowerCase().toString()))),f=n.headers.headers.filter((e=>Object.keys(h).includes(e[0].toLowerCase().toString())));if(m.length||n.urls[0].auth&&"basic"===n.authType){_+="\n";for(const[e,t]of m)null!==t&&(["accept-encoding"].includes(e.toLowerCase().toString())&&(_+="// "),_+="request.Headers.Add("+p(e,r)+", "+p(t,r)+");\n");n.urls[0].auth&&"basic"===n.authType&&(_+='request.Headers.Add("Authorization", "Basic " + Convert.ToBase64String(System.Text.ASCIIEncoding.ASCII.GetBytes('+p((0,o.yZ)(n.urls[0].auth,":"),r)+")));\n"),_+="\n"}if(n.urls[0].uploadFile)_+="request.Content = new ByteArrayContent(File.ReadAllBytes("+p(n.urls[0].uploadFile,r)+"));\n";else if(n.multipartUploads){_+="\n",_+="MultipartFormDataContent content = new MultipartFormDataContent();\n";for(const e of n.multipartUploads){const t=p(e.name,r),s="filename"in e&&e.filename;_+="content.Add(new ","contentFile"in e?(0,o.eq)(e.contentFile,"-")?n.stdinFile?(_+="ByteArrayContent(File.ReadAllBytes("+p(n.stdinFile,r)+")), "+t,s&&(_+=", Path.GetFileName("+p(s,r)+")"),_+=");\n"):n.stdin?(_+="StringContent("+p(n.stdin,r)+"), "+t,s&&(_+=", Path.GetFileName("+p(s,r)+")"),_+=");\n"):(_+="StringContent(Console.ReadLine()), "+t,s&&(_+=", Path.GetFileName("+p(s,r)+")"),_+=");\n"):(_+="ByteArrayContent(File.ReadAllBytes("+p(e.contentFile,r)+")), "+t,s&&(_+=", Path.GetFileName("+p(s,r)+")"),_+=");\n"):_+="StringContent("+p(e.content,r)+"), "+t+");\n"}_+="request.Content = content;\n"}else n.data?!n.isDataRaw&&n.data.startsWith("@")?_+="request.Content = new StringContent(File.ReadAllText("+p(n.data.slice(1),r)+').Replace("\\n", string.Empty).Replace("\\r", string.Empty));\n':_+="request.Content = new StringContent("+p(n.data,r)+");\n":n.headers.has("content-type")&&(_+='request.Content = new StringContent("");\n');if(f.length)for(const[e,n]of f){if(null===n)continue;const o=e.toLowerCase().toString();"content-type"===o?(r.add("System.Net.Http.Headers"),n.includes(";")?_+="request.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("+p(n,r)+");\n":_+="request.Content.Headers.ContentType = new MediaTypeHeaderValue("+p(n,r)+");\n"):"content-length"===o?(n.isString()&&!(0,s.E6)(n.toString())&&t.push(["content-length-not-int","Content-Length header value is not a number: "+p(n,r)]),_+="// request.Content.Headers.ContentLength = "+n.split("\n")[0].toString()+";\n"):(0,s.zy)(h,o)&&(_+="request.Content.Headers."+h[o]+" = "+p(n,r)+";\n")}return(n.urls[0].uploadFile||n.data||n.multipartUploads||f.length)&&(_+="\n"),_+="HttpResponseMessage response = await client.SendAsync(request);\n",_+="response.EnsureSuccessStatusCode();\n",_+="string responseBody = await response.Content.ReadAsStringAsync();\n",r.size&&(_="using "+[...r].sort().join(";\nusing ")+";\n\n"+_),_}function _(e,t=[]){return[d((0,a.qg)(e,l,t),t),t]}function h(e){return _(e)[0]}r()}catch(m){r(m)}}))},3212:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{F4:()=>f,Rm:()=>m});var s=n(6711),o=n(5385),a=n(5210),i=n(7730),l=e([o,i]);[o,i]=l.then?(await l)():l;const u=new Set([...o.xv,"compressed","form","form-string","no-compressed"]);function c(e,t){return(0,i.UQ)(e,t).replace(/\$/g,"\\$")}function p(e){const t=e.includes("'")&&!e.includes('"')?'"':"'";return t+c(e,t)+t}function d(e,t){const n=[];for(const r of e.tokens)"string"==typeof r?n.push(p(r)):"variable"===r.type?(n.push("(Platform.environment["+p(r.value)+"] ?? '')"),t.add("dart:io")):(n.push("(await Process.run("+p(r.value)+", runInShell: true)).stdout"),t.add("dart:io"));return n.join(" + ")}function _(e,t){if(e instanceof s.vZ)return d(e,t);const n=[];for(const r of e)n.push(d(r,t));return"["+n.join(", ")+"]"}function h(e,t=[]){const n=(0,o.dH)(e,t),r=new Set;(n.urls[0].auth||n.isDataBinary)&&r.add("dart:convert");let i="void main() async {\n";if(n.urls[0].auth){const[e,t]=n.urls[0].auth;i+="  final uname = "+d(e,r)+";\n  final pword = "+d(t,r)+";\n  final authn = 'Basic ${base64Encode(utf8.encode('$uname:$pword'))}';\n\n"}const l=n.multipartUploads||!["HEAD","GET","POST","PUT","PATCH","DELETE"].includes(n.urls[0].method.toString()),u=n.headers.length||n.c
1ompressed||n.isDataBinary||"put"===n.urls[0].method.toLowerCase().toString();if(u&&!l){i+="  final headers = {\n";for(const[e,t]of n.headers)i+="    "+d(e,r)+": "+d(null!=t?t:new s.vZ,r)+",\n";n.urls[0].auth&&(i+="    'Authorization': authn,\n"),n.compressed&&(i+="    'Accept-Encoding': 'gzip',\n"),i+="  };\n",i+="\n"}if(n.urls[0].queryDict){i+="  final params = {\n";for(const[e,t]of n.urls[0].queryDict)i+="    "+d(e,r)+": "+_(t,r)+",\n";i+="  };\n",i+="\n"}const c=n.data&&!n.multipartUploads;if(c&&n.data){const[e]=(0,a.JO)(n.data);if(e&&e.length){i+="  final data = {\n";for(const t of e){const[e,n]=t;i+="    "+d(e,r)+": "+d(n,r)+",\n"}i+="  };\n",i+="\n"}else i+=`  final data = ${d(n.data,r)};\n\n`}if(n.urls[0].queryDict?i+="  final url = Uri.parse("+d(n.urls[0].urlWithoutQueryList,r)+")\n      .replace(queryParameters: params);\n":i+="  final url = Uri.parse("+d(n.urls[0].url,r)+");\n",i+="\n",l){let e="http.";n.multipartUploads?e+="MultipartRequest":e+="Request",e+="("+d(n.urls[0].method,r)+", url)";for(const t of n.multipartUploads||[]){const o=d(t.name,r),a="filename"in t&&t.filename;"contentFile"in t?(e+="\n    ..files.add(await http.MultipartFile.",(0,s.eq)(t.contentFile,"-")?n.stdinFile?(e+="fromPath(\n",e+="      "+o+", "+d(n.stdinFile,r),a&&n.stdinFile!==a&&(e+=",\n",e+="      filename: "+d(a,r)),e+="))"):n.stdin?(e+="fromString(\n",e+="      "+o+", "+d(n.stdin,r),a&&(e+=",\n",e+="      filename: "+d(a,r)),e+="))"):(e+="fromString(\n",e+="      "+o+", stdin.readLineSync(encoding: utf8)",a&&(e+=",\n",e+="      filename: "+d(a,r)),e+="))",r.add("dart:io"),r.add("dart:convert")):(e+="fromPath(\n",e+="      "+o+", "+d(t.contentFile,r),a&&t.contentFile!==a&&(e+=",\n",e+="      filename: "+d(a,r)),e+="))")):e+="\n    ..fields["+o+"] = "+d(t.content,r)}if(e+=";\n\n",u||n.urls[0].auth){if(i+="  final req = "+e,n.headers.length){for(const[e,t]of n.headers)i+="  req.headers["+d(e,r)+"] = "+d(t||new s.vZ,r)+";\n";i+="\n"}n.urls[0].auth&&(i+="  req.headers['Authorization'] = authn;\n",i+="\n"),i+="  final stream = await req.send();\n",i+="  final res = await http.Response.fromStream(stream);\n"}else i+="  final req = "+e,i+="  final stream = await req.send();\n",i+="  final res = await http.Response.fromStream(stream);\n";i+="  final status = res.statusCode;\n  if (status != 200) throw Exception('http.send error: statusCode= $status');\n\n  print(res.body);\n}"}else i+="  final res = await http."+n.urls[0].method.toLowerCase().toString()+"(url",u?i+=", headers: headers":n.urls[0].auth&&(i+=", headers: {'Authorization': authn}"),c&&(i+=", body: data"),i+=");\n",i+="  final status = res.statusCode;\n  if (status != 200) throw Exception('http."+n.urls[0].method.toLowerCase().toString()+" error: statusCode= $status');\n\n  print(res.body);\n}";let p="";for(const e of Array.from(r).sort())p+="import '"+e+"';\n";return p+="import 'package:http/http.dart' as http;\n",p+"\n"+i+"\n"}function m(e,t=[]){return[h((0,o.qg)(e,u,t),t),t]}function f(e){return m(e)[0]}r()}catch(y){r(y)}}))},9914:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{Pk:()=>E,js:()=>v});var s=n(7277),o=n(6711),a=n(5385),i=n(5210),l=e([a]);a=(l.then?(await l)():l)[0];const u=new Set([...a.xv,"form","form-string","insecure","no-insecure","next"]),c=/"|\\|\p{C}|[^ \P{Z}]|#\{/gu;function p(e){return'"'+e.replace(c,(e=>{switch(e[0]){case"\0":return"\\0";case"�":return"\\a";case"\b":return"\\b";case"\f":return"\\f";case"\n":return"\\n";case"\r":return"\\r";case"\t":return"\\t";case"\v":return"\\v";case"�":return"\\e";case"\\":return"\\\\";case'"':return'\\"';case"#":return"\\"+e}const t=e.codePointAt(0).toString(16);return t.length<=4?"\\u"+t.padStart(4,"0"):"\\u{"+t+"}"}))+'"'}function d(e){const t=[];for(const n of e.tokens)"string"==typeof n?t.push(p(n)):"variable"===n.type?t.push("System.get_env("+p(n.value)+', "")'):t.push("elem(System.shell("+p(n.value)+"), 0)");return t.join(" <> ")}function _(e){return e.split("\n").map((e=>e?"  "+e:e)).join("\n")}function h(e){return e.cookies&&e.cookies.length?`cookie: [${d((0,o.yZ)(e.cookies.map((e=>(0,o.yZ)(e,"="))),"; "))}]`:""}
1function m(e,t){const n=[],r=f(e);r&&n.push(r),e.insecure&&n.push(":insecure");const s=h(e);s&&n.push(s);let o="";n.length>1?o=`hackney: [\n    ${n.join(",\n    ")}\n  ]`:n.length&&(o=`hackney: [${n[0]}]`);const a=`[${o}]`;let i=a;return"[]"!==t&&(i="",i+="[\n",i+="    params: "+_(t).trim(),o&&(i+=",\n",i+="    "+_(o).trim()),i+="\n",i+="  ]"),[i,a]}function f(e){if(!e.urls[0].auth)return"";const[t,n]=e.urls[0].auth;return`basic_auth: {${d(t)}, ${d(n)}}`}function y(e){if(!e.urls[0].queryList||!e.urls[0].queryList.length)return"[]";let t="[\n";const n=[];for(const[t,r]of e.urls[0].queryList)n.push(`    {${d(t)}, ${d(r)}}`);return t+=n.join(",\n"),t+="\n  ]",t}function g(e){if(!e.headers.length)return"[]";let t="[\n";const n=[];for(const[t,r]of e.headers)n.push(`    {${d(t)}, ${d(null!=r?r:new o.vZ)}}`);return t+=n.join(",\n"),t+="\n  ]",t}function w(e){return S(e)||'""'}function S(e){var t;if(e.multipartUploads){if(!e.multipartUploads.length)return"{:multipart, []}";const n=[];for(const r of e.multipartUploads)"contentFile"in r?n.push(`    {:file, ${d(r.contentFile)}, {"form-data", [{:name, ${d(r.name)}}, {:filename, Path.basename(${d(null!==(t=r.filename)&&void 0!==t?t:r.contentFile)})}]}, []}`):n.push(`    {${d(r.name)}, ${d(r.content)}}`);const r=n.join(",\n");if(r)return`{:multipart, [\n${r}\n  ]}`}return e.data?b(e):""}function b(e){if(!e.data)return"";if(!e.isDataRaw&&e.data.startsWith("@")){const t=e.data.slice(1);return e.isDataBinary?`File.read!(${d(t)})`:`{:file, ${d(t)}}`}const[t]=(0,i.JO)(e.data);return t&&t.length?`{:form, [\n${t.map((e=>{const[t,n]=e;return`    {${d(t)}, ${d(n)}}`})).join(",\n")}\n  ]}`:e.data.isString()&&!e.data.includes("|")&&e.data.split("\n",4).length>3&&!e.data.match(/[^\S\r\n]\n/)?"~s|"+e.data.toString()+"|":d(e.data)}function T(e,t=[]){(0,s.cY)(e,t),e.cookies&&e.headers.delete("cookie");const n=["DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT"],r=e.urls[0].method,o=r.toString();n.includes(o)||t.push(["bad-method","Unsupported method "+JSON.stringify(o)]);const a=["PATCH","POST","PUT"].includes(o),i=w(e),l=g(e),u=y(e),[c,p]=m(e,u);if(a||'""'===i&&n.includes(o)){let t=[],n=!1;n||(n="[]"!==c),n&&t.push(c),n||(n="[]"!==l),n&&t.push(l),n||(n='""'!==i),n&&a&&t.push(i),t.push(d(e.urls[0].urlWithoutQueryList)),t=t.reverse();let r="response = HTTPoison."+o.toLowerCase()+"!(";return 1===t.length?r+=t[0]:(r+="\n",r+="  "+t.join(",\n  "),r+="\n"),r+")\n"}return`request = %HTTPoison.Request{\n  method: :${r.toLowerCase().toString()},\n  url: ${d(e.urls[0].urlWithoutQueryList)},\n  body: ${i},\n  headers: ${l},\n  options: ${p},\n  params: ${u}\n}\n\nresponse = HTTPoison.request(request)\n`}function x(e,t=[]){return e.map((e=>T(e,t))).join("\n")}function E(e,t=[]){return[x((0,a.qg)(e,u,t),t),t]}function v(e){return E(e)[0]}r()}catch(A){r(A)}}))},9391:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{EK:()=>g,k6:()=>y});var s=n(9531),o=n(6711),a=n(5385),i=n(832),l=e([a,i]);[a,i]=l.then?(await l)():l;const u=new Set([...a.xv,"insecure","no-insecure","compressed","no-compressed","max-time","form","form-string"]),c="\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n";function p(e,t,n){return e.isString()&&e.includes('"')?d(e,t,n):h(e,t,n)}function d(e,t,n){return!e.isString()||e.includes("`")||e.includes("\r")?h(e,t,n):"`"+e.toString()+"`"}function _(e){return(0,i.rx)(e,'"')}function h(e,t,n){const r=[];for(const o of e.tokens)if("string"==typeof o)r.push(_(o));else if("variable"===o.type)r.push("os.Getenv("+_(o.value)+")"),n.add("os");else{const e="exec.Command("+_(o.value)+").Output()";let a=1,i="cmd"+a;for(;i in t&&t[i]!==e;)if(a++,i="cmd"+a,a>Number.MAX_SAFE_INTEGER)throw new s.fA("lol");t[i]=e,r.push(i),n.add("os/exec")}return r.join(" + ")}function m(e,t,n){if(e.isString()){const t=e.toString();if(/^\d+\.?\d*$/.test(t))return t}
1return t.timeout="strconv.Atoi("+h(e,t,n)+")",n.add("strconv"),"timeout"}function f(e,t=[]){var n;const r=(0,a.dH)(e,t),s=new Set(["fmt","io","log","net/http"]),i={};let l="";if(r.multipartUploads){l+="\tform := new(bytes.Buffer)\n",l+="\twriter := multipart.NewWriter(form)\n",s.add("bytes"),s.add("mime/multipart");let e=!0,t=!0;for(const o of r.multipartUploads){if("contentFile"in o){const t=e?":=":"=";e=!1,l+=`\tfw, err ${t} writer.CreateFormFile(${h(o.name,i,s)}, filepath.Base(${h(null!==(n=o.filename)&&void 0!==n?n:o.contentFile,i,s)}))\n`,l+=c,s.add("path/filepath"),l+=`\tfd, err ${t} os.Open(${h(o.contentFile,i,s)})\n`,l+=c,s.add("os"),l+="\tdefer fd.Close()\n",l+="\t_, err = io.Copy(fw, fd)\n",l+=c}else{const e=t?":=":"=";t=!1,l+=`\tformField, err ${e} writer.CreateFormField(${h(o.name,i,s)})\n`,l+=c,l+=`\t_, err = formField.Write([]byte(${p(o.content,i,s)}))\n`}l+="\n"}l+="\twriter.Close()\n",l+="\n",r.headers.delete("content-type")}if((r.insecure||!1===r.compressed)&&(l+="\ttr := &http.Transport{\n",r.insecure&&(l+="\t\tTLSClientConfig: &tls.Config{InsecureSkipVerify: true},\n",s.add("crypto/tls")),!1===r.compressed&&(l+="\t\tDisableCompression: true,\n"),l+="\t}\n"),l+="\tclient := &http.Client{",r.timeout?(l+="\n",(r.insecure||!1===r.compressed)&&(l+="\t\tTransport: tr,\n"),l+="\t\tTimeout: "+m(r.timeout,i,s)+" * time.Second,\n",l+="\t",s.add("time")):(r.insecure||!1===r.compressed)&&(l+="Transport: tr"),l+="}\n",r.data&&!r.multipartUploads&&(l+="\tvar data = strings.NewReader("+d(r.data,i,s)+")\n",s.add("strings")),l+="\treq, err := http.NewRequest("+h(r.urls[0].method,i,s)+", "+h(r.urls[0].url,i,s),l+=", "+(r.multipartUploads?"form":r.data?"data":"nil")+")\n",l+=c,r.headers.length)for(const[e,t]of r.headers){let n="\t";"accept-encoding"===e.toLowerCase().toString()&&!1!==r.compressed&&(n+="// "),l+=n+"req.Header.Set("+h(e,i,s)+", "+p(t||new o.vZ,i,s)+")\n"}if(r.multipartUploads&&(l+='\treq.Header.Set("Content-Type", writer.FormDataContentType())\n'),r.urls[0].auth&&"basic"===r.authType){const[e,t]=r.urls[0].auth;l+="\treq.SetBasicAuth("+h(e,i,s)+", "+h(t,i,s)+")\n"}l+="\tresp, err := client.Do(req)\n",l+=c,l+="\tdefer resp.Body.Close()\n",l+="\tbodyText, err := io.ReadAll(resp.Body)\n",l+=c,l+='\tfmt.Printf("%s\\n", bodyText)\n',l+="}";let u="package main\n\n";u+="import (\n";for(const e of Array.from(s).sort())u+='\t"'+e+'"\n';u+=")\n\n",u+="func main() {\n";for(const[e,t]of Array.from(Object.entries(i)).sort())u+="\t"+e+", err := "+t+"\n",u+=c;return Object.values(i).length&&(u+="\n"),u+l+"\n"}function y(e,t=[]){return[f((0,a.qg)(e,u,t),t),t]}function g(e){return y(e)[0]}r()}catch(w){r(w)}}))},8950:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{iT:()=>_,wq:()=>h});var s=n(9531),o=n(7277),a=n(5385),i=n(5210),l=e([a]);a=(l.then?(await l)():l)[0];const u=new Set([...a.xv,"anyauth","no-anyauth","http1.1","http2","http2-prior-knowledge","http3","http3-only"]);function c(e){if(!e.data)return null;const t=e.headers.getContentType()||"";try{const[n]=(0,i.JO)(e.data);if(n&&n.length)return{mimeType:t,params:n.map((e=>({name:e[0].toString(),value:e[1].toString()})))}}catch(e){}return{mimeType:t,text:e.data.toString()}}function p(e,t,n=[]){const r={method:t.method.toString(),url:(t.queryList?t.urlWithoutQueryList:t.url).toString(),httpVersion:e.http3?"HTTP/3":e.http2?"HTTP/2":"HTTP/1.1",cookies:[],headers:[],queryString:[],headersSize:-1,bodySize:-1};if(e.cookies&&(r.cookies=e.cookies.map((e=>({name:e[0].toString(),value:e[1].toString()}))),e.headers.delete("Cookie")),e.headers.length&&(r.headers=e.headers.headers.filter((e=>null!==e[1])).map((e=>({name:e[0].toString(),value:e[1].toString()})))),e.urls[0].auth){const[t,n]=e.urls[0].auth;if("basic"===e.authType){const e="Basic "+(0,s.lR)(`${t.toString()}:${n.toString()}`);r.headers.push({name:"Authorization",value:e})}}if(t.queryList&&(r.queryString=t.queryList.map((e=>({name:e[0].toString(),value:e[1].toString()})))),e.data){const t=c(e);t&&(r.postData=t)}return r}function d(e,t=[]){const n=[];for(const r of e)for(const e of r.urls)n.push(p(r,e,t));return JSON.stringify({log:{version:"1.2",entries:n.map((e=>({request:e})))}},null,4)+"\n"}function _(e,t=[]){const n=(0,a.qg)(e,u,t);return n.map((e=>(0,o.cY)(e,t,{multipleUrls:!0}))),[d(n,t),t]}function h(e){return _(e)[0]}r()}catch(m){r(m)}}))},7773:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{SW:()=>c,qG:()=>u});var s=n(9531),o=n(5385),a=e([o]);o=(a.then?(await a)():a)[0];const i=new Set([...o.xv,"form","form-string","http0.9","http1.0","http1.1","http2","http2-prior-knowledge","http3","http3-only","no-http0.9","compressed","no-compressed","upload-file"]);function l(e,t=[]){const n=(0,o.dH)(e,t);let r=n.urls[0].method.toString()+" ";const a=n.urls[0].urlObj;let i=a.path.toString()+a.query.toString();if(i||(i="/"),r+=i+" ","3"===n.httpVersion||"3-only"===n.httpVersion?r+="HTTP/3":"2"===n.httpVersion||"2-prior-knowledge"===n.httpVersion?r+="HTTP/2":"1.0"===n.httpVersion?r+="HTTP/1.0":r+="HTTP/1.1",r+="\n",n.urls[0].auth){const[e,t]=n.urls[0].auth;"basic"===n.authType&&n.headers.prependIfMissing("Authorization","Basic "+(0,s.lR)(e.toString()+":"+t.toString()))}n.compressed&&n.headers.prependIfMissing("Accept-Encoding","deflate, gzip"),n.headers.prependIfMissing("Accept","*/*"),n.headers.prependIfMissing("User-Agent","curl/8.2.1"),n.headers.prependIfMissing("Host",a.host.toString());let l="------------------------"+Array.from({length:16},(()=>"0123456789abcdef".charAt(Math.floor(16*Math.random())))).join("");
1if(n.data)n.headers.setIfMissing("Content-Length",n.data.toString().length.toString());else if(n.urls[0].uploadFile){const e="<length of "+n.urls[0].uploadFile.toString()+">";n.headers.setIfMissing("Content-Length",e)&&t.push(["bad-content-length","Content-Length header needs to be set: "+JSON.stringify(e)])}else if(n.multipartUploads){const e=n.headers.get("Content-Type");if(e){const n=e.toString().match(/boundary=(.*)/);n?l=n[1]:t.push(["no-boundary",`Content-Type header "${e.toString()}" does not specify a boundary.`])}else n.headers.set("Content-Type","multipart/form-data; boundary="+l)}for(const[e,t]of n.headers){if(null===t)continue;const n=t.toString();r+=n?e.toString()+": "+n+"\n":e.toString()+":\n"}if(r+="\n",n.data)r+=n.data.toString();else if(n.urls[0].uploadFile)r+=n.urls[0].uploadFile.toString(),t.push(["upload-file","need to read data from file: "+JSON.stringify(n.urls[0].uploadFile.toString())]);else if(n.multipartUploads){for(const e of n.multipartUploads)r+="--"+l+"\n",r+="Content-Disposition: form-data",r+='; name="'+e.name.toString()+'"',e.filename&&(r+='; filename="'+e.filename.toString()+'"'),e.contentType&&(r+='\nContent-Type: "'+e.contentType.toString()+'"'),r+="\n\n",r+="content"in e?e.content.toString():e.contentFile.toString(),r+="\n";r+="--"+l+"--"}return r+"\n"}function u(e,t=[]){return[l((0,o.qg)(e,i,t),t),t]}function c(e){return u(e)[0]}r()}catch(p){r(p)}}))},5043:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{Iy:()=>E,_f:()=>v});var s=n(9531),o=n(7277),a=n(6711),i=n(5385),l=n(5210),u=n(322),c=e([i,u]);[i,u]=c.then?(await c)():c;const p=new Set([...i.xv,"form","form-string","location","no-location","location-trusted","no-location-trusted","max-redirs","ciphers","insecure","cert","key","cacert","capath","proxy","noproxy","timeout","connect-timeout","anyauth","no-anyauth","digest","no-digest","negotiate","no-negotiate","delegation","ntlm","no-ntlm","ntlm-wb","no-ntlm-wb","no-netrc","verbose","silent","upload-file","next"]);function d(e){return e.replace("=","\\=")}function _(e,t=!1){return e=e.replace("\\","\\\\").replace("[","\\[").replace("]","\\]").replace(":","\\:").replace("=","\\="),!t&&/^\d+$/.test(e)&&(e="\\"+e),e}function h(e){if(e.startsWith("\\="))throw new s.fA("Unrepresentable JSON string: "+JSON.stringify(e)+' (starts with "\\=")');if(e.startsWith("\\@"))throw new s.fA("Unrepresentable JSON string: "+JSON.stringify(e)+' (starts with "\\@")');return(e.startsWith("=")||e.startsWith("@"))&&(e="\\"+e),e}function m(e,t=""){return null===e?[(0,u.rx)(t)+":=null"]:"boolean"==typeof e?[(0,u.rx)(t)+":="+e.toString()]:"number"==typeof e?[(0,u.rx)(t)+":="+(0,u.rx)(e.toString())]:"string"==typeof e?[(0,u.rx)(t)+"="+(0,u.rx)(h(e))]:Array.isArray(e)?e.length?e.map((e=>m(e,t+"[]"))).flat():[(0,u.rx)(t)+":=[]"]:Object.keys(e).length?Object.entries(e).map((([e,n])=>m(n,t?t+"["+_(e)+"]":_(e,!0)))).flat():[(0,u.rx)(t)+":={}"]}function f(e,t,n){let r;try{r=JSON.parse(n)}catch(e){}if("object"==typeof r&&null!==r&&Object.keys(r).length||Array.isArray(r)&&r.length){let e;try{e=m(r)}catch(e){}if(e){for(const n of e)t.push(n);return}}e.push("--raw "+((0,u.rx)(n)||"''"))}function y(e){return e.replace("\\","\\\\").replace(":","\\:").replace("=","\\=")}function g(e){return e.startsWith("="),e.startsWith("@")&&(e=e.prepend("\\")),e}function w(e,t,n){let r;try{[r]=(0,l.JO)(n)}catch(e){}if(r){e.push("--form");for(const[e,n]of r)t.push((0,u.Sj)((0,a.__)(y(e),"=",g(n))))}else e.push("--raw "+((0,u.Sj)(n)||"''"))}function S(e,t,n,r){const s=r.getContentType();"application/json"===s&&n.isString()?f(e,t,n.toString()):"application/x-www-form-urlencoded"===s?w(e,t,n):e.push("--raw "+((0,u.Sj)(n)||"''"))}function b(e){return e.replace("\\","\\\\").replace("@","\\@").replace("=","\\=")}function T(e,t,n){const r=[];let s=null,o=t.url;const i=[];if(t.uploadFile||e.data||e.multipartUploads?(0,a.eq)(t.method,"POST")||(s=(0,u.Sj)(t.method)):(0,a.eq)(t.method,"GET")||(s=(0,u.Sj)(t.method)),e.headers.length)for(const[t,n]of e.headers)null===n?i.push((0,u.Sj)((0,a.__)(d(t),":"))):n.toBool()?i.push((0,u.Sj)((0,a.__)(d(t),":",((l=n).startsWith("="),l.startsWith("@")&&(l=l.prepend("\\")),l)))):i.push((0,u.Sj)((0,a.__)(d(t),";")));var l;if(t.auth){const[s,o]=t.auth;"digest"===e.authType?r.push("-A digest"):"ntlm"===e.authType||"ntlm-wb"===e.authType?(r.push("--auth-type=ntlm"),n.push(["httpie-ntlm","NTLM auth requires the httpie-ntlm plugin"])):"negotiate"===e.authType?(r.push("--auth-type=negotiate"),n.push(["httpie-negotiate","SPNEGO (GSS Negotiate) auth requires the httpie-negotiate plugin"])):"basic"!==e.authType&&n.push(["httpie-unsupported-auth","HTTPie doesn't support "+e.authType+" authentication"]),r.push("-a "+(0,u.Sj)((0,a.__)(s,":",o)))}if(t.queryList){o=t.urlWithoutQueryList;for(const[e,n]of t.queryList)i.push((0,u.Sj)((0,a.__)(y(e),"==",g(n))))}if(t.uploadFile)(0,a.eq)(t.uploadFile,"-")||(0,a.eq)(t.uploadFile,".")?n.push(["httpie-stdin","pass in the file contents to HTTPie through stdin"]):i.push("@"+(0,u.Sj)(t.uploadFile));else if(e.multipartUploads){r.push("--multipart");for(const t of e.multipartUploads)"content"in t?i.push((0,u.Sj)(b(t.name))+"="+(0,u.Sj)(t.content)):"filename"in t&&t.filename?(i.push((0,u.Sj)(b(t.name))+"@"+(0,u.Sj)(t.filename)),(0,a.eq)(t.filename,t.contentFile)||n.push(["httpie-multipart-fake-filename","HTTPie doesn't support multipart uploads that read a certain filename but send a different filename"])):i.push((0,u.Sj)(b(t.name))+"=@"+(0,u.Sj)(t.contentFile))}else!e.dataArray||1!==e.dataArray.length||e.dataArray[0]instanceof a.vZ||e.dataArray[0].name?e.data&&S(r,
1i,e.data,e.headers):i.push("@"+(0,u.Sj)(e.dataArray[0].filename));function c(e){return e.startsWith("localhost:")?e.slice(9):e.startsWith("localhost/")||(0,a.eq)(e,"localhost")?e.slice(9).prepend(":"):e}(e.followRedirects||e.followRedirectsTrusted)&&r.push("--follow"),e.maxRedirects&&"30"!==e.maxRedirects.toString()&&r.push("--max-redirects="+(0,u.Sj)(e.maxRedirects)),"ignored"===e.netrc&&r.push("--ignore-netrc"),e.proxy&&(r.push("--proxy=http:"+(0,u.Sj)(e.proxy)),r.push("--proxy=https:"+(0,u.Sj)(e.proxy))),e.proxyAuth,e.noproxy&&n.push(["httpie-noproxy","HTTPie requires passing noproxy through environment variables: "+JSON.stringify(e.noproxy.toString())]),e.insecure&&r.push("--verify=no"),e.cacert&&r.push("--verify="+(0,u.Sj)(e.cacert)),e.capath&&r.push("--verify="+(0,u.Sj)(e.capath)),e.cert&&r.push("--cert="+(0,u.Sj)(e.cert[0])),e.key&&r.push("--cert-key="+(0,u.Sj)(e.key)),e.cert&&e.cert[1]&&r.push("--cert-key-pass="+(0,u.Sj)(e.cert[1])),e.ciphers&&r.push("--ciphers="+(0,u.Sj)(e.ciphers)),e.connectTimeout&&r.push("--timeout="+(0,u.Sj)(e.connectTimeout)),e.timeout&&(e.connectTimeout?n.push(["httpie-timeout-with-connect-timeout","ignoring --timeout because HTTPie's timeout is more similar to curl's --connect-timeout"]):(r.push("--timeout="+(0,u.Sj)(e.timeout)),n.push(["httpie-timeout","HTTPie's timeout is just for the connection, not for the whole request"]))),e.verbose&&r.push("--verbose"),e.silent&&r.push("--quiet");let p="http";o.startsWith("https://")?(p="https",o=c(o.slice(8))):o.startsWith("http://")&&(o=c(o.slice(7))),t.output,s&&r.push(s),i.some((e=>e.startsWith("-")))&&i.unshift("--");const _=[...r,(0,u.Sj)(o),...i],h=_.length>3||_.reduce(((e,t)=>e+t.length),0)>75?" \\\n  ":" ";return p+" "+_.join(h)+"\n"}function x(e,t=[]){const n=[];for(const r of e){(0,o.cY)(r,t,{dataReadsFile:!0,multipleUrls:!0}),r.dataReadsFile&&r.dataArray&&r.dataArray.length&&(r.dataArray.length>1||!(r.dataArray[0]instanceof a.vZ)&&r.dataArray[0].name)&&t.push(["unsafe-data","the generated data content is wrong, "+JSON.stringify("@"+r.dataReadsFile)+" means read the file "+JSON.stringify(r.dataReadsFile)]);for(const e of r.urls)n.push(T(r,e,t))}return n.join("\n\n")}function E(e,t=[]){return[x((0,i.qg)(e,p,t),t),t]}function v(e){return E(e)[0]}r()}catch(A){r(A)}}))},4863:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{tI:()=>c,tK:()=>p});var s=n(6711),o=n(5385),a=n(4164),i=e([o,a]);[o,a]=i.then?(await i)():i;const l=new Set([...o.xv]);function u(e,t=[]){const n=(0,o.dH)(e,t),r=new Set(["java.io.IOException","java.io.InputStream","java.net.HttpURLConnection","java.net.URL","java.util.Scanner"]);let i="";i+="        URL url = new URL("+(0,a.Sj)(n.urls[0].url,r)+");\n",i+="        HttpURLConnection httpConn = (HttpURLConnection) url.openConnection();\n",i+="        httpConn.setRequestMethod("+(0,a.Sj)(n.urls[0].method,r)+");\n\n";let l=!1;if(n.headers.length){for(const[e,t]of n.headers)null!==t&&(i+="        httpConn.setRequestProperty("+(0,a.Sj)(e,r)+", "+(0,a.Sj)(t,r)+");\n","accept-encoding"===e.toLowerCase().toString()&&t&&(l=-1!==t.indexOf("gzip")));i+="\n"}n.urls[0].auth&&(i+="        byte[] message = ("+(0,a.Sj)((0,s.yZ)(n.urls[0].auth,":"),r)+').getBytes("UTF-8");\n',i+="        String basicAuth = DatatypeConverter.printBase64Binary(message);\n",i+='        httpConn.setRequestProperty("Authorization", "Basic " + basicAuth);\n',i+="\n",r.add("javax.xml.bind.DatatypeConverter")),n.data&&(i+="        httpConn.setDoOutput(true);\n",i+="        OutputStreamWriter writer = new OutputStreamWriter(httpConn.getOutputStream());\n",i+="        writer.write("+(0,a.Sj)(n.data,r)+");\n",i+="        writer.flush();\n",i+="        writer.close();\n",i+="        httpConn.getOutputStream().close();\n",i+="\n",r.add("java.io.OutputStreamWriter")),i+="        InputStream responseStream = httpConn.getResponseCode() / 100 == 2\n",i+="                ? httpConn.getInputStream()\n",i+="                : httpConn.getErrorStream();\n",l&&(i+='        if ("gzip".equals(httpConn.getContentEncoding())) {\n',i+="            responseStream = new GZIPInputStream(responseStream);\n",i+="        }\n",r.add("java.util.zip.GZIPInputStream")),i+='        Scanner s = new Scanner(responseStream).useDelimiter("\\\\A");\n',i+='        String response = s.hasNext() ? s.next() : "";\n',i+="        System.out.println(response);\n",i+="    }\n",i+="}";let u="";for(const e of Array.from(r).sort())u+="import "+e+";\n";
1return r.size&&(u+="\n"),u+="class Main {\n",u+="\n",r.has("java.lang.Runtime")&&(u+="    public static String exec(String cmd) {\n",u+="        try {\n",u+="            Process p = Runtime.getRuntime().exec(cmd);\n",u+="            p.waitFor();\n",u+='            Scanner s = new Scanner(p.getInputStream()).useDelimiter("\\\\A");\n',u+='            return s.hasNext() ? s.next() : "";\n',u+="        } catch (Exception e) {\n",u+='            return "";\n',u+="        }\n",u+="    }\n",u+="\n"),u+="    public static void main(String[] args) throws IOException {\n",u+i+"\n"}function c(e,t=[]){return[u((0,o.qg)(e,l,t),t),t]}function p(e){return c(e)[0]}r()}catch(d){r(d)}}))},4164:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{Sj:()=>p,eO:()=>h,rx:()=>c,sb:()=>_});var s=n(6711),o=n(5385),a=e([o]);o=(a.then?(await a)():a)[0];const i=new Set([...o.xv,"max-time","connect-timeout","location","upload-file","http2"]),l=/"|\\|\p{C}|[^ \P{Z}]/gu,u=/[0-9]/;function c(e){return'"'+e.replace(l,((e,t,n)=>{switch(e){case"\\":return"\\\\";case"\b":return"\\b";case"\f":return"\\f";case"\n":return"\\n";case"\r":return"\\r";case"\t":return"\\t";case'"':return'\\"'}if(2===e.length){const t=e.charCodeAt(0),n=e.charCodeAt(1);return"\\u"+t.toString(16).padStart(4,"0")+"\\u"+n.toString(16).padStart(4,"0")}return"\0"!==e||u.test(n.charAt(t+1))?"\\u"+e.charCodeAt(0).toString(16).padStart(4,"0"):"\\0"}))+'"'}function p(e,t){const n=[];for(const r of e.tokens)"string"==typeof r?n.push(c(r)):"variable"===r.type?(n.push("System.getenv("+c(r.value)+")"),t.add("java.lang.System")):(n.push("exec("+c(r.value)+")"),t.add("java.lang.Runtime"),t.add("java.util.Scanner"));return n.join(" + ")}function d(e,t=[]){const n=(0,o.dH)(e,t),r=n.urls[0],a=new Set(["java.net.URI","java.net.http.HttpClient","java.net.http.HttpRequest","java.net.http.HttpResponse","java.io.IOException"]);let i="";i+="HttpClient client = ";const l=[];if(n.followRedirects?l.push("    .followRedirects(HttpClient.Redirect.NORMAL)\n"):!1===n.followRedirects&&l.push("    .followRedirects(HttpClient.Redirect.NEVER)\n"),n.connectTimeout&&(l.push("    .connectTimeout(Duration.ofSeconds("+n.connectTimeout.toString()+"))\n"),a.add("java.time.Duration")),l.length){i+="HttpClient.newBuilder()\n";for(const e of l)i+=e;i+="    .build()"}else i+="HttpClient.newHttpClient()";i+=";\n",i+="\n";const u=[];if(r.uploadFile?(((0,s.eq)(r.uploadFile,"-")||(0,s.eq)(r.uploadFile,"."))&&t.push(["upload-stdin","uploading from stdin isn't supported"]),u.push("BodyPublishers.ofFile(Paths.get("+p(r.uploadFile,a)+"))"),a.add("java.net.http.HttpRequest.BodyPublishers"),a.add("java.nio.file.Paths")):!n.dataArray||1!==n.dataArray.length||n.dataArray[0]instanceof s.vZ||n.dataArray[0].name?n.data&&(u.push("BodyPublishers.ofString("+p(n.data,a)+")"),a.add("java.net.http.HttpRequest.BodyPublishers")):(u.push("BodyPublishers.ofFile(Paths.get("+p(n.dataArray[0].filename,a)+"))"),a.add("java.net.http.HttpRequest.BodyPublishers"),a.add("java.nio.file.Paths")),r.auth){const[e,s]=r.auth;i+="String credentials = "+p(e,a)+' + ":" + '+p(s,a)+";\n",i+='String auth = "Basic " + Base64.getEncoder().encodeToString(credentials.getBytes());\n\n',a.add("java.util.Base64"),"basic"!==n.authType&&t.push(["unsupported-auth-type",`"${n.authType}" authentication is not supported`])}i+="HttpRequest request = HttpRequest.newBuilder()\n",i+="    .uri(URI.create("+p(r.url,a)+"))\n";const c=["POST","PUT"],d=r.method;let _="method";if(!d.isString()||!["DELETE","GET","POST","PUT"].includes(d.toString())||u.length&&!c.includes(d.toString())?(u.length||u.push("HttpRequest.BodyPublishers.noBody()"),u.unshift(p(d,a))):(!u.length&&c.includes(d.toString())&&u.push("HttpRequest.BodyPublishers.noBody()"),_=d.toString()),i+="    ."+_+"("+u.join(", ")+")\n",n.headers.length)for(const[e,t]of n.headers)null!==t&&(i+="    .setHeader("+p(e,a)+", "+p(t,a)+")\n");r.auth&&(i+='    .setHeader("'+(n.headers.lowercase?"authorization":"Authorization")+'", auth)\n'),n.http2&&(i+="    .version(HttpClient.Version.HTTP_2)\n"),n.timeout&&(i+="    .timeout(Duration.ofSeconds("+n.timeout.toString()+"))\n",a.add("java.time.Duration")),i+="    .build();\n",i+="\n",i+="HttpResponse<String>
1 response = client.send(request, HttpResponse.BodyHandlers.ofString());\n";let h="";for(const e of Array.from(a).sort())h+="import "+e+";\n";return a.size&&(h+="\n"),a.has("java.lang.Runtime")&&(h+="public static String exec(String cmd) {\n",h+="    try {\n",h+="        Process p = Runtime.getRuntime().exec(cmd);\n",h+="        p.waitFor();\n",h+='        Scanner s = new Scanner(p.getInputStream()).useDelimiter("\\\\A");\n',h+='        return s.hasNext() ? s.next() : "";\n',h+="    } catch (Exception e) {\n",h+='        return "";\n',h+="    }\n",h+="}\n",h+="\n"),h+i}function _(e,t=[]){return[d((0,o.qg)(e,i,t),t),t]}function h(e){return _(e)[0]}r()}catch(m){r(m)}}))},2563:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{F:()=>c,lG:()=>p});var s=n(6711),o=n(5385),a=n(4164),i=e([o,a]);[o,a]=i.then?(await i)():i;const l=new Set([...o.xv,"form","form-string","max-time"]),u=(e,t=[])=>{const n=(0,o.dH)(e,t),r=new Set(["java.io.IOException","java.io.File","java.io.FileInputStream","org.jsoup.Jsoup","org.jsoup.Connection"]);let i="";if(i+="\nclass Main {\n\n",i+="\tpublic static void main(String[] args) throws IOException {\n",n.urls[0].auth&&(i+="\t\tbyte[] message = ("+(0,a.Sj)((0,s.yZ)(n.urls[0].auth,":"),r)+').getBytes("UTF-8");\n',i+="\t\tString basicAuth = DatatypeConverter.printBase64Binary(message);\n",i+="\n",r.add("javax.xml.bind.DatatypeConverter")),i+="\t\tConnection.Response response = Jsoup.connect("+(0,a.Sj)(n.urls[0].url,r)+")\n",n.headers)for(const[e,t]of n.headers)if(null!==t)if((0,s.eq)(e.toLowerCase(),"user-agent"))i+="\t\t\t.userAgent("+(0,a.Sj)(t,r)+")\n";else if((0,s.eq)(e.toLowerCase(),"cookie")){const e=t.split(";");for(const t in e)i+="\t\t\t.cookie("+(0,a.Sj)(e[t].split("=")[0].trim(),r)+", "+(0,a.Sj)(e[t].split("=")[1].trim(),r)+")\n"}else i+="\t\t\t.header("+(0,a.Sj)(e,r)+", "+(0,a.Sj)(t,r)+")\n";if(n.urls[0].auth&&(i+='\t\t\t.header("Authorization", "Basic " + basicAuth)\n'),n.multipartUploads){i+="\t\t\t.data(";for(const e of n.multipartUploads){const t=e.name,o="new FileInputStream(new File(",l="filename";"contentFile"in e?(0,s.eq)(e.contentFile,"-")?n.stdinFile?i+=(0,a.Sj)(t,r)+'", "'+l+'", '+o+(0,a.Sj)(n.stdinFile,r):n.stdin&&(i+=(0,a.Sj)(t,r)+'", "'+l+'", '+o+(0,a.Sj)(n.stdin,r)):i+=(0,a.Sj)(t,r)+'", "'+l+'", '+o+(0,a.Sj)(e.contentFile,r):i+=(0,a.Sj)(t,r)+'", "'+l+'",'+o+(0,a.Sj)(e.content,r)}i+=")))\n"}else n.data&&(i+="\t\t\t.requestBody("+(0,a.Sj)(n.data,r)+")\n");i+="\t\t\t.method(org.jsoup.Connection.Method."+n.urls[0].method.toString()+")\n",i+="\t\t\t.ignoreContentType(true)\n",n.timeout&&(i+="\t\t\t.timeout("+n.timeout.toString()+" * 1000)\n"),i+="\t\t\t.execute();\n\n",i+="\t\tSystem.out.println(response.parse());\n",i+="\t}\n",i+="}";let l="";for(const e of Array.from(r).sort())l+="import "+e+";\n";return r.size&&(l+="\n"),l+i+"\n"},c=(e,t=[])=>{const n=(0,o.qg)(e,l,t);return[u(n,t),t]},p=e=>c(e)[0];r()}catch(e){r(e)}}))},2018:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{Cv:()=>p,_H:()=>d});var s=n(6711),o=n(5385),a=n(5210),i=n(4164),l=e([o,i]);[o,i]=l.then?(await l)():l;const u=new Set([...o.xv,"max-time","connect-timeout","location","location-trusted","upload-file","form","form-string"]);function c(e,t=[]){const n=(0,o.dH)(e,t),r=n.urls[0],l=new Set(["java.io.IOException","okhttp3.OkHttpClient","okhttp3.Request","okhttp3.Response"]);let u="";u+="OkHttpClient client = new OkHttpClient()";const c=[];if(n.timeout&&(c.push("    .callTimeout("+n.timeout.toString()+", TimeUnit.SECONDS)\n"),l.add("java.util.concurrent.TimeUnit")),n.connectTimeout&&(c.push("    .connectTimeout("+n.connectTimeout.toString()+", TimeUnit.SECONDS)\n"),l.add("java.util.concurrent.TimeUnit")),!1===n.followRedirects&&(c.push("    .followRedirects(false)\n"),c.push("    .followSslRedirects(false)\n")),c.length){u+=".newBuilder()\n";for(const e of c)u+=e;u+="    .build()"}if(u+=";\n",u+="\n",r.auth){const[e,s]=r.auth;u+="String credential = Credentials.basic("+(0,i.Sj)(e,l)+", "+(0,i.Sj)(s,l)+");\n\n",l.add("okhttp3.Credentials"),"basic"!==n.authType&&t.push(["okhttp-unsupported-auth-type","OkHttp doesn't support auth type "+n.authType])}const p=[];if(r.uploadFile)((0,s.eq)(r.uploadFile,"-")||(0,s.eq)(r.uploadFile,"."))&&t.push(["upload-stdin","uploading from stdin isn't supported"]),p.push("file"),u+="File file = new File("+(0,i.Sj)(r.uploadFile,l)+");\n\n",l.add("java.io.File");else if(n.multipartUploads){p.push("requestBody"),u+="RequestBody requestBody = new MultipartBody.Builder()\n",u+="    .setType(MultipartBody.FORM)\n";for(const e of n.multipartUploads){const t=[(0,i.Sj)(e.name,l)];"content"in e?t.push((0,i.Sj)(e.content,l)):"filename"in e&&e.filename?((0,s.eq)(e.filename,e.contentFile)||t.push((0,i.Sj)(e.filename,l)),t.push('RequestBody.create("", new File('+(0,i.Sj)(e.contentFile,l)+"))"),l.add("java.io.File")):t.push("Files.readAllBytes("+(0,i.Sj)(e.contentFile,l)+")"),u+="    .addFormDataPart("+t.join(", ")+")\n"}u+="    .build();\n\n",l.add("okhttp3.RequestBody"),l.add("okhttp3.MultipartBody")}else if(!n.dataArray||1!==n.dataArray.length||n.dataArray[0]instanceof s.vZ||n.dataArray[0].name){if(n.data)if("application/x-www-form-urlencoded"===n.headers.getContentType()){const[e]=(0,a.JO)(n.data);if(e){p.push("formBody"),u+="RequestBody formBody = new FormBody.Builder()\n";for(const[t,n]of e)u+="    .add("+(0,i.Sj)(t,l)+", "+(0,i.Sj)(n,l)+")\n";u+="    .build();\n\n",l.add("okhttp3.FormBody"),l.add("okhttp3.RequestBody")}else p.push("requestBody"),u+="String requestBody = "+(0,i.Sj)(n.data,l)+";\n\n"}else p.push("requestBody"),u+="String requestBody = "+(0,i.Sj)(n.data,l)+";\n\n"}else p.push("file"),u+="File file = new File("+(0,i.Sj)(n.dataArray[0].filename,l)+");\n\n",l.add("java.io.File");u+="Request request = new Request.Builder()\n",u+="    .url("+(0,i.Sj)(r.url,l)+")\n";const d=r.method;let _="method";if(!d.isString()||!["DELETE","GET","HEAD","PATCH","POST","PUT"].includes(d.toString())||p.length&&!["DELETE","PATCH","POST","PUT"].includes(d.toString())?p.unshift((0,i.Sj)(d,l)):_=d.toString().toLowerCase(),"get"!==_&&(u+="    ."+_+"("+p.join(", ")+")\n"),n.headers.length)for(const[e,t]of n.headers)null!==t&&(u+="    .header("+(0,i.Sj)(e,l)+", "+(0,i.Sj)(t,l)+")\n");r.auth&&(u+='    .header("'+(n.headers.lowercase?"authorization":"Authorization")+'", credential)\n'),u+="    .build();\n",u+="\n",u+="try (Response response = client.newCall(request).execute()) {\n",u+='    if (!response.isSuccessful()) throw new IOException("Unexpected code " + response);\n',u+="    response.body().string();\n",u+="}\n";let h="";for(const e of Array.from(l).sort())h+="import "+e+";\n";return l.size&&(h+="\n"),l.has("java.lang.Runtime")&&(h+="public static String exec(String cmd) {\n",h+="    try {\n",h+="        Process p = Runtime.getRuntime().exec(cmd);\n",h+="        p.waitFor();\n",h+='        Scanner s = new Scanner(p.getInputStream()).useDelimiter("\\\\A");\n',h+='        return s.hasNext() ? s.next() : "";\n',h+="    } catch (Exception e) {\n",h+='        return "";\n',h+="    }\n",h+="}\n",h+="\n"),h+u+"\n"}function p(e,t=[]){return[c((0,o.qg)(e,u,t),t),t]}function d(e){return p(e)[0]}r()}catch(_){r(_)}}))},9903:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{Cp:()=>m,qP:()=>f});var s=n(9531),o=n(6711),a=n(5385),i=n(5210),l=n(7730),u=e([a,l]);[a,l]=u.then?(await u)():u;const c=new Set([...a.xv,"max-time","form","form-string","proxy","proxy-user"]);
1function p(e,t){if(!e.data)return[null,null];const n=(0,l.Sj)(e.data,t),r=e.headers.getContentType(),s=e.headers.get("content-type");if("application/json"===r&&e.data.isString()){const t=e.data.toString(),r=JSON.parse(t);if("object"!=typeof r||null===r)return[n,null];const a=JSON.stringify(r)===t,i=(0,l.RD)(r,1);return a&&(0,o.eq)(s,"application/json")&&(0,o.eq)(e.headers.get("accept"),"application/json, text/plain, */*")&&(e.headers.delete("content-type"),e.headers.delete("accept")),[i,a?null:n]}if("application/x-www-form-urlencoded"===r){const[r,a]=(0,i.JO)(e.data);return r?((0,o.eq)(s,"application/x-www-form-urlencoded")&&e.headers.delete("content-type"),[(0,l.bU)([r,a],t),null]):[n,null]}return[null,null]}function d(e,t){if(!e.data)return[null,null];let n=null,r=null;try{[n,r]=p(e,t)}catch(e){}return n||(n=(0,l.Sj)(e.data,t)),[n,r]}function _(e,t,n,r,a,i,u){let c="{\n";r.includes(n)||(c+="  method: "+(0,l.Sj)(t,u)+",\n"),i?c+="  params: params,\n":e.urls[0].queryDict&&(c+="  params: "+(0,l.BD)(e.urls[0].queryDict,1,u)+",\n");const[p,_]=d(e,u);if(e.headers.length||e.multipartUploads){c+="  headers: {\n",e.multipartUploads&&(c+="    ...form.getHeaders(),\n");for(const[t,n]of e.headers)c+="    "+(0,l.Sj)(t,u)+": "+(0,l.Sj)(null!=n?n:new o.vZ,u)+",\n";c.endsWith(",\n")&&(c=c.slice(0,-2),c+="\n"),c+="  },\n"}if(e.urls[0].auth){const[t,n]=e.urls[0].auth;c+="  auth: {\n",c+="    username: "+(0,l.Sj)(t,u),n.toBool()?(c+=",\n",c+="    password: "+(0,l.Sj)(n,u)+"\n"):c+="\n",c+="  },\n"}if(a.includes(n)||(e.multipartUploads?c+="  data: form,\n":e.data&&(_&&(c+="  // data: "+_+",\n"),c+="  data: "+p+",\n")),e.timeout&&0!==parseFloat(e.timeout.toString())&&(c+="  timeout: "+(0,l.Z6)(e.timeout,u)+",\n"),e.proxy&&""===e.proxy.toString())c+="  proxy: false,\n";else if(e.proxy){const t=e.proxy.includes("://")?e.proxy:e.proxy.prepend("http://");let[n,r]=t.split("://",2);n="socks"===n.toLowerCase().toString()?new o.vZ("socks4"):n.toLowerCase();let a="1080";const i=r.match(/:([0-9]+$)/);if(i&&(r=r.slice(0,i.index),a=i[1]),c+="  proxy: {\n",c+="    protocol: "+(0,l.Sj)(n,u)+",\n",c+="    host: "+(0,l.Sj)(r,u)+",\n",(0,s.E6)(a)?c+="    port: "+a+",\n":c+="    port: "+(0,l.rx)(a)+",\n",e.proxyAuth){const[t,n]=e.proxyAuth.split(":",2);c+="    auth: {\n",c+="      user: "+(0,l.Sj)(t,u),void 0!==n?(c+=",\n",c+="      password: "+(0,l.Sj)(n,u)+"\n"):c+="\n",c+="    },\n"}c.endsWith(",\n")&&(c=c.slice(0,-2),c+="\n"),c+="  },\n"}return c.endsWith(",\n")&&(c=c.slice(0,-2)),c+="\n}",c}function h(e,t=[]){const n=(0,a.dH)(e,t);let r="import axios from 'axios';\n";const s=[];let i="";const u=n.urls[0].queryList&&(!n.urls[0].queryDict||n.urls[0].queryDict.some((e=>Array.isArray(e[1]))));if(u&&n.urls[0].queryList){i+="const params = new URLSearchParams();\n";for(const[e,t]of n.urls[0].queryList)i+="params.append("+(0,l.Sj)(e,s)+", "+(0,l.Sj)(t,s)+");\n";i+="\n"}if(n.multipartUploads){r+="import FormData from 'form-data';\n",i+="const form = new FormData();\n";for(const e of n.multipartUploads)i+="form.append("+(0,l.Sj)(e.name,s)+", ","contentFile"in e?((0,l.Xx)(s,"* as fs","fs"),(0,o.eq)(e.contentFile,"-")?i+="fs.readFileSync(0).toString()":i+="fs.readFileSync("+(0,l.Sj)(e.contentFile,s)+")","filename"in e&&e.filename&&(i+=", "+(0,l.Sj)(e.filename,s))):i+=(0,l.Sj)(e.content,s),i+=");\n";i+="\n"}const c=n.urls[0].method.toLowerCase(),p=c.toString(),h=["get","delete","head","options","post","put","patch"];i+="const response = await axios",h.includes(p)&&(i+="."+p),i+="(";const m=n.urls[0].queryDict||u?n.urls[0].urlWithoutQueryList:n.urls[0].url,f=["post","put","patch"];let y=!!(!h.includes(p)||n.urls[0].queryList||n.urls[0].queryDict||n.headers.length||n.urls[0].auth||n.multipartUploads||n.data&&!f.includes(p)||n.timeout||n.proxy);const g=f.includes(p)&&(n.data||n.multipartUploads||y);let w,S;if(g)if(i+="\n",i+="  "+(0,l.Sj)(m,s)+",\n",n.multipartUploads)i+="  form";else if(n.data){try{[w,S]=d(n,s),w||(w=(0,l.Sj)(n.data,s))}catch(e){w=(0,l.Sj)(n.data,s)}S&&(i+="  // "+S+",\n"),i+="  "+w}else y&&(i+="  ''");else i+=(0,l.Sj)(m,s);if(y=!!(!h.includes(p)||n.urls[0].queryList||n.urls[0].queryDict||n.headers.length||n.urls[0].auth||n.multipartUploads||n.data&&!f.includes(p)||n.timeout||n.proxy),y){const e=_(n,c,p,h,f,!!u,s);if(g){i+=",\n";for(const t of e.split("\n"))i+="  "+t+"\n"}else i+=", ",i+=e}else g&&(i+="\n");return i+=");\n",r+=(0,l.cX)(s),r+"\n"+i}function m(e,t=[]){return[h((0,a.qg)(e,c,t),t),t]}function f(e){return m(e)[0]}r()}catch(y){r(y)}}))},6803:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{W3:()=>h,WN:()=>_});var s=n(6711),o=n(5385),a=n(5210),i=n(7730),l=e([o,i]);[o,i]=l.then?(await l)():l;const u=new Set([...o.xv,"max-time","connect-timeout","location","no-location","location-trusted","no-location-trusted","max-redirs","compressed","insecure","http2","http2-prior-knowledge","form","form-string"]);function c(e,t){const n=e.headers.getContentType(),r=e.headers.get("content-type");if(e.multipartUploads)return(0,s.eq)(r,"multipart/form-data")&&e.headers.delete("content-type"),["body: form",null];
1if(!e.data)return[null,null];const o="body: "+(0,i.Sj)(e.data,t);try{if("application/json"===n&&e.data.isString()){const t=e.data.toString(),n=JSON.parse(t),a=JSON.stringify(n)===t,l="json: "+(0,i.RD)(n,1);return a&&(0,s.eq)(r,"application/json")&&e.headers.delete("content-type"),[l,a?null:o]}if("application/x-www-form-urlencoded"===n){const[n,o]=(0,a.JO)(e.data);if(o&&o.every((e=>!Array.isArray(e[1]))))return(0,s.eq)(r,"application/x-www-form-urlencoded")&&e.headers.delete("content-type"),["form: "+(0,i.nK)(o,1,t),null];if(n)return["body: "+(0,i.bU)([n,null],t)+".toString()",null]}}catch(e){}return[o,null]}function p(e,t,n,r,s,o,a){let l="{\n";t.isString&&r.includes(n.toUpperCase())||(l+="  method: "+(0,i.Sj)(t,a)+",\n"),e.urls[0].queryDict&&e.urls[0].queryDict.every((e=>!Array.isArray(e[1])))?l+="  searchParams: "+(0,i.nK)(e.urls[0].queryDict,1,a)+",\n":e.urls[0].queryList&&(l+="  searchParams: "+(0,i.bU)([e.urls[0].queryList,null],a)+",\n");const[u,p]=c(e,a);if(e.headers.length){const t=e.headers.headers.filter((e=>null!==e[1]));t.length&&(l+="  headers: "+(0,i.nK)(t,1,a)+",\n")}if(e.urls[0].auth){const[t,n]=e.urls[0].auth;l+="  username: "+(0,i.Sj)(t,a)+",\n",n.toBool()&&(l+="  password: "+(0,i.Sj)(n,a)+",\n"),e.authType}(e.data||e.multipartUploads)&&(p&&(l+="  // "+p+",\n"),l+="  "+u+",\n",s.includes(n.toUpperCase())&&(l+="  allowGetBody: true,\n")),(e.timeout||e.connectTimeout)&&(l+="    timeout: {\n",e.timeout&&(l+="    request: "+(0,i.Z6)(e.timeout,a)+",\n"),e.connectTimeout&&(l+="    connect: "+(0,i.Z6)(e.connectTimeout,a)+",\n"),l.endsWith(",\n")&&(l=l.slice(0,-2),l+="\n"),l+="  },\n");let d=e.followRedirects;void 0===d&&(d=!0);let _=e.maxRedirects?(0,i.z9)(e.maxRedirects,a):null;const h=d&&_&&"0"!==_&&"10"!==_;return d&&"0"!==_?_&&"-1"===_&&(_="Infinity"):l+="  followRedirect: false,\n",d&&e.followRedirectsTrusted&&o.push(["--location-trusted","got doesn't have an easy way to disable removing the Authorization: header on redirect"]),h&&(l+="  maxRedirects: "+_+",\n"),!1===e.compressed&&(l+="  decompress: false,\n"),e.insecure&&(l+="  https: {\n",l+="    rejectUnauthorized: false\n",l+="  },\n"),e.http2&&(l+="  http2: true,\n"),l.endsWith(",\n")&&(l=l.slice(0,-2)),l+="\n}",l}function d(e,t=[]){const n=(0,o.dH)(e,t),r=[];let a="";if(n.multipartUploads){a+="const form = new FormData();\n";for(const e of n.multipartUploads)a+="form.append("+(0,i.Sj)(e.name,r)+", ","contentFile"in e?((0,i.Xx)(r,"* as fs","fs"),(0,s.eq)(e.contentFile,"-")?a+="fs.readFileSync(0).toString()":a+="fs.readFileSync("+(0,i.Sj)(e.contentFile,r)+")","filename"in e&&e.filename&&(a+=", "+(0,i.Sj)(e.filename,r))):a+=(0,i.Sj)(e.content,r),a+=");\n";a+="\n",t.push(["node-form-data","Node 18 is required for FormData"])}const l=n.urls[0].method,u=l.toString();l.isString()&&u!==u.toUpperCase()&&t.push(["lowercase-method","got will uppercase the method: "+JSON.stringify(u)]);const c=["GET","POST","PUT","PATCH","HEAD","DELETE"];a+="const response = await got",l.isString()&&c.includes(u.toUpperCase())&&"GET"!==u.toUpperCase()&&(a+="."+u.toLowerCase()),a+="(";const d=n.urls[0].queryList?n.urls[0].urlWithoutQueryList:n.urls[0].url;a+=(0,i.Sj)(d,r),!!(!l.isString()||!c.includes(u.toUpperCase())||n.urls[0].queryList||n.urls[0].queryDict||n.headers.length||n.urls[0].auth||n.multipartUploads||n.data||n.followRedirects||n.maxRedirects||n.compressed||n.insecure||n.http2||n.timeout||n.connectTimeout)&&(a+=", ",a+=p(n,l,u,c,["GET","HEAD"],t,r)),a+=");\n";let _="import got from 'got';\n";for(const[e,t]of Array.from(r).sort(i.n_))_+="import "+e+" from "+(0,i.rx)(t)+";\n";return _+"\n"+a}function _(e,t=[]){return[d((0,o.qg)(e,u,t),t),t]}function h(e){return _(e)[0]}r()}catch(m){r(m)}}))},413:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{Go:()=>h,KI:()=>m});var s=n(6711),o=n(5385),a=n(5210),i=n(7730),l=n(5955),u=e([o,i,l]);[o,i,l]=u.then?(await u)():u;const c=new Set([...o.xv,"form","form-string","max-time"]);function p(e,t,n){const r=(0,i.Sj)(e,n);if("application/json"===t&&e.isString()){const t=e.toString(),n=JSON.parse(t);if("object"!=typeof n||null===n)return[r,null];const s=JSON.stringify(n)===t;return["JSON.stringify("+(0,i.RD)(n,1)+")",s?null:r]}if("application/x-www-form-urlencoded"===t){const t=(0,a.JO)(e);if(t[0])return[(0,i.bU)(t,n)+".toString()",null]}return[r,null]}function d(e,t,n){let r=null,s=null;try{[r,s]=p(e,t,n)}catch(e){}return r||(r=(0,i.Sj)(e,n)),[r,s]}function _(e,t=[]){const n=(0,o.dH)(e,t),r=[];let a="",u="",c="";const p=n.urls[0].method;(0,s.eq)(p,"GET")||(c+="  method: "+(0,i.Sj)(p,r)+",\n"),(0,s.eq)(n.urls[0].method.toUpperCase(),p)||t.push(["method-case","http uppercases the method, so it will be changed to "+JSON.stringify(p.toUpperCase().toString())]);const _=n.urls[0].url;let h,m,f;const y=n.headers.getContentType();if(n.multipartUploads?(f=(0,l.Ul)(n.multipartUploads,r),u+=f,a+="import FormData from 'form-data';\n"):n.data&&([h,m]=d(n.data,y,r)),n.urls[0].auth){const[e,t]=n.urls[0].auth;c+="  auth: "+(0,i.Sj)((0,s.yZ)([e,t],":"),r)+",\n"}if(n.headers.length){c+="  headers: {\n";for(const[e,t]of n.headers)null!==t&&(c+="    "+(0,i.Sj)(e,r)+": "+(0,i.Sj)(t,r)+",\n");f&&(c+="    ...form.getHeaders(),\n"),c.endsWith(",\n")&&(c=c.slice(0,-2),c+="\n"),c+="  },\n"}else f&&(c+="  headers: form.getHeaders(),\n");n.timeout&&(c+="  timeout: "+(0,i.Z6)(n.timeout,r)+",\n"),c.endsWith(",\n")&&(c=c.slice(0,-2),c+="\n");const g=n.urls[0].urlObj;let w=(0,i.Sj)(_,r);if(c){u+="const options = {\n",u+="  hostname: "+(0,i.Sj)(g.host,r)+",\n",g.host.includes(":")&&t.push(["node-http-port","Parsing the port out of the hostname is not supported. If you get an ENOTFOUND error, you'll need to do it manually"]);const e=(0,s.__)(g.path,g.query);
1e.toBool()&&(u+="  path: "+(0,i.Sj)(e,r)+",\n"),u+=c,u+="};\n",u+="\n",w="options"}const S="https"===g.scheme.toString()?"https":"http",b=!(0,s.eq)(p,"GET")||h||m||f?"request":"get";return u+="const req = "+S+"."+b+"("+w+", function (res) {\n",u+="  const chunks = [];\n",u+="\n",u+="  res.on('data', function (chunk) {\n",u+="    chunks.push(chunk);\n",u+="  });\n",u+="\n",u+="  res.on('end', function () {\n",u+="    const body = Buffer.concat(chunks);\n",u+="    console.log(body.toString());\n",u+="  });\n",u+="});\n",m&&(u+="\n// req.write("+m+");"),h?u+="\nreq.write("+(0,l.TW)(h)+");\n":f&&(u+="\nform.pipe(req);\n"),"get"===b||f||(u+="req.end();\n"),a="import "+S+" from '"+S+"';\n"+a,a+=(0,i.cX)(r),a+="\n",a+u}function h(e,t=[]){return[_((0,o.qg)(e,c,t),t),t]}function m(e){return h(e)[0]}r()}catch(f){r(f)}}))},7730:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{BD:()=>g,RD:()=>h,Sj:()=>A,UQ:()=>b,WG:()=>N,Xx:()=>x,Z6:()=>C,bM:()=>d,bU:()=>L,cX:()=>E,j6:()=>H,nK:()=>f,n_:()=>P,q2:()=>B,rx:()=>T,tJ:()=>D,xH:()=>v,ye:()=>$,z9:()=>O});var s=n(7277),o=n(6711),a=n(5385),i=n(5210),l=n(7159),u=e([a]);a=(u.then?(await u)():u)[0];const c=new Set([...a.xv,"upload-file","form","form-string","digest","no-digest","next","compressed"]),p=new Set([...c,"proxy"]),d=["CONNECT","TRACE","TRACK"],_=["Accept-Charset","Accept-Encoding","Access-Control-Request-Headers","Access-Control-Request-Method","Connection","Content-Length","Cookie","Cookie2","Date","DNT","Expect","Host","Keep-Alive","Origin","Referer","Set-Cookie","TE","Trailer","Transfer-Encoding","Upgrade","Via"].map((e=>e.toLowerCase()));function h(e,t){const n=l(e,{quotes:"single",minimal:!1,compact:!1,indent:"  ",indentLevel:t||0});return"string"==typeof e?"'"+n+"'":n}function m(e,t=0,n="  ",r=!0,s){if(0===e.length)return r?"[]":"{}";let o=r?"[\n":"{\n";for(const[a,[i,l]]of e.entries())o+=n.repeat(t+1),o+=r?"["+A(i,s)+", "+A(l,s)+"]":A(i,s)+": "+A(l,s),o+=a<e.length-1?",\n":"\n";return o+=n.repeat(t)+(r?"]":"}"),o}function f(e,t=0,n,r="  "){return m(e,t,r,!1,n)}function y(e,t=0,n,r="  "){return m(e,t,r,!0,n)}function g(e,t=0,n,r="  ",s=!0){if(0===e.length)return s?"[]":"{}";let o="{\n";for(const[s,[a,i]]of e.entries()){let l;l=Array.isArray(i)?"["+i.map((e=>A(e,n))).join(", ")+"]":A(i,n),o+=r.repeat(t+1),o+=A(a,n)+": "+l,o+=s<e.length-1?",\n":"\n"}return o+=r.repeat(t)+"}",o}const w=/'|"|\\|\p{C}|[^ \P{Z}]/gu,S=/[0-9]/;function b(e,t="'"){return e.replace(w,((e,n,r)=>{switch(e[0]){case"\\":return"\\\\";case"\b":return"\\b";case"\f":return"\\f";case"\n":return"\\n";case"\r":return"\\r";case"\t":return"\\t";case"\v":return"\\v";case"'":case'"':return e===t?"\\"+e:e;case"\0":if(!S.test(r.charAt(n+1)))return"\\0"}if(2===e.length){const t=e.charCodeAt(0),n=e.charCodeAt(1);return"\\u"+t.toString(16).padStart(4,"0")+"\\u"+n.toString(16).padStart(4,"0")}const s=e.charCodeAt(0).toString(16);return s.length>2?"\\u"+s.padStart(4,"0"):"\\x"+s.padStart(2,"0")}))}function T(e,t){return void 0===t&&(t="'",e.includes("'")&&!e.includes('"')&&(t='"')),t+b(e,t)+t}function x(e,t,n){for(const[r,s]of e)if(r===t&&s===n)return;e.push([t,n])}function E(e){let t="";for(const[n,r]of e.sort(P))n.startsWith("* as")?t+=`import ${n} from ${T(r)};\n`:t+=`import { ${n} } from ${T(r)};\n`;return t}function v(e){const t=[];if(0===e.length)return"";for(const[n,r]of e.sort(P))n.startsWith("* as ")?t.push(`const ${n.slice(5)} = require(${T(r)});`):n.includes(".")?t.push(`const ${n} = require(${T(r)}).${n};`):t.push(`const ${n} = require(${T(r)});`);return t.join("\n")+"\n"}function A(e,t){const n=[];for(const r of e.tokens)"string"==typeof r?n.push(T(r)):"variable"===r.type?n.push("process.env["+T(r.value)+"]"):(n.push("execSync("+T(r.value)+").stdout"),x(t,"execSync","node:child_process"));return n.join(" + ")}function R(e,t,n){return t?A(e,n):T(e.toString())}function C(e,t){if(e.isString()){const t=e.toString(),n=1e3*parseFloat(t);if(!isNaN(n))return n.toString()}return"parseFloat("+A(e,t)+") * 1000"}function O(e,t){if(e.isString()){const t=e.toString(),n=parseInt(t);if(!isNaN(n))return t}return"parseInt("+A(e,t)+")"}function P(e,t){return e[1].localeCompare(t[1])}function L(e,t,n=1){const[r,s]=e;return"new URLSearchParams("+(s&&s.every((e=>!Array.isArray(e[1])))?f(s,n,t):y(r,n,t))+")"}function N(e,t,n=1){const[r,s]=e;return s&&s.every((e=>!Array.isArray(e[1])))?f(s,n,t):"new URLSearchParams("+y(r,n,t)+")"}function F(e,t,n,r,s=!0){let a="new FormData();\n";for(const i of e)a+="form.append("+R(i.name,s,t)+", ","contentFile"in i?s?(0,o.eq)(i.contentFile,"-")?(x(t,"* as fs","fs"),a+="fs.readFileSync(0).toString()",i.filename&&(a+=", "+R(i.filename,s,t))):(n.add("fileFromSync"),a+="fileFromSync("+
1R(i.contentFile,s,t)+")"):(a+="File(['<data goes here>'], "+R(i.contentFile,s,t)+")",r.push(["--form","you can't read a file for --form/-F in the browser"])):a+=R(i.content,s,t),a+=");\n";return a}function k(e,t,n,r){const s=R(t,n,r),a=e.headers.getContentType();if("application/json"===a)try{const e=t.toString(),n=JSON.parse(e);if("object"!=typeof n||null===n)return[s,null];const r=JSON.stringify(n)===e;return["JSON.stringify("+h(n,1)+")",r?null:s]}catch(e){return[s,null]}if("application/x-www-form-urlencoded"===a)try{const[n,a]=(0,i.JO)(t);return n?((0,o.eq)(e.headers.get("content-type"),"application/x-www-form-urlencoded")&&e.headers.delete("content-type"),[L([n,a],r),null]):[s,null]}catch(e){return[s,null]}return[s,null]}function I(e,t,n){if(!e.dataArray||e.multipartUploads)return["",null];if(1===e.dataArray.length&&e.dataArray[0]instanceof o.vZ&&e.dataArray[0].isString())try{return k(e,e.dataArray[0],t,n)}catch(e){}const r=[],s=e.dataArray.some((e=>!(e instanceof o.vZ)&&"binary"===e.filetype))?"":", 'utf-8'";for(const a of e.dataArray)if(a instanceof o.vZ)r.push(A(a,n));else{const{filetype:e,name:i,filename:l}=a;"urlencode"===e&&i&&r.push(R(i,t,n)),(0,o.eq)(l,"-")?t?(x(n,"* as fs","fs"),r.push("fs.readFileSync(0"+s+")")):r.push("new File([/* contents */], '<stdin>')"):t?(x(n,"* as fs","fs"),r.push("fs.readFileSync("+R(l,t,n)+s+")")):r.push("new File([/* contents */], "+R(l,t,n)+")")}if(0===r.length)return["''",null];if(1===r.length)return[r[0],null];let[a,i,l]=["new ArrayBuffer(",", ",")"];return r.reduce(((e,t)=>e+t.length),0)>80&&(a+="\n    ",i=",\n    ",l="\n  )"),[a+r.join(i)+l,null]}function j(e,t,n,r,a){(0,s.cY)(e,t,{multipleUrls:!0,dataReadsFile:!0,queryReadsFile:!0});let i="";e.multipartUploads&&(a&&n.add("FormData"),i+="const form = "+F(e.multipartUploads,r,n,t,a),i+="\n");const[l,u]=I(e,a,r);let c="fetch";if(e.urls[0].auth&&"digest"===e.authType){const[t,n]=e.urls[0].auth;x(r,"* as DigestFetch","digest-fetch"),i+="const client = new DigestFetch("+R(t,a,r)+", "+R(n,a,r)+");\n",c="client.fetch"}for(const s of e.urls){i+=c+"("+R(s.url,a,r),s.queryReadsFile&&t.push(["unsafe-query","the URL query string is not correct, "+JSON.stringify("@"+s.queryReadsFile)+" means it should read the file "+JSON.stringify(s.queryReadsFile)]);const p=s.method.toLowerCase(),h=s.method.toString();p.isString()&&d.includes(h)&&t.push(["forbidden-method","the method "+JSON.stringify(h)+" is not allowed in fetch()"]);let m="";if((0,o.eq)(p,"get")||(m+="  method: "+R(s.method,a,r)+",\n"),e.headers.length||s.auth&&"basic"===e.authType){m+="  headers: {\n";for(const[n,s]of e.headers)m+="    "+R(n,a,r)+": "+R(s||new o.vZ,a,r)+",\n",!a&&n.isString()&&_.includes(n.toString().toLowerCase())&&t.push(["forbidden-header",JSON.stringify(n.toString())+" header is forbidden in fetch()"]);s.auth&&"basic"===e.authType&&(m+="    'Authorization': 'Basic ' + btoa("+R((0,o.yZ)(s.auth,":"),a,r)+"),\n"),m.endsWith(",\n")&&(m=m.slice(0,-2),m+="\n"),m+="  },\n"}if(s.uploadFile?a?(n.add("fileFromSync"),m+="  body: fileFromSync("+R(s.uploadFile,a,r)+"),\n"):(m+="  body: File(['<data goes here>'], "+R(s.uploadFile,a,r)+"),\n",t.push(["--form","you can't read a file for --upload-file/-F in the browser"])):e.multipartUploads?m+="  body: form,\n":e.data&&(u&&(m+="  // body: "+u+",\n"),m+="  body: "+l+",\n"),a&&e.proxy){const n=e.proxy.includes("://")?e.proxy:e.proxy.prepend("http://");let[s]=n.split("://",2);s=s.toLowerCase(),s.toBool()||(s=new o.vZ("http")),(0,o.eq)(s,"socks")&&(s=new o.vZ("socks4"),n.replace(/^socks/,"socks4")),(0,o.eq)(s,"socks4")||(0,o.eq)(s,"socks5")||(0,o.eq)(s,"socks5h")||(0,o.eq)(s,"socks4a")?(x(r,"{ SocksProxyAgent }","socks-proxy-agent"),m+="  agent: new SocksProxyAgent("+R(n,a,r)+"),\n"):(0,o.eq)(s,"http")||(0,o.eq)(s,"https")?(x(r,"HttpsProxyAgent","https-proxy-agent"),m+="  agent: new HttpsProxyAgent("+R(n,a,r)+"),\n"):t.push(["--proxy","failed to parse --proxy/-x or unknown protocol: "+s])}m&&(m.endsWith(",\n")&&(m=m.slice(0,-2)),i+=", {\n",i+=m,i+="\n}"),i+=");\n"}return i}function U(e,t,n){const r=new Set,s=[],o=e.map((e=>j(e,t,r,s,n))).join("\n");let a="";if(n&&(a+="import fetch",r.size&&(a+=", { "+Array.from(r).sort().join(", ")+" }"),a+=" from 'node-fetch';\n"),s.length)for(const[e,t]of Array.from(s).sort(P))a+="import "+e+" from "+T(t)+";\n";return a?a+"\n"+o:o}function q(e,t=[]){return U(e,t,!1)}function M(e,t=[]){return U(e,t,!0)}function D(e,t=[]){return[q((0,a.qg)(e,c,t),t),t]}function H(e){const[t]=D(e);return t}function B(e,t=[]){return[M((0,a.qg)(e,p,t),t),t]}function $(e){return B(e)[0]}r()}catch(W){r(W)}}))},5955:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{Pn:()=>w,TW:()=>c,Ul:()=>f,pZ:()=>p,zd:()=>g});var s=n(6711),o=n(5385),a=n(5210),i=n(7730),l=e([o,i]);[o,i]=l.then?(await l)():l;const u=new Set([...o.xv,"form","form-string","max-time"]);function c(e){return e.replace(/^ {2}/gm,"")}function p(e,t=1){const n="  ".repeat(t);return e.split("\n").join("\n"+n)}function d(e,t=0){const n="  ".repeat(t);return e.split("\n").join("\n"+n+"// ")}function _(e,t){const[n,r]=e;let s="",o=!1;if(r){s+="{\n";for(const[e,n]of r)s+="  "+(0,i.Sj)(e,t)+": ",Array.isArray(n)?(s+="["+n.map((e=>(0,i.Sj)(e,t))).join(", ")+"]",o=!0):s+=(0,i.Sj)(n,t),s+=",\n";s.endsWith(",\n")&&(s=s.slice(0,-2)),s+="\n}"}else{if(!n)return["null",!1];s+="[\n";for(const[e,r]of n)s+="  { name: "+(0,i.Sj)(e,t)+", value: "+(0,i.Sj)(r,t)+" },\n";s.endsWith(",\n")&&(s=s.slice(0,-2)),s+="\n]"}return[s,o]}function h(e,t,n,r){let o=!1;const l=(0,i.Sj)(e,r);if("application/json"===t&&e.isString()){const t=e.toString(),r=JSON.parse(t);if("object"!=typeof r||null===r)return[n,l,null,o];const s=JSON.stringify(r)===t;return[n,"JSON.stringify("+(0,i.RD)(r,1)+")",s?null:l,o]}if("application/x-www-form-urlencoded"===t){const[t,i]=(0,a.JO)(e);if(t){let e;return(0,s.eq)(n,"application/x-www-form-urlencoded; charset=utf-8")&&(n=null),[e,o]=_([t,i],r),[n,p(e),null,o]}}return[n,l,null,o]}function m(e,t,n,r){let s=null,o=null,a=!1;try{[n,s,o,a]=h(e,t,n,r)}catch(e){}return s||(s=(0,i.Sj)(e,r)),[n,s,o,a]}function f(e,t){let n="const form = new FormData();\n";for(const r of e)n+="form.append("+(0,i.Sj)(r.name,t)+", ","contentFile"in r?((0,i.Xx)(t,"* as fs","fs"),(0,s.eq)(r.contentFile,"-")?n+="fs.readFileSync(0).toString()":n+="fs.readFileSync("+(0,i.Sj)(r.contentFile,t)+")","filename"in r&&r.filename&&(n+=", "+(0,i.Sj)(r.filename,t))):n+=(0,i.Sj)(r.content,t),n+=");\n";return n+="\n",n}function y(e,t=[]){var n;const r=(0,o.dH)(e,t),a=[];let l="";const u=["GET","HEAD"],h=r.urls[0].method,y=h.toString();(0,s.eq)(r.urls[0].method.toUpperCase(),h)||t.push(["method-case","jQuery uppercases the method, so it will be changed to "+JSON.stringify(h.toUpperCase().toString())]);const g=r.headers.getContentType();let w=r.headers.get("content-type");r.headers.delete("content-type");let S=r.urls[0].url,b=null,T=null,x=!1;r.multipartUploads?(l+=f(r.multipartUploads,a),b="form",t.push(["multipart-form","jQuery doesn't support sending FormData yet"])):r.data&&([w,b,T,x]=m(r.data,g,w,a),T&&(T="  // data: "+T+",\n")),u.includes(y)&&(r.urls[0].queryList?(b&&(t.push(["data-with-get","jQuery doesn't allow sending data in the body with GET or HEAD requests"]),T?T+="  // data: "+p(d(c(b)))+",\n":T="  // data: "+p(d(c(b)))+",\n"),[b,x]=_([r.urls[0].queryList,null!==(n=r.urls[0].queryDict)&&void 0!==n?n:null],a),b=p(b),S=r.urls[0].urlWithoutQueryList):(r.data||r.multipartUploads)&&t.push(["data-with-get","jQuery doesn't allow sending data with GET or HEAD requests. The data will be sent in the URL instead"]));let E="";if(E+=".done(function(response) {\n",E+="  console.log(response);\n",E+="});",r.headers.length||r.urls[0].auth||(r.multipartUploads||r.data)&&u.includes(y)||r.timeout||null!=w||T||x||!h.isString()||!["GET","POST"].includes(y)){if(l+="$.ajax({\n",l+="  url: "+(0,i.Sj)(S,a)+",\n",l+="  crossDomain: true,\n","GET"!==y){const e=(0,s.eq)(r.urls[0].method.toUpperCase(),h)?h.toLowerCase():h;l+="  method: "+(0,i.Sj)(e,a)+",\n"}if(r.headers.length){l+="  headers: {\n";for(const[e,t]of r.headers)null!==t&&(l+="    "+(0,i.Sj)(e,a)+": "+(0,i.Sj)(t,a)+",\n");l.endsWith(",\n")&&(l=l.slice(0,-2),l+="\n"),l+="  },\n"}if(w&&(l+="  contentType: "+(0,i.Sj)(w,a)+",\n"),r.urls[0].auth){const[e,t]=r.urls[0].auth;l+="  username: "+(0,i.Sj)(e,a)+",\n",l+="  password: "+(0,i.Sj)(t,a)+",\n"}T&&(l+=T),b&&(l+="  data: "+b+",\n"),x&&(l+="  traditional: true,\n"),r.timeout&&(l+="  timeout: "+(0,i.Z6)(r.timeout,a)+",\n"),l.endsWith(",\n")&&(l=l.slice(0,-2),l+="\n"),l+="})"+E+"\n"}else l+="$."+("GET"===y?"get":"post")+"(",l+=(0,i.Sj)(S,a),b&&(l+=", "+c(b)),l+=")\n",l+="  "+p(E)+"\n";let v=(0,i.cX)(a);return v&&(v+="\n"),v+l}function g(e,t=[]){return[y((0,o.qg)(e,u,t),t),t]}function w(e){return g(e)[0]}r()}catch(S){r(S)}}))},6673:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{ii:()=>y,ue:()=>f});var s=n(7277),o=n(6711),a=n(5385),i=n(5210),l=n(7730),u=n(5955),c=e([a,l,u]);
1[a,l,u]=c.then?(await c)():c;const p=new Set([...a.xv,"upload-file","form","form-string","next","compressed","upload-file","retry","max-time"]);function d(e,t,n){const r="body: "+(0,l.Sj)(t,n),s=e.headers.getContentType();if("application/json"===s)try{const e=t.toString(),n=JSON.parse(e),s=JSON.stringify(n)===e;return["json: "+(0,l.RD)(n,1),s?null:r]}catch(e){return[r,null]}if("application/x-www-form-urlencoded"===s)try{const[s,a]=(0,i.JO)(t);return s?((0,o.eq)(e.headers.get("content-type"),"application/x-www-form-urlencoded")&&e.headers.delete("content-type"),["body: "+(0,l.bU)([s,a],n),null]):[r,null]}catch(e){return[r,null]}return[r,null]}function _(e,t,n){if(!e.dataArray||e.multipartUploads)return["",null];if(1===e.dataArray.length&&e.dataArray[0]instanceof o.vZ&&e.dataArray[0].isString())try{return d(e,e.dataArray[0],n)}catch(e){}const r=[],s=e.dataArray.some((e=>!(e instanceof o.vZ)&&"binary"===e.filetype))?"":", 'utf-8'";for(const t of e.dataArray)if(t instanceof o.vZ)r.push((0,l.Sj)(t,n));else{const{filetype:e,name:a,filename:i}=t;"urlencode"===e&&a&&r.push((0,l.Sj)(a,n)),(0,o.eq)(i,"-")?r.push("fs.readFileSync(0"+s+")"):r.push("fs.readFileSync("+(0,l.Sj)(i,n)+s+")"),(0,l.Xx)(n,"* as fs","fs")}if(0===r.length)return["body: ''",null];if(1===r.length)return["body: "+r[0],null];let a="new ArrayBuffer(",i=", ",u=")";return r.reduce(((e,t)=>e+t.length),0)>80&&(a+="\n    ",i=",\n    ",u="\n  )"),["body: "+a+r.join(i)+u,null]}function h(e,t,n){(0,s.cY)(e,t,{multipleUrls:!0,dataReadsFile:!0,queryReadsFile:!0});let r="";e.multipartUploads&&(r+=(0,u.Ul)(e.multipartUploads,n));const[a,i]=_(e,0,n);for(const s of e.urls){let u="";const c=s.method,p=s.method.toString(),d=["GET","HEAD"],_=["GET","POST","PUT","PATCH","HEAD","DELETE"],h=s.queryList?s.urlWithoutQueryList:s.url;if(c.isString()&&_.includes(p)?r+="ky."+p.toLowerCase().toString()+"("+(0,l.Sj)(h,n):(r+="ky("+(0,l.Sj)(h,n),u+="  method: "+(0,l.Sj)(c,n)+",\n",c.isString()&&l.bM.includes(p)&&t.push(["forbidden-method","the method "+JSON.stringify(p)+" is not allowed in fetch() and therefore Ky"])),s.queryList&&(u+="searchParams: "+(0,l.WG)([s.queryList,s.queryDict],n)),s.queryReadsFile&&t.push(["unsafe-query","the URL query string is not correct, "+JSON.stringify("@"+s.queryReadsFile)+" means it should read the file "+JSON.stringify(s.queryReadsFile)]),e.headers.length||s.auth&&"basic"===e.authType){u+="  headers: {\n";for(const[t,r]of e.headers)u+="    "+(0,l.Sj)(t,n)+": "+(0,l.Sj)(r||new o.vZ,n)+",\n";s.auth&&"basic"===e.authType&&(u+="    'Authorization': 'Basic ' + btoa("+(0,l.Sj)((0,o.yZ)(s.auth,":"),n)+"),\n"),u.endsWith(",\n")&&(u=u.slice(0,-2),u+="\n"),u+="  },\n"}s.uploadFile?((0,l.Xx)(n,"* as fs","fs"),u+="  body: fs.readFileSync("+(0,l.Sj)(s.uploadFile,n)+"),\n"):e.multipartUploads?u+="  body: form,\n":e.data&&(i&&(u+="  // "+i+",\n"),u+="  "+a+",\n"),c.isString()&&p in d&&(s.uploadFile||e.data||e.multipartUploads)&&t.push(["non-data-method","Ky doesn't support sending data with GET or HEAD requests"]),e.retry&&(u+="  retry: "+(0,l.z9)(e.retry,n)),e.timeout&&(u+="  timeout: "+(0,l.Z6)(e.timeout,n)),u&&(u.endsWith(",\n")&&(u=u.slice(0,-2)),r+=", {\n",r+=u,r+="\n}"),r+=");\n"}return r}function m(e,t){const n=[],r=e.map((e=>h(e,t||[],n))).join("\n");return"import ky from 'ky';\n"+(0,l.cX)(n)+"\n"+r}function f(e,t=[]){return[m((0,a.qg)(e,p,t),t),t]}function y(e){return f(e)[0]}r()}catch(g){r(g)}}))},8660:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{nX:()=>m,vR:()=>h});var s=n(7277),o=n(6711),a=n(5385),i=n(7730),l=e([a,i]);[a,i]=l.then?(await l)():l;const u=new Set([...a.xv,"next"]),c=/[^\u0021-\u00ff]/;function p(e,t,n,r,a=[]){(0,s.cY)(e,a);let l="";if(e.headers.length){l+=d(n,"headers","{\n");let t=0;for(const[n,s]of e.headers)l+="    "+(0,i.Sj)(n,r)+": "+(0,i.Sj)(s||new o.vZ,r),l+=t<e.headers.length-1?",\n":"\n",t++;l+="};\n\n"}e.data&&(l+=d(n,"dataString",(0,i.Sj)(e.data,r)+";\n\n")),l+=d(n,"options","{\n");const u=(0,o.__)(e.urls[0].urlObj.path,e.urls[0].urlObj.query);if(u.toBool()&&c.test(u.toString())?(a.push(["invalid-path-characters","encodeURI() is needed because request path contains unescaped characters"]),l+="    url: encodeURI("+(0,i.Sj)(e.urls[0].url,r)+")"):l+="    url: "+(0,i.Sj)(e.urls[0].url,r),(0,o.eq)(e.urls[0].method.toUpperCase(),"GET")||(l+=",\n    method: "+(0,i.Sj)(e.urls[0].method.toUpperCase(),r)),e.headers.length){l+=",\n",l+="    headers: headers";const t=e.headers.get("accept-encoding");if(t){const e=t.split(",").map((e=>e.trim().toLowerCase().toString()));(e.includes("gzip")||e.includes("deflate"))&&(l+=",\n    gzip: true")}}if(e.data&&(l+=",\n    body: dataString"),e.urls[0].auth){l+=",\n";const[t,n]=e.urls[0].auth;l+="    auth: {\n",l+="        'user': "+(0,i.Sj)(t,r)+",\n",l+="        'pass': "+(0,i.Sj)(n,r)+"\n",l+="    }\n"}else l+="\n";return l+="};
1\n\n",0===t&&(l+="function callback(error, response, body) {\n",l+="    if (!error && response.statusCode == 200) {\n",l+="        console.log(body);\n",l+="    }\n",l+="}\n\n"),l+="request(options, callback);",l+"\n"}function d(e,t,n){return e.has(t)||(e.add(t),t="var "+t),`${t} = ${n}`}function _(e,t=[]){const n=new Set(["request"]),r=[],s=e.map(((e,s)=>p(e,s,n,r,t)));return"var request = require('request');\n"+(0,i.xH)(r)+"\n"+s.join("\n\n")}function h(e,t=[]){const n=(0,a.qg)(e,u,t);return t.unshift(["node-request","the request package is deprecated"]),[_(n,t),t]}function m(e){return h(e)[0]}r()}catch(f){r(f)}}))},4605:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{YX:()=>y,u8:()=>f});var s=n(6711),o=n(5385),a=n(5210),i=n(7730),l=n(5955),u=e([o,i,l]);[o,i,l]=u.then?(await u)():u;const c=new Set([...o.xv,"form","form-string","max-time","connect-timeout","location","max-redirs","retry","insecure","cert","key","cacert","http2"]);function p(e,t,n){const[r,s]=t;let o="";if(s){o+="{\n";for(const[e,t]of s)o+="  "+(0,i.Sj)(e,n)+": ",Array.isArray(t)?o+="["+t.map((e=>(0,i.Sj)(e,n))).join(", ")+"]":o+=(0,i.Sj)(t,n),o+=",\n";o.endsWith(",\n")&&(o=o.slice(0,-2)),o+="\n}",o="  ."+e+"("+(0,l.pZ)(o)+")\n"}else{if(!r)return"";for(const[t,s]of r)o+="  ."+e+"({ "+(0,i.Sj)(t,n)+": "+(0,i.Sj)(s,n)+" })\n"}return o}function d(e,t,n,r){if(!e.data)return[n,null,null];const o="  .send("+(0,i.Sj)(e.data,r)+")\n";if("application/json"===t&&e.data.isString()){const t=e.data.toString(),r=JSON.parse(t);if("object"!=typeof r||null===r)return[n,o,null];const a=JSON.stringify(r)===t,l="  .send("+(0,i.RD)(r,1)+")\n";return a&&(0,s.eq)(n,"application/json")&&(n=null),[n,l,a?null:o]}if("application/x-www-form-urlencoded"===t){const[t,s]=(0,a.JO)(e.data);if(t)return[n=null,"  .type('form')\n"+p("send",[t,s],r),null]}return[n,o,null]}function _(e,t,n,r){if(!e.data)return[n,null,null];let s=null,o=null;try{[n,s,o]=d(e,t,n,r)}catch(e){}return s||(s="  .send("+(0,i.Sj)(e.data,r)+")\n"),[n,s,o]}function h(e,t){let n="";for(const r of e)"contentFile"in r?(n+="  .attach("+(0,i.Sj)(r.name,t),n+=", "+(0,i.Sj)(r.contentFile,t),"filename"in r&&r.filename&&(n+=", "+(0,i.Sj)(r.filename,t)),n+=")\n"):n+="  .field("+(0,i.Sj)(r.name,t)+", "+(0,i.Sj)(r.content,t)+")\n";return n}function m(e,t=[]){var n;const r=(0,o.dH)(e,t),a=[];let l="";const u=r.urls[0].method,c=u.toString();(0,s.eq)(r.urls[0].method.toUpperCase(),u)||t.push(["method-case","SuperAgent uppercases the method, so it will be changed to "+JSON.stringify(u.toUpperCase().toString())]);const d=r.data||r.multipartUploads,m=r.urls[0].queryList?r.urls[0].urlWithoutQueryList:r.urls[0].url,f=r.headers.getContentType();let y,g,w=r.headers.get("content-type");r.headers.delete("content-type"),r.multipartUploads?(y=h(r.multipartUploads,a),w=null):r.data&&([w,y,g]=_(r,f,w,a)),["GET","HEAD"].includes(c)&&d&&t.push(["data-with-get","SuperAgent doesn't send data with GET or HEAD requests"]);const S={GET:"get",HEAD:"head",OPTIONS:"options",DELETE:"del",PATCH:"patch",POST:"post",PUT:"put"};if(l+="request",c in S?(l+="\n",l+="  ."+S[c]+"("+(0,i.Sj)(m,a)+")\n"):l+="("+(0,i.Sj)(u,a)+", "+(0,i.Sj)(m,a)+")\n",r.urls[0].queryList&&(l+=p("query",[r.urls[0].queryList,null!==(n=r.urls[0].queryDict)&&void 0!==n?n:null],a)),r.urls[0].auth){const[e,t]=r.urls[0].auth;l+="  .auth("+(0,i.Sj)(e,a)+", "+(0,i.Sj)(t,a)+")\n"}if(r.headers.length)for(const[e,t]of r.headers)null!==t&&(l+="  .set("+(0,i.Sj)(e,a)+", "+(0,i.Sj)(t,a)+")\n");if(w&&((0,s.eq)(w,"application/x-www-form-urlencoded")?l+="  .type('form')\n":(0,s.eq)(w,"application/json")?l+="  .type('json')\n":l+="  .type("+(0,i.Sj)(w,a)+")\n"),g&&(l+="  //"+g),y&&(l+=y),r.connectTimeout?(l+="  .timeout({ ",l+="response: "+(0,i.Z6)(r.connectTimeout,a),r.timeout&&(l+="deadline: "+(0,i.Z6)(r.timeout,a)),l+=" })\n"):r.timeout&&(l+="  .timeout("+(0,i.Z6)(r.timeout,a)+")\n"),!1===r.followRedirects?l+="  .redirects(0)\n":r.maxRedirects&&(l+="  .redirects("+(0,i.Sj)(r.maxRedirects,a)+")\n"),r.retry&&(l+="  .retry("+(0,i.z9)(r.retry,a)+")\n"),r.insecure&&(l+="  .disableTLSCerts()\n"),r.cert){const[e,n]=r.cert;l+="  .cert(fs.readFileSync("+(0,i.Sj)(e,a)+"))\n",(0,i.Xx)(a,"* as fs","fs"),n&&t.push(["cert-password","SuperAgent doesn't support certificate passwords: "+JSON.stringify(n.toString())])}r.key&&(l+="  .key(fs.readFileSync("+(0,i.Sj)(r.key,a)+"))\n",(0,i.Xx)(a,"* as fs","fs")),r.cacert&&(l+="  .ca(fs.readFileSync("+(0,i.Sj)(r.cacert,a)+"))\n",(0,i.Xx)(a,"* as fs","fs")),r.http2&&(l+="  .http2()\n"),l+="  .then(res =>
1 {\n",l+="     console.log(res.body);\n",l+="  });\n";let b="import request from 'superagent';\n";return b+=(0,i.cX)(a),b+="\n",b+l}function f(e,t=[]){return[m((0,o.qg)(e,c,t),t),t]}function y(e){return f(e)[0]}r()}catch(g){r(g)}}))},9607:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{D0:()=>m,H2:()=>h});var s=n(6711),o=n(5385),a=n(5210),i=n(7730),l=n(5955),u=e([o,i,l]);[o,i,l]=u.then?(await u)():u;const c=new Set([...o.xv,"form","form-string","max-time"]);function p(e,t,n){const r=(0,i.Sj)(e,n);if("application/json"===t&&e.isString()){const t=e.toString(),n=JSON.parse(t);if("object"!=typeof n||null===n)return[r,null];const s=JSON.stringify(n)===t;return["JSON.stringify("+(0,i.RD)(n,1)+")",s?null:r]}if("application/x-www-form-urlencoded"===t){const[t,r]=(0,a.JO)(e);if(t)return[(0,i.bU)([t,r],n),null]}return[r,null]}function d(e,t,n){let r=null,s=null;try{[r,s]=p(e,t,n)}catch(e){}return r||(r=(0,i.Sj)(e,n)),[r,s]}function _(e,t=[]){const n=(0,o.dH)(e,t),r=[];let a="";const u=n.urls[0].method,c=u.toString();(0,s.eq)(n.urls[0].method.toUpperCase(),u)||t.push(["method-case","XHR uppercases the method, so it will be changed to "+JSON.stringify(u.toUpperCase().toString())]);const p=n.data||n.multipartUploads,_=n.urls[0].url,h=n.headers.getContentType();if(n.multipartUploads)a+=(0,l.Ul)(n.multipartUploads,r);else if(n.data){const[e,t]=d(n.data,h,r);t&&(a+="// const data = "+t+";\n"),e&&(a+="const data = "+(0,l.TW)(e)+";\n\n")}["GET","HEAD"].includes(c)&&p&&t.push(["data-with-get","XHR doesn't send data with GET or HEAD requests"]),a+="let xhr = new XMLHttpRequest();\n",a+="xhr.withCredentials = true;\n",a+="xhr.open(";const m=[(0,i.Sj)(u,r),(0,i.Sj)(_,r)];if(n.urls[0].auth){const[e,t]=n.urls[0].auth;m.push("true",(0,i.Sj)(e,r),(0,i.Sj)(t,r)),a+="\n  ",a+=m.join(",\n  "),a+="\n"}else a+=m.join(", ");if(a+=");\n",n.headers.length)for(const[e,t]of n.headers)null!==t&&(a+="xhr.setRequestHeader("+(0,i.Sj)(e,r)+", "+(0,i.Sj)(t,r)+");\n");n.timeout&&(a+="xhr.timeout = "+(0,i.Z6)(n.timeout,r)+";\n"),a+="\n",a+="xhr.onload = function() {\n",a+="  console.log(xhr.response);\n",a+="};\n",a+="\n",n.multipartUploads?a+="xhr.send(form);\n":n.data?a+="xhr.send(data);\n":a+="xhr.send();\n";let f=(0,i.cX)(r);return f&&(f+="\n"),f+a}function h(e,t=[]){return[_((0,o.qg)(e,c,t),t),t]}function m(e){return h(e)[0]}r()}catch(f){r(f)}}))},4195:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{J7:()=>d,VX:()=>p});var s=n(5385),o=n(5210),a=e([s]);s=(a.then?(await a)():a)[0];const i=new Set([...s.xv,"insecure","no-insecure","form","form-string","compressed","location","no-location","location-trusted","no-location-trusted","max-time","connect-timeout","anyauth","no-anyauth","digest","no-digest","aws-sigv4","negotiate","no-negotiate","delegation","ntlm","no-ntlm","ntlm-wb","no-ntlm-wb"]);function l(e){if(!e.data)return{};const t=e.headers.getContentType();if("application/json"===t)try{return JSON.parse(e.data.toString())}catch(e){}if("application/x-www-form-urlencoded"===t){const[t,n]=(0,o.JO)(e.data);if(n)return Object.fromEntries(n.map((e=>[e[0].toString(),Array.isArray(e[1])?e[1].map((e=>e.toString())):e[1].toString()])));if(t)return Object.fromEntries(t.map((e=>[e[0].toString(),e[1].toString()])))}return e.data.toString()}function u(e){if(!e.multipartUploads)return;const t={files:{},data:{}};for(const n of e.multipartUploads)"contentFile"in n?t.files[n.name.toString()]=n.contentFile.toString():t.data[n.name.toString()]=n.content.toString();return{files:Object.keys(t.files).length?t.files:void 0,data:Object.keys(t.data).length?t.data:void 0}}function c(e,t=[]){const n=(0,s.dH)(e,t),r={url:(n.urls[0].queryDict?n.urls[0].urlWithoutQueryList:n.urls[0].url).toString().replace(/\/$/,""),raw_url:n.urls[0].url.toString(),method:n.urls[0].method.toLowerCase().toString()};if(n.cookies&&(r.cookies=Object.fromEntries(n.cookies.map((e=>[e[0].toString(),e[1].toString()])))),n.headers.length){const e=n.headers.headers.filter((e=>null!==e[1])).map((e=>[e[0].toString(),e[1].toString()]));r.headers=Object.fromEntries(e)}if(n.urls[0].queryDict&&(r.queries=Object.fromEntries(n.urls[0].queryDict.map((e=>[e[0].toString(),Array.isArray(e[1])?e[1].map((e=>e.toString())):e[1].toString()])))),n.data?r.data=l(n):n.multipartUploads&&Object.assign(r,u(n)),n.compressed&&(r.compressed=!0),n.insecure&&(r.insecure=!1),n.urls[0].auth){const[e,t]=n.urls[0].auth;r.auth={user:e.toString(),password:t.toString()},n.authType&&(r.auth_type=n.authType)}
1return n.awsSigV4&&(r.aws_sigv4=n.awsSigV4.toString()),n.delegation&&(r.delegation=n.delegation.toString()),Object.prototype.hasOwnProperty.call(n,"followRedirects")&&(r.follow_redirects=n.followRedirects),n.timeout&&(r.timeout=parseFloat(n.timeout.toString())),n.connectTimeout&&(r.connect_timeout=parseFloat(n.connectTimeout.toString())),JSON.stringify(Object.keys(r).length?r:"{}",null,4)+"\n"}function p(e,t=[]){return[c((0,s.qg)(e,i,t),t),t]}function d(e){return p(e)[0]}r()}catch(_){r(_)}}))},552:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{L5:()=>g,vt:()=>w});var s=n(9531),o=n(6711),a=n(5385),i=n(5210),l=n(4123),u=e([a]);a=(u.then?(await u)():u)[0];const c=new Set([...a.xv,"max-time","no-compressed","insecure","no-insecure","upload-file","connect-timeout","timeout","retry","location","max-redirs","form","form-string"]),p=/\$|\\|"|\p{C}|[^ \P{Z}]/gu,d=/[0-9a-fA-F]/;function _(e){return'"'+e.replace(p,((e,t,n)=>{switch(e){case"$":return"\\$";case"\\":return"\\\\";case"�":return"\\a";case"\b":return"\\b";case"\f":return"\\f";case"\n":return"\\n";case"\r":return"\\r";case"\t":return"\\t";case"\v":return"\\v";case'"':return'\\"'}const r=e.codePointAt(0).toString(16);return r.length<=2?"\\x"+r.padStart(2,"0"):r.length<=4?"\\u"+r.padStart(4,"0"):d.test(n.charAt(t+1))?"\\U"+r.padStart(8,"0"):"\\U"+r}))+'"'}function h(e){const t=[];for(const n of e.tokens)"string"==typeof n?t.push(_(n)):"variable"===n.type?t.push("ENV["+_(n.value)+"]"):t.push("read(`"+n.value.toString()+"`, String)");return t.join(" * ")}function m(e,t=0){if((0,l.s_)(e))return(0,l.As)(e);switch(typeof e){case"string":return _(e);case"number":if(!isFinite(e))throw new s.fA("found Infitiny in JSON");return e.toString();case"boolean":return e.toString();case"object":if(null===e)return"nothing";if(Array.isArray(e)){if(0===e.length)return"[]";let n="[\n";for(const r of e)n+=" ".repeat(t+4)+m(r,t+4)+",\n";return n.endsWith(",\n")&&(n=n.slice(0,-2)+"\n"),n+=" ".repeat(t)+"]",n}if(0===Object.keys(e).length)return"Dict()";{let n="Dict(\n";for(const[r,s]of Object.entries(e))n+=" ".repeat(t+4)+_(r)+" => "+m(s,t+4)+",\n";return n.endsWith(",\n")&&(n=n.slice(0,-2)+"\n"),n+=" ".repeat(t)+")",
1n}default:throw new s.fA("unexpected object type that shouldn't appear in JSON: "+typeof e)}}function f(e,t){if(!e.dataArray)return["",""];const n=e.headers.getContentType();if(e.dataArray&&1===e.dataArray.length&&e.dataArray[0]instanceof o.vZ&&e.dataArray[0].isString())if("application/json"===n)try{const n=m((0,l.qg)(e.dataArray[0].toString()));return t.add("JSON"),[n,"JSON.json(body)"]}catch(e){}else if("application/x-www-form-urlencoded"===n){const[t]=(0,i.JO)(e.dataArray[0]);if(t){let e="Dict(\n";for(const[n,r]of t)null!==r&&(e+="    "+h(n)+" => "+h(r)+",\n");return e.endsWith(",\n")&&(e=e.slice(0,-2)+"\n"),e+=")",[e,"body"]}}const r=[];for(const t of e.dataArray)if(t instanceof o.vZ)r.push(h(t));else{let e="";t.name&&(e+=h((0,o.__)(t.name,"="))+" * ");const n=(0,o.eq)(t.filename,"-")?"stdin":h(t.filename);"data"===t.filetype?e+="replace(read("+n+', String), "\\n" => "")':e+="read("+n+", String)",r.push(e)}return[r.join(" * \n    "),"body"]}function y(e,t=[]){const n=(0,a.dH)(e,t,{dataReadsFile:!0});let r="";const s=new Set(["HTTP"]),i=n.urls[0].method;let l="HTTP.request";const u=[];i.isString()&&["GET","POST","PUT","DELETE","PATCH","HEAD"].includes(i.toString())?l="HTTP."+i.toString().toLowerCase():u.push(h(i));let c=h(n.urls[0].url),p=!1;if(n.urls[0].queryList){r+="query = [\n";for(const[e,t]of n.urls[0].queryList)r+="    "+h(e)+" => "+h(t)+",\n";r.endsWith(",\n")&&(r=r.slice(0,-2)+"\n"),r+="]\n\n",c=h(n.urls[0].urlWithoutQueryList),p=!0}u.push(c);const d=n.headers.length||n.urls[0].auth;if(d){r+="headers = Dict(\n";for(const[e,t]of n.headers)null!==t&&(r+="    "+h(e)+" => "+h(t)+",\n");n.urls[0].auth&&(r+='    "Authorization" => "Basic " * base64encode('+h((0,o.__)(n.urls[0].auth[0],":",n.urls[0].auth[1]))+"),\n",s.add("Base64")),r.endsWith(",\n")&&(r=r.slice(0,-2)+"\n"),r+=")\n\n",u.push("headers")}let _=null;if(n.urls[0].uploadFile)(0,o.eq)(n.urls[0].uploadFile,"-")?_="stdin":(r+="body = open("+h(n.urls[0].uploadFile)+', "r")\n\n',_="body");else if(n.multipartUploads){r+="form = HTTP.Form(\n",r+="    Dict(\n";for(const e of n.multipartUploads)r+="        "+h(e.name)+" => ","content"in e?r+=h(e.content)+",\n":!e.contentType&&e.filename&&(0,o.eq)(e.contentFile,e.filename)?r+="open("+h(e.contentFile)+"),\n":e.filename?(r+="HTTP.Multipart(",(0,o.eq)(e.contentFile,e.filename)?r+=h(e.filename):r+=h(e.contentFile),r+=", open("+h(e.contentFile)+")",e.contentType&&(r+=", "+h(e.contentType)),r+="),\n"):r+="read("+h(e.contentFile)+", String),\n";r.endsWith(",\n")&&(r=r.slice(0,-2)+"\n"),r+="    )\n",r+=")\n\n",_="form"}else if(n.dataArray&&n.dataArray.length){let e;[e,_]=f(n,s),r+="body = "+e+"\n\n"}_&&(d||u.push("[]"),u.push(_)),p&&u.push("query=query"),n.timeout&&(u.push("readtimeout="+n.timeout.toString()),t.push(["not-read-timeout","curl has no read timeout, using Julia's `readtimeout` instead"])),!1===n.compressed&&u.push("decompress=false"),n.retry&&u.push("retries="+n.retry.toString()),!1===n.followRedirects&&u.push("redirect=false"),n.maxRedirects&&u.push("redirect_limit="+n.maxRedirects.toString()),n.insecure&&u.push("require_ssl_verification=false"),n.verbose&&u.push("verbose=1"),r+="resp = "+l+"(";const m=u.join(", ");("HTTP.request"===l&&u.length>2||"HTTP.request"!==l&&u.length>1)&&m.length>70?(r+="\n    "+u.join(",\n    "),r+="\n)\n"):r+=m+")\n";let y="";return s.size&&(y="using "+Array.from(s).sort().join(", ")+"\n\n"),y+r}function g(e,t=[]){return[y((0,a.qg)(e,c,t),t),t]}function w(e){return g(e)[0]}r()}catch(S){r(S)}}))},6920:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{Dj:()=>m,Ve:()=>h});var s=n(6711),o=n(5385),a=n(5210),i=e([o]);o=(i.then?(await i)():i)[0];const l=new Set([...o.xv,"max-time","connect-timeout","location","location-trusted","upload-file","form","form-string"]),u=/\$|"|\\|\p{C}|[^ \P{Z}]/gu,c=/[0-9]/;function p(e){return'"'+e.replace(u,((e,t,n)=>{switch(e){case"$":return"\\$";case"\\":return"\\\\";case"\b":return"\\b";case"\f":return"\\f";case"\n":return"\\n";case"\r":return"\\r";case"\t":return"\\t";case'"':return'\\"'}if(2===e.length){const t=e.charCodeAt(0),n=e.charCodeAt(1);return"\\u"+t.toString(16).padStart(4,"0")+"\\u"+n.toString(16).padStart(4,"0")}return"\0"!==e||c.test(n.charAt(t+1))?"\\u"+e.charCodeAt(0).toString(16).padStart(4,"0"):"\\0"}))+'"'}function d(e,t){const n=[];for(const r of e.tokens)"string"==typeof r?n.push(p(r)):"variable"===r.type?(n.push("System.getenv("+p(r.value)+') ?: ""'),t.add("java.lang.System")):(n.push("exec("+p(r.value)+")"),t.add("java.lang.Runtime"),t.add("java.util.Scanner"));return n.join(" + ")}function _(e,t=[]){const n=(0,o.dH)(e,t),r=n.urls[0],i=new Set(["java.io.IOException","okhttp3.OkHttpClient","okhttp3.Request"]);let l="";l+="val client = OkHttpClient()";const u=[];
1if(n.timeout&&(u.push("  .callTimeout("+n.timeout.toString()+", TimeUnit.SECONDS)\n"),i.add("java.util.concurrent.TimeUnit")),n.connectTimeout&&(u.push("  .connectTimeout("+n.connectTimeout.toString()+", TimeUnit.SECONDS)\n"),i.add("java.util.concurrent.TimeUnit")),!1===n.followRedirects&&(u.push("  .followRedirects(false)\n"),u.push("  .followSslRedirects(false)\n")),u.length){l+=".newBuilder()\n";for(const e of u)l+=e;l+="  .build()"}if(l+="\n\n",r.auth){const[e,s]=r.auth;l+="val credential = Credentials.basic("+d(e,i)+", "+d(s,i)+");\n\n",i.add("okhttp3.Credentials"),"basic"!==n.authType&&t.push(["okhttp-unsupported-auth-type","OkHttp doesn't support auth type "+n.authType])}const c=[],p=n.headers.getContentType(),_=n.headers.get("content-type");if(r.uploadFile)((0,s.eq)(r.uploadFile,"-")||(0,s.eq)(r.uploadFile,"."))&&t.push(["upload-stdin","uploading from stdin isn't supported"]),_&&(l+="val MEDIA_TYPE = "+d(_,i)+".toMediaType()\n\n",i.add("okhttp3.MediaType.Companion.toMediaType")),c.push("file.asRequestBody(MEDIA_TYPE)"),l+="val file = File("+d(r.uploadFile,i)+")\n\n",i.add("java.io.File"),i.add("okhttp3.RequestBody.Companion.asRequestBody");else if(n.multipartUploads){c.push("requestBody"),l+="val requestBody = MultipartBody.Builder()\n",l+="  .setType(MultipartBody.FORM)\n";for(const e of n.multipartUploads){const t=[d(e.name,i)];"content"in e?t.push(d(e.content,i)):"filename"in e&&e.filename?(t.push(d(e.filename,i)),t.push("File("+d(e.contentFile,i)+").asRequestBody()"),i.add("java.io.File"),i.add("okhttp3.RequestBody.Companion.asRequestBody")):t.push("Files.readAllBytes("+d(e.contentFile,i)+")"),l+="  .addFormDataPart("+t.join(", ")+")\n"}l+="  .build()\n\n",i.add("okhttp3.MultipartBody")}else if(!n.dataArray||1!==n.dataArray.length||n.dataArray[0]instanceof s.vZ||n.dataArray[0].name){if(n.data)if("application/x-www-form-urlencoded"===p){const[e]=(0,a.JO)(n.data);if(e){c.push("formBody"),l+="val formBody = FormBody.Builder()\n";for(const[t,n]of e)l+="  .add("+d(t,i)+", "+d(n,i)+")\n";l+="  .build()\n\n",i.add("okhttp3.FormBody")}else _&&(l+="val MEDIA_TYPE = "+d(_,i)+".toMediaType()\n\n",i.add("okhttp3.MediaType.Companion.toMediaType")),c.push("requestBody.toRequestBody(MEDIA_TYPE)"),i.add("okhttp3.RequestBody.Companion.toRequestBody"),l+="val requestBody = "+d(n.data,i)+"\n\n"}else _&&(l+="val MEDIA_TYPE = "+d(_,i)+".toMediaType()\n\n",i.add("okhttp3.MediaType.Companion.toMediaType")),c.push("requestBody.toRequestBody(MEDIA_TYPE)"),l+="val requestBody = "+d(n.data,i)+"\n\n",i.add("okhttp3.RequestBody.Companion.toRequestBody")}else _&&(l+="val MEDIA_TYPE = "+d(_,i)+".toMediaType()\n\n",i.add("okhttp3.MediaType.Companion.toMediaType")),c.push("file.asRequestBody(MEDIA_TYPE)"),i.add("okhttp3.RequestBody.Companion.asRequestBody"),l+="val file = File("+d(n.dataArray[0].filename,i)+")\n\n",i.add("java.io.File");l+="val request = Request.Builder()\n",l+="  .url("+d(r.url,i)+")\n";const h=r.method,m=r.method.toString();let f="method";if(!h.isString()||!["DELETE","GET","HEAD","PATCH","POST","PUT"].includes(m)||c.length&&!["DELETE","PATCH","POST","PUT"].includes(m)||!c.length&&["PATCH","POST","PUT"].includes(m)?(c.length||(c.push('"".toRequestBody()'),i.add("okhttp3.RequestBody.Companion.toRequestBody")),c.unshift(d(h,i))):("DELETE"!==m||c.length||(c.push('"".toRequestBody()'),i.add("okhttp3.RequestBody.Companion.toRequestBody")),f=h.toString().toLowerCase()),"get"!==f&&(l+="  ."+f+"("+c.join(", ")+")\n"),n.headers.length)for(const[e,t]of n.headers)null!==t&&(l+="  .header("+d(e,i)+", "+d(t,i)+")\n");r.auth&&(l+='  .header("'+(n.headers.lowercase?"authorization":"Authorization")+'", credential)\n'),l+="  .build()\n",l+="\n",l+="client.newCall(request).execute().use { response ->\n",l+='  if (!response.isSuccessful) throw IOException("Unexpected code $response")\n',l+="  response.body!!.string()\n",l+="}\n";let y="";for(const e of Array.from(i).sort())y+="import "+e+"\n";return i.size&&(y+="\n"),i.has("java.lang.Runtime")&&(y+="fun exec(cmd: String): String {\n",y+="  try {\n",y+="    val p = Runtime.getRuntime().exec(cmd)\n",y+="    p.waitFor()\n",y+='    val s = Scanner(p.getInputStream()).useDelimiter("\\\\A")\n',y+='    return s.hasNext() ? s.next() : ""\n',y+="  } catch (Exception e) {\n",y+='    return ""\n',y+="  }\n",y+="}\n",y+="\n"),y+l}function h(e,t=[]){return[_((0,o.qg)(e,l,t),t),t]}function m(e){return h(e)[0]}r()}catch(f){r(f)}}))},3059:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{gy:()=>f,ul:()=>m});var s=n(6711),o=n(5385),a=n(832),i=e([o,a]);[o,a]=i.then?(await i)():i;const l=new Set([...o.xv]);function u(e){return e.includes('"')&&!e.includes("'")?(0,a.rx)(e,"'"):(0,a.rx)(e,'"')}function c(e){const t=[];for(const n of e.tokens)"string"==typeof n?t.push(u(n)):"variable"===n.type?t.push("os.getenv("+u(n.value)+")"):t.push("io.popen("
1+u(n.value)+'):read("*a")');return t.join(" .. ")}const p=/^[a-zA-Z_][a-zA-Z0-9_]*$/;function d(e){return e instanceof s.vZ?e.isString()&&p.test(e.toString())?e.toString():"["+c(e)+"]":p.test(e)?e:"["+u(e)+"]"}function _(e,t=0){if("string"==typeof e)return u(e);if("number"==typeof e)return e.toString();if("boolean"==typeof e)return e?"true":"false";if(null===e)return"nil";if(Array.isArray(e)){if(0===e.length)return"{}";let n="{\n";for(const r of e)n+="\t".repeat(t+1)+_(r,t+1)+",\n";return n.endsWith(",\n")&&(n=n.slice(0,-2)+"\n"),n+="\t".repeat(t)+"}",n}if("object"==typeof e){const n=Object.entries(e);if(0===n.length)return"{}";let r="{\n";for(const[e,s]of n)r+="\t".repeat(t+1)+d(e)+" = "+_(s,t+1)+",\n";return r.endsWith(",\n")&&(r=r.slice(0,-2)+"\n"),r+="\t".repeat(t)+"}",r}throw new Error("Unsupported JSON type: "+typeof e)}function h(e,t=[]){const n=(0,o.dH)(e,t),r=new Set(["http"]);let a="";if(a+="local body, code, headers, status = http.request",!(0,s.eq)(n.urls[0].method,"GET")||n.data||n.headers.length||n.urls[0].auth)if((0,s.eq)(n.urls[0].method,"POST")&&n.data&&!n.urls[0].auth&&1===n.headers.length&&n.headers.has("content-type")&&(0,s.eq)(n.headers.get("content-type"),"application/x-www-form-urlencoded"))a+="(\n",a+="\t"+c(n.urls[0].originalUrl)+"\n",a+="\t"+c(n.data)+"\n",a+=")\n";else{if(a+="{\n",(0,s.eq)(n.urls[0].method,"GET")||(a+="\tmethod = "+c(n.urls[0].method)+",\n"),a+="\turl = "+c(n.urls[0].originalUrl)+",\n",n.data){if(a+="\tsource = ltn12.source.string(","application/json"===n.headers.getContentType()&&n.data.isString())try{a+="json.encode("+_(JSON.parse(n.data.toString()),1)+")",r.add("json")}catch(e){a+=c(n.data)}else a+=c(n.data);a+="),\n",r.add("ltn12")}if(n.headers.length>0||n.urls[0].auth){a+="\theaders = {\n";for(const[e,t]of n.headers)null!==t&&(a+="\t\t"+d(e)+" = "+c(t)+",\n");n.urls[0].auth&&(a+='\t\tauthentication = "Basic " .. (mime.b64('+c((0,s.yZ)(n.urls[0].auth,":"))+")),\n",r.add("mime")),a.endsWith(",\n")&&(a=a.slice(0,-2)+"\n"),a+="\t},\n"}a.endsWith(",\n")&&(a=a.slice(0,-2)+"\n"),a+="}\n"}else a+="("+c(n.urls[0].originalUrl)+")\n";let i="";if(r.size)for(const e of Array.from(r).sort())i+="http"===e?'local http = require("socket.http")\n':"local "+e+' = require("'+e+'")\n';return i+"\n"+a}function m(e,t=[]){return[h((0,o.qg)(e,l,t),t),t]}function f(e){return m(e)[0]}r()}catch(y){r(y)}}))},9850:(e,t,n)=>{"use strict";n.d(t,{FB:()=>m,Sj:()=>l,Tx:()=>c,bf:()=>p,c4:()=>y,ch:()=>u,eu:()=>_,kM:()=>f,rx:()=>i,tO:()=>h,uN:()=>d});var r=n(9531);const s=/(\p{C}|[^ \P{Z}])/gu;function o(e){return e?e.replace(/'/g,"''").split(s).filter((e=>e)).flatMap((e=>{if(e.match(s)){if(1!==e.length)return[`char(${e.charCodeAt(0)})`,`char(${e.charCodeAt(1)})`];switch(e){case"�":return"sprintf('\\a')";case"\b":return"sprintf('\\b')";case"\f":return"sprintf('\\f')";case"\n":return"newline";case"\r":return"sprintf('\\r')";case"\t":return"sprintf('\\t')";case"\v":return"sprintf('\\v')";default:return`char(${e.charCodeAt(0)})`}}return"'"+e+"'"})):["''"]}function a(e){return e.length>1?"["+e.join(" ")+"]":0===e.length?"''":e[0]}function i(e){return a(o(e))}function l(e){if(null===e||0===e.length)return"''";let t=[];for(const n of e.tokens)"string"==typeof n?t=t.concat(o(n)):"variable"===n.type?t.push("getenv("+i(n.value)+")"):t.push("system("+i(n.value)+"){2}");return a(t)}function u(e,t,n){let r="";return e&&(r+=e+" = "),r+=t,r+=null==n?";":n,r}function c(e,t,n,r){let s=t+"(";if(Array.isArray(n)){const o=n.map((e=>Array.isArray(e)?e.join(", "):e)).join(", "),a="...\n"+" ".repeat(4);let i=a;i+=n.map((e=>Array.isArray(e)?e.join(", "):e)).join(","+a),i+="...\n",s+=[e,t,o].map((e=>e?e.length:0)).reduce(((e,t)=>e+t))+(e?3:0)+2+(r?r.length:1)<120?o:i}else s+=n;return s+=")",u(e,s,r)}function p(e,t,n=1,r){if(0===e.length)return"";const s=" ".repeat(4),o=s.repeat(n),a=s.repeat(n-1),u=r?", ":" ";let c="";r||(c+="{"),r&&e.length>1&&(c+="...");for(const[n,[s,a]]of e.entries()){const p="string"==typeof s?i(s):l(s);let d;d=t&&t.includes(s.toLowerCase().toString())?a.toString():"string"==typeof a?i(a):l(a),e.length>1&&(c+="\n"+o),c+=p+u+d,r&&e.length>1&&(n!==e.length-1&&(c+=","),c+="...")}return e.length>1&&(c+="\n"+a),r||(c+="}"),c}function d(e,t){let n="";t=t?++t:1;const s=" ".repeat(4*t),o=" ".repeat(4*(t-1));if(e instanceof Array){const r=[];let a=!0;for(const n in e){a&&"number"!=typeof e[n]&&(a=!1);const s=d(e[n],t);r.push(`${s}`)}a?n+=`[${r.join(" ")}]`:(r.unshift("{{"),n+=`${r.join(`\n${s}`)}\n${o}}}`)}else if(e instanceof Object){n+="struct(...";let a=!0;for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){if(!o[0].match(/[a-z]/i))throw new r.fA("MATLAB structs do not support keys starting with non-alphabet symbols");a?a=!1:n+=",...",n+=`\n${s}`,n+=`'${o}', `,n+=d(e[o],t)}n+="...",n+=`\n${o})`}else n+="number"==typeof e?e.toString():null===e?"string(nan)":i(e);return n}function _(e){return Boolean(e.data||e.multipartUploads)}function h(e){return e.urls[0].queryList?u("params",p(e.urls[0].queryList)):null}function m(e){return e.cookies?u("cookies",p(e.cookies)):null}const f="char(join(join(cookies, '='), '; '))",y="char(join(join(params, '='), '&'))"}
1,5912:(e,t,n)=>{"use strict";n.d(t,{b:()=>p});var r=n(9850);function s(e){if(!e.headers.length)return null;const t=[];for(const[n,s]of e.headers){if(null===s)continue;const o=n.toLowerCase().toString();if("cookie"===o&&e.cookies){const e=(0,r.Tx)(null,"cellfun",["@(x) Cookie(x{:})",(0,r.Tx)(null,"num2cell",["cookies","2"],"")],"");t.push((0,r.Tx)(null,"field.CookieField",e,""))}else if("accept"===o){const e=s.split(",");if(1===e.length)t.push(`field.AcceptField(MediaType(${(0,r.Sj)(s)}))`);else{let n="field.AcceptField([";for(const t of e)n+=`\n        MediaType(${(0,r.Sj)(t.trim())})`;n+="\n    ])",t.push(n)}}else t.push(`HeaderField(${(0,r.Sj)(n)}, ${(0,r.Sj)(s)})`)}if(1===t.length)return(0,r.ch)("header",t[0]);let n="[\n";return n+="    "+t.join("\n    ")+"\n",n+="]'",(0,r.ch)("header",n)}function o(e){const t=[];return e.urls[0].queryList?(t.push((0,r.Sj)(e.urls[0].urlWithoutQueryList)),t.push("QueryParameter(params')")):t.push((0,r.Sj)(e.urls[0].url)),(0,r.Tx)("uri","URI",t)}function a(e){const t=[],n=[];if(e.urls[0].auth){const[s,o]=e.urls[0].auth,a=`'Username', ${(0,r.Sj)(s)}`,i=`'Password', ${(0,r.Sj)(o)}`,l=(s.length?`${a}, `:"")+i;n.push((0,r.rx)("Credentials"),"cred"),t.push((0,r.Tx)("cred","Credentials",l))}return e.insecure&&n.push((0,r.rx)("VerifyServerName"),"false"),n.length>0&&t.push((0,r.Tx)("options","HTTPOptions",n)),t}function i(e){if(!e.multipartUploads)return null;const t=[];for(const n of e.multipartUploads){const e="contentFile"in n,s=l(e?n.contentFile.prepend("@"):n.content,null,"",1,!0,!e);t.push([(0,r.Sj)(n.name),s])}return(0,r.Tx)("body","MultipartFormProvider",t)}function l(e,t,n,s,o=!0,a=!1){var i;if(!a&&"@"===e.charAt(0)){const s=e.slice(1);if(!o)return[(0,r.Tx)(t,"fileread",(0,r.Sj)(s)),(0,r.ch)(`${t}(${t}==13 | ${t}==10)`,"[]")];const a=(null!==(i=s.split(".")[1])&&void 0!==i?i:"").toLowerCase().toString(),l=["jpeg","jpg","png","tif","gif"].includes(a)?"ImageProvider":"FileProvider";return(0,r.Tx)(t,l,(0,r.Sj)(s),n)}if(!e.length)return(0,r.Tx)(t,"FileProvider","",n);if(e.isString()&&function(e){try{JSON.parse(e)}catch(e){return!1}return!0}(e.toString())){const o=JSON.parse(e.toString());try{const e=(0,r.uN)(o,s);return(0,r.Tx)(t,"JSONProvider",e,n)}catch(s){return(0,r.Tx)(t,"StringProvider",(0,r.Sj)(e),n)}}const l=e.split("&").map((e=>e.split("=").map((e=>(0,r.Sj)(e)))));return(0,r.Tx)(t,"FormProvider",l,n)}function u(e){if(!e.data||e.multipartUploads)return null;if(e.data&&e.data.split("&",2).length>1){const t=e.data.split("&").map((e=>e.split("=").map((e=>{let t=(0,r.Sj)(e);if(e.isString())try{const n=JSON.parse(e.toString());"object"==typeof n&&(t=(0,r.Tx)(null,"JSONProvider",(0,r.uN)(n,1),""))}catch(e){}return t}))));return(0,r.Tx)("body","FormProvider",t)}let t=l(e.data,"body",";",0,!!e.isDataBinary,!!e.isDataRaw);return t||(t=(0,r.ch)("body",(0,r.Sj)(e.data))),t}function c(e){const t=e.urls[0].method.toLowerCase();let n=[(0,r.Sj)(t)];e.headers.length&&n.push("header"),(0,r.eu)(e)&&(1===n.length&&n.push("[]"),n.push("body")),e.headers.length||(0,r.eu)(e)||"get"!==t.toString()||(n="");const s=["uri.EncodedURI"];return(e.urls[0].auth||e.insecure)&&s.push("options"),[(0,r.Tx)("response","RequestMessage",n,(0,r.Tx)(null,".send",s))].join("\n")}function p(e,t){return[["%% HTTP Interface","import matlab.net.*","import matlab.net.http.*",(0,r.eu)(e)?"import matlab.net.http.io.*":null,"",(0,r.tO)(e),(0,r.FB)(e),s(e),o(e),a(e),i(e),u(e),c(e),""],t]}},954:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{h0:()=>p,lu:()=>c});var s=n(5385),o=n(7725),a=n(5912),i=e([s]);s=(i.then?(await i)():i)[0];const l=new Set([...s.xv,"insecure","no-insecure","form","form-string"]);function u(e,t=[]){const n=(0,s.dH)(e,t),[r]=(0,o.m)(n,t),[i]=(0,a.b)(n,t);return r.concat("",i).flat().filter((e=>null!==e)).join("\n")}function c(e,t=[]){return[u((0,s.qg)(e,l,t),t),t]}function p(e){return c(e)[0]}r()}catch(d){r(d)}}))},7725:(e,t,n)=>{"use strict";n.d(t,{m:()=>c});var r=n(6711),s=n(9850);function o(e,t,n,r){e.push([r?t.toLowerCase():t,n])}function a(e,t){const n=[];if(0===Object.keys(t).length)return n;const r=(0,s.bf)(Object.entries(t),["headerfields"],1,!0);return n.push((0,s.Tx)("options","weboptions",r)),n}function i(e){const t=[];return e.urls[0].queryList?(t.push((0,s.ch)("baseURI",(0,s.Sj)(e.urls[0].urlWithoutQueryList))),t.push((0,s.ch)("uri",`[baseURI '?' ${s.c4}]`))):t.push((0,s.ch)("uri",(0,s.Sj)(e.urls[0].url))),t}function l(e){var t;if(e.data&&0===e.data.length)return(0,s.ch)("body",(0,s.Sj)(new r.vZ));if(!e.data)return[];let n=[];if("@"===e.data.charAt(0))n.push((0,s.Tx)("body","fileread",(0,s.Sj)(e.data.slice(1)))),e.isDataBinary||n.push((0,s.ch)("body(body==13 | body==10)","[]"));else if(e.data.isString())try{const r=JSON.parse(null===(t=e.data)||void 0===t?void 0:t.toString());if("object"==typeof r){let e=(0,s.uN)(r);e.startsWith("struct")||(e=(0,s.rx)(e)),n=(0,s.ch)("body",e)}else n=(0,s.ch)("body",(0,s.Sj)(e.data))}catch(t){n=(0,s.ch)("body",(0,s.Sj)(e.data))}return n}function u(e,t){const n=[],r=(0,s.eu)(e)?"webwrite":"webread",o=["uri"];return(0,s.eu)(e)&&o.push("body"),Object.keys(t).length>0&&o.push("options"),n.push((0,s.Tx)("response",r,o)),n}
1function c(e,t){let n=["%% Web Access using Data Import and Export API"];if(!function(e){return["get","post","put","delete","patch"].includes(e.urls[0].method.toLowerCase().toString())&&!e.multipartUploads&&!e.insecure}(e))return n.push("% This is not possible with the webread/webwrite API"),[n,t];const c=function(e){const t={},n=e.urls[0].method.toLowerCase().toString();"get"!==n&&"post"!==n&&(t.RequestMethod=e.urls[0].method.toLowerCase());const a=[],i=[];if(e.urls[0].auth){const[n,l]=e.urls[0].auth;if(n.length)t.Username=n,t.Password=l;else{const t=`['Basic ' matlab.net.base64encode(${(0,s.Sj)((0,r.yZ)(e.urls[0].auth,":"))})]`;o(a,new r.vZ("Authorization"),new r.vZ(t),e.headers.lowercase),i.push("authorization")}}if(e.headers.length)for(const[n,l]of e.headers)if(null!==l)switch(n.toLowerCase().toString()){case"user-agent":t.UserAgent=l;break;case"content-type":t.MediaType=l;break;case"cookie":e.cookies?(o(a,new r.vZ("Cookie"),new r.vZ(s.kM),e.headers.lowercase),i.push("cookie")):o(a,n,l,e.headers.lowercase);break;case"accept":switch(l.toLowerCase().toString()){case"application/json":t.ContentType="json";break;case"text/csv":t.ContentType="table";break;case"text/plain":case"text/html":case"application/javascript":case"application/x-javascript":case"application/x-www-form-urlencoded":t.ContentType="text";break;case"text/xml":case"application/xml":t.ContentType="xmldom";break;case"application/octet-stream":t.ContentType="binary";break;default:l.startsWith("image/")?t.ContentType="image":l.startsWith("audio/")?t.ContentType="audio":o(a,n,l,e.headers.lowercase)}break;default:o(a,n,l,e.headers.lowercase)}if(a.length>0){const e=1+(0===Object.keys(t).length?0:1);t.HeaderFields=(0,s.bf)(a,i,e)}return t}(e);return n=n.concat([(0,s.tO)(e),(0,s.FB)(e),i(e),l(e),a(0,c),u(e,c)]),[n,t]}},4461:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{Ex:()=>_,ys:()=>h});var s=n(6711),o=n(5385),a=e([o]);o=(a.then?(await a)():a)[0];const i=new Set([...o.xv,"max-time"]),l=/"|\\|\p{C}|[^ \P{Z}]/gu;function u(e){return'@"'+e.replace(l,(e=>{switch(e){case"�":return"\\a";case"\b":return"\\b";case"\f":return"\\f";case"\n":return"\\n";case"\r":return"\\r";case"\t":return"\\t";case"\v":return"\\v";case"\\":return"\\\\";case'"':return'\\"'}const t=e.codePointAt(0).toString(16);return t.length<=2?"\\x"+t.padStart(2,"0"):t.length<=4?"\\u"+t.padStart(4,"0"):"\\U"+t.padStart(8,"0")}))+'"'}function c(e){const t=[];for(const n of e.tokens)"string"==typeof n?t.push(u(n)):"variable"===n.type?t.push("[[[NSProcessInfo processInfo] environment] objectForKey:"+u(n.value)+"]"):"command"===n.type&&t.push("system("+u(n.value)+")");return 1===t.length?t[0]:'[NSString stringWithFormat:@"'+"%@".repeat(t.length)+'", '+t.join(", ")+"]"}const p=["Content-Length","Authorization","Connection","Host","Proxy-Authenticate","Proxy-Authorization","WWW-Authenticate"].map((e=>e.toLowerCase()));function d(e,t=[]){const n=(0,o.dH)(e,t,{dataReadsFile:!0});let r="";if(r+="#import <Foundation/Foundation.h>\n",r+="\n",r+="NSURL *url = [NSURL URLWithString:"+c(n.urls[0].url)+"];\n",n.urls[0].auth){const[e,t]=n.urls[0].auth;r+="\n",r+='NSString *credentials = [NSString stringWithFormat:@"%@:%@", '+c(e)+", "+c(t)+"];\n",r+="NSData *credentialsData = [credentials dataUsingEncoding:NSUTF8StringEncoding];\n",r+="NSString *base64Credentials = [credentialsData base64EncodedStringWithOptions:0];\n"}if(n.headers.length||n.urls[0].auth){const e=[];for(const[r,s]of n.headers)null!==s&&(r.isString()&&p.includes(r.toLowerCase().toString())&&t.push(["reserved-header",r.toString()+" is a reserved header"]),e.push("    "+c(r)+": "+c(s)));n.urls[0].auth&&(t.push(["reserved-header","Authorization is a reserved header"]),e.push('    @"Authorization": [NSString stringWithFormat:@"Basic %@", base64Credentials]')),e.length&&(r+="NSDictionary *headers = @{\n",r+=e.join(",\n")+"\n",r+="};\n",r+="\n")}let a=!1,i=!1;if(n.urls[0].uploadFile)r+="InputStream *dataStream = [InputStream fileAtPath:"+c(n.urls[0].uploadFile)+"];",i=!0;else if(n.multipartUploads);else if(n.dataArray&&n.dataArray.length>=1)if(1!==n.dataArray.length||n.dataArray[0]instanceof s.vZ||n.dataArray[0].name){const e=[];
1if(1===n.dataArray.length&&n.dataArray[0]instanceof s.vZ){const t=n.dataArray[0].split("&");for(const[n,r]of t.entries()){const t=0===n?r:r.prepend("&");e.push(c(t))}}else{const t=[];for(const e of n.dataArray)if(e instanceof s.vZ)t.push(e);else{if(e.name){const n=e.name.append("="),r=t[t.length-1];t.length&&r instanceof s.vZ?t[t.length-1]=(0,s.__)(r,n):t.push(n)}t.push(e)}for(const n of t)n instanceof s.vZ?e.push(c(n)):e.push("[NSString stringWithContentsOfFile:"+c(n.filename)+" encoding:NSUTF8StringEncoding error:nil];")}const[t,...o]=e;r+="NSMutableData *data = [[NSMutableData alloc] initWithData:["+t+" dataUsingEncoding:NSUTF8StringEncoding]];\n";for(const e of o)r+="[data appendData:["+e+" dataUsingEncoding:NSUTF8StringEncoding]];\n";r+="\n",a=!0}else r+="InputStream *dataStream = [InputStream fileAtPath:"+c(n.dataArray[0].filename)+"];",i=!0;return!n.timeout||(0,s.eq)(n.timeout,"60")||(0,s.eq)(n.timeout,"60.0")?r+="NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url];\n":(r+="NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url\n",r+="                                                          cachePolicy:NSURLRequestUseProtocolCachePolicy\n",r+="                                                      timeoutInterval:"+n.timeout.toString()+"];\n"),(0,s.eq)(n.urls[0].method,"GET")||(r+="[request setHTTPMethod:"+c(n.urls[0].method)+"];\n"),(n.headers.length||n.urls[0].auth)&&(r+="[request setAllHTTPHeaderFields:headers];\n"),a?r+="[request setHTTPBody:data];\n":i&&(r+="[request setHTTPBodyStream:dataStream];\n"),r+="\n",r+="NSURLSessionConfiguration *defaultSessionConfiguration = [NSURLSessionConfiguration defaultSessionConfiguration];\n",r+="NSURLSession *session = [NSURLSession sessionWithConfiguration:defaultSessionConfiguration];\n",r+="NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {\n",r+="    if (error) {\n",r+='        NSLog(@"%@", error);\n',r+="    } else {\n",r+="        NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;\n",r+='        NSLog(@"%@", httpResponse);\n',r+="    }\n",r+="}];\n",r+="[dataTask resume];\n",r}function _(e,t=[]){return[d((0,o.qg)(e,i,t),t),t]}function h(e){return _(e)[0]}r()}catch(m){r(m)}}))},161:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{SC:()=>d,cP:()=>p});var s=n(5385),o=e([s]);s=(o.then?(await o)():o)[0];const a=new Set([...s.xv]),i=/"|\\|\p{C}|[^ \P{Z}]/gu;function l(e){return'"'+e.replace(i,(e=>{switch(e){case"\\":return"\\\\";case'"':return'\\"';case"\n":return"\\n";case"\r":return"\\r";case"\t":return"\\t";case"\b":return"\\b"}const t=e.codePointAt(0).toString(16);return t.length<=2?"\\x"+t.padStart(2,"0"):"\\u{"+t+"}"}))+'"'}function u(e){const t=[];for(const n of e.tokens)"string"==typeof n?t.push(l(n)):"variable"===n.type?t.push("(Sys.getenv "+l(n.value)+")"):"command"===n.type&&t.push("(Sys.command "+l(n.value)+")");return 1===t.length?t[0]:"("+t.join(" ^ ")+")"}function c(e,t=[]){const n=(0,s.dH)(e,t);let r="";r+="open Lwt\n",r+="open Cohttp\n",r+="open Cohttp_lwt_unix\n",r+="\n";const o=n.urls[0].method,a=o.toString(),i=["GET","POST","HEAD","DELETE","PATCH","PUT","OPTIONS","TRACE","CONNECT"];r+="let uri = Uri.of_string "+u(n.urls[0].url)+" in\n",o.isString()&&i.includes(a)||(r+="let meth = Code.method_of_string "+u(o)+" in\n");const l=Boolean(n.data);if(1!==n.headers.length||n.urls[0].auth){if(n.headers.length||n.urls[0].auth){r+="let headers = Header.init ()";for(const e of n.headers){const[t,n]=e;null!==n&&(r+="\n  |> fun h -> Header.add h "+u(t)+" "+u(n))}if(n.urls[0].auth){const[e,t]=n.urls[0].auth;r+="\n  |> fun h -> Header.add_authorization h (`Basic ("+u(e)+", "+u(t)+"))"}r+=" in\n"}}else{const[e,t]=n.headers.headers[0];null!==t&&(r+="let headers = Header.init_with "+u(e)+" "+u(t)+" in\n")}n.data&&(r+="let body = Cohttp_lwt.Body.of_string "+u(n.data)+" in\n");let c="Client.call";const p=[];return(n.headers.length||n.urls[0].auth)&&p.push("~headers"),l&&p.push("~body"),o.isString()&&i.includes(a)?!["HEAD","GET","DELETE","POST","PUT","PATCH"].includes(a)||l&&!["POST","PUT","PATCH"].includes(a)?p.push("`"+a):c="Client."+a.toLowerCase():p.push("meth"),p.push("uri"),r+=c+" "+p.join(" ")+"\n",r+=">>= fun (resp, body) ->\n",r+="  (* Do stuff with the result *)\n",r}function p(e,t=[]){return[c((0,s.qg)(e,a,t),t),t]}function d(e){return p(e)[0]}r()}catch(_){r(_)}}))}
1,7748:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{Be:()=>h,v3:()=>m});var s=n(6711),o=n(5385),a=e([o]);o=(a.then?(await a)():a)[0];const i=new Set([...o.xv,"max-time","insecure","no-insecure","upload-file","max-redirs","max-time","form","form-string"]),l=/\p{C}|[^ \P{Z}]/gu,u=/\$|@|"|\\|\p{C}|[^ \P{Z}]/gu;function c(e){const t=[];for(const r of e.tokens)"string"==typeof r?t.push((n=r,l.test(n)?'"'+n.replace(u,(e=>{switch(e){case"$":return"\\$";case"@":return"\\@";case"\\":return"\\\\";case"�":return"\\a";case"\b":return"\\b";case"\f":return"\\f";case"\n":return"\\n";case"\r":return"\\r";case"\t":return"\\t";case"\v":return"\\v";case'"':return'\\"'}const t=e.codePointAt(0).toString(16);return t.length<=2?"\\x"+t.padStart(2,"0"):"\\x{"+t+"}"}))+'"':"'"+n.replace("\\","\\\\").replace("'","\\'")+"'")):"variable"===r.type?t.push("$ENV{"+r.value+"}"):t.push("`"+r.value+"`");var n;return t.join(" . ")}const p=/^[a-zA-Z]+$/u;function d(e){return 1===e.tokens.length&&"string"==typeof e.tokens[0]&&p.test(e.tokens[0])?e.tokens[0]:c(e)}function _(e,t=[]){const n=(0,o.dH)(e,t),r=n.urls[0].method,a=r.toString();if(r.isString()&&["GET","HEAD"].includes(a)&&!n.headers.length&&!n.urls[0].auth&&!n.data&&!n.multipartUploads&&!n.insecure&&!n.timeout&&!n.maxRedirects){let e="use LWP::Simple;\n";return e+="$content = "+a.toLowerCase()+"("+c(n.urls[0].url)+");\n",e}const i=r.isString()&&["DELETE","GET","HEAD","PATCH","POST","PUT"].includes(a);let l="use LWP::UserAgent;\n";n.urls[0].auth&&(l+="use MIME::Base64;\n"),i||(l+="require HTTP::Request;\n"),n.urls[0].uploadFile&&(l+="use File::Slurp;\n"),l+="\n",l+="$ua = LWP::UserAgent->new(";const u=[];n.insecure&&u.push("ssl_opts => { verify_hostname => 0 }"),n.timeout&&u.push("timeout => "+n.timeout.toString()),n.maxRedirects&&u.push("max_redirect => "+n.maxRedirects.toString()),u.length>1?l+="\n    "+u.join(",\n    ")+"\n":l+=u.join(", "),l+=");\n";const p=[];if(i){if(l+="$response = $ua->"+a.toLowerCase()+"(",p.push(c(n.urls[0].url)),n.headers.length||n.urls[0].auth){for(const[e,t]of n.headers)null!==t&&p.push(d(e)+" => "+c(t));n.urls[0].auth&&p.push('Authorization => "Basic " . MIME::Base64::encode('+c((0,s.__)(n.urls[0].auth[0],":",n.urls[0].auth[1]))+")")}if(n.urls[0].uploadFile)p.push("Content => read_file("+c(n.urls[0].uploadFile)+")");else if(n.multipartUploads){p.push("Content_Type => 'form-data'");const e=[];for(const t of n.multipartUploads)if("content"in t)e.push(d(t.name)+" => "+c(t.content));else if("filename"in t){let n=d(t.name)+" => ["+c(t.contentFile);t.filename&&!(0,s.eq)(t.filename,t.contentFile)&&(n+=", "+c(t.filename)),e.push(n+"]")}else e.push(d(t.name)+" => read_file("+c(t.contentFile)+")");p.push("Content => [\n        "+e.join(",\n        ")+"\n    ]")}else n.data&&p.push("Content => "+c(n.data))}else l+="$request = HTTP::Request->new(",p.push(c(r)),p.push(c(n.urls[0].url));return!i&&p.length>2||i&&p.length>1?l+="\n    "+p.join(",\n    ")+"\n":l+=p.join(", "),l+=");\n",i||(l+="$response = $ua->request($request);\n"),l}function h(e,t=[]){return[_((0,o.qg)(e,i,t),t),t]}function m(e){return h(e)[0]}r()}catch(f){r(f)}}))},775:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{hd:()=>h,xJ:()=>m});var s=n(5385),o=n(6711),a=n(5210),i=n(1730),l=e([s,i]);[s,i]=l.then?(await l)():l;const u=new Set([...s.xv,"form","form-string","digest","no-digest","ntlm","no-ntlm","ntlm-wb","no-ntlm-wb","http3","http3-only","http2","http2-prior-knowledge","max-time","connect-timeout","insecure","no-insecure","cacert","capath","cert","key","compressed","no-compressed","location","no-location","proxy","noproxy"]);function c(e){return e.endsWith(",\n")?e.slice(0,-2)+"\n":e}function p(e,t=0){if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("number"==typeof e)return e.toString();if("string"==typeof e)return(0,i.rx)(e);if(Array.isArray(e)){if(0===e.length)return"[]";let n="[\n";for(const r of e)n+=" ".repeat(t+4),n+=p(r,t+4),n+=",\n";return n=c(n),n+=" ".repeat(t),n+="]",n}if("object"==typeof e){const n=Object.entries(e);if(0===n.length)return"new stdClass()";let r="[\n";for(const[e,s]of n)r+=" ".repeat(t+4),r+=(0,i.rx)(e),r+=" => ",r+=p(s,t+4),r+=",\n";return r=c(r),r+=" ".repeat(t),r+="]",r}throw new Error("Unknown type")}function d(e,t=0){const n=JSON.parse(e);if(null===n)throw new Error("null as a top level JSON object doesn't work");return[p(n,t),JSON.stringify(n)===e]}function _(e,t=[]){const n=(0,s.dH)(e,t),r=n.urls[0].queryDict?n.urls[0].urlWithoutQueryList:n.urls[0].url,l=n.urls[0].method,u=new Set(["GuzzleHttp\\Client"]);let p="$client = new Client();\n\n";p+="$response = $client->",l.isString()&&["GET","DELETE","HEAD","OPTIONS","PATCH","POST","PUT"].includes(l.toString())?p+=l.toString().toLowerCase()+"(":p+="request("+(0,i.Sj)(l)+", ";let _="";if(n.urls[0].queryDict){_+="    'query' => [\n";for(const[e,t]of n.urls[0].queryDict)if(_+=`        ${(0,i.Sj)(e)} => `,Array.isArray(t)){_+="[\n";for(const e of t)_+=`            ${(0,i.Sj)(e)},\n`;_=c(_),_+="        ],\n"}else _+=`${(0,i.Sj)(t)},\n`;_=c(_),_+="    ],\n"}if(n.headers.length){const e=[];for(const[t,r]of n.headers)null!==r&&e.push([(0,i.Sj)(t),(0,i.Sj)(r)]);if(e.length){const t=Math.max(...e.map((e=>e[0].length)));_+="    'headers' => [\n";for(const[n,r]of e)_+=`        ${n.padEnd(t)} => ${r},\n`;_=c(_),_+="    ],\n"}}if(n.urls[0].auth){const[e,r]=n.urls[0].auth;switch(_+=`    'auth' => [${(0,i.Sj)(e)}, ${(0,i.Sj)(r)}`,n.authType){case"basic":case"none":break;case"digest":_+=", 'digest'";break;case"ntlm":case"ntlm-wb":_+=", 'ntlm'";break;default:t.push(["unsupported-auth-type","Guzzle does not support ${request.authType} authentication"])}_+="],\n"}if(n.urls[0].uploadFile)_+=`    'body' => Psr7\\Utils::tryFopen(${(0,i.Sj)(n.urls[0].uploadFile)}, 'r')\n`,u.add("GuzzleHttp\\Psr7");else if(n.multipartUploads){_+="    'multipart' => [\n";for(const e of n.multipartUploads)_+="        [\n",_+=`            'name' => ${(0,i.Sj)(e.name)}
1,\n`,"content"in e?_+=`            'contents' => ${(0,i.Sj)(e.content)},\n`:(e.filename&&!(0,o.eq)(e.filename,e.contentFile)&&(_+=`            'filename' => ${(0,i.Sj)(e.filename)},\n`),_+=`            'contents' => Psr7\\Utils::tryFopen(${(0,i.Sj)(e.contentFile)}, 'r'),\n`,u.add("GuzzleHttp\\Psr7")),_=c(_),_+="        ],\n";_=c(_),_+="    ],\n"}else if(n.data){const e=n.headers.getContentType();if("application/x-www-form-urlencoded"===e){const[e,t]=(0,a.JO)(n.data);if(t){_+="    'form_params' => [\n";for(const[e,n]of t)if(_+=`        ${(0,i.Sj)(e)} => `,Array.isArray(n)){_+="[\n";for(const e of n)_+=`            ${(0,i.Sj)(e)},\n`;_=c(_),_+="        ],\n"}else _+=`${(0,i.Sj)(n)},\n`;_=c(_),_+="    ],\n"}else _+=`    'body' => ${(0,i.Sj)(n.data)},\n`}else if("application/json"===e&&n.data.isString())try{const[e,t]=d(n.data.toString(),4);t||(_+=`    // 'body' => ${(0,i.Sj)(n.data)},\n`),_+=`    'json' => ${e},\n`}catch(e){_+=`    'body' => ${(0,i.Sj)(n.data)},\n`}else _+=`    'body' => ${(0,i.Sj)(n.data)},\n`}if(n.noproxy?(_+="    'proxy' => [\n",n.proxy&&(_+=`        'http' => ${(0,i.Sj)(n.proxy)},\n`,_+=`        'https' => ${(0,i.Sj)(n.proxy)},\n`),_+=`        'no' => [${n.noproxy.split(",").map((e=>e.trim())).map((e=>(0,i.Sj)(e))).join(", ")}]\n`,_+="    ],\n"):n.proxy&&(_+=`    'proxy' => ${(0,i.Sj)(n.proxy)},\n`),n.timeout&&(_+=`    'timeout' => ${parseFloat(n.timeout.toString())||0},\n`),n.connectTimeout&&(_+=`    'connect_timeout' => ${parseFloat(n.connectTimeout.toString())||0},\n`),!1===n.followRedirects&&(_+="    'allow_redirects' => false,\n"),n.insecure?_+="    'verify' => false,\n":n.cacert?_+=`    'verify' => ${(0,i.Sj)(n.cacert)},\n`:n.capath&&(_+=`    'verify' => ${(0,i.Sj)(n.capath)},\n`),n.cert){const[e,t]=n.cert;_+=t?`    'cert' => [${(0,i.Sj)(e)}, ${(0,i.Sj)(t)}],\n`:`    'cert' => ${(0,i.Sj)(e)},\n`}return n.key&&(_+=`    'ssl_key' => ${(0,i.Sj)(n.key)},\n`),n.http3?_+="    'http_version' => 3.0,\n":n.http2&&(_+="    'http_version' => 2.0,\n"),_=c(_),p+=(0,i.Sj)(r),_&&(p+=", [\n",p+=_,p+="]"),p+=");","<?php\nrequire 'vendor/autoload.php';\n\n"+Array.from(u).sort().map((e=>"use "+e+";\n")).join("")+"\n"+p+"\n"}function h(e,t=[]){return[_((0,s.qg)(e,u,t),t),t]}function m(e){return h(e)[0]}r()}catch(f){r(f)}}))},1730:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{Sj:()=>p,g3:()=>_,rx:()=>c,yg:()=>h});var s=n(6711),o=n(5385),a=e([o]);o=(a.then?(await a)():a)[0];const i=new Set([...o.xv,"max-time","insecure","no-insecure","compressed","no-compressed","digest","no-digest","location","no-location","form","form-string","proxy","proxy-user","unix-socket"]),l=/'|\\/gu,u=/"|\$|\\|\p{C}|[^ \P{Z}]/gu;function c(e){let[t,n]=["'",l];return(e.includes("'")&&!e.includes('"')||/[^\x20-\x7E]/.test(e))&&([t,n]=['"',u]),t+e.replace(n,(e=>{switch(e){case"$":return"'"===t?"$":"\\$";case"\\":return"\\\\";case"'":case'"':return e===t?"\\"+e:e;case"\n":return"\\n";case"\r":return"\\r";case"\t":return"\\t";case"\v":return"\\v";case"�":return"\\e";case"\f":return"\\f"}const n=e.codePointAt(0).toString(16);return n.length>2?"\\u{"+n+"}":"\\x"+n.padStart(2,"0")}))+t}function p(e){const t=[];for(const n of e.tokens)"string"==typeof n?t.push(c(n)):"variable"===n.type?t.push("getenv("+c(n.value)+") ?? "+c("")):"command"===n.type&&t.push("shell_exec("+c(n.value)+")");return t.join(" . ")}function d(e,t=[]){const n=(0,o.dH)(e,t,{dataReadsFile:!0});let r;n.headers.has("cookie")&&(r=n.headers.get("cookie"),n.headers.delete("cookie"));let a="<?php\n";if(a+="$ch = curl_init();\n",a+="curl_setopt($ch, CURLOPT_URL, "+p(n.urls[0].url)+");\n",a+="curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n",a+="curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "+p(n.urls[0].method)+");\n",n.compressed&&n.headers.setIfMissing("Accept-Encoding","gzip"),n.headers.length){let e="[\n";for(const[t,r]of n.headers)null!==r&&(e+="    "+p((0,s.yZ)([t,r],": "))+",\n");e+="]",a+="curl_setopt($ch, CURLOPT_HTTPHEADER, "+e+");\n"}if(r&&(a+="curl_setopt($ch, CURLOPT_COOKIE, "+p(r)+");\n"),n.urls[0].auth&&["basic","digest"].includes(n.authType)&&(a+="curl_setopt($ch, CURLOPT_HTTPAUTH, "+("digest"===n.authType?"CURLAUTH_DIGEST":"CURLAUTH_BASIC")+");
1\n",a+="curl_setopt($ch, CURLOPT_USERPWD, "+p((0,s.yZ)(n.urls[0].auth,":"))+");\n"),n.data||n.multipartUploads){let e="";if(n.multipartUploads){e="[\n";for(const t of n.multipartUploads)e+="    "+p(t.name)+" => ","contentFile"in t?(e+="new CURLFile("+p(t.contentFile),t.contentType&&(e+=", "+p(t.contentType)),t.filename&&!(0,s.eq)(t.filename,t.contentFile)&&(t.contentType||(e+=", null"),e+=", "+p(t.filename)),e+=")"):"filename"in t&&t.filename?(e+="new CURLStringFile("+p(t.content),e+=", "+p(t.filename),t.contentType&&(e+=", "+p(t.contentType)),e+=")"):e+=p(t.content),e+=",\n";e+="]"}else e=n.isDataBinary&&"@"===n.data.charAt(0)?"file_get_contents("+p(n.data.slice(1))+")":p(n.data);a+="curl_setopt($ch, CURLOPT_POSTFIELDS, "+e+");\n"}return n.proxy&&(a+="curl_setopt($ch, CURLOPT_PROXY, "+p(n.proxy)+");\n",n.proxyAuth&&(a+="curl_setopt($ch, CURLOPT_PROXYUSERPWD, "+p(n.proxyAuth)+");\n")),n.timeout&&(a+="curl_setopt($ch, CURLOPT_TIMEOUT, "+(parseInt(n.timeout.toString(),10)||0)+");\n"),n.unixSocket&&(a+="curl_setopt($ch, CURLOPT_UNIX_SOCKET_PATH, "+p(n.unixSocket)+");\n"),n.followRedirects&&(a+="curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);\n"),n.insecure&&(a+="curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);\n",a+="curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);\n"),a+="\n$response = curl_exec($ch);\n\n",a+="curl_close($ch);\n",a}function _(e,t=[]){return[d((0,o.qg)(e,i,t),t),t]}function h(e){return _(e)[0]}r()}catch(m){r(m)}}))},9478:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{gS:()=>p,ij:()=>c});var s=n(5385),o=n(5210),a=n(1730),i=e([s,a]);[s,a]=i.then?(await i)():i;const l=new Set([...s.xv]);function u(e,t=[]){const n=(0,s.dH)(e,t);let r,i,l;if(n.headers.length){r="$headers = array(\n";let e=0;for(const[t,s]of n.headers)null!==s&&(r+="    "+(0,a.Sj)(t)+" => "+(0,a.Sj)(s),e<n.headers.length-1&&(r+=",\n"),e++);r+="\n);"}else r="$headers = array();";if(n.urls[0].auth){const[e,t]=n.urls[0].auth;i="$options = array('auth' => array("+(0,a.Sj)(e)+", "+(0,a.Sj)(t)+"));"}if(n.data){const[e]=(0,o.JO)(n.data);if(l="$data = array(\n",e&&e.length){const t=[];for(const n of e){const[e,r]=n;t.push("    "+(0,a.Sj)(e)+" => "+(0,a.Sj)(r))}l+=t.join(",\n")+"\n);"}else l="$data = "+(0,a.Sj)(n.data)+";"}let u="$response = Requests::"+n.urls[0].method.toLowerCase().toString()+"("+(0,a.Sj)(n.urls[0].url);u+=", $headers",l&&(u+=", $data"),i&&(u+=", $options"),u+=");";let c="<?php\n";return c+="include('vendor/rmccue/requests/library/Requests.php');\n",c+="Requests::register_autoloader();\n",c+=r+"\n",l&&(c+=l+"\n"),i&&(c+=i+"\n"),c+=u,c+"\n"}function c(e,t=[]){return[u((0,s.qg)(e,l,t),t),t]}function p(e){return c(e)[0]}r()}catch(d){r(d)}}))},6068:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{GT:()=>S,c6:()=>y,uV:()=>b,yz:()=>g});var s=n(5385),o=n(7277),a=n(6711),i=n(5210),l=e([s]);s=(l.then?(await l)():l)[0];const u=/\p{C}|[^ \P{Z}]/gu,c=/\$|`|"|\p{C}|[^ \P{Z}]/gu;function p(e,t){return'"'===t?e.replace(c,(e=>{switch(e){case"\0":return"`0";case"�":return"`a";case"\b":return"`b";case"�":return"`e";case"\f":return"`f";case"\n":return"`n";case"\r":return"`r";case"\t":return"`t";case"\v":return"`v";case"$":return"`$";case"`":return"``";case'"':return'`"'}return"`u{"+e.codePointAt(0).toString(16)+"}"})):e.replace("'","''")}function d(e){let t='"';1!==e.tokens.length||"string"!=typeof e.tokens[0]||u.test(e.tokens[0])||!e.tokens[0].includes("'")||e.tokens[0].includes('"')||(t="'");const n=[];for(const r of e.tokens)"string"==typeof r?n.push(p(r,t)):"variable"===r.type||r.text.startsWith("$(")&&r.text.endsWith(")")?n.push(r.text):n.push("$("+r.text+")");return 1===e.tokens.length&&"string"!=typeof e.tokens[0]?n.join(""):t+n.join("")+t}const _=new Set([...s.xv,"form","form-string","upload-file","output","location","location-trusted","max-redirs","proxy","insecure","max-time","keepalive","http2","http3"]);function h(e,t,n,r){let s="";const o=n?"Invoke-RestMethod":"Invoke-WebRequest",l=[],u=t.method,c=t.method.toString();if(t.queryList&&t.queryDict&&t.queryDict.every((e=>!Array.isArray(e[1])))&&u.isString()&&"GET"===c&&!(t.uploadFile||e.data||e.multipartUploads)){s+="$body = @{\n";for(const[e,n]of t.queryList)s+="    "+d(e)+" = "+d(n)+"\n";s+="}\n",l.push(["-Uri",d(t.urlWithoutQueryList)]),l.push(["-Body","$body"]),r.push(["data-get","the -Bo
1dy will be sent in the URL as a query string"])}else l.push(["-Uri",d(t.url)]);const p={DEFAULT:"Default",DELETE:"Delete",GET:"Get",HEAD:"Head",MERGE:"Merge",OPTIONS:"Options",PATCH:"Patch",POST:"Post",PUT:"Put",TRACE:"Trace"};if(t.method.isString()&&"GET"===c||(t.method.isString()&&c in p?l.push(["-Method",p[c]]):l.push(["-CustomMethod",d(u)])),e.cookies){s+="$session = New-Object Microsoft.PowerShell.Commands.WebRequestSession\n";for(const[n,r]of e.cookies)s+="$cookie = New-Object System.Net.Cookie\n",s+="$cookie.Name = "+d(n)+"\n",s+="$cookie.Value = "+d(r)+"\n",s+="$cookie.Domain = "+d(t.urlObj.host)+"\n",s+="$session.Cookies.Add($cookie)\n";l.push(["-WebSession","$session"]),e.headers.delete("Cookie")}const _=[],h=[];for(const[t,n]of e.headers)null!==n&&("content-type"===t.toLowerCase().toString()?_.push(["-ContentType",d(n)]):"user-agent"===t.toLowerCase().toString()?_.push(["-UserAgent",d(n)]):h.push(d(t)+" = "+d(n)));if(t.auth){const[e,n]=t.auth;s+="$username = "+d(e)+"\n",s+="$password = ConvertTo-SecureString "+d(n)+" -AsPlainText -Force\n",s+="$credential = New-Object System.Management.Automation.PSCredential($username, $password)\n",l.push(["-Credential","$credential"]),l.push(["-Authentication","Basic"]),"http"===t.urlObj.scheme.toString()&&l.push(["-AllowUnencryptedAuthentication"])}if(h.length&&(s+="$headers = @{\n",s+="    "+h.join("\n    ")+"\n",s+="}\n",l.push(["-Headers","$headers"])),l.push(..._),t.uploadFile)(0,a.eq)(t.uploadFile,"-")||(0,a.eq)(t.uploadFile,"."),l.push(["-InFile",d(t.uploadFile)]);else if(e.multipartUploads){s+="$form = @{\n";for(const t of e.multipartUploads)"content"in t?s+="    "+d(t.name)+" = "+d(t.content)+"\n":("filename"in t&&t.filename&&!(0,a.eq)(t.filename,t.contentFile)&&r.push(["powershell-multipart-fake-filename","PowerShell doesn't support multipart uploads that read a certain filename but send a different filename"]),s+="    "+d(t.name)+" = Get-Item "+d(t.contentFile)+"\n");s+="}\n",l.push(["-Form","$form"])}else if(!e.dataArray||1!==e.dataArray.length||e.dataArray[0]instanceof a.vZ||e.dataArray[0].name){if(e.data){if("application/x-www-form-urlencoded"===e.headers.getContentType()){let t,n;try{[t,n]=(0,i.JO)(e.data)}catch(e){}if(t&&n&&n.every((e=>!Array.isArray(e[1])))){s+="$body = @{\n";for(const[e,n]of t)s+="    "+d(e)+" = "+d(n)+"\n";s+="}\n",l.push(["-Body","$body"])}else l.push(["-Body",d(e.data)]),"POST"===c&&e.data.includes("=")&&r.push(["post-string","all -Body text after the first '=' will be escaped"])}else l.push(["-Body",d(e.data)]),"POST"===c&&e.data.includes("=")&&r.push(["post-string","all -Body text after the first '=' will be escaped"]);"GET"===c&&r.push(["data-get","the -Body will be sent in the URL as a query string"])}}else l.push(["-InFile",d(e.dataArray[0].filename)]);!1===e.followRedirects?l.push(["-MaximumRedirection","0"]):e.maxRedirects&&"5"!==e.maxRedirects.toString()&&l.push(["-MaximumRedirection",e.maxRedirects.toString()]),e.followRedirectsTrusted&&l.push(["-PreserveAuthorizationOnRedirect"]),e.proxy&&l.push(["-Proxy",d(e.proxy)]),e.proxyAuth,e.noproxy,e.insecure&&l.push(["-SkipCertificateCheck"]),e.timeout&&l.push(["-TimeoutSec",e.timeout.toString()]),!1===e.keepAlive&&l.push(["-DisableKeepAlive"]),e.http2?l.push(["-HttpVersion","2.0"]):e.http3&&l.push(["-HttpVersion","3.0"]),t.output&&l.push(["-OutFile",d(t.output)]);const m=l.length>3||l.reduce(((e,t)=>e+t.length),0)>75?" `\n    ":" ";return s+"$response = "+o+" "+l.map((e=>e.join(" "))).join(m)+"\n"}function m(e,t=!0,n=[]){const r=[];for(const s of e){(0,o.cY)(s,n,{dataReadsFile:!0,multipleUrls:!0}),s.dataReadsFile&&s.dataArray&&s.dataArray.length&&(s.dataArray.length>1||!(s.dataArray[0]instanceof a.vZ)&&s.dataArray[0].name)&&n.push(["unsafe-data","the generated data content is wrong, "+JSON.stringify("@"+s.dataReadsFile)+" means read the file "+JSON.stringify(s.dataReadsFile)]);for(const e of s.urls)r.push(h(s,e,t,n))}return r.join("\n\n")}function f(e,t=[]){return m(e,!1,t)}function y(e,t=[]){return[f((0,s.qg)(e,_,t),t),t]}function g(e){return y(e)[0]}function w(e,t=[]){return m(e,!0,t)}function S(e,t=[]){return[w((0,s.qg)(e,_,t),t),t]}function b(e){return y(e)[0]}r()}catch(T){r(T)}}))}
1,7474:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{CL:()=>p,SD:()=>c});var s=n(6711),o=n(5385),a=n(832),i=e([o,a]);[o,a]=i.then?(await i)():i;const l=new Set([...o.xv,"max-time","insecure","no-insecure","upload-file"]);function u(e,t=[]){const n=(0,o.dH)(e,t),r={},i=new Set;let l="";(0,s.eq)(n.urls[0].urlObj.scheme,"https")?l+="conn = http.client.HTTPSConnection(":l+="conn = http.client.HTTPConnection(";const u=[(0,a.Sj)(n.urls[0].urlObj.host,r,i)];n.urls[0].urlObj.port,n.timeout&&u.push(`timeout=${(0,a.Pf)(n.timeout,r,i)}`),n.insecure&&(0,s.eq)(n.urls[0].urlObj.scheme,"https")&&(u.push("context=ssl._create_unverified_context()"),i.add("ssl"));let c,p,d=u.join(", ");if(d.length>80&&(d="\n    "+u.join(",\n    ")+"\n"),l+=d+")\n",n.urls[0].auth){const[e,t]=n.urls[0].auth;if("basic"===n.authType){const r="Basic "+btoa(`${e.toString()}:${t.toString()}`);n.headers.setIfMissing("Authorization",r),i.add("")}}n.headers.length&&(l+=(0,a.YH)(n.headers,{},r,i));const _=n.headers.get("content-type");n.dataArray&&1===n.dataArray.length&&_&&"application/json"===_.split(";")[0].toString().trim()&&n.dataArray&&([c,p]=(0,a.wR)(n.dataArray[0],i,r)),c&&(l+=c),l+="conn.request(";const h=[(0,a.Sj)(n.urls[0].method,r,i),(0,a.Sj)((0,s.__)(n.urls[0].urlObj.path,n.urls[0].urlObj.query),r,i)];c?(h.push("json.dumps(json_data)"),!p&&n.data&&h.push("# "+(0,a.Sj)(n.data,r,i)),i.add("json")):n.urls[0].uploadFile?(0,s.eq)(n.urls[0].uploadFile,"-")||(0,s.eq)(n.urls[0].uploadFile,".")?(h.push("sys.stdin.buffer"),i.add("sys")):h.push("open("+(0,a.Sj)(n.urls[0].uploadFile,r,i,!1,!0)+", 'rb')"):!n.dataArray||1!==n.dataArray.length||n.dataArray[0]instanceof s.vZ||n.dataArray[0].name?n.data&&h.push((0,a.Sj)(n.data,r,i)):h.push("open("+(0,a.Sj)(n.dataArray[0].filename,r,i,!1,!0)+", 'rb')"),n.headers.length&&(2===h.length?h.push("headers=headers"):h.push("headers"));let m=h.join(", ");m.length>80&&(m="\n    "+h.join(",\n    ")+"\n"),l+=m+")\n",l+="response = conn.getresponse()\n";let f="import http.client\n";return f+=(0,a.qb)(i),f+="\n",f+l}function c(e,t=[]){return[u((0,o.qg)(e,l,t),t),t]}function p(e){return c(e)[0]}r()}catch(d){r(d)}}))},832:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{Pf:()=>y,Sj:()=>m,Uw:()=>B,YH:()=>v,qb:()=>M,rx:()=>_,wI:()=>H,wR:()=>L});var s=n(9531),o=n(6711),a=n(5385),i=n(5210),l=n(4123),u=e([a]);a=(u.then?(await u)():u)[0];const c=new Set([...a.xv,"compressed","digest","no-digest","aws-sigv4","negotiate","no-negotiate","delegation","ntlm","no-ntlm","ntlm-wb","no-ntlm-wb","http1.1","http2","http2-prior-knowledge","http3","http3-only","cookie-jar","cert","cacert","key","capath","form","form-string","location","no-location","location-trusted","no-location-trusted","max-redirs","max-time","connect-timeout","insecure","no-insecure","output","upload-file","next","proxy","proxy-user"]),p=/'|\\|\p{C}|[^ \P{Z}]/gu,d=/"|\\|\p{C}|[^ \P{Z}]/gu;function _(e,t){void 0===t&&(t="'",e.includes("'")&&!e.includes('"')&&(t='"'));const n="'"===t?p:d;return t+e.replace(n,(e=>{switch(e){case"�":return"\\a";case"\b":return"\\b";case"\f":return"\\f";case"\n":return"\\n";case"\r":return"\\r";case"\t":return"\\t";case"\v":return"\\v";case"\\":return"\\\\";case"'":return"\\'";case'"':return'\\"'}const t=e.codePointAt(0).toString(16);return t.length<=2?"\\x"+t.padStart(2,"0"):t.length<=4?"\\u"+t.padStart(4,"0"):"\\U"+t.padStart(8,"0")}))+t}function h(e){const t=_(e);return/^[\x00-\x7f]*$/.test(e)?"b"+t:t+".encode()"}function m(e,t,n,r=!1,o=!1){const a=r?h:_,i=[];for(const l of e.tokens)if("string"==typeof l)i.push(a(l));else if("variable"===l.type){let t=(r?"os.getenvb":"os.getenv")+"("+a(l.value);(!o||e.tokens.length>1)&&(t+=", "+a("")),t+=")",i.push(t),n.add("os")}else if("command"===l.type){let e="subprocess.run("+_(l.value)+", shell=True, capture_output=True";r||(e+=", text=True"),e+=").stdout";let o=1,a="command"+o;for(;a in t&&t[a]!==e;)if(o++,a="command"+o,o>Number.MAX_SAFE_INTEGER)throw new s.fA("lol");t[a]=e,i.push(a),n.add("subprocess")}return i.join(" + ")}function f(e,t,n){return m(e,t,n,!0)}function y(e,t,n){return e.isString()?e.toString():"float("+m(e,t,n,!1,!0)+")"}function g(e,t,n){return e.isString()?e.toString():"int("+m(e,t,n,!1,!0)+")"}const w=/"|\\|[^\x20-\x7E]/g;function S(e){return'"'+e.replace(w,(e=>{switch(e){case"\b":return"\\b";case"\t":return"\\t";case"\n":return"\\n";case"\f":return"\\f";case"\r":return"\\r";case"\\":return"\\\\";case'"':return'\\"'}return"\\u"+e.charCodeAt(0).toString(16).padStart(4,"0")}))+'"'}function b(e){const[t,n]=e.split("e"),r=n[0],s=n.slice(1);return 1===s.length?t+"e"+r+"0"+s:e}function T(e){let t=e.toString();if(t.includes("e"))t=b(t);else{(0,l.Fq)(t)&&(t+=".0");const n=t.replace(/^-/,"").replace(".","").replace(/^0+/,""),r=b(e.toExponential());(n.length>17||r.length<t.length&&t.split(".")[1].length>4)&&(t=r)}return t}function x(e){if((0,l.s_)(e)){const t=(0,l.As)(e);if((0,l.Fq)(t))return t;if(!(0,l.Lz)(t))throw new s.fA("float unrepresentable in Python: "+t);return T(e.valueOf())}switch(typeof e){case"string":return S(e);case"number":if(!isFinite(e))throw new s.fA("found Infitiny in JSON");return e.toString();case"boolean":return e.toString();case"object":return null===e?"null":Array.isArray(e)?"["+e.map(x).join(", ")+"]":"{"+Object.entries(e).map((e=>S(e[0])+": "+x(e[1]))).join(", ")+"}";default:throw new s.fA("unexpected object type that shouldn't appear in JSON: "+typeof e)}}function E(e,t=0){if((0,l.s_)(e)){const t=(0,l.As)(e);if(!(0,l.Fq)(t)&&!(0,l.Lz)(t))throw new s.fA("float unrepresentable in Python: "+t);return t}switch(typeof e){case"string":return _(e);case"number":return e.toString();case"boolean":return e?"True":"False";case"object":if(null===e)return"None";if(Array.isArray(e)){if(0===e.length)return"[]";let n="[\n";for(const r of e)n+=" ".repeat(t+4)+E(r,t+4)+",\n";return n+=" ".repeat(t)+"]",n}if(0===Object.keys(e).length)return"{}";{let n="{\n";for(const[r,s]of Object.entries(e))n+=" ".repeat(t+4)+_(r)+": "+E(s,t+4)+",\n";return n+=" ".repeat(t)+"}",n}default:throw new s.fA("unexpected object type that shouldn't appear in JSON: "+typeof e)}}function v(e,t,n,r){let o="headers = {\n";for(const[a,i]of e){if(null===i)continue;let e;const l=a.toLowerCase().toString();(0,s.zy)(t,l)?(t[l]&&(o+="    # "+t[l]+"\n"),e="    # "):e="    ",o+=e+m(a,n,r)+": "+m(i,n,r)+",\n"}return o+="}\n",o}function A(e){let t;try{t=(0,i.i5)(e.replace(/\+/g," "))}catch(e){if(e instanceof URIError)return null;throw e}const n=(0,i.a)(t);return(0,o.eq)(n,e)||(0,o.eq)(n.replace(/%20/g,"+"),e)?t:null}function R(e){const t={};let n=null;for(const[r,s]of e){if(n===r)t[r].push(s);else{if(Object.prototype.hasOwnProperty.call(t,r))return null;t[r]=[s]}n=r}return t}function C(e){if(0===e.length)return"''";const t=R(e);if(null!==t){if(0===Object.keys(t).length)return"''";let e="{\n";for(const[n,r]of Object.entries(t)){if(e+="    "+n+": ",0===r.length)e+="''";else if(1===r.length)e+=r[0];else{e+="[\n";for(const t of r)e+="        "+t+",\n";e+="    ]"}e+=",\n"}return e+="}",e}let n="[\n";for(const t of e){const[e,r]=t;n+="    ("+e+", "+r+"),\n"}return n+="]",n}function O(e,t,n,r="data"){for(const t of e)if(!(t instanceof o.vZ)&&"urlencode"!==t.filetype)return null;const s=[];let a=new o.vZ;for(const[r,l]of e.entries()){if(l instanceof o.vZ){let o=l.split("&");const i=r>0?s[s.length-1]:null;if(null!==i){const[e,...r]=o;if(e.includes("=")&&null===i[1]){const[r,s]=e.split("=",2),o=A(r);if(null===o)return null;const l=A(s);if(null===l)return null;r.toBool()&&(i[0]+=" + "+m(o,t,n)),i[1]=m(l,t,n),a.toBool()||(r.includes("%2
10")&&(a=r),s.includes("%20")&&(a=s))}else{if(e.includes("=")||null===i[1])return null;if(e.toBool()){const r=A(e);if(null===r)return null;i[1]+=" + "+m(r,t,n),!a.toBool()&&e.includes("%20")&&(a=e)}}o=r}for(const[i,l]of o.entries()){if(l.isEmpty()&&i===o.length-1&&r!==e.length-1)continue;if(!l.includes("="))return null;const[u,c]=l.split("=",2),p=A(u);if(null===p)return null;const d=A(c);if(null===d)return null;s.push([m(p,t,n),m(d,t,n)]),a.toBool()||(u.includes("%20")&&(a=u),c.includes("%20")&&(a=c))}continue}const u=(0,o.eq)(l.filename,"-")?"sys.stdin.read()":"open("+m(l.filename,t,n,!1,!0)+").read()";if(l.name){if(!(0,o.eq)(l.name,(0,i.a)(l.name)))return null;s.push([m(l.name,t,n),u])}else s.push([u,null])}return s.some((e=>null===e[1]))?null:[r+" = "+C(s)+"\n",a.toString()]}function P(e,t,n,r="data"){const s=e.some((e=>!(e instanceof o.vZ)&&"binary"===e.filetype)),a=s?f:m,i=s?"b":"",l=s?", 'rb'":"";let u=!1,c=!1;const p=[];let d,_,h=new o.vZ;for([d,_]of e.entries()){let f=r+" "+(0===d?"=":"+=")+" ";if(d<e.length-1&&_ instanceof o.vZ&&_.endsWith("&")&&(h=new o.vZ("&"),_=_.slice(0,-1)),_ instanceof o.vZ){_.length&&(f+=a(_,n,t),p.push(f),u||(u=_.test(/[^\x00-\x7F]/)));continue}const{filetype:y,name:g,filename:w}=_;"urlencode"===y&&g?(f+=a(h.add(g).append("="),n,t)+" + ",c=!0):h.toBool()&&(f+=a(h,n,t)+" + ",c=!0),h.toBool()&&(c=!0);let S="";(0,o.eq)(w,"-")?(S+=s?"sys.stdin.buffer":"sys.stdin",t.add("sys")):(f="with open("+m(w,n,t,!1,!0)+l+") as f:\n    "+f,S+="f"),S+=".read()",["binary","json","urlencode"].includes(y)||(S+=`.replace(${i}'\\n', ${i}'').replace(${i}'\\r', ${i}'')`),"urlencode"===y?(S="quote_plus("+S+")",s&&(S+=".encode()"),t.add("urllib.parse.quote_plus")):u=!0,f+=S,p.push(f),h=new o.vZ}return s?u=!1:u&&1===p.length&&!c&&(p[p.length-1]+=".encode()",u=!1),[p.join("\n")+"\n",u]}function L(e,t,n){if(e instanceof o.vZ){if(!e.isString())return[null,!1];let t;try{t=(0,l.qg)(e.toString())}catch(n){try{t=JSON.parse(e.toString())}catch(e){return[null,!1]}}try{const n="json_data = "+E(t)+"\n";let r=!1;try{r=x(t)===e.tokens[0]}catch(e){}return[n,r]}catch(e){}}else if("json"===e.filetype){let r="";return r+="with open("+m(e.filename,n,t,!1,!0)+") as f:\n",r+="    json_data = json.load(f)\n",t.add("json"),[r,!1]}return[null,!1]}function N(e,t,n){const r=new Set;if(!e.data||!e.dataArray)return[null,!1,null,r];const s=e.headers.get("content-type");let a=null,i=!1;if(1===e.dataArray.length&&s&&"application/json"===s.split(";")[0].toString().trim()&&([a,i]=L(e.dataArray[0],r,t)),i)return[null,!1,a,r];const l=O(e.dataArray,t,r);if(null!==l){const[t,s]=l;return(0,o.eq)(e.headers.get("content-type"),"application/x-www-form-urlencoded")&&1===e.headers.length&&e.headers.delete("content-type"),s&&n.push(["percent-encoded-spaces-in-data",'data contains spaces encoded by curl as "%20" which will be sent as "+" instead: '+JSON.stringify(s)]),[t,!1,a,r]}const[u,c]=P(e.dataArray,r,t);return[u,c,a,r]}function F(e,t,n){let r=!1;if(!e.multipartUploads)return["",r];const s=e.multipartUploads.map((e=>{const s=e.name?m(e.name,t,n):"None";if(!("contentType"in e)&&!("headers"in e)&&!("encoder"in e)){if("contentFile"in e&&(0,o.eq)(e.contentFile,e.filename)&&!(0,o.eq)(e.contentFile,"-"))return[s,"open("+m(e.contentFile,t,n,!1,!0)+", 'rb')"];if("content"in e&&"filename"in e&&(0,o.eq)(e.name,e.filename))return[s,m(e.content,t,n)]}const a=["filename"in e&&e.filename?m(e.filename,t,n):"None"];"contentFile"in e?(0,o.eq)(e.contentFile,"-")?(r=!0,a.push("sys.stdin.buffer.read())")):a.push("open("+m(e.contentFile,t,n,!1,!0)+", 'rb')"):a.push(m(e.content,t,n));let i=!1;if("contentType"in e&&e.contentType&&(a.push(m(e.contentType,t,n)),i=!0),"headers"in e&&e.headers||"headerFiles"in e&&e.headerFiles){i||a.push("None");const r=[];if(e.headers){let s="{";for(const r of e.headers){const[e,a]=r.split(":",2);s+=m(e,t,n)+": "+m(a.trimStart()||new o.vZ,t,n)+", "}s.endsWith(", ")&&(s=s.slice(0,-2)),s+="}",r.push(s)}if(e.headerFiles&&e.headerFiles.length){for(const s of e.headerFiles)r.push("read_headerfile("+m(s,t,n,!1,!0)+")");n.add("read_headerfile")}a.push(r.join(" | "))}return[s,"("+a.join(", ")+")"]})),a=Object.fromEntries(s);let i="files = ";if(Object.keys(a).length===s.length){i+="{\n";for(const[e,t]of s)i+="    "+e+": "+t+",\n";i+="}\n"}else{i+="[\n";for(const[e,t]of s)i+="    ("+e+", "+t+"),\n";i+="]\n"}return[i,r]}function k(e,t){if(0===t)return e;const n="    ".repeat(t);return e.split("\n").map((e=>e.trim()?n+e:e)).join("\n")}function I(e){return e.split("\n").map((e=>e.trim()?"#"+e:e)).join("\n")}function j(e,t,n){e.has(n[0])||(e.add(n[0]),t.push(n))}function U(e){let t="(";if(e.join("").length<100)t+=e.join(", ");else{t+="\n";for(const n of e)t+="    "+n+",\n"}return t+")"}function q(e,t=[],n,r){const s={},a={"accept-encoding":"","content-length":""};let i;(0,o.eq)(e.headers.get("te"),"trailers")&&(a.te="Requests doesn't support trailers");let l,u,c,p,d=null;
1if(e.cookies){i="cookies = {\n";for(const[t,r]of e.cookies)i+="    "+m(t,s,n)+": "+m(r,s,n)+",\n";i+="}\n",a.cookie="",e.cookieFiles&&t.push(["cookie-files","passing both cookies and cookie files with --cookie/-b is not supported"]),e.cookieJar&&t.push(["cookie-files","passing both cookies and --cookie-jar/-c is not supported"])}else(e.cookieFiles&&e.cookieFiles.length||e.cookieJar)&&(n.add("http.cookiejar.MozillaCookieJar"),e.cookieFiles&&e.cookieFiles.length?(d=e.cookieFiles[e.cookieFiles.length-1],e.cookieFiles.length>1&&t.push(["cookie-files","multiple cookie files are not supported, using the last one: "+JSON.stringify(d.toString())]),i="cookies = MozillaCookieJar("+m(d,s,n)+")\n"):e.cookieJar&&(i="cookies = MozillaCookieJar()\n"));if(e.proxy){let t=e.proxy.includes("://")?e.proxy:e.proxy.prepend("http://");const r=t.split("://")[0].toLowerCase();(0,o.eq)(r,"socks")&&(t=t.replace("socks","socks4")),l="proxies = {\n",l+="    'http': "+m(t,s,n)+",\n",l+="    'https': "+m(t,s,n)+",\n",l+="}\n"}if(e.cert||e.key){u="cert = ";let r="None";if(e.cert){const[o,a]=e.cert;r=m(o,s,n),a&&t.push(["cert-password","passing a password to --cert is not supported: "+JSON.stringify(a.toString())])}e.key?u+="("+r+", "+m(e.key,s,n)+")":u+=r,u+="\n"}function _(e){return e.some((e=>!(e instanceof o.vZ)))}const h=1===e.urls.length?e.urls[0].queryArray:e.queryArray;if(h&&(1===e.urls.length||e.urls.length>1&&_(h))){const e=O(h,s,n,"params");if(null!==e){let n;[c,n]=e,n&&t.push(["percent-encoded-spaces-in-query",'URL querystring contains spaces encoded as "%20" which will be sent by Requests as "+" instead: '+JSON.stringify(n)])}else _(h)&&([c,p]=P(h,n,s,"params"))}const f=e.headers.get("content-type");let w,S,b,T,x;if(e.urls[0].uploadFile&&1===e.urls.length)(0,o.eq)(e.urls[0].uploadFile,"-")||(0,o.eq)(e.urls[0].uploadFile,".")?(w="data = sys.stdin.buffer.read()\n",n.add("sys")):(w="with open("+m(e.urls[0].uploadFile,s,n,!1,!0)+", 'rb') as f:\n",w+="    data = f.read()\n");else if(e.multipartUploads){let t=!1;[b,t]=F(e,s,n),t&&n.add("sys"),b&&f&&(0,o.eq)(f.trim(),"multipart/form-data")&&!f.includes("boundary=")&&(a["content-type"]="requests won't add a boundary if this header is set when you pass files=")}else if(e.data&&!e.data.isEmpty()){let r;[w,T,S,r]=N(e,s,t),r.forEach(n.add,n),S&&!w&&f&&(0,o.eq)(f.trim(),"application/json")&&(a["content-type"]="Already added when you pass json=")}e.headers.length&&(x=v(e.headers,a,s,n));let E="";l&&(E+=l+"\n"),i&&(E+=i+"\n"),x&&(E+=x+"\n"),c&&(E+=c+"\n"),u&&(E+=u+"\n"),S?E+=S+"\n":w?E+=w+"\n":b&&(E+=b+"\n");let A,R=e.followRedirects;void 0!==e.maxRedirects&&(A=g(e.maxRedirects,s,n)),void 0===R&&(R=!0);const C=R&&A&&"0"!==A&&"30"!==A,L=new Set,q=[];let M=!1;for(const[a,d]of e.urls.entries()){const h=["GET","HEAD","POST","PATCH","PUT","DELETE","OPTIONS"];let f;const g=[],E=d.method.toString();let v;d.method.isString()&&h.includes(E)?f=E.toLowerCase():(f="request",g.push(m(d.method,s,n)),d.method.isString()&&E!==E.toUpperCase()&&t.push(["method","Requests will uppercase the HTTP method: "+JSON.stringify(E)]));let N=d.url;if(1===e.urls.length)N=c?d.urlWithoutQueryArray:d.url;else if(c)N=d.urlWithOriginalQuery;else if(d.queryArray&&d.queryArray.length>0){const e=O(d.queryArray,s,n,"params");if(null!==e){let n;[v,n]=e,N=d.urlWithoutQueryArray,n&&t.push(["percent-encoded-spaces-in-query",'query contains spaces encoded by curl as "%20" which will be sent as "+" instead: '+JSON.stringify(n)])}else _(d.queryArray)&&([v,p]=P(d.queryArray,n,s,"params"),N=d.urlWithoutQueryArray)}g.push(m(N,s,n)),(c||v)&&g.push("params=params"+(p?".encode()":"")),i&&!e.cookieJar&&g.push("cookies=cookies"),x&&g.push("headers=headers"),d.uploadFile?e.urls.length>1?g.push("data=file_contents"):g.push("data=data"):b?g.push("files=files"):e.data&&!e.data.isEmpty()&&(S?g.push("json=json_data"):g.push("data=data"+(T?".encode()":""))),l&&g.push("proxies=proxies"),u&&g.push("cert=cert");const F=e.cacert||e.capath;if(e.insecure?g.push("verify=False"):F&&g.push("verify="+m(F,s,n)),d.auth&&!e.headers.has("Authorization")){const[a,i]=d.auth;let l="("+m(a,s,n)+", "+m(i,s,n)+")";
1switch(e.authType){case"basic":case"bearer":break;case"digest":r.add("requests.auth.HTTPDigestAuth"),l="HTTPDigestAuth"+l;break;case"ntlm":case"ntlm-wb":r.add("requests_ntlm.HttpNtlmAuth"),l="HttpNtlmAuth"+l,j(L,t,["ntlm","requests-ntlm is unmaintained"]);break;case"negotiate":r.add("requests_gssapi.HTTPSPNEGOAuth"),l="HTTPSPNEGOAuth(",e.delegation&&((0,o.eq)(e.delegation,"always")?l+="delegate=True":(0,o.eq)(e.delegation,"none")?l+="delegate=False":j(L,t,["delegation","--delegation value not supported: "+JSON.stringify(e.delegation.toString())])),l+=")",j(L,t,["negotiate","requests-gssapi is a fork of requests-kerberos"]);break;case"aws-sigv4":r.add("aws_requests_auth.aws_auth.AWSRequestsAuth"),l="AWSRequestsAuth(aws_access_key="+m(a,s,n)+", aws_secret_access_key="+m(i,s,n)+", aws_host="+m(e.awsSigV4||new o.vZ,s,n)+", aws_region="+m(e.awsSigV4||new o.vZ,s,n)+", aws_service="+m(e.awsSigV4||new o.vZ,s,n)+")",j(L,t,["--aws-sigv4","--aws-sigv4 value isn't parsed: "+JSON.stringify(e.awsSigV4?e.awsSigV4.toString():"")])}g.push("auth="+l)}if(e.timeout||e.connectTimeout){let r=null;e.connectTimeout&&(r=y(e.connectTimeout,s,n));let o=null;e.timeout&&(o=e.timeout.isString()?e.timeout.toString():"float("+m(e.timeout,s,n,!1,!0)+")"),o&&r&&o!==r?g.pu
1sh("timeout=("+r+", "+o+")"):o?g.push("timeout="+o):r&&g.push("timeout=("+r+", None)"),o&&j(L,t,["--max-time","unlike --max-time, Requests doesn't have a timeout for the whole request, only for the connect and the read"])}R&&"0"!==A?A&&"-1"===A&&(n.add("math"),A="math.inf"):g.push("allow_redirects=False"),R&&e.followRedirectsTrusted&&j(L,t,["--location-trusted","Requests doesn't have an easy way to disable removing the Authorization: header on redirect"]);let D="";const H=C||e.cookieJar,B=H?1:0;if(H&&0===a&&(D+="with requests.Session() as session:\n",C&&(D+=`    session.max_redirects = ${A}\n`),e.cookieJar&&(D+="    session.cookies = cookies\n")),e.urls.length>1&&(v&&(D+=k(v,B)),d.uploadFile)){let e="";(0,o.eq)(d.uploadFile,"-")||(0,o.eq)(d.uploadFile,".")?(e+="file_contents = sys.stdin.buffer.read()\n",n.add("sys")):(e+="with open("+m(d.uploadFile,s,n,!1,!0)+", 'rb') as f:\n",e+="    file_contents = f.read()\n"),D+=k(e,B)}const $="response = "+(H?"session":"requests")+"."+f;if(D+=k($+U(g)+"\n",B),S&&w&&!d.uploadFile){D+=H||e.urls.length>1?"":"\n",g[g.indexOf("json=json_data")]=T?"data=data.encode()":"data=data";let t="# Note: json_data will not be serialized by requests\n# exactly as it was in the original request.\n";t+=I(w),t+=I($+U(g)+"\n"),D+=k(t,B)}if(d.output&&!(0,o.eq)(d.output,"/dev/null")){let t="";(0,o.eq)(e.urls[0].output,"-")?t+="print(response.text)\n":(t+=H||e.urls.length>1?"":"\n",t+="with open("+m(d.output,s,n,!1,!0)+", 'wb') as f:\n",t+="    f.write(response.content)\n"),D+=k(t,B)}!H&&(v||w&&S||d.uploadFile||d.output&&!(0,o.eq)(d.output,"/dev/null"))&&(M=!0),q.push(D)}if(E+=q.join(M?"\n":""),e.cookieJar){let t="cookies.save(";(0,o.eq)(e.cookieJar,d)||(t+=m(e.cookieJar,s,n)+", "),t+="ignore_discard=True, ignore_expires=True)\n",E+=k(t,1)}e.http3?t.push(["http3","this was an HTTP/3 request but requests only supports HTTP/1.1"]):e.http2?t.push(["http2","this was an HTTP/2 request but requests only supports HTTP/1.1"]):e.headers.lowercase&&e.headers.length>1&&t.push(["--header","all the --header/-H names are lowercase, which means this may have been an HTTP/2 or HTTP/3 request. Requests only sends HTTP/1.1"]);let D="";if(Object.keys(s).length){for(const[e,t]of Object.entries(s))D+=`${e} = ${t}\n`;D+="\n"}return D+E}function M(e){let t="";for(const n of Array.from(e).sort())if("read_headerfile"!==n)if(n.includes(".")){const e=n.lastIndexOf(".");t+="from "+n.slice(0,e)+" import "+n.slice(e+1)+"\n"}else t+="import "+n+"\n";return t}function D(e,t=[]){const n=[];let r=!1;const s=new Set,o=new Set;for(const a of e){const e=q(a,t,s,o);n.push(e),r||(r=e.split("\n").length>a.urls.length+1)}let a="";return a+=M(s),s.size>1&&(a+="\n"),a+="import requests\n",a+=M(o),a+="\n",s.has("read_headerfile")&&(a+="def read_headerfile(filename):\n",a+="    headers = {}\n",a+="    with open(filename) as f:\n",a+="        for line in f:\n",a+="            line = line.split('#', 1)[0].strip()\n",a+="            if line:\n",a+="                [key, value] = line.split(':', 1)\n",a+="                value = value or ''\n",a+="                headers[key.strip()] = value.strip()\n",a+="    return headers\n",a+="\n"),a+n.join(r?"\n\n":"\n")}function H(e,t=[]){return[D((0,a.qg)(e,c,t),t),t]}function B(e){return H(e)[0]}r()}catch($){r($)}}))},3260:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{Kl:()=>b,Sj:()=>h,iE:()=>d,rx:()=>_,u7:()=>S,v:()=>m});var s=n(6711),o=n(5385),a=n(5210),i=n(832),l=e([o,i]);[o,i]=l.then?(await l)():l;const u=new Set([...o.xv,"form","form-string","insecure","no-insecure"]),c=new Set(["if","else","repeat","while","function","for","in","next","break","TRUE","FALSE","NULL","Inf","NaN","NA","NA_integer_","NA_real_","NA_complex_","NA_character_"]),p=/`|\\|\p{C}|[^ \P{Z}]/gu;function d(e){return e instanceof s.vZ&&(e.isString(),e=e.toString()),!e.match(/^[a-zA-Z][a-zA-Z0-9._]*$/)&&!e.match(/^\.[a-zA-Z][a-zA-Z0-9._]*$/)||c.has(e)?"`"+e.replace(p,(e=>{switch(e){case"�":return"\\a";case"\b":return"\\b";case"\f":return"\\f";case"\n":return"\\n";case"\r":return"\\r";case"\t":return"\\t";case"\v":return"\\v";case"\\":return"\\\\";case"`":return"\\`"}const t=e.codePointAt(0).toString(16);return t.length<=2?"\\x"+t.padStart(2,"0"):t.length<=4?"\\u"+t.padStart(4,"0"):"\\U"+t.padStart(8,"0")}))+"`":e}function _(e){const t=e.includes('"')&&!e.includes("'")?"'":'"';return(0,i.rx)(e,t)}function h(e){const t=[];for(const n of e.tokens)"string"==typeof n?t.push(_(n)):"variable"===n.type?t.push("Sys.getenv("+_(n.value)+")"):t.push("system("+_(n.value)+", intern = TRUE)");return 1===t.length?t[0]:"paste0("+t.join(", ")+")"}function m(e){if(e.isString()){const t=e.toString();if(parseFloat(t).toString()===t)return t}return"as.numeric("+h(e)+")"}function f(e){if(!e.cookies)return null;let t="cookies = c(\n";const n=[];for(const[t,r]of e.cookies)try{const e=(0,a.i5)(r.replace(/\+/g," "));n.push("  "+d(t)+" = "+h(e))}catch(e){return null}return t+=n.join(",\n"),t+="\n)\n",e.headers.delete("Cookie"),t}function y(e){if(void 0===e.urls[0].queryList)return;let t="params = list(\n";return t+=e.urls[0].queryList.map((e=>{const[t,n]=e;return"  "+d(t)+" = "+h(n)})).join(",\n"),t+="\n)\n",t}function g(e){if(!e.multipartUploads)return;let t="files = list(\n";return t+=e.multipartUploads.map((e=>{let t;return t="contentFile"in e?"  "+d(e.name)+" = upload_file("+h(e.contentFile)+")":"  "+d(e.name)+" = "+h(e.content),t})).join(",\n"),t+="\n)\n",t}
1function w(e,t=[]){const n=(0,o.dH)(e,t),r=f(n);let i;if(n.headers.length){const e=[];i="headers = c(\n";for(const[t,r]of n.headers)null!==r&&e.push("  "+d(t)+" = "+h(r));i+=e.join(",\n"),i+="\n)\n"}const l=y(n);let u,c,p;if(n.multipartUploads)p=g(n);else if(n.data)if(n.data.startsWith("@")&&!n.isDataRaw)u="data = upload_file("+h(n.data.slice(1))+")";else{const[e]=(0,a.JO)(n.data);c=e&&e.length,c?(u="data = list(\n",u+=e.map((e=>{const[t,n]=e;return"  "+d(t)+" = "+h(n)})).join(",\n"),u+="\n)\n"):u="data = "+h(n.data)+"\n"}const _=n.urls[0].queryList?n.urls[0].urlWithoutQueryList:n.urls[0].url;let m="res <- httr::";["GET","HEAD","PATCH","PUT","DELETE","POST"].includes(n.urls[0].method.toString())?m+=n.urls[0].method.toString()+"(":(m+="VERB("+h(n.urls[0].method)+", ",(0,s.eq)(n.urls[0].method,n.urls[0].method.toUpperCase())||t.push(["non-uppercase-method","httr will uppercase the method: "+JSON.stringify(n.urls[0].method.toString())])),m+="url = "+h(_);let w="";if(i&&(w+=", httr::add_headers(.headers=headers)"),n.urls[0].queryList&&(w+=", query = params"),r&&(w+=", httr::set_cookies(.cookies = cookies)"),n.multipartUploads?w+=', body = files, encode = "multipart"':n.data&&(w+=", body = data",c&&(w+=', encode = "form"')),n.insecure&&(w+=", config = httr::config(ssl_verifypeer = FALSE)"),n.urls[0].auth){const[e,t]=n.urls[0].auth;w+=", httr::authenticate("+h(e)+", "+h(t)+")"}w+=")",m+=w;let S="";return S+="library(httr)\n\n",r&&(S+=r+"\n"),i&&(S+=i+"\n"),void 0!==l&&(S+=l+"\n"),u?S+=u+"\n":p&&(S+=p+"\n"),S+=m,S+"\n"}function S(e,t=[]){return[w((0,o.qg)(e,u,t),t),t]}function b(e){return S(e)[0]}r()}catch(T){r(T)}}))}
1,4828:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{Kt:()=>f,iL:()=>y});var s=n(6711),o=n(5385),a=n(5210),i=n(3260),l=e([o,i]);[o,i]=l.then?(await l)():l;const u=new Set([...o.xv,"form","form-string","insecure","no-insecure","oauth2-bearer","max-redirs","max-time","connect-timeout","retry","retry-max-time"]);function c(e){return e.urls[0].queryList||[]}function p(e){const t=[];if(e.headers.length)for(const[n,r]of e.headers)null!==r&&t.push([n,r]);return t}function d(e){if(e.multipartUploads)return e.multipartUploads.map((e=>{let t;return t="contentFile"in e?`curl::form_file(${(0,i.Sj)(e.contentFile)})`:(0,i.Sj)(e.content),[e.name,t]}))}function _(e,t,n){if(t.multipartUploads)return h(e,"req_body_multipart",[],d(t));if(!t.data)return e;if(t.data.startsWith("@")&&!t.isDataRaw){const n=t.data.slice(1);e=h(e,"req_body_file",[(0,i.Sj)(n)])}else{const[r]=(0,a.JO)(t.data);r&&r.length?e=h(e,"req_body_form",[],r):(n=n||"application/x-www-form-urlencoded",e=h(e,"req_body_raw",[(0,i.Sj)(t.data)],[["type",(0,i.rx)(n)]]))}return e}function h(e,t,n,r=[],o=!1){const a=r.map((e=>{let[t,n]=e;return n instanceof s.vZ&&(n=(0,i.Sj)(n)),""===t||t instanceof s.vZ&&t.isEmpty()?n:(t instanceof s.vZ&&(t=(0,i.iE)(t)),`${t} = ${n}`)})),l=n.concat(...a);if(0===l.length&&!o)return e;let u;if(0===r.length||1===l.length)u=`${t}(${l.join(", ")})`;else{const e="    ";u=`${t}(\n${e}${l.join(`,\n${e}`)}\n  )`}return e.concat(u)}function m(e,t=[]){const n=(0,o.dH)(e,t),r=c(n),a=n.headers.getContentType();n.headers.delete("Content-Type"),n.oauth2Bearer&&"bearer"===n.authType&&n.headers.delete("Authorization");const l=p(n),u=n.urls[0].queryList?n.urls[0].urlWithoutQueryList:n.urls[0].url,d=n.urls[0].method;(0,s.eq)(d,d.toUpperCase())||t.push(["non-uppercase-method","httr will uppercase the method: "+JSON.stringify(d.toString())]);let m=[`request(${(0,i.Sj)(u)})`];if("GET"!=d.toString()&&(m=h(m,"req_method",[(0,i.Sj)(d)])),m=h(m,"req_url_query",[],r),m=h(m,"req_headers",[],l),m=_(m,n,a),n.urls[0].auth&&"basic"===n.authType){const[e,t]=n.urls[0].auth;m=h(m,"req_auth_basic",[(0,i.Sj)(e),(0,i.Sj)(t)])}else n.oauth2Bearer&&"bearer"===n.authType&&(m=h(m,"req_auth_bearer_token",[(0,i.Sj)(n.oauth2Bearer)]));n.proxy&&h(m,"req_proxy",[n.proxy.toString()]),n.timeout&&(m=h(m,"req_timeout",[(0,i.v)(n.timeout)]));const f=[];n.insecure&&f.push(["ssl_verifypeer","0"]),void 0!==n.maxRedirects&&f.push(["maxredirs",(0,i.v)(n.maxRedirects)]),n.connectTimeout&&f.push(["connecttimeout",(0,i.v)(n.connectTimeout)]),m=h(m,"req_options",[],f);const y=[];n.retry&&y.push(["max_tries",(0,i.v)(n.retry)]),n.retryMaxTime&&y.push(["max_seconds",(0,i.v)(n.retryMaxTime)]),m=h(m,"req_retry",[],y);const g=[];n.verbose&&g.push(["verbosity","1"]),m=h(m,"req_perform",[],g,!0);let w="library(httr2)\n\n";return w+=m.join(" |>\n  "),w+"\n"}function f(e,t=[]){return[m((0,o.qg)(e,u,t),t),t]}function y(e){return f(e)[0]}r()}catch(g){r(g)}}))},6868:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{CM:()=>f,sl:()=>m});var s=n(7277),o=n(6711),a=n(5385),i=n(5210),l=n(2508),u=e([a,l]);[a,l]=u.then?(await u)():u;const c=new Set([...a.xv,"digest","no-digest","form","form-string","http0.9","http1.0","http1.1","insecure","output","upload-file","next"]);function p(e){if(!e.data)return["",!1];if(e.dataArray&&1===e.dataArray.length&&!(e.dataArray[0]instanceof o.vZ)&&!e.dataArray[0].name){const{filetype:t,filename:n}=e.dataArray[0];if((0,o.eq)(n,"-"))return['body = STDIN.read.delete("\\n")\n',!1];switch(t){case"binary":return["body = File.binread("+(0,l.Sj)(n)+').delete("\\n")\n',!1];case"data":case"json":case"urlencode":return["body = File.read("+(0,l.Sj)(n)+').delete("\\n")\n',!1]}}const t=e.headers.get("content-type");if(t&&(0,o.eq)(t.split(";")[0].trim(),"application/json")&&e.data.isString())try{const t=e.data.toString(),n=JSON.parse(t);if("object"==typeof n&&null!==n){const r=JSON.stringify(n)===t;let s="";return r||(s+="# The object won't be serialized exactly like this\n",s+="# body = "+(0,l.Sj)(e.data)+"\n"),s+="body = "+(0,l.Jp)(n)+".to_json\n",[s,!0]}}catch(e){}const[n,r]=(0,i.JO)(e.data);return!e.isDataBinary&&r?["body = "+(0,l.AA)(r)+"\n",!1]:["body = "+(0,l.Sj)(e.data)+"\n",!1]}function d(e,t){if(!e.multipartUploads)return["",!1];let n=!0,r="body = {\n";
1for(const s of e.multipartUploads)r+="  "+(0,l.yd)(s.name)+": ","filename"in s&&s.filename&&(0,l.Sj)(s.filename)&&t.push(["multipart-filename","Ruby's HTTParty does not support custom filenames for multipart uploads: "+JSON.stringify(s.filename.toString())]),"contentFile"in s?(0,o.eq)(s.contentFile,"-")?(e.stdinFile?(r+="File.open("+(0,l.Sj)(e.stdinFile)+")",n=!1):e.stdin&&(r+=(0,l.Sj)(e.stdin)),r+="STDIN"):(s.contentFile,s.filename,r+="File.open("+(0,l.Sj)(s.contentFile)+")",n=!1):r+=(0,l.Sj)(s.content),r+="\n";return r+="}\n",[r,n]}function _(e,t,n){(0,s.cY)(e,t,{dataReadsFile:!0}),e.dataReadsFile&&e.dataArray&&e.dataArray.length&&(e.dataArray.length>1||!(e.dataArray[0]instanceof o.vZ)&&e.dataArray[0].name)&&t.push(["unsafe-data","the generated data content is wrong, "+JSON.stringify("@"+e.dataReadsFile)+" means read the file "+JSON.stringify(e.dataReadsFile)]);let r="",a="";r+="url = "+(0,l.Sj)(e.urls[0].url)+"\n";const i=e.urls[0].method,u=i.toString();let c;i.isString()&&["GET","HEAD","POST","PATCH","PUT","PROPPATCH","LOCK","UNLOCK","OPTIONS","PROPFIND","DELETE","MOVE","COPY","MKCOL","TRACE"].includes(u.toUpperCase())?(a+="res = HTTParty."+u.toLowerCase()+"(url",u!==u.toUpperCase()&&t.push(["method-case","HTTP method will be uppercased: "+u])):(t.push(["unsupported-method","unsupported HTTP method: "+u]),a+="res = HTTParty.get(url"),e.urls[0].auth&&["basic","digest"].includes(e.authType)&&("basic"===e.authType?a+=", basic_auth: auth":"digest"===e.authType&&(a+=", digest_auth: auth"),r+="auth = { username: "+(0,l.Sj)(e.urls[0].auth[0])+", password: "+(0,l.Sj)(e.urls[0].auth[1])+"}\n");let _=!1;if(e.urls[0].uploadFile)c=(0,o.eq)(e.urls[0].uploadFile,"-")||(0,o.eq)(e.urls[0].uploadFile,".")?"body = STDIN.read\n":"body = File.read("+(0,l.Sj)(e.urls[0].uploadFile)+")\n";else if(e.data){let t=!1;[c,t]=p(e),t&&n.add("json")}else if(e.multipartUploads){[c,_]=d(e,t);const n=e.headers.get("content-type");_&&n&&n.isString()&&"multipart/form-data"===n.toString()&&e.headers.delete("content-type")}if(e.headers.length){a+=", headers: headers",r+="headers = {\n";for(const[t,n]of e.headers)["accept-encoding","content-length"].includes(t.toLowerCase().toString())&&(r+="# "),r+="  "+(0,l.Sj)(t)+": "+(0,l.Sj)(null!=n?n:new o.vZ("nil"))+",\n";r+="}\n"}if(c)if(r+=c,_&&(a+=", multipart: true"),!e.dataArray||1!==e.dataArray.length||e.dataArray[0]instanceof o.vZ||e.dataArray[0].name)a+=", body: body";else{const{filetype:t}=e.dataArray[0];
1a+="binary"===t?", body_stream: body":", body: body"}return e.insecure&&(a+=", verify: false"),a+=")\n",r+=a,e.urls[0].output&&!(0,o.eq)(e.urls[0].output,"/dev/null")&&((0,o.eq)(e.urls[0].output,"-")?r+="\nputs res.body\n":r+="\nFile.write("+(0,l.Sj)(e.urls[0].output)+", res.body)\n"),r}function h(e,t=[]){const n=new Set,r=e.map((e=>_(e,t,n))).join("\n\n");let s="require 'httparty'\n";for(const e of Array.from(n).sort())s+="require '"+e+"'\n";return s+"\n"+r}function m(e,t=[]){return[h((0,a.qg)(e,c,t),t),t]}function f(e){return m(e)[0]}r()}catch(y){r(y)}}))},2508:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{AA:()=>S,Jp:()=>w,Sj:()=>f,eQ:()=>v,um:()=>A,yd:()=>g});var s=n(9531),o=n(7277),a=n(6711),i=n(5385),l=n(5210),u=e([i]);i=(u.then?(await u)():u)[0];const c=new Set([...i.xv,"form","form-string","http0.9","http1.0","http1.1","insecure","no-digest","no-http0.9","no-insecure","output","proxy","proxy-user","upload-file","next"]),p=/'|\\/gu,d=/"|\\|\p{C}|[^ \P{Z}]|#[{@$]/gu,_=/\}|\\|\p{C}|[^ \P{Z}]|#[{@$]/gu,h=/[0-9]/;function m(e,t){void 0===t&&(t="'",(e.match(/\p{C}|[^ \P{Z}]/gu)||e.includes("'")&&!e.includes('"'))&&(t='"'));const n="'"===t?p:'"'===t?d:_,r=t[0],s="{}"===t?t[1]:t[0];return r+e.replace(n,((e,t,n)=>{switch(e[0]){case"�":return"\\a";case"\b":return"\\b";case"\f":return"\\f";case"\n":return"\\n";case"\r":return"\\r";case"\t":return"\\t";case"\v":return"\\v";case"�":return"\\e";case"\\":return"\\\\";case"'":return"\\'";case'"':return'\\"';case"#":return"\\"+e;case"}":return"\\}";case"\0":if(!h.test(n.charAt(t+1)))return"\\0"}const r=e.codePointAt(0),s=r.toString(16);return s.length<=2&&r<127?"\\x"+s.padStart(2,"0"):s.length<=4?"\\u"+s.padStart(4,"0"):"\\u{"+s+"}"}))+s}function f(e){const t=[];for(const n of e.tokens)"string"==typeof n?t.push(m(n)):"variable"===n.type?t.push("ENV["+m(n.value)+"]"):t.push("%x"+m(n.value,"{}"));return t.join(" + ")}function y(e){return e.isString()&&/^[a-zA-Z_][a-zA-Z0-9_]*$/.test(e.toString())}function g(e){return y(e)?e.toString():f(e)}function w(e,t=0){if(e instanceof a.vZ)return f(e);switch(typeof e){case"string":return m(e);case"number":return e.toString();case"boolean":return e?"true":"false";case"object":if(null===e)return"nil";if(Array.isArray(e)){if(0===e.length)return"[]";{let n="[\n";for(const[r,s]of e.entries())n+=" ".repeat(t+2)+w(s,t+2),n+=r===e.length-1?"\n":",\n";return n+=" ".repeat(t)+"]",n}}{if(0===Object.keys(e).length)return"{}";let n="{\n";const r=Object.entries(e);for(const[e,[s,o]]of r.entries())n+=" ".repeat(t+2)+m(s)+" => "+w(o,t+2),n+=e===r.length-1?"\n":",\n";return n+=" ".repeat(t)+"}",n}default:throw new s.fA("unexpected object type that shouldn't appear in JSON: "+typeof e)}}function S(e,t=0){if(0===e.length)return"{}";let n="{\n";for(const[r,[s,o]]of e.entries())n+=" ".repeat(t+2)+f(s)+" => "+w(o,t+2),n+=r===e.length-1?"\n":",\n";return n+=" ".repeat(t)+"}",n}function b(e){if(!e.data)return["",!1];if(e.dataArray&&1===e.dataArray.length&&!(e.dataArray[0]instanceof a.vZ)&&!e.dataArray[0].name){const{filetype:t,filename:n}=e.dataArray[0];if((0,a.eq)(n,"-"))return['req.body = STDIN.read.delete("\\n")\n',!1];switch(t){case"binary":return["req.body = File.binread("+f(n)+').delete("\\n")\n',!1];case"data":case"json":case"urlencode":return["req.body = File.read("+f(n)+').delete("\\n")\n',!1]}}const t=e.headers.get("content-type");if(t&&(0,a.eq)(t.split(";")[0].trim(),"application/json")&&e.data.isString())try{const t=e.data.toString(),n=JSON.parse(t);if("object"==typeof n&&null!==n){const r=JSON.stringify(n)===t;let s="";return r||(s+="# The object won't be serialized exactly like this\n",s+="# req.body = "+f(e.data)+"\n"),s+="req.body = "+w(n)+".to_json\n",[s,!0]}}catch(e){}const[n,r]=(0,l.JO)(e.data);return!e.isDataBinary&&r?["req.set_form_data("+S(r)+")\n",!1]:["req.body = "+f(e.data)+"\n",!1]}function T(e){if(!e.multipartUploads)return"";const t=e.multipartUploads.map((t=>{const n=f(t.name),r="filename"in t&&t.filename&&f(t.filename);return"contentFile"in t?(0,a.eq)(t.contentFile,"-")?e.stdinFile?[n,"File.open("+f(e.stdinFile)+")",r]:e.stdin?[n,f(e.stdin),r]:[n,"STDIN",r]:t.contentFile===t.filename?[n,"File.open("+f(t.contentFile)+")"]:[n,"File.open("+f(t.contentFile)+")",r]:[n,f(t.content),r]}));let n="req.set_form(\n";if(0===t.length)n+="  [],\n";else{n+="  [\n";for(const[e,[r,s,o]]of t.entries())n+="    [\n",n+="      "+r+",\n",n+="      "+s,"string"==typeof o?(n+=",\n",n+="      {filename: "+o+"}\n"):n+="\n",e===t.length-1?n+="    ]\n":n+="    ],\n";n+="  ],\n"}return n+="  'multipart/form-data'\n",n+=")\n",n}function x(e,t,n){(0,o.cY)(e,t,{dataReadsFile:!0}),e.dataReadsFile&&e.dataArray&&e.dataArray.length&&(e.dataArray.length>1||!(e.dataArray[0]instanceof a.vZ)&&e.dataArray[0].name)&&t.push(["unsafe-data","the generated data content is 
1wrong, "+JSON.stringify("@"+e.dataReadsFile)+" means read the file "+JSON.stringify(e.dataReadsFile)]);let r="";const i={GET:"Get",HEAD:"Head",POST:"Post",PATCH:"Patch",PUT:"Put",PROPPATCH:"Proppatch",LOCK:"Lock",UNLOCK:"Unlock",OPTIONS:"Options",PROPFIND:"Propfind",DELETE:"Delete",MOVE:"Move",COPY:"Copy",MKCOL:"Mkcol",TRACE:"Trace"};if(e.urls[0].queryDict&&e.urls[0].queryDict.every((e=>y(e[0])))){r+="uri = URI("+f(e.urls[0].urlWithoutQueryList)+")\n",r+="params = {\n";for(const[t,n]of e.urls[0].queryDict)r+="  :"+t.toString()+" => "+w(n,2)+",\n";r+="}\n",r+="uri.query = URI.encode_www_form(params)\n\n"}else r+="uri = URI("+f(e.urls[0].url)+")\n";const l=!(e.headers.length||e.urls[0].auth||e.multipartUploads||e.data||e.urls[0].uploadFile||e.insecure||e.proxy||e.urls[0].output),u=e.urls[0].method;if(u.isString()&&(0,s.zy)(i,u.toString())){if("GET"===u.toString()&&l)return r+="res = Net::HTTP.get_response(uri)\n",r;r+="req = Net::HTTP::"+i[u.toString()]+".new(uri)\n"}else r+="req = Net::HTTPGenericRequest.new("+f(e.urls[0].method)+", true, true, uri)\n";let c;if(e.urls[0].auth&&"basic"===e.authType&&(r+="req.basic_auth "+f(e.urls[0].auth[0])+", "+f(e.urls[0].auth[1])+"\n"),e.urls[0].uploadFile)c=(0,a.eq)(e.urls[0].uploadFile,"-")||(0,a.eq)(e.urls[0].uploadFile,".")?"req.body = STDIN.read\n":"req.body = File.read("+f(e.urls[0].uploadFile)+")\n";else if(e.multipartUploads)c=T(e),e.headers.delete("content-type");else if(e.data){let t=!1;[c,t]=b(e),t&&n.add("json")}const p=e.headers.get("content-type");if(null!=p&&(r+="req.content_type = "+f(p)+"\n",e.headers.delete("content-type")),e.headers.length)for(const[t,n]of e.headers)["accept-encoding","content-length"].includes(t.toLowerCase().toString())&&(r+="# "),r+="req["+f(t)+"] = "+f(null!=n?n:new a.vZ("nil"))+"\n";if(c&&(r+="\n"+c),r+="\n",e.proxy&&(r+="proxy = URI("+f(e.proxy.includes("://")?e.proxy:e.proxy.prepend("http://"))+")\n"),r+="req_options = {\n",r+="  use_ssl: uri.scheme == 'https'",e.insecure?(n.add("openssl"),r+=",\n",r+="  verify_mode: OpenSSL::SSL::VERIFY_NONE\n"):r+="\n",r+="}\n",e.proxy)if(e.proxyAuth){const[t,n]=e.proxyAuth.split(":",2);r+="res = Net::HTTP.start(uri.hostname, uri.port, proxy.hostname, proxy.port, "+f(t)+", "+f(n||"")+", req_options) do |http|\n"}else r+="res = Net::HTTP.new(uri.hostname, uri.port, proxy.hostname, proxy.port, req_options).start do |http|\n";else r+="res = Net::HTTP.start(uri.hostname, uri.port, req_options) do |http|\n";return r+="  http.request(req)\n",r+="end",e.urls[0].output&&!(0,a.eq)(e.urls[0].output,"/dev/null")&&((0,a.eq)(e.urls[0].output,"-")?r+="\nputs res.body":r+="\nFile.write("+f(e.urls[0].output)+", res.body)"),r+"\n"}function E(e,t=[]){const n=new Set,r=e.map((e=>x(e,t,n))).join("\n\n");let s="require 'net/http'\n";for(const e of Array.from(n).sort())s+="require '"+e+"'\n";return s+"\n"+r}function v(e,t=[]){return[E((0,i.qg)(e,c,t),t),t]}function A(e){return v(e)[0]}r()}catch(R){r(R)}}))},7759:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{WX:()=>m,ks:()=>h});var s=n(6711),o=n(5385),a=e([o]);o=(a.then?(await a)():a)[0];const i=new Set([...o.xv,"form","form-string","max-redirs","location","no-location"]),l=" ".repeat(4);function u(e,t=1){return l.repeat(t)+e}const c=/"|\\|\p{C}|[^ \P{Z}]/gu;function p(e){return'"'+e.replace(c,(e=>{switch(e){case"\n":return"\\n";case"\r":return"\\r";case"\t":return"\\t";case"\0":return"\\0";case"\\":return"\\\\";case'"':return'\\"'}const t=e.codePointAt(0).toString(16);return t.length<=2?"\\x"+t.padStart(2,"0"):"\\u{"+t+"}"}))+'"'}function d(e,t){const n=[];for(const r of e.tokens)"string"==typeof r?n.push(p(r)):"variable"===r.type?(n.push("env::var("+p(r.value)+').unwrap_or("")'),t.add("std::env")):(n.push("Command::new("+p(r.value)+").output().stdout"),t.add("std::process::Command"));return 1===n.length?n[0]:"["+n.join(", ")+"].concat()"}function _(e,t=[]){const n=(0,o.dH)(e,t),r=new Set,a=[];if(a.push("","fn main() -> Result<(), Box<dyn std::error::Error>> {"),n.headers.length){a.push(u("let mut headers = header::HeaderMap::new();"));const e={cookie:"header::COOKIE"};for(const[t,s]of n.headers){const n=e[t.toLowerCase().toString()]||`"${t}"`;null!==s&&a.push(u(`headers.insert(${n}, ${d(s,r)}.parse().unwrap());`))}a.push("")}if(n.multipartUploads){a.push(u("let form = multipart::Form::new()"));const e=n.multipartUploads.map((e=>u("contentFile"in e?`.file(${d(e.name,r)}, ${d(e.contentFile,r)})?`:`.text(${d(e.name,r)}, ${d(e.content,r)})`,2)));e[e.length-1]+=";",a.push(...e,"")}if(n.followRedirects?void 0===n.maxRedirects?a.push(u("let client = reqwest::blocking::Cl
1ient::new();")):(a.push(u("let client = reqwest::blocking::Client::builder()")),(0,s.eq)(n.maxRedirects,"-1")?a.push(u(".redirect(reqwest::redirect::Policy::custom(|attempt| { attempt.follow() }))",2)):a.push(u(".redirect(reqwest::redirect::Policy::limited("+n.maxRedirects.trim().toString()+"))",2)),a.push(u(".build()",2)),a.push(u(".unwrap();",2))):(a.push(u("let client = reqwest::blocking::Client::builder()")),a.push(u(".redirect(reqwest::redirect::Policy::none())",2)),a.push(u(".build()",2)),a.push(u(".unwrap();",2))),["GET","POST","PUT","PATCH","DELETE","HEAD"].includes(n.urls[0].method.toString())?a.push(u(`let res = client.${n.urls[0].method.toLowerCase()}(${d(n.urls[0].url,r)})`)):a.push(u(`let res = client.request(${d(n.urls[0].method,r)}, ${d(n.urls[0].url,r)})`)),n.urls[0].auth){const[e,t]=n.urls[0].auth;a.push(u(`.basic_auth(${d(e,r)}, Some(${d(t,r)}))`,2))}n.headers.length&&a.push(u(".headers(headers)",2)),n.multipartUploads?a.push(u(".multipart(form)",2)):n.data&&(n.data&&-1!==n.data.indexOf("\n")?a.push(u('.body(r#"',2),n.data.toString(),'"#',u(")",2)):a.push(u(`.body(${d(n.data,r)})`,2))),a.push(u(".send()?",2),u(".text()?;",2),u('println!("{}", res);'),"",u("Ok(())"),"}");const i=["extern crate reqwest;"];{const e=[{want:"header",condition:!!n.headers.length},{want:"blocking::multipart",condition:!!n.multipartUploads}].filter((e=>e.condition)).map((e=>e.want));e.length>1?i.push(`use reqwest::{${e.join(", ")}};`):e.length&&i.push(`use reqwest::${e[0]};`)}for(const e of Array.from(r).sort())i.push("use "+e+";");return[...i,...a].join("\n")+"\n"}function h(e,t=[]){return[_((0,o.qg)(e,i,t),t),t]}function m(e){return h(e)[0]}r()}catch(f){r(f)}}))},9054:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{DO:()=>h,XQ:()=>m});var s=n(6711),o=n(5385),a=e([o]);o=(a.then?(await a)():a)[0];const i=new Set([...o.xv,"max-time"]),l=/"|\\|\p{C}|[^ \P{Z}]/gu;function u(e){return'"'+e.replace(l,(e=>{switch(e){case"\0":return"\\0";case"\\":return"\\\\";case"\t":return"\\t";case"\n":return"\\n";case"\r":return"\\r";case'"':return'\\"'}return"\\u{"+e.codePointAt(0).toString(16)+"}"}))+'"'}function c(e){const t=[];for(const n of e.tokens)"string"==typeof n?t.push(u(n)):"variable"===n.type?t.push("(ProcessInfo.processInfo.environment["+u(n.value)+'] ?? "")'):t.push("exec("+u(n.value)+")");return t.join(" + ")}function p(e,t=0){if("string"==typeof e)return u(e);if("number"==typeof e)return e.toString();if("boolean"==typeof e)return e?"true":"false";if(null===e)return"nil";if(Array.isArray(e)){if(0===e.length)return"[]";let n="[\n";for(const r of e)n+="    ".repeat(t+1)+p(r,t+1)+",\n";return n.endsWith(",\n")&&(n=n.slice(0,-2)+"\n"),n+="    ".repeat(t)+"]",n}if("object"==typeof e){const n=Object.entries(e);if(0===n.length)return"[:]";let r="[\n";for(const[e,s]of n)r+="    ".repeat(t+1)+u(e)+": "+p(s,t+1)+",\n";return r.endsWith(",\n")&&(r=r.slice(0,-2)+"\n"),r+="    ".repeat(t)+"]",r}throw new Error("Unsupported JSON type: "+typeof e)}function d(e,t){const n=e.headers.getContentType();if("application/x-www-form-urlencoded"===n&&t.isString()){const[e,...n]=t.split("&");let r="let data = NSMutableData(data: "+c(e)+".data(using: .utf8)!)\n";for(const e of n)r+="data.append("+c((0,s.__)("&",e))+".data(using: .utf8)!)\n";return[r,"request.httpBody = data as Data\n"]}if("application/json"===n&&t.isString()){const e=t.toString();let n;try{n=JSON.parse(e);const r=JSON.stringify(n)===e;if(Array.isArray(n)||"object"==typeof n&&null!==n){let e="";return e+="let jsonData = "+p(n),Array.isArray(n)?e+=" as [Any]\n":e+=" as [String : Any]\n",e+="let data = try! JSONSerialization.data(withJSONObject: jsonData, options: [])\n",r||(e+="// let data = "+c(t)+".data(using: .utf8)\n"),[e,"request.httpBody = data as Data\n"]}}catch(e){}}return["","request.httpBody = "+c(t)+".data(using: .utf8)\n"]}function _(e,t=[]){const n=(0,o.dH)(e,t);let r,a,i="import Foundation\n\n";if(n.data&&([r,a]=d(n,n.data),r&&(i+=r+"\n")),i+="let url = URL(string: "+c(n.urls[0].url)+")!\n",n.urls[0].auth){const[e,t]=n.urls[0].auth;i+="\n",i+="let username = "+c(e)+"\n",i+="let password = "+c(t)+"\n",i+='let loginString = String(format: "\\(username):\\(password)", username, password)\n',i+="let loginData = loginString.data(using: String.Encoding.utf8)!\n",i+="let base64LoginString = loginData.base64EncodedString()\n",i+="\n"}if(n.headers.length||n.urls[0].auth){i+="let headers = [\n";for(const[e,t]of n.headers)null!==t&&(i+="    "+c(e)+": "+c(t)+",\n");n.urls[0].auth&&(i+='    "'+(n.headers.lowercase?"authorization":"Authorization")+'": "Basic \\(base64LoginString)",\n'),i.endsWith(",\n")&&(i=i.slice(0,-2)+"\n"),i+="]\n"}return i+="\n",i+="var request = URLRequest(url: url",n.timeout&&!(0,s.eq)(n.timeout,"60.0")&&(i+=", timeoutInterval: "+n.timeout.toString()),i+=")\n",(0,s.eq)(n.urls[0].method,"GET")||(i+="request.httpMethod = "+c(n.urls[0].method)+"\n"),n.headers.length&&(i+="request.allHTTPHeaderFields = headers\n"),a&&(i+=a),i+="\n",i+="let task = URLSession.shared.dataTask(with: request) { (data, response, error) in\n",i+="    if let error = error {\n",i+="        print(error)\n",i+="    } else if let data = data {\n",i+="        let str = String(data: data, encoding: .utf8)\n",i+='        print(str ?? "")\n',i+="    }\n",i+="}\n",i+="\n",i+="task.resume()\n",i}function h(e,t=[]){return[_((0,o.qg)(e,i,t),t),t]}function m(e){return h(e)[0]}r()}catch(f){r(f)}}))},322:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{Sj:()=>h,Xy:()=>y,rx:()=>_,x$:()=>g});var s=n(7277),o=n(6711),a=n(5385),i=e([a]);a=(i.then?(await i)():i)[0];const l=new Set([...a.xv,"cookie-jar","ipv4","no-ipv4","ipv6","no-ipv6","form","form-string","ciphers","insecure","cert","cert-type","key","key-type","cacert","capath","crlfile","pinnedpubkey","random-file","egd-file","hsts","noproxy","proxy","proxy-user","globoff","no-globoff","netrc","netrc-optional","timeout","connect-timeout","limit-rate","compressed","no-compressed","anyauth","no-anyauth","digest","no-digest","aws-sigv4","negotiate","no-negotiate","delegation","ntlm","no-ntlm","ntlm-wb","no-ntlm-wb","no-digest","output","upload-file","continue-at","clobber","remote-time","keep-alive","silent","verbose","next"]),u=/\$|`|"|\\|!/gu,c=/\p{C}|[^ \P{Z}]/gu,p=/\p{C}|[^ \P{Z}]|\\|'/gu,d=/[\x02-\x09\x0b-\x1a\\#?`(){}[\]^*<=>~|; "!$&'\x82-\xff]/;function _(e,t=!1){return c.test(e)?"$'"+e.replace(p,(e=>{switch(e){case"�":return"\\a";case"\b":return"\\b";case"�":return"\\e";case"\f":return"\\f";case"\n":return"\\n";case"\r":return"\\r";case"\t":return"\\t";case"\v":return"\\v";case"\\":return"\\\\";case"'":return"\\'"}const t=e.codePointAt(0).toString(16);return t.length<=2?"\\x"+t.padStart(2,"0"):t.length<=4?"\\u"+t.padStart(4,"0"):"\\U"+t.padStart(8,"0")}))+"'":(e.includes('"')||e.includes("$")||e.includes("`")||e.includes("!")||t)&&!e.includes("'")?"'"+e+"'":d.test(e)||t?'"'+e.replace(u,(e=>{switch(e[0]){case"$":return"\\$";case"`":return"\\`";case'"':return'\\"';case"\\":return"\\\\";case"!":return"\"'!'\""}return e}))+'"':e}function h(e){const t=[];
1for(const[n,r]of e.tokens.entries())"string"==typeof r?t.push(_(r,!!n)):(r.type,t.push(r.text));return t.join("")}function m(e,t){(0,s.cY)(e,t,{dataReadsFile:!0,cookieFiles:!0,multipleUrls:!0}),e.dataReadsFile&&e.dataArray&&e.dataArray.length&&(e.dataArray.length>1||!(e.dataArray[0]instanceof o.vZ)&&e.dataArray[0].name)&&t.push(["unsafe-data","the generated data content is wrong, "+JSON.stringify("@"+e.dataReadsFile)+" means read the file "+JSON.stringify(e.dataReadsFile)]);const n=[];if(e.urls[0].uploadFile||e.dataArray&&1===e.dataArray.length&&!(e.dataArray[0]instanceof o.vZ)&&!e.dataArray[0].name||e.data?(0,o.eq)(e.urls[0].method,"POST")||n.push("--method="+h(e.urls[0].method)):(0,o.eq)(e.urls[0].method,"GET")||n.push("--method="+h(e.urls[0].method)),e.urls.length>1&&new Set(e.urls.map((e=>e.method.toString()))).size>1&&t.push(["mixed-methods","the input curl command uses multiple HTTP methods, which Wget doesn't support: "+e.urls.map((e=>JSON.stringify(e.method.toString()))).join(", ")]),e.cookieFiles&&e.cookieFiles.length){for(const t of e.cookieFiles)n.push("--load-cookies="+h(t));if(e.cookieFiles.length>1){const n=e.cookieFiles[e.cookieFiles.length-1];t.push(["multiple-cookie-files","Wget only supports reading cookies from one file, only the last one will be sent: "+n.toString()])}}if(e.cookieJar&&n.push("--save-cookies="+h(e.cookieJar)),e.headers.length)for(const[t,r]of e.headers)n.push("--header="+h((0,o.__)(t,": ",null!=r?r:"")));if(void 0!==e.compressed&&(e.compressed?n.push("--compression=auto"):n.push("--compression=none")),e.maxRedirects&&"20"!==e.maxRedirects.toString()&&n.push("--max-redirect="+h(e.maxRedirects)),e.ipv4&&n.push("--inet4-only"),e.ipv6&&n.push("--inet6-only"),e.urls[0].auth){const[r,s]=e.urls[0].auth;n.push("--user="+h(r)),s.toBool()&&n.push("--password="+h(s)),"basic"===e.authType&&n.push("--auth-no-challenge"),["none","basic","digest","ntlm","ntlm-wb","negotiate"].includes(e.authType)||t.push(["wget-unsupported-auth","Wget doesn't support "+e.authType+" authentication"])}if(e.urls[0].uploadFile?(((0,o.eq)(e.urls[0].uploadFile,"-")||(0,o.eq)(e.urls[0].uploadFile,"."))&&t.push(["wget-stdin","Wget does not support uploading from stdin"]),(0,o.eq)(e.urls[0].method,"POST")?n.push("--post-file="+h(e.urls[0].uploadFile)):n.push("--body-file="+h(e.urls[0].uploadFile))):e.multipartUploads?t.push(["multipart","Wget does not support sending multipart/form-data"]):!e.dataArray||1!==e.dataArray.length||e.dataArray[0]instanceof o.vZ||e.dataArray[0].name?e.data&&((0,o.eq)(e.urls[0].method,"POST")?n.push("--post-data="+h(e.data)):n.push("--body-data="+h(e.data))):(0,o.eq)(e.urls[0].method,"POST")?n.push("--post-file="+h(e.dataArray[0].filename)):n.push("--body-file="+h(e.dataArray[0].filename)),e.ciphers&&n.push("--ciphers="+h(e.ciphers)),e.insecure&&n.push("--no-check-certificate"),e.cert){const[r,s]=e.cert;n.push("--certificate="+h(r)),s&&t.push(["wget-cert-password","Wget does not support certificate passwords"])}if(e.certType&&n.push("--certificate-type="+h(e.certType)),e.key&&n.push("--private-key="+h(e.key)),e.keyType&&n.push("--private-key-type="+h(e.keyType)),e.cacert&&n.push("--ca-certificate="+h(e.cacert)),e.capath&&n.push("--ca-directory="+h(e.capath)),e.crlfile&&n.push("--crl-file="+h(e.crlfile)),e.pinnedpubkey&&n.push("--pinnedpubkey="+h(e.pinnedpubkey)),e.randomFile&&n.push("--random-file="+h(e.randomFile)),e.egdFile&&n.push("--egd-file="+h(e.egdFile)),e.hsts)for(const t of e.hsts)n.push("--hsts-file="+h(t));if("ignored"===e.netrc&&n.push("--no-netrc"),e.noproxy&&((0,o.eq)(e.noproxy,"*")?n.push("--no-proxy"):t.push(["wget-noproxy","Wget does not support noproxy for specific hosts"])),e.proxy&&t.push(["wget-proxy","Wget requires specifying proxies in environment variables: "+JSON.stringify(e.proxy.toString())]),e.proxyAuth){const[t,r]=e.proxyAuth.split(":",2);n.push("--proxy-user="+h(t)),r&&r.toBool()&&n.push("--proxy-password="+h(r))}e.timeout&&n.push("--timeout="+h(e.timeout)),e.connectTimeout&&n.push("--connect-timeout="+h(e.connectTimeout)),e.limitRate&&n.push("--limit-rate="+h(e.limitRate)),e.urls[0].output?n.push("--output-document="+h(e.urls[0].output)):n.push("--output-document -"),!1===e.clobber&&n.push("--no-clobber"),!1===e.remoteTime&&n.push("--no-use-server-timestamps"),e.continueAt&&((0,o.eq)(e.continueAt,"-")?n.push("--continue"):n.push("--start-pos="+h(e.continueAt))),!1===e.keepAlive&&n.push("--no-http-keep-alive"),e.globoff&&n.push("--no-glob"),e.silent?n.push("--quiet"):!1===e.verbose&&n.push("--no-verbose");for(const t of e.urls)n.push(h(t.url));const r=n.length>3||n.reduce(((e,t)=>e+t.length),0)>75?" \\\n  ":" ";return"wget "+n.join(r)+"\n"}function f(e,t=[]){return e.map((e=>m(e,t))).join("\n\n")}function y(e,t=[]){return[f((0,a.qg)(e,l,t),t),t]}function g(e){return y(e)[0]}r()}catch(w){r(w)}}))},9418:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.r(t),n.d(t,{CCError:()=>z.fA,toAnsible:()=>s.m_,toAnsibleWarn:()=>s.YB,toBrowser:()=>w.j6,toBrowserWarn:()=>w.tJ,toC:()=>o.D7,toCFML:()=>a.sL,toCFMLWarn:()=>a.GM,toCSharp:()=>l.D0,toCSharpWarn:()=>l.Te,toCWarn:()=>o.$9,toClojure:()=>i.gN,toClojureWarn:()=>i.KW,toDart:()=>u.F4,toDartWarn:()=>u.Rm,toElixir:()=>c.js,toElixirWarn:()=>c.Pk,toGo:()=>p.EK,toGoWarn:()=>
1p.k6,toHTTP:()=>_.SW,toHTTPWarn:()=>_.qG,toHarString:()=>d.wq,toHarStringWarn:()=>d.iT,toHttpie:()=>h._f,toHttpieWarn:()=>h.Iy,toJava:()=>m.eO,toJavaHttpUrlConnection:()=>f.tK,toJavaHttpUrlConnectionWarn:()=>f.tI,toJavaJsoup:()=>y.lG,toJavaJsoupWarn:()=>y.F,toJavaOkHttp:()=>g._H,toJavaOkHttpWarn:()=>g.Cv,toJavaScript:()=>w.j6,toJavaScriptJquery:()=>S.Pn,toJavaScriptJqueryWarn:()=>S.zd,toJavaScriptWarn:()=>w.tJ,toJavaScriptXHR:()=>b.D0,toJavaScriptXHRWarn:()=>b.H2,toJavaWarn:()=>m.sb,toJsonString:()=>T.J7,toJsonStringWarn:()=>T.VX,toJulia:()=>x.vt,toJuliaWarn:()=>x.L5,toKotlin:()=>E.Dj,toKotlinWarn:()=>E.Ve,toLua:()=>v.gy,toLuaWarn:()=>v.ul,toMATLAB:()=>A.h0,toMATLABWarn:()=>A.lu,toNode:()=>w.ye,toNodeAxios:()=>R.qP,toNodeAxiosWarn:()=>R.Cp,toNodeFetch:()=>w.ye,toNodeFetchWarn:()=>w.q2,toNodeGot:()=>C.W3,toNodeGotWarn:()=>C.WN,toNodeHttp:()=>O.KI,toNodeHttpWarn:()=>O.Go,toNodeKy:()=>P.ii,toNodeKyWarn:()=>P.ue,toNodeRequest:()=>N.nX,toNodeRequestWarn:()=>N.vR,toNodeSuperAgent:()=>L.YX,toNodeSuperAgentWarn:()=>L.u8,toNodeWarn:()=>w.q2,toOCaml:()=>k.SC,toOCamlWarn:()=>k.cP,toObjectiveC:()=>F.ys,toObjectiveCWarn:()=>F.Ex,toPerl:()=>I.v3,toPerlWarn:()=>I.Be,toPhp:()=>j.yg,toPhpGuzzle:()=>U.xJ,toPhpGuzzleWarn:()=>U.hd,toPhpRequests:()=>q.gS,toPhpRequestsWarn:()=>q.ij,toPhpWarn:()=>j.g3,toPowershellRestMethod:()=>M.uV,toPowershellRestMethodWarn:()=>M.GT,toPowershellWebRequest:()=>M.yz,toPowershellWebRequestWarn:()=>M.c6,toPython:()=>D.Uw,toPythonHttp:()=>H.CL,toPythonHttpWarn:()=>H.SD,toPythonWarn:()=>D.wI,toR:()=>B.Kl,toRHttr2:()=>$.iL,toRHttr2Warn:()=>$.Kt,toRWarn:()=>B.u7,toRuby:()=>W.um,toRubyHttparty:()=>Z.CM,toRubyHttpartyWarn:()=>Z.sl,toRubyWarn:()=>W.eQ,toRust:()=>G.WX,toRustWarn:()=>G.ks,toSwift:()=>V.XQ,toSwiftWarn:()=>V.DO,toWget:()=>J.x$,toWgetWarn:()=>J.Xy});var s=n(6313),o=n(5648),a=n(3361),i=n(6237),l=n(4170),u=n(3212),c=n(9914),p=n(9391),d=n(8950),_=n(7773),h=n(5043),m=n(4164),f=n(4863),y=n(2563),g=n(2018),w=n(7730),S=n(5955),b=n(9607),T=n(4195),x=n(552),E=n(6920),v=n(3059),A=n(954),R=n(9903),C=n(6803),O=n(413),P=n(6673),L=n(4605),N=n(8660),F=n(4461),k=n(161),I=n(7748),j=n(1730),U=n(775),q=n(9478),M=n(6068),D=n(832),H=n(7474),B=n(3260),$=n(4828),W=n(2508),Z=n(6868),G=n(7759),V=n(9054),J=n(322),z=n(9531),X=e([s,o,a,i,l,u,c,p,d,_,h,m,f,y,g,w,S,b,T,x,E,v,A,R,C,O,P,L,N,F,k,I,j,U,q,M,D,H,B,$,W,Z,G,V,J]);[s,o,a,i,l,u,c,p,d,_,h,m,f,y,g,w,S,b,T,x,E,v,A,R,C,O,P,L,N,F,k,I,j,U,q,M,D,H,B,$,W,Z,G,V,J]=X.then?(await X)():X,r()}catch(e){r(e)}}))},5385:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{$Q:()=>c,dH:()=>l.d,qg:()=>d,xv:()=>i.xv});var s=n(9531),o=n(6711),a=n(9374),i=n(9407),l=n(8081),u=e([a]);function c(e,t=30){return e.length>t?e.slice(0,t-3)+"...":e}function p(e,t){if("string"==typeof e)return(0,a.q)(e,t);if(0===e.length)throw new s.fA("no arguments provided");if("curl"!==e[0].trim())throw new s.fA('command should begin with "curl" but instead begins with '+JSON.stringify(c(e[0])));return[[e.map((e=>new o.vZ(e))),void 0,void 0]]}function d(e,t,n=[]){let r=[];const s=p(e,n);for(const[e,o,a]of s){const[s]=i.Zy(e,i.Lk,i.N4,i.U$,t,n);r=r.concat((0,l.r)(s,o,a))}return r}a=(u.then?(await u)():u)[0],r()}catch(_){r(_)}}))},6711:(e,t,n)=>{"use strict";n.d(t,{WL:()=>a,__:()=>i,eq:()=>o,vZ:()=>s,yZ:()=>l});var r=n(9531);class s{constructor(e){this.valueOf=s.toString,"string"==typeof e&&(e=[e]),void 0!==e&&0!==e.length||(e=[""]),this.tokens=[];for(const t of e)"string"==typeof t?this.tokens.length>0&&"string"==typeof this.tokens[this.tokens.length-1]?this.tokens[this.tokens.length-1]+=t:t&&this.tokens.push(t):this.tokens.push(t);0===this.tokens.length&&this.tokens.push("")}get length(){let e=0;for(const t of this.tokens)e+="string"==typeof t?t.length:1;return e}*[Symbol.iterator](){for(const e of this.tokens)if("string"==typeof e)for(const t of e)yield t;else yield e}get(e){let t=0;for(const n of this.tokens)if("string"==typeof n){if(t+n.length>e)return n[e-t];t+=n.length}else{if(t===e)return n;t+=1}throw new r.fA("Index out of bounds")}charAt(e=0){try{return this.get(e)}catch(e){}return""}indexOf(e,t){void 0===t&&(t=0);let n=0;for(const r of this.tokens)if("string"==typeof r){if(n+r.length>t){const s=r.indexOf(e,t-n);if(-1!==s)return n+s}n+=r.length}else n+=1;return-1}indexOfFirstChar(e){let t=0;for(const n of this.tokens)if("string"==typeof n)for(const r of n){if(e.includes(r))return t;t+=1}else t+=1;return-1}removeFirstChar(e){return 0===this.length?new s:this.charAt(0)===e?this.slice(1):this.copy()}copy(){return new s(this.tokens)}slice(e,t){if(void 0===e&&(e=this.length),void 0===t&&(t=this.length),e>=this.length)return new s;if(e<0&&(e=Math.max(e+this.length,0)),t<0&&(t=Math.max(t+this.length,0)),t<=e)return new s;const n=[];let r=0;for(const s of this.tokens)"string"==typeof s?(r+s.length>
1e&&r<t&&n.push(s.slice(Math.max(e-r,0),t-r)),r+=s.length):(r>=e&&r<t&&n.push(s),r+=1);return new s(n)}includes(e,t){void 0===t&&(t=0);let n=0;for(const r of this.tokens)if("string"==typeof r){if(n+r.length>t&&r.includes(e,t-n))return!0;n+=r.length}else n+=1;return!1}test(e){for(const t of this.tokens)if("string"==typeof t&&e.test(t))return!0;return!1}prepend(e){const t=this.copy();return t.tokens.length&&"string"==typeof t.tokens[0]?t.tokens[0]=e+t.tokens[0]:t.tokens.unshift(e),t}append(e){const t=this.copy();return t.tokens.length&&"string"==typeof t.tokens[t.tokens.length-1]?t.tokens[t.tokens.length-1]+=e:t.tokens.push(e),t}add(e){return new s([...this.tokens,...e.tokens])}match(e){for(const t of this.tokens)if("string"==typeof t){const n=t.match(e);if(n)return n}return null}search(e){let t=0;for(const n of this.tokens)if("string"==typeof n){const r=n.search(e);if(-1!==r)return t+r;t+=n.length}return-1}replace(e,t){const n=[];for(const r of this.tokens)"string"==typeof r?n.push(r.replace(e,t)):n.push(r);return new s(n)}split(e,t){const n=[];let r=0,s=0;for(;r<this.length;){let o=!0;for(let t=0;t<e.length;t++)if(this.get(r+t)!==e.charAt(t)){o=!1;break}if(o){if(n.push(this.slice(s,r)),r+=e.length,s=r,void 0!==t&&n.length===t-1)break}else r+=1}return s<=this.length&&n.push(this.slice(s)),n}toLowerCase(){return new s(this.tokens.map((e=>"string"==typeof e?e.toLowerCase():e)))}toUpperCase(){return new s(this.tokens.map((e=>"string"==typeof e?e.toUpperCase():e)))}trimStart(){const e=[];let t,n;for([t,n]of this.tokens.entries())"string"==typeof n?(0===t&&(n=n.trimStart()),n&&e.push(n)):e.push(n);return 0===e.length?new s:new s(e)}trimEnd(){const e=[];let t,n;for([t,n]of this.tokens.entries())"string"==typeof n?(t===this.tokens.length-1&&(n=n.trimEnd()),n&&e.push(n)):e.push(n);return 0===e.length?new s:new s(e)}trim(){const e=[];let t,n;for([t,n]of this.tokens.entries())"string"==typeof n?(0===t&&(n=n.trimStart()),t===this.tokens.length-1&&(n=n.trimEnd()),n&&e.push(n)):e.push(n);return 0===e.length?new s:new s(e)}isEmpty(){return 0===this.tokens.length||1===this.tokens.length&&"string"==typeof this.tokens[0]&&0===this.tokens[0].length}toBool(){return!this.isEmpty()}isString(){for(const e of this.tokens)if("string"!=typeof e)return!1;return!0}firstShellToken(){for(const e of this.tokens)if("string"!=typeof e)return e;return null}startsWith(e){return 0!==this.tokens.length&&"string"==typeof this.tokens[0]&&this.tokens[0].startsWith(e)}endsWith(e){if(0===this.tokens.length)return!1;const t=this.tokens[this.tokens.length-1];return"string"==typeof t&&t.endsWith(e)}toString(){return this.tokens.map((e=>"string"==typeof e?e:e.text)).join("")}}function o(e,t){return null==e||null==t?e===t:"string"==typeof t?1===e.tokens.length&&"string"==typeof e.tokens[0]&&e.tokens[0]===t:e.tokens.length===t.tokens.length&&e.tokens.every(((e,n)=>{const r=t.tokens[n];return"string"==typeof e?e===r:"string"!=typeof r&&e.text===r.text}))}function a(e){return"string"==typeof e?null:e.firstShellToken()}function i(...e){const t=[];for(const n of e)n instanceof s?t.push(...n.tokens):t.push(n);return new s(t)}function l(e,t){const n=[];for(const r of e)n.length&&n.push(t),n.push(...r.tokens);return new s(n)}},9374:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{q:()=>R});var s=n(6711),o=n(9531),a=n(5385),i=n(8106),l=n(7277),u=e([a,i]);[a,i]=u.then?(await u)():u;const c=/\\./gs;function p(e){return"\n"===e.charAt(1)?"":e.charAt(1)}const d=/\\[\\$`"\n]/gs;function _(e){return e.replace(d,p)}const h=/\\(\\|a|b|e|E|f|n|r|t|v|'|"|\?|[0-7]{1,3}|x[0-9A-Fa-f]{1,2}|u[0-9A-Fa-f]{1,4}|U[0-9A-Fa-f]{1,8}|c.)/gs;function m(e){return e.replace(h,(function(e){switch(e.charAt(1)){case"\\":return"\\";case"a":return"�";case"b":return"\b";case"e":case"E":return"�";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return"\t";case"v":return"\v";case"'":return"'";case'"':return'"';case"?":return"?";case"c":if(e.codePointAt(2)>127)throw new o.fA('non-ASCII control character in ANSI-C quoted string: "\\u{'+e.codePointAt(2).toString(16)+'}"');return"?"===e[2]?"�":String.fromCodePoint(31&e[2].toUpperCase().codePointAt(0));case"x":case"u":case"U":return String.fromCodePoint(parseInt(e.slice(2),16));case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":return String.fromCodePoint(parseInt(e.slice(1),8)%256);default:throw new o.fA("unhandled character in ANSI-C escape code: "+JSON.stringify(e))}}))}function f(e,t,n){let r=[];switch(e.type){case"$":return["$"];case"word":case"number":return[(s=e.text,s.replace(c,p))];case"raw_string":return[e.text.slice(1,-1)];case"ansi_c_string":return[m(e.text.slice(2,-1))];case"string":case"translated_string":{let s="";for(const o of e.namedChildren)if("string_content"===o.type)s+=_(o.text);else{const e=f(o,t,n);"string"==typeof e?s+=e:(s&&(r.push(s),s=""),r=r.concat(e))}return(s||0===r.length)&&r.push(s),r}case"simple_expansion":return n.push(["expansion","found environment variable\n"+(0,l.TO)(e,t)]),e.firstNamedChild&&"special_variable_name"===e.firstNamedChild.type&&n.push(["special_variable_name",e.text+" is a special Bash variable\n"+(0,l.TO)(e.firstNamedChild,t)]),[{type:"variable",value:e.text.slice(1),text:e.text,syntaxNode:e}];case"expansion":return n.push(["expansion","found expansion expression\n"+(0,l.TO)(e,t)]),[{type:"variable",value:e.text.slice(2,-1),text:e.text,syntaxNode:e}];case"command_substitution":return n.push(["expansion","found command substitution expression\n"+(0,l.TO)(e,t)]),[{type:"command",value:e.text.slice(e.text.startsWith("$(")?2:1,-1),text:e.text,syntaxNode:e}];case"concatenation":{let s=0,o="";for(const a of e.children){o+=e.text.slice(s,a.startIndex-e.startIndex),s=a.endIndex-e.startIndex;const i=f(a,t,n);"string"==typeof i?o+=i:(o&&(r.push(o),o=""),r=r.concat(i))}return o+=e.text.slice(s),(o||0===r.length)&&r.push(o),r}default:throw new o.fA("unexpected syntax node type "+JSON.stringify(e.type)+'. Must be one of "word", "number", "string", "raw_
1string", "ansi_c_string", "expansion", "simple_expansion", "translated_string", "command_substitution" or "concatenation"\n'+(0,l.TO)(e,t))}var s}function y(e,t,n){return new s.vZ(f(e,t,n))}function*g(e){const t=e.walk();let n=!1;for(;!n;){if(("ERROR"===t.nodeType||t.nodeIsMissing)&&(yield t),t.gotoFirstChild())continue;if(t.gotoNextSibling())continue;let e=!0;for(;e;)t.gotoParent()||(e=!1,n=!0),t.gotoNextSibling()&&(e=!1)}}function w(e,t,n){let r=0;for(const s of g(e)){if(r<3){let e="";try{e=":\n"+(0,l.XP)(s,t)}catch(e){}const r=s.startPosition.row,o=s.startPosition.column;n.push(["bash",`Bash parsing error on line ${r+1}`+(0!==o?`, column ${o+1}`:"")+e])}r+=1}const s=r-3;s>0&&n.push(["bash",`${s} more Bash parsing error${s>1?"s":""} omitted`])}function S(e,t,n){const r=t[e.endPosition.row],s=r.match(/\\\s+$/);s&&t.length>e.endPosition.row+1&&void 0!==s.index&&n.push(["unescaped-newline","The trailling '\\' on line "+(e.endPosition.row+1)+" is followed by whitespace, so it won't escape the newline after it:\n"+r+"\n"+" ".repeat(s.index)+"^".repeat(s[0].length)])}function b(e,t,n){if(!e.namedChildCount)throw new o.fA('got empty "redirected_statement" AST node');let r,a;const[i,...u]=e.namedChildren;if("command"!==i.type)throw new o.fA('got "redirected_statement" AST node whose first child is not a "command", got '+i.type+" instead\n"+(0,l.TO)(i,t));if(e.childCount<2)throw new o.fA('got "redirected_statement" AST node with only one child - no redirect');u.length>1&&n.push(["multiple-redirects","found "+u.length+" redirect nodes. Only the first one will be used:\n"+(0,l.TO)(u[1],t)]);const c=u[0];if("file_redirect"===c.type){const e=c.childForFieldName("destination");if(!e)throw new o.fA('got "file_redirect" AST node with no "destination" child');a=y(e,t,n)}else if("heredoc_redirect"===c.type){const e=c.descendantsOfType("heredoc_body")[0];if(!e)throw new o.fA('got "redirected_statement" AST node without heredoc_body');r=new s.vZ(e.text)}else{if("herestring_redirect"!==c.type)throw new o.fA('got "redirected_statement" AST node whose second child is not one of "file_redirect", "heredoc_redirect" or "herestring_redirect", got '+i.type+" instead");if(c.namedChildCount<1||!c.firstNamedChild)throw new o.fA('got "redirected_statement" AST node with empty herestring');r=y(c.firstNamedChild,t,n)}return[i,r,a]}function T(e,t,n){let r,s,a;for(const i of e.namedChildren)if("command"===i.type){const e=i.namedChildren[0];if("command_name"!==e.type)throw new o.fA('got "command" AST node whose first child is not a "command_name", got '+e.type+" instead\n"+(0,l.TO)(e,t));const s=e.namedChildren[0];if("word"!==s.type)throw new o.fA('got "command_name" AST node whose first child is not a "word", got '+s.type+" instead\n"+(0,l.TO)(s,t));"curl"===s.text&&(r?n.push(["multiple-curl-in-pipeline","found multiple curl commands in pipeline:\n"+(0,l.TO)(i,t)]):r=i)}else if("redirected_statement"===i.type){const[e,o,u]=b(i,t,n);"curl"===e.namedChildren[0].text&&(r?n.push(["multiple-curl-in-pipeline","found multiple curl commands in pipeline:\n"+(0,l.TO)(e,t)]):[r,s,a]=[e,o,u])}else if("pipeline"===i.type){const[e,o,u]=T(i,t,n);if(!e)continue;"curl"===e.namedChildren[0].text&&(r?n.push(["multiple-curl-in-pipeline","found multiple curl commands in pipeline:\n"+(0,l.TO)(e,t)]):[r,s,a]=[e,o,u])}return[r,s,a]}function x(e,t,n){const[r,s,a]=T(e,t,n);if(!r)throw new o.fA("could not find curl command in pipeline\n"+(0,l.TO)(e,t));return[r,s,a]}function E(e,t,n){if("program"!==e.rootNode.type)throw new o.fA('expected a "program" top-level AST node, got '+e.rootNode.type+" instead");if(e.rootNode.namedChildCount<1||!e.rootNode.namedChildren)throw new o.fA('empty "program" node');const r=t.split("\n");let s=!1;const a=[];for(const i of e.rootNode.namedChildren)switch(i.type){case"comment":s=!0;continue;case"command":a.push([i,void 0,void 0]),S(i,r,n);break;case"redirected_statement":a.push(b(i,t,n)),S(i,r,n);break;case"pipeline":a.push(x(i,t,n)),S(i,r,n);break;case"heredoc_body":continue;case"ERROR":throw new o.fA(`Bash parsing error on line ${i.startPosition.row+1}:\n`+(0,l.TO)(i,t));
1default:throw new o.fA("found "+JSON.stringify(i.type)+' AST node, only "command", "pipeline" or "redirected_statement" are supported\n'+(0,l.TO)(i,t))}if(!a.length)throw new o.fA('expected a "command" or "redirected_statement" AST node'+(s?', only found "comment" nodes':""));return a}function v(e,t,n){if(e.childCount<1)throw new o.fA('empty "command" node\n'+(0,l.TO)(e,t));const r=e.childForFieldName("name"),s=e.childrenForFieldName("argument");if(!r)throw new o.fA('found "command" AST node with no "command_name" child\n'+(0,l.TO)(e,t));return[r,s]}function A(e,t,n){if(e.childCount<1||!e.firstChild)throw new o.fA('found empty "command_name" AST node\n'+(0,l.TO)(e,t));e.childCount>1&&n.push(["extra-command_name-children",'expected "command_name" node to only have one child but it has '+e.childCount]);const r=e.firstChild,i=y(r,t,n),u=i.toString(),c=(0,s.WL)(i);if(c){if("$curl"!==u)throw new o.fA("expected command name to be a simple value but found a "+c.type+"\n"+(0,l.TO)(c.syntaxNode,t))}else if("curl"!==u.trim()){const e=u.trim();if(!e)throw new o.fA("found command without a command_name\n"+(0,l.TO)(r,t));throw new o.fA('command should begin with "curl" but instead begins with '+JSON.stringify((0,a.$Q)(e))+"\n"+(0,l.TO)(r,t))}return i}function R(e,t=[]){const n=i.A.parse(e);w(n,e,t);const r=E(n,e,t),s=[];for(const[n,o,a]of r){const[r,i]=v(n,e);s.push([[A(r,e,t),...i.map((n=>y(n,e,t)))],o,a])}return s}r()}catch(C){r(C)}}))},8106:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{A:()=>a});var s=n(2812);await s.init({locateFile:(e,t)=>"/"+e});const e=await s.Language.load("/tree-sitter-bash.wasm"),o=new s;o.setLanguage(e);const a=o;r()}catch(e){r(e)}}),1)},9531:(e,t,n)=>{"use strict";n.d(t,{E6:()=>i,eb:()=>s,fA:()=>r,lR:()=>a,zy:()=>o});class r extends Error{}const s=new TextEncoder;function o(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function a(e){return"undefined"!=typeof window&&window.btoa?window.btoa(e):Buffer.from(e,"utf8").toString("base64")}function i(e){return/^\s*[+-]?\d+$/.test(e)}},4123:(e,t,n)=>{"use strict";function r(e){return s.test(e)}n.d(t,{Fq:()=>r,s_:()=>m,Lz:()=>i,qg:()=>g,As:()=>J});const s=/^-?[0-9]+$/;function o(e){return a.test(e)}const a=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;function i(e,t){const n=Number.parseFloat(e),s=String(n),o=u(e),a=u(s);if(o===a)return!0;if(!0===t?.approx){const t=14;if(!r(e)&&a.length>=t&&o.startsWith(a.substring(0,t)))return!0}return!1}let l=function(e){return e.underflow="underflow",e.overflow="overflow",e.truncate_integer="truncate_integer",e.truncate_float="truncate_float",e}({});function u(e){return e.replace(c,"").replace(d,"").replace(_,"").replace(p,"")}const c=/[eE][+-]?\d+$/,p=/^-?(0*)?/,d=/\./,_=/0+$/;class h{isLosslessNumber=!0;constructor(e){if(!o(e))throw new Error(`Invalid number (value: "${e}")`);this.value=e}valueOf(){const e=function(e){if(i(e,{approx:!1}))return;if(r(e))return l.truncate_integer;const t=Number.parseFloat(e);return Number.isFinite(t)?0===t?l.underflow:l.truncate_float:l.overflow}(this.value);if(void 0===e||e===l.truncate_float)return Number.parseFloat(this.value);if(r(this.value))return BigInt(this.value);throw new Error(`Cannot safely convert to number: the value '${this.value}' would ${e} and become ${Number.parseFloat(this.value)}`)}toString(){return this.value}}function m(e){return e&&"object"==typeof e&&!0===e.isLosslessNumber||!1}function f(e){return new h(e)}function y(e,t,n,r){return Array.isArray(n)?r.call(e,t,function(e,t){for(let n=0;n<e.length;n++)e[n]=y(e,String(n),e[n],t);return e}(n,r)):n&&"object"==typeof n&&!m(n)?r.call(e,t,function(e,t){for(const n of Object.keys(e)){const r=y(e,n,e[n],t);void 0!==r?e[n]=r:delete e[n]}return e}(n,r)):r.call(e,t,n)}function g(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f,r=0;const s=o();return function(e){if(void 0===e)throw new SyntaxError(`JSON value expected ${G()}`)}(s),function(){if(r<e.length)throw new SyntaxError(`Expected end of input ${G()}`)}(),t?function(e,t){return y({"":e},"",e,t)}(s,t):s;function o(){i();const t=l()??function(){const t=r;if(e.charCodeAt(r)===I&&(r++,d(t)),e.charCodeAt(r)===j)r++;else if((s=e.charCodeAt(r))>=U&&s<=q)for(r++;S(e.charCodeAt(r));)r++;var s;if(e.charCodeAt(r)===D)for(r++,d(t);S(e.charCodeAt(r));)r++;if(e.charCodeAt(r)===Z||e.charCodeAt(r)===W)for(r++,e.charCodeAt(r)!==I&&e.charCodeAt(r)!==k||r++,d(t);S(e.charCodeAt(r));)r++;if(r>t)return n(e.slice(t,r))}()??function(){if(e.charCodeAt(r)===v){r++,i();const t={};let n=!0;for(;r<e.length&&e.charCodeAt(r)!==A;){n?n=!1:(u(),i());const e=r,s=l();if(void 0===s)return void _();i(),c();const a=o();if(void 0===a)return void T();Object.prototype.hasOwnProperty.call(t,s)&&!b(a,t[s])&&h(s,e+1),t[
1s]=a}return e.charCodeAt(r)!==A&&function(){throw new SyntaxError(`Quoted object key or end of object '}' expected ${G()}`)}(),r++,t}}()??function(){if(e.charCodeAt(r)===R){r++,i();const t=[];let n=!0;for(;r<e.length&&e.charCodeAt(r)!==C;){n?n=!1:u();const e=o();p(e),t.push(e)}return e.charCodeAt(r)!==C&&function(){throw new SyntaxError(`Array item or end of array ']' expected ${G()}`)}(),r++,t}}()??a("true",!0)??a("false",!1)??a("null",null);return i(),t}function a(t,n){if(e.slice(r,r+t.length)===t)return r+=t.length,n}function i(){for(;(t=e.charCodeAt(r))===O||t===P||t===L||t===N;)r++;var t}function l(){if(e.charCodeAt(r)===F){r++;let n="";for(;r<e.length&&e.charCodeAt(r)!==F;){if(e.charCodeAt(r)===E){const t=e[r+1],s=x[t];void 0!==s?(n+=s,r++):"u"===t?w(e.charCodeAt(r+2))&&w(e.charCodeAt(r+3))&&w(e.charCodeAt(r+4))&&w(e.charCodeAt(r+5))?(n+=String.fromCharCode(Number.parseInt(e.slice(r+2,r+6),16)),r+=5):B(r):g(r)}else(t=e.charCodeAt(r))>=32&&t<=1114111?n+=e[r]:m(e[r]);r++}return function(){if(e.charCodeAt(r)!==F)throw new SyntaxError(`End of string '"' expected ${G()}`)}(),r++,n}var t}function u(){if(e.charCodeAt(r)!==M)throw new SyntaxError(`Comma ',' expected after value ${G()}`);r++}function c(){if(e.charCodeAt(r)!==H)throw new SyntaxError(`Colon ':' expected after property name ${G()}`);r++}function p(e){if(void 0===e)throw new SyntaxError(`Array item expected ${G()}`)}function d(t){if(!S(e.charCodeAt(r))){const n=e.slice(t,r);throw new SyntaxError(`Invalid number '${n}', expecting a digit ${G()}`)}}function _(){throw new SyntaxError(`Quoted object key expected ${G()}`)}function h(e,t){throw new SyntaxError(`Duplicate key '${e}' encountered at position ${t}`)}function m(e){throw new SyntaxError(`Invalid character '${e}' ${$()}`)}function g(t){const n=e.slice(t,t+2);throw new SyntaxError(`Invalid escape character '${n}' ${$()}`)}function T(){throw new SyntaxError(`Object value expected after ':' ${$()}`)}function B(t){const n=e.slice(t,t+6);throw new SyntaxError(`Invalid unicode character '${n}' ${$()}`)}function $(){return`at position ${r}`}function G(){return`${r<e.length?`but got '${e[r]}'`:"but reached end of input"} ${$()}`}}function w(e){return e>=j&&e<=q||e>=B&&e<=G||e>=$&&e<=V}function S(e){return e>=j&&e<=q}function b(e,t){return e===t||(Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every(((e,n)=>b(e,t[n]))):!(!T(e)||!T(t))&&[...new Set([...Object.keys(e),...Object.keys(t)])].every((n=>b(e[n],t[n]))))}function T(e){return"object"==typeof e&&null!==e}const x={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},E=92,v=123,A=125,R=91,C=93,O=32,P=10,L=9,N=13,F=34,k=43,I=45,j=48,U=49,q=57,M=44,D=46,H=58,B=65,$=97,W=69,Z=101,G=70,V=102;function J(e,t,n,r){const s=function(e){return"number"==typeof e?" ".repeat(e):"string"==typeof e&&""!==e?e:void 0}(n);return function e(i,l){if(Array.isArray(r)){const e=r.find((e=>e.test(i)));if(e){const t=e.stringify(i);if("string"!=typeof t||!o(t))throw new Error(`Invalid JSON number: output of a number stringifier must be a string containing a JSON number (output: ${t})`);return t}}return"boolean"==typeof i||"number"==typeof i||"string"==typeof i||null===i||i instanceof Date||i instanceof Boolean||i instanceof Number||i instanceof String?JSON.stringify(i):i?.isLosslessNumber||"bigint"==typeof i?i.toString():Array.isArray(i)?function(n,r){if(0===n.length)return"[]";const o=s?r+s:void 0;let a=s?"[\n":"[";for(let r=0;r<n.length;r++){const i="function"==typeof t?t.call(n,String(r),n[r]):n[r];s&&(a+=o),a+=void 0!==i&&"function"!=typeof i?e(i,o):"null",r<n.length-1&&(a+=s?",\n":",")}return a+=s?`\n${r}]`:"]",a}(i,l):i&&"object"==typeof i?function(r,o){if("function"==typeof r.toJSON)return J(r.toJSON(),t,n,void 0);const i=Array.isArray(t)?t.map(String):Object.keys(r);if(0===i.length)return"{}";const l=s?o+s:void 0;let u=!0,c=s?"{\n":"{";for(const n of i){const o="function"==typeof t?t.call(r,n,r[n]):r[n];if(a(0,o)){u?u=!1:c+=s?",\n":",";const t=JSON.stringify(n);c+=s?`${l+t}: `:`${t}:`,c+=e(o,l)}}return c+=s?`\n${o}}`:"}",c}(i,l):void 0}("function"==typeof t?t.call({"":e},"",e):e,"");function a(e,t){return void 0!==t&&"function"!=typeof t&&"symbol"!=typeof t}}}},__webpack_module_cache__={},webpackQueues,webpackExports,webpackError,resolveQueue;function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__webpack_require__),n.exports}webpackQueues="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",webpackExports="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",webpackError="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",resolveQueue=e=>{e&&e.d<1&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},__webpack_require__.a=(e,t,n)=>{var r;n&&((r=[]).d=-1);var s,o,a,i=new Set,l=e.exports,u=new Promise(((e,t)=>{a=t,o=e}));u[webpackExports]=l,u[webpackQueues]=e=>
vendor: 1,155 bytes, line 1
1(r&&e(r),i.forEach(e),u.catch((e=>{}))),e.exports=u,t((e=>{var t;s=(e=>e.map((e=>{if(null!==e&&"object"==typeof e){if(e[webpackQueues])return e;if(e.then){var t=[];t.d=0,e.then((e=>{n[webpackExports]=e,resolveQueue(t)}),(e=>{n[webpackError]=e,resolveQueue(t)}));var n={};return n[webpackQueues]=e=>e(t),n}}var r={};return r[webpackQueues]=e=>{},r[webpackExports]=e,r})))(e);var n=()=>s.map((e=>{if(e[webpackError])throw e[webpackError];return e[webpackExports]})),o=new Promise((e=>{(t=()=>e(n)).r=0;var o=e=>e!==r&&!i.has(e)&&(i.add(e),e&&!e.d&&(t.r++,e.push(t)));s.map((e=>e[webpackQueues](o)))}));return t.r?o:n()}),(e=>(e?a(u[webpackError]=e):o(l),resolveQueue(r)))),r&&r.d<0&&(r.d=0)},__webpack_require__.d=(e,t)=>{for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__=__webpack_require__(5237)})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.