(self.webpackChunkweb_toolbox=self.webpackChunkweb_toolbox||[]).push([[802],{7626:(e,t,n)=>{"use strict";var r=n(24994);t.A=void 0;var o=r(n(79526)),s=n(44414);t.A=(0,o.default)((0,s.jsx)("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"}),"Code")},23266:(e,t,n)=>{"use strict";n.d(t,{A:()=>T});var r=n(98587),o=n(58168),s=n(9950),a=n(72004),i=n(74061),l=n(99269),u=n(59254),c=n(19608),d=n(48283),p=n(13372),_=n(24184),h=n(79044),m=n(31506),f=n(40777),y=n(92455),g=n(88543),w=n(80863),b=n(68483);function v(e){return(0,b.Ay)("MuiMenuItem",e)}const S=(0,w.A)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);var E=n(44414);const x=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],A=(0,u.Ay)(_.A,{shouldForwardProp:e=>(0,c.A)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((e=>{let{theme:t,ownerState:n}=e;return(0,o.A)({},t.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!n.disableGutters&&{paddingLeft:16,paddingRight:16},n.divider&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider),backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(S.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,l.X4)(t.palette.primary.main,t.palette.action.selectedOpacity),["&.".concat(S.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,l.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},["&.".concat(S.selected,":hover")]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,l.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,l.X4)(t.palette.primary.main,t.palette.action.selectedOpacity)}},["&.".concat(S.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["&.".concat(S.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity},["& + .".concat(f.A.root)]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},["& + .".concat(f.A.inset)]:{marginLeft:52},["& .".concat(g.A.root)]:{marginTop:0,marginBottom:0},["& .".concat(g.A.inset)]:{paddingLeft:36},["& .".concat(y.A.root)]:{minWidth:36}},!n.dense&&{[t.breakpoints.up("sm")]:{minHeight:"auto"}},n.dense&&(0,o.A)({minHeight:32,paddingTop:4,paddingBottom:4},t.typography.body2,{["& .".concat(y.A.root," svg")]:{fontSize:"1.25rem"}}))})),T=s.forwardRef((function(e,t){const n=(0,d.A)({props:e,name:"MuiMenuItem"}),{autoFocus:l=!1,component:u="li",dense:c=!1,divider:_=!1,disableGutters:f=!1,focusVisibleClassName:y,role:g="menuitem",tabIndex:w,className:b}=n,S=(0,r.A)(n,x),T=s.useContext(p.A),N=s.useMemo((()=>({dense:c||T.dense||!1,disableGutters:f})),[T.dense,c,f]),C=s.useRef(null);(0,h.A)((()=>{l&&C.current&&C.current.focus()}),[l]);const I=(0,o.A)({},n,{dense:N.dense,divider:_,disableGutters:f}),M=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:s,selected:a,classes:l}=e,u={root:["root",n&&"dense",t&&"disabled",!s&&"gutters",r&&"divider",a&&"selected"]},c=(0,i.A)(u,v,l);return(0,o.A)({},l,c)})(n),R=(0,m.A)(C,t);let k;return n.disabled||(k=void 0!==w?w:-1),(0,E.jsx)(p.A.Provider,{value:N,children:(0,E.jsx)(A,(0,o.A)({ref:R,role:g,tabIndex:k,component:u,focusVisibleClassName:(0,a.A)(M.focusVisible,y),className:(0,a.A)(M.root,b)},S,{ownerState:I,classes:M}))})}))},81361:e=>{"use strict";const t={},n=t.hasOwnProperty,r=(e,t)=>{for(const r in e)n.call(e,r)&&t(r,e[r])},o=e=>"\\u"+("0000"+e).slice(-4),s=(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]/,d=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,p=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,_=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,h=(e,t)=>{const n=()=>{E=S,++t.indentLevel,S=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?"`":"'",b=t.compact,v=t.lowercaseHex;let S=t.indent.repeat(t.indentLevel),E="";const x=t.__inline1__,A=t.__inline2__,T=b?"":"\n";let N,C=!0;const I="binary"==t.numbers,M="octal"==t.numbers,R="decimal"==t.numbers,k="hexadecimal"==t.numbers;if(f&&e&&"function"==typeof e.toJSON&&(e=e.toJSON()),!(e=>"string"==typeof e||"[object String]"==a.call(e))(e)){if((e=>"[object Map]"==a.call(e))(e))return 0==e.size?"new Map()":(b||(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 N=[],t.wrap=!0,x&&(t.__inline1__=!1,t.__inline2__=!0),A||n(),((e,t)=>{const n=e.length;let r=-1;for(;++r<n;)t(e[r])})(e,(e=>{C=!1,A&&(t.__inline2__=!1),N.push((b||A?"":S)+h(e,t))})),C?"[]":A?"["+N.join(", ")+"]":"["+T+N.join(","+T)+T+(b?"":E)+"]";if(!(e=>"number"==typeof e||"[object Number]"==a.call(e))(e))return(e=>"[object Object]"==a.call(e))(e)?(N=[],t.wrap=!0,n(),r(e,((e,n)=>{C=!1,N.push((b?"":S)+h(e,t)+":"+(b?"":" ")+h(n,t))})),C?"{}":"{"+T+N.join(","+T)+T+(b?"":E)+"}"):f?JSON.stringify(e)||"null":String(e);if(f)return JSON.stringify(e);if(R)return String(e);if(k){let t=e.toString(16);return v||(t=t.toUpperCase()),"0x"+t}if(I)return"0b"+e.toString(2);if(M)return"0o"+e.toString(8)}const F=t.escapeEverything?p:_;return N=e.replace(F,((e,n,r,a,i,p)=>{if(n){if(t.minimal)return n;const e=n.charCodeAt(0),r=n.charCodeAt(1);if(t.es6){return"\\u{"+s(1024*(e-55296)+r-56320+65536,v)+"}"}return o(s(e,v))+o(s(r,v))}if(r)return o(s(r.charCodeAt(0),v));if("\0"==e&&!f&&!c.test(p.charAt(i+1)))return"\\0";if(a)return a==w||t.escapeEverything?"\\"+a:a;if(u.test(e))return l[e];if(t.minimal&&!d.test(e))return e;const _=s(e.charCodeAt(0),v);return f||_.length>2?o(_):"\\x"+("00"+_).slice(-2)})),"`"==w&&(N=N.replace(/\$\{/g,"\\${")),t.isScriptContext&&(N=N.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,f?"\\u003C!--":"\\x3C!--")),t.wrap&&(N=w+N+w),N};h.version="3.0.2",e.exports=h},3133:(e,t,n)=>{"use strict";var r=n(85224);function o(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function s(e,t){for(var n,r="",o=0,s=-1,a=0,i=0;i<=e.length;++i){if(i<e.length)n=e.charCodeAt(i);else{if(47===n)break;n=47}if(47===n){if(s===i-1||1===a);else if(s!==i-1&&2===a){if(r.length<2||2!==o||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2))if(r.length>2){var l=r.lastIndexOf("/");if(l!==r.length-1){-1===l?(r="",o=0):o=(r=r.slice(0,l)).length-1-r.lastIndexOf("/"),s=i,a=0;continue}}else if(2===r.length||1===r.length){r="",o=0,s=i,a=0;continue}t&&(r.length>0?r+="/..":r="..",o=2)}else r.length>0?r+="/"+e.slice(s+1,i):r=e.slice(s+1,i),o=i-s-1;s=i,a=0}else 46===n&&-1!==a?++a:a=-1}return r}var a={resolve:function(){for(var e,t="",n=!1,a=arguments.length-1;a>=-1&&!n;a--){var i;a>=0?i=arguments[a]:(void 0===e&&(e=r.cwd()),i=e),o(i),0!==i.length&&(t=i+"/"+t,n=47===i.charCodeAt(0))}return t=s(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(e){if(o(e),0===e.length)return".";var t=47===e.charCodeAt(0),n=47===e.charCodeAt(e.length-1);return 0!==(e=s(e,!t)).length||t||(e="."),e.length>0&&n&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return o(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t<arguments.length;++t){var n=arguments[t];o(n),n.length>0&&(void 0===e?e=n:e+="/"+n)}return void 0===e?".":a.normalize(e)},relative:function(e,t){if(o(e),o(t),e===t)return"";if((e=a.resolve(e))===(t=a.resolve(t)))return"";for(var n=1;n<e.length&&47===e.charCodeAt(n);++n);for(var r=e.length,s=r-n,i=1;i<t.length&&47===t.charCodeAt(i);++i);for(var l=t.length-i,u=s<l?s:l,c=-1,d=0;d<=u;++d){if(d===u){if(l>u){if(47===t.charCodeAt(i+d))return t.slice(i+d+1);if(0===d)return t.slice(i+d)}else s>u&&(47===e.charCodeAt(n+d)?c=d:0===d&&(c=0));break}var p=e.charCodeAt(n+d);if(p!==t.charCodeAt(i+d))break;47===p&&(c=d)}var _="";for(d=n+c+1;d<=r;++d)d!==r&&47!==e.charCodeAt(d)||(0===_.length?_+="..":_+="/..");return _.length>0?_+t.slice(i+c):(i+=c,47===t.charCodeAt(i)&&++i,t.slice(i))},_makeLong:function(e){return e},dirname:function(e){if(o(e),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,s=!0,a=e.length-1;a>=1;--a)if(47===(t=e.charCodeAt(a))){if(!s){r=a;break}}else s=!1;return-1===r?n?"/":".":n&&1===r?"//":e.slice(0,r)},basename:function(e,t){if(void 0!==t&&"string"!==typeof t)throw new TypeError('"ext" argument must be a string');o(e);var n,r=0,s=-1,a=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var i=t.length-1,l=-1;for(n=e.length-1;n>=0;--n){var u=e.charCodeAt(n);if(47===u){if(!a){r=n+1;break}}else-1===l&&(a=!1,l=n+1),i>=0&&(u===t.charCodeAt(i)?-1===--i&&(s=n):(i=-1,s=l))}return r===s?s=l:-1===s&&(s=e.length),e.slice(r,s)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!a){r=n+1;break}}else-1===s&&(a=!1,s=n+1);return-1===s?"":e.slice(r,s)},extname:function(e){o(e);for(var t=-1,n=0,r=-1,s=!0,a=0,i=e.length-1;i>=0;--i){var l=e.charCodeAt(i);if(47!==l)-1===r&&(s=!1,r=i+1),46===l?-1===t?t=i:1!==a&&(a=1):-1!==t&&(a=-1);else if(!s){n=i+1;break}}return-1===t||-1===r||0===a||1===a&&t===r-1&&t===n+1?"":e.slice(t,r)},format:function(e){if(null===e||"object"!==typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+e+r:r}("/",e)},parse:function(e){o(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var n,r=e.charCodeAt(0),s=47===r;s?(t.root="/",n=1):n=0;for(var a=-1,i=0,l=-1,u=!0,c=e.length-1,d=0;c>=n;--c)if(47!==(r=e.charCodeAt(c)))-1===l&&(u=!1,l=c+1),46===r?-1===a?a=c:1!==d&&(d=1):-1!==a&&(d=-1);else if(!u){i=c+1;break}return-1===a||-1===l||0===d||1===d&&a===l-1&&a===i+1?-1!==l&&(t.base=t.name=0===i&&s?e.slice(1,l):e.slice(i,l)):(0===i&&s?(t.name=e.slice(1,a),t.base=e.slice(1,l)):(t.name=e.slice(i,a),t.base=e.slice(i,l)),t.ext=e.slice(a,l)),i>0?t.dir=e.slice(0,i-1):s&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};a.posix=a,e.exports=a},43290:(module,__unused_webpack_exports,__webpack_require__)=>{var __dirname="/",process=__webpack_require__(85224),Module=void 0!==Module?Module:{},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)=>{throw t},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,scriptDirectory="",read_,readAsync,readBinary,setWindowTitle;function locateFile(e){return Module.locateFile?Module.locateFile(e,scriptDirectory):scriptDirectory+e}function logExceptionOnExit(e){e instanceof ExitStatus||err("exiting due to exception: "+e)}if(ENVIRONMENT_IS_NODE){var fs=__webpack_require__(28075),nodePath=__webpack_require__(3133);scriptDirectory=ENVIRONMENT_IS_WORKER?nodePath.dirname(scriptDirectory)+"/":__dirname+"/",read_=(e,t)=>(e=isFileURI(e)?new URL(e):nodePath.normalize(e),fs.readFileSync(e,t?void 0:"utf8")),readBinary=e=>{var t=read_(e,!0);return t.buffer||(t=new Uint8Array(t)),t},readAsync=(e,t,n)=>{e=isFileURI(e)?new URL(e):nodePath.normalize(e),fs.readFile(e,(function(e,r){e?n(e):t(r.buffer)}))},process.argv.length>1&&(thisProgram=process.argv[1].replace(/\\/g,"/")),arguments_=process.argv.slice(2),module.exports=Module,quit_=(e,t)=>{if(keepRuntimeAlive())throw process.exitCode=e,t;logExceptionOnExit(t),process.exit(e)},Module.inspect=function(){return"[Emscripten Module object]"}}else(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)&&(ENVIRONMENT_IS_WORKER?scriptDirectory=self.location.href:void 0!==document&&document.currentScript&&(scriptDirectory=document.currentScript.src),scriptDirectory=0!==scriptDirectory.indexOf("blob:")?scriptDirectory.substr(0,scriptDirectory.replace(/[?#].*/,"").lastIndexOf("/")+1):"",read_=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},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,t,n)=>{var r=new XMLHttpRequest;r.open("GET",e,!0),r.responseType="arraybuffer",r.onload=()=>{200==r.status||0==r.status&&r.response?t(r.response):n()},r.onerror=n,r.send(null)},setWindowTitle=e=>document.title=e);var out=Module.print||console.log.bind(console),err=Module.printErr||console.warn.bind(console);Object.assign(Module,moduleOverrides),moduleOverrides=null,Module.arguments&&(arguments_=Module.arguments),Module.thisProgram&&(thisProgram=Module.thisProgram),Module.quit&&(quit_=Module.quit);var STACK_ALIGN=16,dynamicLibraries=Module.dynamicLibraries||[],wasmBinary;Module.wasmBinary&&(wasmBinary=Module.wasmBinary);var noExitRuntime=Module.noExitRuntime||!0,wasmMemory;"object"!=typeof WebAssembly&&abort("no native wasm support detected");var ABORT=!1,EXITSTATUS,UTF8Decoder="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,buffer,HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64;function UTF8ArrayToString(e,t,n){for(var r=t+n,o=t;e[o]&&!(o>=r);)++o;if(o-t>16&&e.buffer&&UTF8Decoder)return UTF8Decoder.decode(e.subarray(t,o));for(var s="";t<o;){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)s+=String.fromCharCode(a);else{var u=a-65536;s+=String.fromCharCode(55296|u>>10,56320|1023&u)}}else s+=String.fromCharCode((31&a)<<6|i)}else s+=String.fromCharCode(a)}return s}function UTF8ToString(e,t){return e?UTF8ArrayToString(HEAPU8,e,t):""}function stringToUTF8Array(e,t,n,r){if(!(r>0))return 0;for(var o=n,s=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>=s)break;t[n++]=i}else if(i<=2047){if(n+1>=s)break;t[n++]=192|i>>6,t[n++]=128|63&i}else if(i<=65535){if(n+2>=s)break;t[n++]=224|i>>12,t[n++]=128|i>>6&63,t[n++]=128|63&i}else{if(n+3>=s)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-o}function stringToUTF8(e,t,n){return stringToUTF8Array(e,HEAPU8,t,n)}function 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}function updateGlobalBufferAndViews(e){buffer=e,Module.HEAP8=HEAP8=new Int8Array(e),Module.HEAP16=HEAP16=new Int16Array(e),Module.HEAP32=HEAP32=new Int32Array(e),Module.HEAPU8=HEAPU8=new Uint8Array(e),Module.HEAPU16=HEAPU16=new Uint16Array(e),Module.HEAPU32=HEAPU32=new Uint32Array(e),Module.HEAPF32=HEAPF32=new Float32Array(e),Module.HEAPF64=HEAPF64=new Float64Array(e)}var INITIAL_MEMORY=Module.INITIAL_MEMORY||33554432;wasmMemory=Module.wasmMemory?Module.wasmMemory:new WebAssembly.Memory({initial:INITIAL_MEMORY/65536,maximum:32768}),wasmMemory&&(buffer=wasmMemory.buffer),INITIAL_MEMORY=buffer.byteLength,updateGlobalBufferAndViews(buffer);var wasmTable=new WebAssembly.Table({initial:20,element:"anyfunc"}),__ATPRERUN__=[],__ATINIT__=[],__ATMAIN__=[],__ATPOSTRUN__=[],__RELOC_FUNCS__=[],runtimeInitialized=!1;function keepRuntimeAlive(){return noExitRuntime}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 addRunDependency(e){runDependencies++,Module.monitorRunDependencies&&Module.monitorRunDependencies(runDependencies)}function removeRunDependency(e){if(runDependencies--,Module.monitorRunDependencies&&Module.monitorRunDependencies(runDependencies),0==runDependencies&&(null!==runDependencyWatcher&&(clearInterval(runDependencyWatcher),runDependencyWatcher=null),dependenciesFulfilled)){var t=dependenciesFulfilled;dependenciesFulfilled=null,t()}}function abort(e){throw Module.onAbort&&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,",wasmBinaryFile,tempDouble,tempI64;function isDataURI(e){return e.startsWith(dataURIPrefix)}function isFileURI(e){return e.startsWith("file://")}function getBinary(e){try{if(e==wasmBinaryFile&&wasmBinary)return new Uint8Array(wasmBinary);if(readBinary)return readBinary(e);throw"both async and sync fetching of the wasm failed"}catch(e){abort(e)}}function getBinaryPromise(){if(!wasmBinary&&(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)){if("function"==typeof fetch&&!isFileURI(wasmBinaryFile))return fetch(wasmBinaryFile,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load wasm binary file at '"+wasmBinaryFile+"'";return e.arrayBuffer()})).catch((function(){return getBinary(wasmBinaryFile)}));if(readAsync)return new Promise((function(e,t){readAsync(wasmBinaryFile,(function(t){e(new Uint8Array(t))}),t)}))}return Promise.resolve().then((function(){return getBinary(wasmBinaryFile)}))}function createWasm(){var e={env:asmLibraryArg,wasi_snapshot_preview1:asmLibraryArg,"GOT.mem":new Proxy(asmLibraryArg,GOTHandler),"GOT.func":new Proxy(asmLibraryArg,GOTHandler)};function t(e,t){var n=e.exports;n=relocateExports(n,1024);var r=getDylinkMetadata(t);r.neededDynlibs&&(dynamicLibraries=r.neededDynlibs.concat(dynamicLibraries)),mergeLibSymbols(n,"main"),Module.asm=n,addOnInit(Module.asm.__wasm_call_ctors),__RELOC_FUNCS__.push(Module.asm.__wasm_apply_data_relocs),removeRunDependency("wasm-instantiate")}function n(e){t(e.instance,e.module)}function r(t){return getBinaryPromise().then((function(t){return WebAssembly.instantiate(t,e)})).then((function(e){return e})).then(t,(function(e){err("failed to asynchronously prepare wasm: "+e),abort(e)}))}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 wasmBinary||"function"!=typeof WebAssembly.instantiateStreaming||isDataURI(wasmBinaryFile)||isFileURI(wasmBinaryFile)||ENVIRONMENT_IS_NODE||"function"!=typeof fetch?r(n):fetch(wasmBinaryFile,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(n,(function(e){return err("wasm streaming compile failed: "+e),err("falling back to ArrayBuffer instantiation"),r(n)}))})),{}}wasmBinaryFile="tree-sitter.wasm",isDataURI(wasmBinaryFile)||(wasmBinaryFile=locateFile(wasmBinaryFile));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:function(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}};function callRuntimeCallbacks(e){for(;e.length>0;)e.shift()(Module)}function getDylinkMetadata(e){var t=0,n=0;function r(){for(var n=0,r=1;;){var o=e[t++];if(n+=(127&o)*r,r*=128,!(128&o))break}return n}function o(){var n=r();return UTF8ArrayToString(e,(t+=n)-n,n)}function s(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)),s(0===i.length,"need dylink section"),n=(e=new Uint8Array(i[0])).length}else{s(!(1836278016==new Uint32Array(new Uint8Array(e.subarray(0,24)).buffer)[0]),"need to see wasm magic number"),s(0!==e[8],"need the dylink section to be first"),t=9;var l=r();n=t+l,a=o()}var u={neededDynlibs:[],tlsExports:new Set,weakImports:new Set};if("dylink"==a){u.memorySize=r(),u.memoryAlign=r(),u.tableSize=r(),u.tableAlign=r();for(var c=r(),d=0;d<c;++d){var p=o();u.neededDynlibs.push(p)}}else for(s("dylink.0"!==a);t<n;){var _=e[t++],h=r();if(1===_)u.memorySize=r(),u.memoryAlign=r(),u.tableSize=r(),u.tableAlign=r();else if(2===_)for(c=r(),d=0;d<c;++d)p=o(),u.neededDynlibs.push(p);else if(3===_)for(var m=r();m--;){var f=o();256&r()&&u.tlsExports.add(f)}else if(4===_)for(m=r();m--;)o(),f=o(),1==(3&r())&&u.weakImports.add(f);else t+=h}return u}function getValue(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"i8";switch(t.endsWith("*")&&(t="*"),t){case"i1":case"i8":return HEAP8[e|0];case"i16":return HEAP16[e>>1];case"i32":case"i64":return HEAP32[e>>2];case"float":return HEAPF32[e>>2];case"double":return HEAPF64[e>>3];case"*":return HEAPU32[e>>2];default:abort("invalid type for getValue: "+t)}return null}function asmjsMangle(e){return 0==e.indexOf("dynCall_")||["stackAlloc","stackSave","stackRestore","getTempRet0","setTempRet0"].includes(e)?e:"_"+e}function mergeLibSymbols(e,t){for(var n in e)if(e.hasOwnProperty(n)){asmLibraryArg.hasOwnProperty(n)||(asmLibraryArg[n]=e[n]);var r=asmjsMangle(n);Module.hasOwnProperty(r)||(Module[r]=e[n]),"__main_argc_argv"==n&&(Module._main=e[n])}}var LDSO={loadedLibsByName:{},loadedLibsByHandle:{}};function dynCallLegacy(e,t,n){var r=Module["dynCall_"+e];return n&&n.length?r.apply(null,[t].concat(n)):r.call(null,t)}var wasmTableMirror=[];function getWasmTableEntry(e){var t=wasmTableMirror[e];return t||(e>=wasmTableMirror.length&&(wasmTableMirror.length=e+1),wasmTableMirror[e]=t=wasmTable.get(e)),t}function dynCall(e,t,n){return e.includes("j")?dynCallLegacy(e,t,n):getWasmTableEntry(t).apply(null,n)}function createInvokeFunction(e){return function(){var t=stackSave();try{return dynCall(e,arguments[0],Array.prototype.slice.call(arguments,1))}catch(e){if(stackRestore(t),e!==e+0)throw e;_setThrew(1,0)}}}var ___heap_base=78144;function zeroMemory(e,t){return HEAPU8.fill(0,e,e+t),e}function getMemory(e){if(runtimeInitialized)return zeroMemory(_malloc(e),e);var t=___heap_base,n=t+e+15&-16;return ___heap_base=n,GOT.__heap_base.value=n,t}function isInternalSym(e){return["__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"].includes(e)}function uleb128Encode(e,t){e<128?t.push(e):t.push(e%128|128,e>>7)}function sigToWasmTypes(e){for(var t={i:"i32",j:"i32",f:"f32",d:"f64",p:"i32"},n={parameters:[],results:"v"==e[0]?[]:[t[e[0]]]},r=1;r<e.length;++r)n.parameters.push(t[e[r]]),"j"===e[r]&&n.parameters.push("i32");return n}function generateFuncType(e,t){var n=e.slice(0,1),r=e.slice(1),o={i:127,p:127,j:126,f:125,d:124};t.push(96),uleb128Encode(r.length,t);for(var s=0;s<r.length;++s)t.push(o[r[s]]);"v"==n?t.push(0):t.push(1,o[n])}function 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.apply(r,n),r.push(2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0);var o=new WebAssembly.Module(new Uint8Array(r));return new WebAssembly.Instance(o,{e:{f:e}}).exports.f}function updateTableMap(e,t){if(functionsInTableMap)for(var n=e;n<e+t;n++){var r=getWasmTableEntry(n);r&&functionsInTableMap.set(r,n)}}var functionsInTableMap=void 0,freeTableIndexes=[];function 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}function setWasmTableEntry(e,t){wasmTable.set(e,t),wasmTableMirror[e]=wasmTable.get(e)}function addFunction(e,t){if(functionsInTableMap||(functionsInTableMap=new WeakMap,updateTableMap(0,wasmTable.length)),functionsInTableMap.has(e))return functionsInTableMap.get(e);var n=getEmptyTableSlot();try{setWasmTableEntry(n,e)}catch(r){if(!(r instanceof TypeError))throw r;setWasmTableEntry(n,convertJsFunctionToWasm(e,t))}return functionsInTableMap.set(e,n),n}function 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]||(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))}}function relocateExports(e,t,n){var r={};for(var o in e){var s=e[o];"object"==typeof s&&(s=s.value),"number"==typeof s&&(s+=t),r[o]=s}return updateGOT(r,n),r}function resolveGlobalSymbol(e,t){var n;return t&&(n=asmLibraryArg["orig$"+e]),n||(n=asmLibraryArg[e])&&n.stub&&(n=void 0),n||(n=Module[asmjsMangle(e)]),!n&&e.startsWith("invoke_")&&(n=createInvokeFunction(e.split("_")[1])),n}function alignMemory(e,t){return Math.ceil(e/t)*t}function loadWebAssemblyModule(binary,flags,handle){var metadata=getDylinkMetadata(binary);function loadModule(){var firstLoad=!handle||!HEAP8[handle+12|0];if(firstLoad){var memAlign=Math.pow(2,metadata.memoryAlign);memAlign=Math.max(memAlign,STACK_ALIGN);var memoryBase=metadata.memorySize?alignMemory(getMemory(metadata.memorySize+memAlign),memAlign):0,tableBase=metadata.tableSize?wasmTable.length:0;handle&&(HEAP8[handle+12|0]=1,HEAPU32[handle+16>>2]=memoryBase,HEAP32[handle+20>>2]=metadata.memorySize,HEAPU32[handle+24>>2]=tableBase,HEAP32[handle+28>>2]=metadata.tableSize)}else memoryBase=HEAPU32[handle+16>>2],tableBase=HEAPU32[handle+24>>2];var tableGrowthNeeded=tableBase+metadata.tableSize-wasmTable.length,moduleExports;function resolveSymbol(e){var t=resolveGlobalSymbol(e,!1);return t||(t=moduleExports[e]),t}tableGrowthNeeded>0&&wasmTable.grow(tableGrowthNeeded);var proxyHandler={get:function(e,t){switch(t){case"__memory_base":return memoryBase;case"__table_base":return tableBase}return t in asmLibraryArg?asmLibraryArg[t]:(t in e||(e[t]=function(){return n||(n=resolveSymbol(t)),n.apply(null,arguments)}),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(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}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(instance))}return WebAssembly.instantiate(binary,info).then((function(e){return postInstantiation(e.instance)}))}var module=binary instanceof WebAssembly.Module?binary:new WebAssembly.Module(binary),instance=new WebAssembly.Instance(module,info);return postInstantiation(instance)}return CurrentModuleWeakSymbols=metadata.weakImports,flags.loadAsync?metadata.neededDynlibs.reduce((function(e,t){return e.then((function(){return loadDynamicLibrary(t,flags)}))}),Promise.resolve()).then((function(){return loadModule()})):(metadata.neededDynlibs.forEach((function(e){loadDynamicLibrary(e,flags)})),loadModule())}function loadDynamicLibrary(e,t,n){t=t||{global:!0,nodelete:!0};var r=LDSO.loadedLibsByName[e];if(r)return t.global&&!r.global&&(r.global=!0,"loading"!==r.module&&mergeLibSymbols(r.module,e)),t.nodelete&&r.refcount!==1/0&&(r.refcount=1/0),r.refcount++,n&&(LDSO.loadedLibsByHandle[n]=r),!t.loadAsync||Promise.resolve(!0);function o(e){if(t.fs&&t.fs.findObject(e)){var n=t.fs.readFile(e,{encoding:"binary"});return n instanceof Uint8Array||(n=new Uint8Array(n)),t.loadAsync?Promise.resolve(n):n}if(e=locateFile(e),t.loadAsync)return new Promise((function(t,n){readAsync(e,(e=>t(new Uint8Array(e))),n)}));if(!readBinary)throw new Error(e+": file not found, and synchronous loading of external files is not available");return readBinary(e)}function s(){if("undefined"!=typeof preloadedWasm&&preloadedWasm[e]){var r=preloadedWasm[e];return t.loadAsync?Promise.resolve(r):r}return t.loadAsync?o(e).then((function(e){return loadWebAssemblyModule(e,t,n)})):loadWebAssemblyModule(o(e),t,n)}function a(t){r.global&&mergeLibSymbols(t,e),r.module=t}return r={refcount:t.nodelete?1/0:1,name:e,module:"loading",global:t.global},LDSO.loadedLibsByName[e]=r,n&&(LDSO.loadedLibsByHandle[n]=r),t.loadAsync?s().then((function(e){return a(e),!0})):(a(s()),!0)}function reportUndefinedSymbols(){for(var e in GOT)if(0==GOT[e].value){var t=resolveGlobalSymbol(e,!0);if(!t&&!GOT[e].required)continue;if("function"==typeof t)GOT[e].value=addFunction(t,t.sig);else{if("number"!=typeof t)throw new Error("bad export type for `"+e+"`: "+typeof t);GOT[e].value=t}}}function preloadDylibs(){dynamicLibraries.length?(addRunDependency("preloadDylibs"),dynamicLibraries.reduce((function(e,t){return e.then((function(){return loadDynamicLibrary(t,{loadAsync:!0,global:!0,nodelete:!0,allowUndefined:!0})}))}),Promise.resolve()).then((function(){reportUndefinedSymbols(),removeRunDependency("preloadDylibs")}))):reportUndefinedSymbols()}function setValue(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"i8";switch(n.endsWith("*")&&(n="*"),n){case"i1":case"i8":HEAP8[e|0]=t;break;case"i16":HEAP16[e>>1]=t;break;case"i32":HEAP32[e>>2]=t;break;case"i64":tempI64=[t>>>0,(tempDouble=t,+Math.abs(tempDouble)>=1?tempDouble>0?(0|Math.min(+Math.floor(tempDouble/4294967296),4294967295))>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[e>>2]=tempI64[0],HEAP32[e+4>>2]=tempI64[1];break;case"float":HEAPF32[e>>2]=t;break;case"double":HEAPF64[e>>3]=t;break;case"*":HEAPU32[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},78144),___table_base=new WebAssembly.Global({value:"i32",mutable:!1},1),nowIsMonotonic=!0,_emscripten_get_now;function __emscripten_get_now_is_monotonic(){return nowIsMonotonic}function _abort(){abort("")}function _emscripten_date_now(){return Date.now()}function _emscripten_memcpy_big(e,t,n){HEAPU8.copyWithin(e,t,t+n)}function getHeapMax(){return 2147483648}function emscripten_realloc_buffer(e){try{return wasmMemory.grow(e-buffer.byteLength+65535>>>16),updateGlobalBufferAndViews(wasmMemory.buffer),1}catch(e){}}function _emscripten_resize_heap(e){var t=HEAPU8.length;e>>>=0;var n,r=getHeapMax();if(e>r)return!1;for(var o=1;o<=4;o*=2){var s=t*(1+.2/o);if(s=Math.min(s,e+100663296),emscripten_realloc_buffer(Math.min(r,(n=Math.max(e,s))+(65536-n%65536)%65536)))return!0}return!1}__emscripten_get_now_is_monotonic.sig="i",Module._abort=_abort,_abort.sig="v",_emscripten_date_now.sig="d",_emscripten_get_now=ENVIRONMENT_IS_NODE?()=>{var e=process.hrtime();return 1e3*e[0]+e[1]/1e6}:()=>performance.now(),_emscripten_get_now.sig="d",_emscripten_memcpy_big.sig="vppp",_emscripten_resize_heap.sig="ip";var SYSCALLS={DEFAULT_POLLMASK:5,calculateAt:function(e,t,n){if(PATH.isAbs(t))return t;var r;if(r=-100===e?FS.cwd():SYSCALLS.getStreamFromFD(e).path,0==t.length){if(!n)throw new FS.ErrnoError(44);return r}return PATH.join2(r,t)},doStat:function(e,t,n){try{var r=e(t)}catch(e){if(e&&e.node&&PATH.normalize(t)!==PATH.normalize(FS.getPath(e.node)))return-54;throw e}HEAP32[n>>2]=r.dev,HEAP32[n+8>>2]=r.ino,HEAP32[n+12>>2]=r.mode,HEAPU32[n+16>>2]=r.nlink,HEAP32[n+20>>2]=r.uid,HEAP32[n+24>>2]=r.gid,HEAP32[n+28>>2]=r.rdev,tempI64=[r.size>>>0,(tempDouble=r.size,+Math.abs(tempDouble)>=1?tempDouble>0?(0|Math.min(+Math.floor(tempDouble/4294967296),4294967295))>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[n+40>>2]=tempI64[0],HEAP32[n+44>>2]=tempI64[1],HEAP32[n+48>>2]=4096,HEAP32[n+52>>2]=r.blocks;var o=r.atime.getTime(),s=r.mtime.getTime(),a=r.ctime.getTime();return tempI64=[Math.floor(o/1e3)>>>0,(tempDouble=Math.floor(o/1e3),+Math.abs(tempDouble)>=1?tempDouble>0?(0|Math.min(+Math.floor(tempDouble/4294967296),4294967295))>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[n+56>>2]=tempI64[0],HEAP32[n+60>>2]=tempI64[1],HEAPU32[n+64>>2]=o%1e3*1e3,tempI64=[Math.floor(s/1e3)>>>0,(tempDouble=Math.floor(s/1e3),+Math.abs(tempDouble)>=1?tempDouble>0?(0|Math.min(+Math.floor(tempDouble/4294967296),4294967295))>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[n+72>>2]=tempI64[0],HEAP32[n+76>>2]=tempI64[1],HEAPU32[n+80>>2]=s%1e3*1e3,tempI64=[Math.floor(a/1e3)>>>0,(tempDouble=Math.floor(a/1e3),+Math.abs(tempDouble)>=1?tempDouble>0?(0|Math.min(+Math.floor(tempDouble/4294967296),4294967295))>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[n+88>>2]=tempI64[0],HEAP32[n+92>>2]=tempI64[1],HEAPU32[n+96>>2]=a%1e3*1e3,tempI64=[r.ino>>>0,(tempDouble=r.ino,+Math.abs(tempDouble)>=1?tempDouble>0?(0|Math.min(+Math.floor(tempDouble/4294967296),4294967295))>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[n+104>>2]=tempI64[0],HEAP32[n+108>>2]=tempI64[1],0},doMsync:function(e,t,n,r,o){if(!FS.isFile(t.node.mode))throw new FS.ErrnoError(43);if(2&r)return 0;var s=HEAPU8.slice(e,e+n);FS.msync(t,s,o,n,r)},varargs:void 0,get:function(){return SYSCALLS.varargs+=4,HEAP32[SYSCALLS.varargs-4>>2]},getStr:function(e){return UTF8ToString(e)},getStreamFromFD:function(e){var t=FS.getStream(e);if(!t)throw new FS.ErrnoError(8);return t}};function _proc_exit(e){EXITSTATUS=e,keepRuntimeAlive()||(Module.onExit&&Module.onExit(e),ABORT=!0),quit_(e,new ExitStatus(e))}function exitJS(e,t){EXITSTATUS=e,_proc_exit(e)}_proc_exit.sig="vi";var _exit=exitJS;function _fd_close(e){try{var t=SYSCALLS.getStreamFromFD(e);return FS.close(t),0}catch(e){if("undefined"==typeof FS||!(e instanceof FS.ErrnoError))throw e;return e.errno}}function convertI32PairToI53Checked(e,t){return t+2097152>>>0<4194305-!!e?(e>>>0)+4294967296*t:NaN}function _fd_seek(e,t,n,r,o){try{var s=convertI32PairToI53Checked(t,n);if(isNaN(s))return 61;var a=SYSCALLS.getStreamFromFD(e);return FS.llseek(a,s,r),tempI64=[a.position>>>0,(tempDouble=a.position,+Math.abs(tempDouble)>=1?tempDouble>0?(0|Math.min(+Math.floor(tempDouble/4294967296),4294967295))>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[o>>2]=tempI64[0],HEAP32[o+4>>2]=tempI64[1],a.getdents&&0===s&&0===r&&(a.getdents=null),0}catch(e){if("undefined"==typeof FS||!(e instanceof FS.ErrnoError))throw e;return e.errno}}function doWritev(e,t,n,r){for(var o=0,s=0;s<n;s++){var a=HEAPU32[t>>2],i=HEAPU32[t+4>>2];t+=8;var l=FS.write(e,HEAP8,a,i,r);if(l<0)return-1;o+=l,void 0!==r&&(r+=l)}return o}function _fd_write(e,t,n,r){try{var o=doWritev(SYSCALLS.getStreamFromFD(e),t,n);return HEAPU32[r>>2]=o,0}catch(e){if("undefined"==typeof FS||!(e instanceof FS.ErrnoError))throw e;return e.errno}}function _tree_sitter_log_callback(e,t){if(currentLogCallback){const n=UTF8ToString(t);currentLogCallback(n,0!==e)}}function _tree_sitter_parse_callback(e,t,n,r,o){var s=currentParseCallback(t,{row:n,column:r});"string"==typeof s?(setValue(o,s.length,"i32"),stringToUTF16(s,e,10240)):setValue(o,0,"i32")}function handleException(e){if(e instanceof ExitStatus||"unwind"==e)return EXITSTATUS;quit_(1,e)}function allocateUTF8OnStack(e){var t=lengthBytesUTF8(e)+1,n=stackAlloc(t);return stringToUTF8Array(e,HEAP8,n,t),n}function stringToUTF16(e,t,n){if(void 0===n&&(n=2147483647),n<2)return 0;for(var r=t,o=(n-=2)<2*e.length?n/2:e.length,s=0;s<o;++s){var a=e.charCodeAt(s);HEAP16[t>>1]=a,t+=2}return HEAP16[t>>1]=0,t-r}function AsciiToString(e){for(var t="";;){var n=HEAPU8[e++|0];if(!n)return t;t+=String.fromCharCode(n)}}_exit.sig="vi",_fd_close.sig="ii",_fd_seek.sig="iijip",_fd_write.sig="iippp";var asmLibraryArg={__heap_base:___heap_base,__indirect_function_table:wasmTable,__memory_base:___memory_base,__stack_pointer:___stack_pointer,__table_base:___table_base,_emscripten_get_now_is_monotonic:__emscripten_get_now_is_monotonic,abort:_abort,emscripten_get_now:_emscripten_get_now,emscripten_memcpy_big:_emscripten_memcpy_big,emscripten_resize_heap:_emscripten_resize_heap,exit:_exit,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},asm=createWasm(),___wasm_call_ctors=Module.___wasm_call_ctors=function(){return(___wasm_call_ctors=Module.___wasm_call_ctors=Module.asm.__wasm_call_ctors).apply(null,arguments)},___wasm_apply_data_relocs=Module.___wasm_apply_data_relocs=function(){return(___wasm_apply_data_relocs=Module.___wasm_apply_data_relocs=Module.asm.__wasm_apply_data_relocs).apply(null,arguments)},_malloc=Module._malloc=function(){return(_malloc=Module._malloc=Module.asm.malloc).apply(null,arguments)},_calloc=Module._calloc=function(){return(_calloc=Module._calloc=Module.asm.calloc).apply(null,arguments)},_realloc=Module._realloc=function(){return(_realloc=Module._realloc=Module.asm.realloc).apply(null,arguments)},_free=Module._free=function(){return(_free=Module._free=Module.asm.free).apply(null,arguments)},_ts_language_symbol_count=Module._ts_language_symbol_count=function(){return(_ts_language_symbol_count=Module._ts_language_symbol_count=Module.asm.ts_language_symbol_count).apply(null,arguments)},_ts_language_version=Module._ts_language_version=function(){return(_ts_language_version=Module._ts_language_version=Module.asm.ts_language_version).apply(null,arguments)},_ts_language_field_count=Module._ts_language_field_count=function(){return(_ts_language_field_count=Module._ts_language_field_count=Module.asm.ts_language_field_count).apply(null,arguments)},_ts_language_symbol_name=Module._ts_language_symbol_name=function(){return(_ts_language_symbol_name=Module._ts_language_symbol_name=Module.asm.ts_language_symbol_name).apply(null,arguments)},_ts_language_symbol_for_name=Module._ts_language_symbol_for_name=function(){return(_ts_language_symbol_for_name=Module._ts_language_symbol_for_name=Module.asm.ts_language_symbol_for_name).apply(null,arguments)},_ts_language_symbol_type=Module._ts_language_symbol_type=function(){return(_ts_language_symbol_type=Module._ts_language_symbol_type=Module.asm.ts_language_symbol_type).apply(null,arguments)},_ts_language_field_name_for_id=Module._ts_language_field_name_for_id=function(){return(_ts_language_field_name_for_id=Module._ts_language_field_name_for_id=Module.asm.ts_language_field_name_for_id).apply(null,arguments)},_memset=Module._memset=function(){return(_memset=Module._memset=Module.asm.memset).apply(null,arguments)},_memcpy=Module._memcpy=function(){return(_memcpy=Module._memcpy=Module.asm.memcpy).apply(null,arguments)},_ts_parser_delete=Module._ts_parser_delete=function(){return(_ts_parser_delete=Module._ts_parser_delete=Module.asm.ts_parser_delete).apply(null,arguments)},_ts_parser_reset=Module._ts_parser_reset=function(){return(_ts_parser_reset=Module._ts_parser_reset=Module.asm.ts_parser_reset).apply(null,arguments)},_ts_parser_set_language=Module._ts_parser_set_language=function(){return(_ts_parser_set_language=Module._ts_parser_set_language=Module.asm.ts_parser_set_language).apply(null,arguments)},_ts_parser_timeout_micros=Module._ts_parser_timeout_micros=function(){return(_ts_parser_timeout_micros=Module._ts_parser_timeout_micros=Module.asm.ts_parser_timeout_micros).apply(null,arguments)},_ts_parser_set_timeout_micros=Module._ts_parser_set_timeout_micros=function(){return(_ts_parser_set_timeout_micros=Module._ts_parser_set_timeout_micros=Module.asm.ts_parser_set_timeout_micros).apply(null,arguments)},_memmove=Module._memmove=function(){return(_memmove=Module._memmove=Module.asm.memmove).apply(null,arguments)},_memcmp=Module._memcmp=function(){return(_memcmp=Module._memcmp=Module.asm.memcmp).apply(null,arguments)},_ts_query_new=Module._ts_query_new=function(){return(_ts_query_new=Module._ts_query_new=Module.asm.ts_query_new).apply(null,arguments)},_ts_query_delete=Module._ts_query_delete=function(){return(_ts_query_delete=Module._ts_query_delete=Module.asm.ts_query_delete).apply(null,arguments)},_iswspace=Module._iswspace=function(){return(_iswspace=Module._iswspace=Module.asm.iswspace).apply(null,arguments)},_iswalnum=Module._iswalnum=function(){return(_iswalnum=Module._iswalnum=Module.asm.iswalnum).apply(null,arguments)},_ts_query_pattern_count=Module._ts_query_pattern_count=function(){return(_ts_query_pattern_count=Module._ts_query_pattern_count=Module.asm.ts_query_pattern_count).apply(null,arguments)},_ts_query_capture_count=Module._ts_query_capture_count=function(){return(_ts_query_capture_count=Module._ts_query_capture_count=Module.asm.ts_query_capture_count).apply(null,arguments)},_ts_query_string_count=Module._ts_query_string_count=function(){return(_ts_query_string_count=Module._ts_query_string_count=Module.asm.ts_query_string_count).apply(null,arguments)},_ts_query_capture_name_for_id=Module._ts_query_capture_name_for_id=function(){return(_ts_query_capture_name_for_id=Module._ts_query_capture_name_for_id=Module.asm.ts_query_capture_name_for_id).apply(null,arguments)},_ts_query_string_value_for_id=Module._ts_query_string_value_for_id=function(){return(_ts_query_string_value_for_id=Module._ts_query_string_value_for_id=Module.asm.ts_query_string_value_for_id).apply(null,arguments)},_ts_query_predicates_for_pattern=Module._ts_query_predicates_for_pattern=function(){return(_ts_query_predicates_for_pattern=Module._ts_query_predicates_for_pattern=Module.asm.ts_query_predicates_for_pattern).apply(null,arguments)},_ts_tree_copy=Module._ts_tree_copy=function(){return(_ts_tree_copy=Module._ts_tree_copy=Module.asm.ts_tree_copy).apply(null,arguments)},_ts_tree_delete=Module._ts_tree_delete=function(){return(_ts_tree_delete=Module._ts_tree_delete=Module.asm.ts_tree_delete).apply(null,arguments)},_ts_init=Module._ts_init=function(){return(_ts_init=Module._ts_init=Module.asm.ts_init).apply(null,arguments)},_ts_parser_new_wasm=Module._ts_parser_new_wasm=function(){return(_ts_parser_new_wasm=Module._ts_parser_new_wasm=Module.asm.ts_parser_new_wasm).apply(null,arguments)},_ts_parser_enable_logger_wasm=Module._ts_parser_enable_logger_wasm=function(){return(_ts_parser_enable_logger_wasm=Module._ts_parser_enable_logger_wasm=Module.asm.ts_parser_enable_logger_wasm).apply(null,arguments)},_ts_parser_parse_wasm=Module._ts_parser_parse_wasm=function(){return(_ts_parser_parse_wasm=Module._ts_parser_parse_wasm=Module.asm.ts_parser_parse_wasm).apply(null,arguments)},_ts_language_type_is_named_wasm=Module._ts_language_type_is_named_wasm=function(){return(_ts_language_type_is_named_wasm=Module._ts_language_type_is_named_wasm=Module.asm.ts_language_type_is_named_wasm).apply(null,arguments)},_ts_language_type_is_visible_wasm=Module._ts_language_type_is_visible_wasm=function(){return(_ts_language_type_is_visible_wasm=Module._ts_language_type_is_visible_wasm=Module.asm.ts_language_type_is_visible_wasm).apply(null,arguments)},_ts_tree_root_node_wasm=Module._ts_tree_root_node_wasm=function(){return(_ts_tree_root_node_wasm=Module._ts_tree_root_node_wasm=Module.asm.ts_tree_root_node_wasm).apply(null,arguments)},_ts_tree_edit_wasm=Module._ts_tree_edit_wasm=function(){return(_ts_tree_edit_wasm=Module._ts_tree_edit_wasm=Module.asm.ts_tree_edit_wasm).apply(null,arguments)},_ts_tree_get_changed_ranges_wasm=Module._ts_tree_get_changed_ranges_wasm=function(){return(_ts_tree_get_changed_ranges_wasm=Module._ts_tree_get_changed_ranges_wasm=Module.asm.ts_tree_get_changed_ranges_wasm).apply(null,arguments)},_ts_tree_cursor_new_wasm=Module._ts_tree_cursor_new_wasm=function(){return(_ts_tree_cursor_new_wasm=Module._ts_tree_cursor_new_wasm=Module.asm.ts_tree_cursor_new_wasm).apply(null,arguments)},_ts_tree_cursor_delete_wasm=Module._ts_tree_cursor_delete_wasm=function(){return(_ts_tree_cursor_delete_wasm=Module._ts_tree_cursor_delete_wasm=Module.asm.ts_tree_cursor_delete_wasm).apply(null,arguments)},_ts_tree_cursor_reset_wasm=Module._ts_tree_cursor_reset_wasm=function(){return(_ts_tree_cursor_reset_wasm=Module._ts_tree_cursor_reset_wasm=Module.asm.ts_tree_cursor_reset_wasm).apply(null,arguments)},_ts_tree_cursor_goto_first_child_wasm=Module._ts_tree_cursor_goto_first_child_wasm=function(){return(_ts_tree_cursor_goto_first_child_wasm=Module._ts_tree_cursor_goto_first_child_wasm=Module.asm.ts_tree_cursor_goto_first_child_wasm).apply(null,arguments)},_ts_tree_cursor_goto_next_sibling_wasm=Module._ts_tree_cursor_goto_next_sibling_wasm=function(){return(_ts_tree_cursor_goto_next_sibling_wasm=Module._ts_tree_cursor_goto_next_sibling_wasm=Module.asm.ts_tree_cursor_goto_next_sibling_wasm).apply(null,arguments)},_ts_tree_cursor_goto_parent_wasm=Module._ts_tree_cursor_goto_parent_wasm=function(){return(_ts_tree_cursor_goto_parent_wasm=Module._ts_tree_cursor_goto_parent_wasm=Module.asm.ts_tree_cursor_goto_parent_wasm).apply(null,arguments)},_ts_tree_cursor_current_node_type_id_wasm=Module._ts_tree_cursor_current_node_type_id_wasm=function(){return(_ts_tree_cursor_current_node_type_id_wasm=Module._ts_tree_cursor_current_node_type_id_wasm=Module.asm.ts_tree_cursor_current_node_type_id_wasm).apply(null,arguments)},_ts_tree_cursor_current_node_is_named_wasm=Module._ts_tree_cursor_current_node_is_named_wasm=function(){return(_ts_tree_cursor_current_node_is_named_wasm=Module._ts_tree_cursor_current_node_is_named_wasm=Module.asm.ts_tree_cursor_current_node_is_named_wasm).apply(null,arguments)},_ts_tree_cursor_current_node_is_missing_wasm=Module._ts_tree_cursor_current_node_is_missing_wasm=function(){return(_ts_tree_cursor_current_node_is_missing_wasm=Module._ts_tree_cursor_current_node_is_missing_wasm=Module.asm.ts_tree_cursor_current_node_is_missing_wasm).apply(null,arguments)},_ts_tree_cursor_current_node_id_wasm=Module._ts_tree_cursor_current_node_id_wasm=function(){return(_ts_tree_cursor_current_node_id_wasm=Module._ts_tree_cursor_current_node_id_wasm=Module.asm.ts_tree_cursor_current_node_id_wasm).apply(null,arguments)},_ts_tree_cursor_start_position_wasm=Module._ts_tree_cursor_start_position_wasm=function(){return(_ts_tree_cursor_start_position_wasm=Module._ts_tree_cursor_start_position_wasm=Module.asm.ts_tree_cursor_start_position_wasm).apply(null,arguments)},_ts_tree_cursor_end_position_wasm=Module._ts_tree_cursor_end_position_wasm=function(){return(_ts_tree_cursor_end_position_wasm=Module._ts_tree_cursor_end_position_wasm=Module.asm.ts_tree_cursor_end_position_wasm).apply(null,arguments)},_ts_tree_cursor_start_index_wasm=Module._ts_tree_cursor_start_index_wasm=function(){return(_ts_tree_cursor_start_index_wasm=Module._ts_tree_cursor_start_index_wasm=Module.asm.ts_tree_cursor_start_index_wasm).apply(null,arguments)},_ts_tree_cursor_end_index_wasm=Module._ts_tree_cursor_end_index_wasm=function(){return(_ts_tree_cursor_end_index_wasm=Module._ts_tree_cursor_end_index_wasm=Module.asm.ts_tree_cursor_end_index_wasm).apply(null,arguments)},_ts_tree_cursor_current_field_id_wasm=Module._ts_tree_cursor_current_field_id_wasm=function(){return(_ts_tree_cursor_current_field_id_wasm=Module._ts_tree_cursor_current_field_id_wasm=Module.asm.ts_tree_cursor_current_field_id_wasm).apply(null,arguments)},_ts_tree_cursor_current_node_wasm=Module._ts_tree_cursor_current_node_wasm=function(){return(_ts_tree_cursor_current_node_wasm=Module._ts_tree_cursor_current_node_wasm=Module.asm.ts_tree_cursor_current_node_wasm).apply(null,arguments)},_ts_node_symbol_wasm=Module._ts_node_symbol_wasm=function(){return(_ts_node_symbol_wasm=Module._ts_node_symbol_wasm=Module.asm.ts_node_symbol_wasm).apply(null,arguments)},_ts_node_child_count_wasm=Module._ts_node_child_count_wasm=function(){return(_ts_node_child_count_wasm=Module._ts_node_child_count_wasm=Module.asm.ts_node_child_count_wasm).apply(null,arguments)},_ts_node_named_child_count_wasm=Module._ts_node_named_child_count_wasm=function(){return(_ts_node_named_child_count_wasm=Module._ts_node_named_child_count_wasm=Module.asm.ts_node_named_child_count_wasm).apply(null,arguments)},_ts_node_child_wasm=Module._ts_node_child_wasm=function(){return(_ts_node_child_wasm=Module._ts_node_child_wasm=Module.asm.ts_node_child_wasm).apply(null,arguments)},_ts_node_named_child_wasm=Module._ts_node_named_child_wasm=function(){return(_ts_node_named_child_wasm=Module._ts_node_named_child_wasm=Module.asm.ts_node_named_child_wasm).apply(null,arguments)},_ts_node_child_by_field_id_wasm=Module._ts_node_child_by_field_id_wasm=function(){return(_ts_node_child_by_field_id_wasm=Module._ts_node_child_by_field_id_wasm=Module.asm.ts_node_child_by_field_id_wasm).apply(null,arguments)},_ts_node_next_sibling_wasm=Module._ts_node_next_sibling_wasm=function(){return(_ts_node_next_sibling_wasm=Module._ts_node_next_sibling_wasm=Module.asm.ts_node_next_sibling_wasm).apply(null,arguments)},_ts_node_prev_sibling_wasm=Module._ts_node_prev_sibling_wasm=function(){return(_ts_node_prev_sibling_wasm=Module._ts_node_prev_sibling_wasm=Module.asm.ts_node_prev_sibling_wasm).apply(null,arguments)},_ts_node_next_named_sibling_wasm=Module._ts_node_next_named_sibling_wasm=function(){return(_ts_node_next_named_sibling_wasm=Module._ts_node_next_named_sibling_wasm=Module.asm.ts_node_next_named_sibling_wasm).apply(null,arguments)},_ts_node_prev_named_sibling_wasm=Module._ts_node_prev_named_sibling_wasm=function(){return(_ts_node_prev_named_sibling_wasm=Module._ts_node_prev_named_sibling_wasm=Module.asm.ts_node_prev_named_sibling_wasm).apply(null,arguments)},_ts_node_parent_wasm=Module._ts_node_parent_wasm=function(){return(_ts_node_parent_wasm=Module._ts_node_parent_wasm=Module.asm.ts_node_parent_wasm).apply(null,arguments)},_ts_node_descendant_for_index_wasm=Module._ts_node_descendant_for_index_wasm=function(){return(_ts_node_descendant_for_index_wasm=Module._ts_node_descendant_for_index_wasm=Module.asm.ts_node_descendant_for_index_wasm).apply(null,arguments)},_ts_node_named_descendant_for_index_wasm=Module._ts_node_named_descendant_for_index_wasm=function(){return(_ts_node_named_descendant_for_index_wasm=Module._ts_node_named_descendant_for_index_wasm=Module.asm.ts_node_named_descendant_for_index_wasm).apply(null,arguments)},_ts_node_descendant_for_position_wasm=Module._ts_node_descendant_for_position_wasm=function(){return(_ts_node_descendant_for_position_wasm=Module._ts_node_descendant_for_position_wasm=Module.asm.ts_node_descendant_for_position_wasm).apply(null,arguments)},_ts_node_named_descendant_for_position_wasm=Module._ts_node_named_descendant_for_position_wasm=function(){return(_ts_node_named_descendant_for_position_wasm=Module._ts_node_named_descendant_for_position_wasm=Module.asm.ts_node_named_descendant_for_position_wasm).apply(null,arguments)},_ts_node_start_point_wasm=Module._ts_node_start_point_wasm=function(){return(_ts_node_start_point_wasm=Module._ts_node_start_point_wasm=Module.asm.ts_node_start_point_wasm).apply(null,arguments)},_ts_node_end_point_wasm=Module._ts_node_end_point_wasm=function(){return(_ts_node_end_point_wasm=Module._ts_node_end_point_wasm=Module.asm.ts_node_end_point_wasm).apply(null,arguments)},_ts_node_start_index_wasm=Module._ts_node_start_index_wasm=function(){return(_ts_node_start_index_wasm=Module._ts_node_start_index_wasm=Module.asm.ts_node_start_index_wasm).apply(null,arguments)},_ts_node_end_index_wasm=Module._ts_node_end_index_wasm=function(){return(_ts_node_end_index_wasm=Module._ts_node_end_index_wasm=Module.asm.ts_node_end_index_wasm).apply(null,arguments)},_ts_node_to_string_wasm=Module._ts_node_to_string_wasm=function(){return(_ts_node_to_string_wasm=Module._ts_node_to_string_wasm=Module.asm.ts_node_to_string_wasm).apply(null,arguments)},_ts_node_children_wasm=Module._ts_node_children_wasm=function(){return(_ts_node_children_wasm=Module._ts_node_children_wasm=Module.asm.ts_node_children_wasm).apply(null,arguments)},_ts_node_named_children_wasm=Module._ts_node_named_children_wasm=function(){return(_ts_node_named_children_wasm=Module._ts_node_named_children_wasm=Module.asm.ts_node_named_children_wasm).apply(null,arguments)},_ts_node_descendants_of_type_wasm=Module._ts_node_descendants_of_type_wasm=function(){return(_ts_node_descendants_of_type_wasm=Module._ts_node_descendants_of_type_wasm=Module.asm.ts_node_descendants_of_type_wasm).apply(null,arguments)},_ts_node_is_named_wasm=Module._ts_node_is_named_wasm=function(){return(_ts_node_is_named_wasm=Module._ts_node_is_named_wasm=Module.asm.ts_node_is_named_wasm).apply(null,arguments)},_ts_node_has_changes_wasm=Module._ts_node_has_changes_wasm=function(){return(_ts_node_has_changes_wasm=Module._ts_node_has_changes_wasm=Module.asm.ts_node_has_changes_wasm).apply(null,arguments)},_ts_node_has_error_wasm=Module._ts_node_has_error_wasm=function(){return(_ts_node_has_error_wasm=Module._ts_node_has_error_wasm=Module.asm.ts_node_has_error_wasm).apply(null,arguments)},_ts_node_is_missing_wasm=Module._ts_node_is_missing_wasm=function(){return(_ts_node_is_missing_wasm=Module._ts_node_is_missing_wasm=Module.asm.ts_node_is_missing_wasm).apply(null,arguments)},_ts_query_matches_wasm=Module._ts_query_matches_wasm=function(){return(_ts_query_matches_wasm=Module._ts_query_matches_wasm=Module.asm.ts_query_matches_wasm).apply(null,arguments)},_ts_query_captures_wasm=Module._ts_query_captures_wasm=function(){return(_ts_query_captures_wasm=Module._ts_query_captures_wasm=Module.asm.ts_query_captures_wasm).apply(null,arguments)},___cxa_atexit=Module.___cxa_atexit=function(){return(___cxa_atexit=Module.___cxa_atexit=Module.asm.__cxa_atexit).apply(null,arguments)},_iswdigit=Module._iswdigit=function(){return(_iswdigit=Module._iswdigit=Module.asm.iswdigit).apply(null,arguments)},_iswalpha=Module._iswalpha=function(){return(_iswalpha=Module._iswalpha=Module.asm.iswalpha).apply(null,arguments)},_iswlower=Module._iswlower=function(){return(_iswlower=Module._iswlower=Module.asm.iswlower).apply(null,arguments)},_memchr=Module._memchr=function(){return(_memchr=Module._memchr=Module.asm.memchr).apply(null,arguments)},_strlen=Module._strlen=function(){return(_strlen=Module._strlen=Module.asm.strlen).apply(null,arguments)},_towupper=Module._towupper=function(){return(_towupper=Module._towupper=Module.asm.towupper).apply(null,arguments)},_setThrew=Module._setThrew=function(){return(_setThrew=Module._setThrew=Module.asm.setThrew).apply(null,arguments)},stackSave=Module.stackSave=function(){return(stackSave=Module.stackSave=Module.asm.stackSave).apply(null,arguments)},stackRestore=Module.stackRestore=function(){return(stackRestore=Module.stackRestore=Module.asm.stackRestore).apply(null,arguments)},stackAlloc=Module.stackAlloc=function(){return(stackAlloc=Module.stackAlloc=Module.asm.stackAlloc).apply(null,arguments)},__Znwm=Module.__Znwm=function(){return(__Znwm=Module.__Znwm=Module.asm._Znwm).apply(null,arguments)},__ZdlPv=Module.__ZdlPv=function(){return(__ZdlPv=Module.__ZdlPv=Module.asm._ZdlPv).apply(null,arguments)},__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=function(){return(__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=Module.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev).apply(null,arguments)},__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=function(){return(__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=Module.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm).apply(null,arguments)},__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=function(){return(__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=Module.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm).apply(null,arguments)},__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=function(){return(__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=Module.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm).apply(null,arguments)},__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=Module.__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=function(){return(__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=Module.__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=Module.asm._ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm).apply(null,arguments)},__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=function(){return(__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=Module.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc).apply(null,arguments)},__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=Module.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=function(){return(__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=Module.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=Module.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev).apply(null,arguments)},__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=Module.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=function(){return(__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=Module.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=Module.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw).apply(null,arguments)},__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE6resizeEmw=Module.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE6resizeEmw=function(){return(__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE6resizeEmw=Module.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE6resizeEmw=Module.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE6resizeEmw).apply(null,arguments)},dynCall_jiji=Module.dynCall_jiji=function(){return(dynCall_jiji=Module.dynCall_jiji=Module.asm.dynCall_jiji).apply(null,arguments)},_orig$ts_parser_timeout_micros=Module._orig$ts_parser_timeout_micros=function(){return(_orig$ts_parser_timeout_micros=Module._orig$ts_parser_timeout_micros=Module.asm.orig$ts_parser_timeout_micros).apply(null,arguments)},_orig$ts_parser_set_timeout_micros=Module._orig$ts_parser_set_timeout_micros=function(){return(_orig$ts_parser_set_timeout_micros=Module._orig$ts_parser_set_timeout_micros=Module.asm.orig$ts_parser_set_timeout_micros).apply(null,arguments)},calledRun;function callMain(e){var t=Module._main;if(t){(e=e||[]).unshift(thisProgram);var n=e.length,r=stackAlloc(4*(n+1)),o=r>>2;e.forEach((e=>{HEAP32[o++]=allocateUTF8OnStack(e)})),HEAP32[o]=0;try{var s=t(n,r);return exitJS(s,!0),s}catch(e){return handleException(e)}}}Module.AsciiToString=AsciiToString,Module.stringToUTF16=stringToUTF16,dependenciesFulfilled=function e(){calledRun||run(),calledRun||(dependenciesFulfilled=e)};var dylibsLoaded=!1;function run(e){function t(){calledRun||(calledRun=!0,Module.calledRun=!0,ABORT||(initRuntime(),preMain(),Module.onRuntimeInitialized&&Module.onRuntimeInitialized(),shouldRunNow&&callMain(e),postRun()))}e=e||arguments_,runDependencies>0||!dylibsLoaded&&(preloadDylibs(),dylibsLoaded=!0,runDependencies>0)||(preRun(),runDependencies>0||(Module.setStatus?(Module.setStatus("Running..."),setTimeout((function(){setTimeout((function(){Module.setStatus("")}),1),t()}),1)):t()))}if(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_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+/;var 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 ".concat(n,". Compatibility range ").concat(MIN_COMPATIBLE_VERSION," through ").concat(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,r)=>e.slice(t,r);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)):(currentLogCallback=null,C._ts_parser_enable_logger_wasm(this[0],0));let r=0,o=0;if(n&&n.includedRanges){r=n.includedRanges.length,o=C._calloc(r,SIZE_OF_RANGE);let e=o;for(let t=0;t<r;t++)marshalRange(e,n.includedRanges[t]),e+=SIZE_OF_RANGE}const s=C._ts_parser_parse_wasm(this[0],this[1],t?t[0]:0,o,r);if(!s)throw currentParseCallback=null,currentLogCallback=null,new Error("Parsing failed");const a=new Tree(INTERNAL,s,this.language,currentParseCallback);return currentParseCallback=null,currentLogCallback=null,a}reset(){C._ts_parser_reset(this[0])}setTimeoutMicros(e){C._ts_parser_set_timeout_micros(this[0],e)}getTimeoutMicros(){return C._ts_parser_timeout_micros(this[0])}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)}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}}class Node{constructor(e,t){assertInternal(e),this.tree=t}get typeId(){return marshalNode(this),C._ts_node_symbol_wasm(this.tree[0])}get type(){return this.tree.language.types[this.typeId]||"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)}isNamed(){return marshalNode(this),1===C._ts_node_is_named_wasm(this.tree[0])}hasError(){return marshalNode(this),1===C._ts_node_has_error_wasm(this.tree[0])}hasChanges(){return marshalNode(this),1===C._ts_node_has_changes_wasm(this.tree[0])}isMissing(){return marshalNode(this),1===C._ts_node_is_missing_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);if(-1!==t)return this.childForFieldId(t)}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;t++)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=[],o=this.tree.language.types;for(let u=0,c=o.length;u<c;u++)e.includes(o[u])&&r.push(u);const s=C._malloc(SIZE_OF_INT*r.length);for(let u=0,c=r.length;u<c;u++)setValue(s+u*SIZE_OF_INT,r[u],"i32");marshalNode(this),C._ts_node_descendants_of_type_wasm(this.tree[0],s,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(s),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 parent(){return marshalNode(this),C._ts_node_parent_wasm(this.tree[0]),unmarshalNode(this.tree)}descendantForIndex(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");marshalNode(this);let 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){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");marshalNode(this);let 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){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;if(!isPoint(e)||!isPoint(t))throw new Error("Arguments must be {row, column} objects");marshalNode(this);let 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){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;if(!isPoint(e)||!isPoint(t))throw new Error("Arguments must be {row, column} objects");marshalNode(this);let 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)}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 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])}currentNode(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_wasm(this.tree[0]),unmarshalNode(this.tree)}currentFieldId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_field_id_wasm(this.tree[0])}currentFieldName(){return this.tree.language.fields[this.currentFieldId()]}gotoFirstChild(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_first_child_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoNextSibling(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_next_sibling_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}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]));for(let n=0,r=this.types.length;n<r;n++)C._ts_language_symbol_type(this[0],n)<2&&(this.types[n]=UTF8ToString(C._ts_language_symbol_name(this[0],n)));this.fields=new Array(C._ts_language_field_count(this[0])+1);for(let n=0,r=this.fields.length;n<r;n++){const e=C._ts_language_field_name_for_id(this[0],n);this.fields[n]=0!==e?UTF8ToString(e):null}}get version(){return C._ts_language_version(this[0])}get fieldCount(){return this.fields.length-1}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 o=C._ts_language_symbol_for_name(this[0],r,n,t);return C._free(r),o||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)}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=UTF8ToString(n,getValue(TRANSFER_BUFFER,"i32")).length,o=e.substr(r,100).split("\n")[0];let s,a=o.match(QUERY_WORD_REGEX)[0];switch(t){case 2:s=new RangeError("Bad node name '".concat(a,"'"));break;case 3:s=new RangeError("Bad field name '".concat(a,"'"));break;case 4:s=new RangeError("Bad capture name @".concat(a));break;case 5:s=new TypeError("Bad pattern structure at offset ".concat(r,": '").concat(o,"'...")),a="";break;default:s=new SyntaxError("Bad syntax at offset ".concat(r,": '").concat(o,"'...")),a=""}throw s.index=r,s.length=a.length,C._free(n),s}const o=C._ts_query_string_count(r),s=C._ts_query_capture_count(r),a=C._ts_query_pattern_count(r),i=new Array(s),l=new Array(o);for(let h=0;h<s;h++){const e=C._ts_query_capture_name_for_id(r,h,TRANSFER_BUFFER),t=getValue(TRANSFER_BUFFER,"i32");i[h]=UTF8ToString(e,t)}for(let h=0;h<o;h++){const e=C._ts_query_string_value_for_id(r,h,TRANSFER_BUFFER),t=getValue(TRANSFER_BUFFER,"i32");l[h]=UTF8ToString(e,t)}const u=new Array(a),c=new Array(a),d=new Array(a),p=new Array(a),_=new Array(a);for(let h=0;h<a;h++){const e=C._ts_query_predicates_for_pattern(r,h,TRANSFER_BUFFER),t=getValue(TRANSFER_BUFFER,"i32");p[h]=[],_[h]=[];const n=[];let o=e;for(let r=0;r<t;r++){const e=getValue(o,"i32");o+=SIZE_OF_INT;const t=getValue(o,"i32");if(o+=SIZE_OF_INT,e===PREDICATE_STEP_TYPE_CAPTURE)n.push({type:"capture",name:i[t]});else if(e===PREDICATE_STEP_TYPE_STRING)n.push({type:"string",value:l[t]});else if(n.length>0){if("string"!==n[0].type)throw new Error("Predicates must begin with a literal value");const e=n[0].value;let t=!0;switch(e){case"not-eq?":t=!1;case"eq?":if(3!==n.length)throw new Error("Wrong number of arguments to `#eq?` predicate. Expected 2, got "+(n.length-1));if("capture"!==n[1].type)throw new Error('First argument of `#eq?` predicate must be a capture. Got "'.concat(n[1].value,'"'));if("capture"===n[2].type){const e=n[1].name,r=n[2].name;_[h].push((function(n){let o,s;for(const t of n)t.name===e&&(o=t.node),t.name===r&&(s=t.node);return void 0===o||void 0===s||o.text===s.text===t}))}else{const e=n[1].name,r=n[2].value;_[h].push((function(n){for(const o of n)if(o.name===e)return o.node.text===r===t;return!0}))}break;case"not-match?":t=!1;case"match?":if(3!==n.length)throw new Error("Wrong number of arguments to `#match?` predicate. Expected 2, got ".concat(n.length-1,"."));if("capture"!==n[1].type)throw new Error('First argument of `#match?` predicate must be a capture. Got "'.concat(n[1].value,'".'));if("string"!==n[2].type)throw new Error("Second argument of `#match?` predicate must be a string. Got @".concat(n[2].value,"."));const r=n[1].name,o=new RegExp(n[2].value);_[h].push((function(e){for(const n of e)if(n.name===r)return o.test(n.node.text)===t;return!0}));break;case"set!":if(n.length<2||n.length>3)throw new Error("Wrong number of arguments to `#set!` predicate. Expected 1 or 2. Got ".concat(n.length-1,"."));if(n.some((e=>"string"!==e.type)))throw new Error('Arguments to `#set!` predicate must be a strings.".');u[h]||(u[h]={}),u[h][n[1].value]=n[2]?n[2].value:null;break;case"is?":case"is-not?":if(n.length<2||n.length>3)throw new Error("Wrong number of arguments to `#".concat(e,"` predicate. Expected 1 or 2. Got ").concat(n.length-1,"."));if(n.some((e=>"string"!==e.type)))throw new Error("Arguments to `#".concat(e,'` predicate must be a strings.".'));const s="is?"===e?c:d;s[h]||(s[h]={}),s[h][n[1].value]=n[2]?n[2].value:null;break;default:p[h].push({operator:e,operands:n.slice(1)})}n.length=0}}Object.freeze(u[h]),Object.freeze(c[h]),Object.freeze(d[h])}return C._free(n),new Query(INTERNAL,r,i,_,p,Object.freeze(u),Object.freeze(c),Object.freeze(d))}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__(28075);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 ".concat(e.status,".\n\n").concat(n))}}))))}const n="function"==typeof loadSideModule?loadSideModule:loadWebAssemblyModule;return t.then((e=>n(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".concat(JSON.stringify(t,null,2)));const r=e[n]();return new Language(INTERNAL,r)}))}}class Query{constructor(e,t,n,r,o,s,a,i){assertInternal(e),this[0]=t,this.captureNames=n,this.textPredicates=r,this.predicates=o,this.setProperties=s,this.assertedProperties=a,this.refutedProperties=i,this.exceededMatchLimit=!1}delete(){C._ts_query_delete(this[0]),this[0]=0}matches(e,t,n,r){t||(t=ZERO_POINT),n||(n=ZERO_POINT),r||(r={});let o=r.matchLimit;if(void 0===o)o=0;else 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,o);const s=getValue(TRANSFER_BUFFER,"i32"),a=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),i=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),l=new Array(s);this.exceededMatchLimit=!!i;let u=0,c=a;for(let d=0;d<s;d++){const t=getValue(c,"i32");c+=SIZE_OF_INT;const n=getValue(c,"i32");c+=SIZE_OF_INT;const r=new Array(n);if(c=unmarshalCaptures(this,e.tree,c,r),this.textPredicates[t].every((e=>e(r)))){l[u++]={pattern:t,captures:r};const e=this.setProperties[t];e&&(l[d].setProperties=e);const n=this.assertedProperties[t];n&&(l[d].assertedProperties=n);const o=this.refutedProperties[t];o&&(l[d].refutedProperties=o)}}return l.length=u,C._free(a),l}captures(e,t,n,r){t||(t=ZERO_POINT),n||(n=ZERO_POINT),r||(r={});let o=r.matchLimit;if(void 0===o)o=0;else 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,o);const s=getValue(TRANSFER_BUFFER,"i32"),a=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),i=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),l=[];this.exceededMatchLimit=!!i;const u=[];let c=a;for(let d=0;d<s;d++){const t=getValue(c,"i32");c+=SIZE_OF_INT;const n=getValue(c,"i32");c+=SIZE_OF_INT;const r=getValue(c,"i32");if(c+=SIZE_OF_INT,u.length=n,c=unmarshalCaptures(this,e.tree,c,u),this.textPredicates[t].every((e=>e(u)))){const e=u[r],n=this.setProperties[t];n&&(e.setProperties=n);const o=this.assertedProperties[t];o&&(e.assertedProperties=o);const s=this.refutedProperties[t];s&&(e.refutedProperties=s),l.push(e)}}return C._free(a),l}predicatesForPattern(e){return this.predicates[e]}didExceedMatchLimit(){return this.exceededMatchLimit}}function getText(e,t,n){const r=n-t;let o=e.textCallback(t,null,n);for(t+=o.length;t<n;){const r=e.textCallback(t,null,n);if(!(r&&r.length>0))break;t+=r.length,o+=r}return t>n&&(o=o.slice(0,r)),o}function unmarshalCaptures(e,t,n,r){for(let o=0,s=r.length;o<s;o++){const s=getValue(n,"i32"),a=unmarshalNode(t,n+=SIZE_OF_INT);n+=SIZE_OF_NODE,r[o]={name:e.captureNames[s],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){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:TRANSFER_BUFFER;const n=getValue(t,"i32");if(0===n)return null;const r=getValue(t+=SIZE_OF_INT,"i32"),o=getValue(t+=SIZE_OF_INT,"i32"),s=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:o,column:s},i[0]=a,i}function marshalTreeCursor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]: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")}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")}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"),column:getValue(e+SIZE_OF_INT,"i32")}}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"),e+=SIZE_OF_INT,t.endIndex=getValue(e,"i32"),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},72794:(e,t,n)=>{var r,o,s;s=n(39230),o=n(11278),r=function(){function e(){}return e.indentation=4,e.prototype.dump=function(e,t,n,r,a){var i,l,u,c,d,p,_;if(null==t&&(t=0),null==n&&(n=0),null==r&&(r=!1),null==a&&(a=null),c="",d=n?s.strRepeat(" ",n):"",t<=0||"object"!==typeof e||e instanceof Date||s.isEmpty(e))c+=d+o.dump(e,r,a);else if(e instanceof Array)for(i=0,u=e.length;i<u;i++)p=e[i],c+=d+"-"+((_=t-1<=0||"object"!==typeof p||s.isEmpty(p))?" ":"\n")+this.dump(p,t-1,_?0:n+this.indentation,r,a)+(_?"\n":"");else for(l in e)p=e[l],_=t-1<=0||"object"!==typeof p||s.isEmpty(p),c+=d+o.dump(l,r,a)+":"+(_?" ":"\n")+this.dump(p,t-1,_?0:n+this.indentation,r,a)+(_?"\n":"");return c},e}(),e.exports=r},30880:(e,t,n)=>{var r,o;o=n(47605),r=function(){var e;function t(){}return t.LIST_ESCAPEES=["\\","\\\\",'\\"','"',"\0","\x01","\x02","\x03","\x04","\x05","\x06","\x07","\b","\t","\n","\v","\f","\r","\x0e","\x0f","\x10","\x11","\x12","\x13","\x14","\x15","\x16","\x17","\x18","\x19","\x1a","\x1b","\x1c","\x1d","\x1e","\x1f",(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,o;for(r={},e=n=0,o=t.LIST_ESCAPEES.length;0<=o?n<o:n>o;e=0<=o?++n:--n)r[t.LIST_ESCAPEES[e]]=t.LIST_ESCAPED[e];return r}(),t.PATTERN_CHARACTERS_TO_ESCAPE=new o("[\\x00-\\x1f]|\xc2\x85|\xc2\xa0|\xe2\x80\xa8|\xe2\x80\xa9"),t.PATTERN_MAPPING_ESCAPEES=new o(t.LIST_ESCAPEES.join("|").split("\\").join("\\\\")),t.PATTERN_SINGLE_QUOTING=new o("[\\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},23698:e=>{var t,n={}.hasOwnProperty;t=function(e){function t(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 o(){this.constructor=e}o.prototype=t.prototype,e.prototype=new o,e.__super__=t.prototype}(t,Error),t.prototype.toString=function(){return null!=this.parsedLine&&null!=this.snippet?"<DumpException> "+this.message+" (line "+this.parsedLine+": '"+this.snippet+"')":"<DumpException> "+this.message},t}(),e.exports=t},60313:e=>{var t,n={}.hasOwnProperty;t=function(e){function t(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 o(){this.constructor=e}o.prototype=t.prototype,e.prototype=new o,e.__super__=t.prototype}(t,Error),t.prototype.toString=function(){return null!=this.parsedLine&&null!=this.snippet?"<ParseException> "+this.message+" (line "+this.parsedLine+": '"+this.snippet+"')":"<ParseException> "+this.message},t}(),e.exports=t},61071:e=>{var t,n={}.hasOwnProperty;t=function(e){function t(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 o(){this.constructor=e}o.prototype=t.prototype,e.prototype=new o,e.__super__=t.prototype}(t,Error),t.prototype.toString=function(){return null!=this.parsedLine&&null!=this.snippet?"<ParseMore> "+this.message+" (line "+this.parsedLine+": '"+this.snippet+"')":"<ParseMore> "+this.message},t}(),e.exports=t},11278:(e,t,n)=>{var r,o,s,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(47605),l=n(66589),r=n(30880),u=n(39230),s=n(60313),a=n(61071),n(23698),o=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.exceptionOnInvalidType=e,this.settings.objectDecoder=t},e.parse=function(e,t,n){var r,o;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"[":o=this.parseSequence(e,r),++r.i;break;case"{":o=this.parseMapping(e,r),++r.i;break;default:o=this.parseScalar(e,null,['"',"'"],r)}if(""!==this.PATTERN_TRAILING_COMMENTS.replace(e.slice(r.i),""))throw new s('Unexpected characters near "'+e.slice(r.i)+'".');return o},e.dump=function(e,t,n){var o,s,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(s=n(e))&&null==s?this.dumpObject(e):s:"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"===(o=e.toLowerCase())||"~"===o||"true"===o||"false"===o?"'"+e+"'":e},e.dumpObject=function(e,t,n){var r,o,s,a,i;if(null==n&&(n=null),e instanceof Array){for(a=[],r=0,s=e.length;r<s;r++)i=e[r],a.push(this.dump(i));return"["+a.join(", ")+"]"}for(o in a=[],e)i=e[o],a.push(this.dump(o)+": "+this.dump(i));return"{"+a.join(", ")+"}"},e.parseScalar=function(e,t,n,r,o){var a,l,d,p,_,h,m,f;if(null==t&&(t=null),null==n&&(n=['"',"'"]),null==r&&(r=null),null==o&&(o=!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(p=this.parseQuotedScalar(e,r),a=r.i,null!=t&&(m=u.ltrim(e.slice(a)," ").charAt(0),!(c.call(t,m)>=0)))throw new s("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]=_),!(d=_.exec(e.slice(a))))throw new s("Malformed inline YAML string ("+e+").");a+=(p=d[1]).length}else a+=(p=e.slice(a)).length,-1!==(f=p.indexOf(" #"))&&(p=u.rtrim(p.slice(0,f)));o&&(p=this.evaluateScalar(p,r))}return r.i=a,p},e.parseQuotedScalar=function(e,t){var n,r,o;if(n=t.i,!(r=this.PATTERN_QUOTED_SCALAR.exec(e.slice(n))))throw new a("Malformed inline YAML string ("+e.slice(n)+").");return o=r[0].substr(1,r[0].length-2),o='"'===e.charAt(n)?l.unescapeDoubleQuotedString(o):l.unescapeSingleQuotedString(o),n+=r[0].length,t.i=n,o},e.parseSequence=function(e,t){var n,r,o,s,i,l;for(s=[],o=e.length,n=t.i,n+=1;n<o;){switch(t.i=n,e.charAt(n)){case"[":s.push(this.parseSequence(e,t)),n=t.i;break;case"{":s.push(this.parseMapping(e,t)),n=t.i;break;case"]":return s;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(u){u}s.push(l),--n}++n}throw new a("Malformed inline YAML string "+e)},e.parseMapping=function(e,t){var n,r,o,s,i,l,u;for(i={},s=e.length,r=t.i,r+=1,l=!1;r<s;){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(o=this.parseScalar(e,[":"," ","\n"],['"',"'"],t,!1),r=t.i,n=!1;r<s;){switch(t.i=r,e.charAt(r)){case"[":u=this.parseSequence(e,t),r=t.i,void 0===i[o]&&(i[o]=u),n=!0;break;case"{":u=this.parseMapping(e,t),r=t.i,void 0===i[o]&&(i[o]=u),n=!0;break;case":":case" ":case"\n":break;default:u=this.parseScalar(e,[",","}"],['"',"'"],t),r=t.i,void 0===i[o]&&(i[o]=u),n=!0,--r}if(++r,n)break}}throw new a("Malformed inline YAML string "+e)},e.evaluateScalar=function(e,t){var n,r,o,a,i,l,c,d,p;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)));default:if(null==t&&(t={exceptionOnInvalidType:this.settings.exceptionOnInvalidType,objectDecoder:this.settings.objectDecoder,i:0}),i=t.objectDecoder,o=t.exceptionOnInvalidType,i)return-1===(a=(p=u.rtrim(e)).indexOf(" "))?i(p,null):((d=u.ltrim(p.slice(a+1))).length>0||(d=null),i(p.slice(0,a),d));if(o)throw new s("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=o},12556:(e,t,n)=>{var r,o,s,a,i,l;r=n(11278),i=n(47605),l=n(39230),o=n(60313),s=n(61071),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,s){var a,i,u,c,d,p,_,h,m,f,y,g,w,b,v,S,E,x,A,T,N,C,I,M,R,k,F,O,P,L,q,j,U,D,H;for(null==n&&(n=!1),null==s&&(s=null),this.currentLineNb=-1,this.currentLine="",this.lines=this.cleanup(t).split("\n"),d=null,c=this.CONTEXT_NONE,i=!1;this.moveToNextLine();)if(!this.isCurrentLineEmpty()){if("\t"===this.currentLine[0])throw new o("A YAML file cannot contain tabs as indentation.",this.getRealCurrentLineNb()+1,this.currentLine);if(f=I=!1,H=this.PATTERN_SEQUENCE_ITEM.exec(this.currentLine)){if(this.CONTEXT_MAPPING===c)throw new o("You cannot define a sequence item when in a mapping");c=this.CONTEXT_SEQUENCE,null==d&&(d=[]),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()?((O=new e(this.getRealCurrentLineNb()+1)).refs=this.refs,d.push(O.parse(this.getNextEmbedBlock(null,!0),n,s))):d.push(null):(null!=(P=H.leadspaces)?P.length:void 0)&&(C=this.PATTERN_COMPACT_NOTATION.exec(H.value))?((O=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)),d.push(O.parse(u,n,s))):d.push(this.parseValue(H.value,n,s))}else{if(!(H=this.PATTERN_MAPPING_ITEM.exec(this.currentLine))||-1!==H.key.indexOf(" #")){if(1===(T=this.lines.length)||2===T&&l.isEmpty(this.lines[1])){try{t=r.parse(this.lines[0],n,s)}catch(B){throw(p=B).parsedLine=this.getRealCurrentLineNb()+1,p.snippet=this.currentLine,p}if("object"===typeof t){if(t instanceof Array)_=t[0];else for(w in t){_=t[w];break}if("string"===typeof _&&0===_.indexOf("*")){for(d=[],M=0,A=t.length;M<A;M++)a=t[M],d.push(this.refs[a.slice(1)]);t=d}}return t}if("["===(q=l.ltrim(t).charAt(0))||"{"===q)try{return r.parse(t,n,s)}catch(B){throw(p=B).parsedLine=this.getRealCurrentLineNb()+1,p.snippet=this.currentLine,p}throw new o("Unable to parse.",this.getRealCurrentLineNb()+1,this.currentLine)}if(this.CONTEXT_SEQUENCE===c)throw new o("You cannot define a mapping item when in a sequence");c=this.CONTEXT_MAPPING,null==d&&(d={}),r.configure(n,s);try{w=r.parseScalar(H.key)}catch(B){throw(p=B).parsedLine=this.getRealCurrentLineNb()+1,p.snippet=this.currentLine,p}if("<<"===w)if(I=!0,i=!0,0===(null!=(L=H.value)?L.indexOf("*"):void 0)){if(j=H.value.slice(1),null==this.refs[j])throw new o('Reference "'+j+'" does not exist.',this.getRealCurrentLineNb()+1,this.currentLine);if("object"!==typeof(U=this.refs[j]))throw new o("YAML merge keys used with a scalar value instead of an object.",this.getRealCurrentLineNb()+1,this.currentLine);if(U instanceof Array)for(h=y=0,S=U.length;y<S;h=++y)t=U[h],null==d[R=String(h)]&&(d[R]=t);else for(w in U)t=U[w],null==d[w]&&(d[w]=t)}else{if(t=null!=H.value&&""!==H.value?H.value:this.getNextEmbedBlock(),(O=new e(this.getRealCurrentLineNb()+1)).refs=this.refs,"object"!==typeof(k=O.parse(t,n)))throw new o("YAML merge keys used with a scalar value instead of an object.",this.getRealCurrentLineNb()+1,this.currentLine);if(k instanceof Array)for(b=0,E=k.length;b<E;b++){if("object"!==typeof(F=k[b]))throw new o("Merge items must be objects.",this.getRealCurrentLineNb()+1,F);if(F instanceof Array)for(h=N=0,x=F.length;N<x;h=++N)t=F[h],g=String(h),d.hasOwnProperty(g)||(d[g]=t);else for(w in F)t=F[w],d.hasOwnProperty(w)||(d[w]=t)}else for(w in k)t=k[w],d.hasOwnProperty(w)||(d[w]=t)}else null!=H.value&&(C=this.PATTERN_ANCHOR_VALUE.exec(H.value))&&(f=C.ref,H.value=C.value);I||(null==H.value||""===l.trim(H.value," ")||0===l.ltrim(H.value," ").indexOf("#")?this.isNextLineIndented()||this.isNextLineUnIndentedCollection()?((O=new e(this.getRealCurrentLineNb()+1)).refs=this.refs,D=O.parse(this.getNextEmbedBlock(),n,s),(i||void 0===d[w])&&(d[w]=D)):(i||void 0===d[w])&&(d[w]=null):(D=this.parseValue(H.value,n,s),(i||void 0===d[w])&&(d[w]=D)))}if(f)if(d instanceof Array)this.refs[f]=d[d.length-1];else{for(w in v=null,d)v=w;this.refs[f]=d[v]}}return l.isEmpty(d)?null:d},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,s,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 o("Indentation problem.",this.getRealCurrentLineNb()+1,this.currentLine)}else a=e;for(n=[this.currentLine.slice(a)],t||(s=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(s&&!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 o("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,d,p,_,h;if(0===e.indexOf("*")){if(d=e.indexOf("#"),e=-1!==d?e.substr(1,d-2):e.slice(1),void 0===this.refs[e])throw new o('Reference "'+e+'" does not exist.',this.currentLine);return this.refs[e]}if(u=this.PATTERN_FOLDED_SCALAR_ALL.exec(e))return c=null!=(p=u.modifiers)?p:"",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(m){if(!((a=m)instanceof s&&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 o,s,a,u,c,d,p,_,h,m;if(null==n&&(n=""),null==r&&(r=0),!(p=this.moveToNextLine()))return"";for(o=this.isCurrentLineBlank(),m="";p&&o;)(p=this.moveToNextLine())&&(m+="\n",o=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]=_);p&&(o||(c=_.exec(this.currentLine)));)m+=o?this.currentLine.slice(r):c[1],(p=this.moveToNextLine())&&(m+="\n",o=this.isCurrentLineBlank());else p&&(m+="\n");if(p&&this.moveToPreviousLine(),">"===t){for(d="",s=0,a=(h=m.split("\n")).length;s<a;s++)0===(u=h[s]).length||" "===u.charAt(0)?d=l.rtrim(d," ")+u+"\n":d+=u+" ";m=d}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,o,s,a,i,u,c,d,p,_,h,m;for(-1!==e.indexOf("\r")&&(e=e.split("\r\n").join("\n").split("\r").join("\n")),t=0,e=(d=this.PATTERN_YAML_HEADER.replaceAll(e,""))[0],t=d[1],this.offset+=t,m=(p=this.PATTERN_LEADING_COMMENTS.replaceAll(e,"",1))[0],1===(t=p[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,o=0,a=(c=e.split("\n")).length;o<a;o++)u=c[o],0!==l.trim(u," ").length&&(r=u.length-l.ltrim(u).length,(-1===h||r<h)&&(h=r));if(h>0){for(n=s=0,i=c.length;s<i;n=++s)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},47605:e=>{var t;t=function(){function e(e,t){var n,r,o,s,a,i,l,u,c;for(null==t&&(t=""),o="",a=e.length,i=null,r=0,s=0;s<a;){if("\\"===(n=e.charAt(s)))o+=e.slice(s,+(s+1)+1||9e9),s++;else if("("===n)if(s<a-2)if("(?:"===(u=e.slice(s,+(s+2)+1||9e9)))s+=2,o+=u;else if("(?<"===u)for(r++,s+=2,l="";s+1<a;){if(">"===(c=e.charAt(s+1))){o+="(",s++,l.length>0&&(null==i&&(i={}),i[l]=r);break}l+=c,s++}else o+=n,r++;else o+=n;else o+=n;s++}this.rawRegex=e,this.cleanedRegex=o,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,o;if(this.regex.lastIndex=0,null==(n=this.regex.exec(e)))return null;if(null!=this.mapping)for(r in o=this.mapping)t=o[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},66589:(e,t,n)=>{var r,o,s;s=n(39230),r=n(47605),o=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 s.utf8chr(s.hexDec(e.substr(2,2)));case"u":return s.utf8chr(s.hexDec(e.substr(2,4)));case"U":return s.utf8chr(s.hexDec(e.substr(2,8)));default:return""}},e}(),e.exports=o},39230:(e,t,n)=>{var r,o,s={}.hasOwnProperty;r=n(47605),o=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)},e.isEmptyObject=function(e){var t;return e instanceof Object&&0===function(){var n;for(t in n=[],e)s.call(e,t)&&n.push(t);return n}().length},e.subStrCount=function(e,t,n,r){var o,s,a,i,l,u;for(o=0,e=""+e,t=""+t,null!=n&&(e=e.slice(n)),null!=r&&(e=e.slice(0,r)),i=e.length,u=t.length,s=a=0,l=i;0<=l?a<l:a>l;s=0<=l?++a:--a)t===e.slice(s,u)&&(o++,s+=u-1);return o},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,o,s,a,i,l,u,c;if(!(null!=e?e.length:void 0))return null;if(!(s=this.PATTERN_DATE.exec(e)))return null;if(c=parseInt(s.year,10),i=parseInt(s.month,10)-1,n=parseInt(s.day,10),null==s.hour)return t=new Date(Date.UTC(c,i,n));if(o=parseInt(s.hour,10),a=parseInt(s.minute,10),l=parseInt(s.second,10),null!=s.fraction){for(r=s.fraction.slice(0,3);r.length<3;)r+="0";r=parseInt(r,10)}else r=0;return null!=s.tz&&(u=6e4*(60*parseInt(s.tz_hour,10)+(null!=s.tz_minute?parseInt(s.tz_minute,10):0)),"-"===s.tz_sign&&(u*=-1)),t=new Date(Date.UTC(c,i,n,o,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,o,s,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(s=0,a=(l=["Msxml2.XMLHTTP.6.0","Msxml2.XMLHTTP.3.0","Msxml2.XMLHTTP","Microsoft.XMLHTTP"]).length;s<a;s++){i=l[s];try{u=new ActiveXObject(i)}catch(c){}}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):(void 0,o=n(97218),null!=t?o.readFile(e,(function(e,n){return t(e?null:String(n))})):null!=(r=o.readFileSync(e))?String(r):null)},e}(),e.exports=o},26508:function(e,t,n){var r,o,s,a;o=n(12556),r=n(72794),s=n(39230),a=function(){function e(){}return e.parse=function(e,t,n){return null==t&&(t=!1),null==n&&(n=null),(new o).parse(e,t,n)},e.parseFile=function(e,t,n,r){var o,a;return null==t&&(t=null),null==n&&(n=!1),null==r&&(r=null),null!=t?s.getStringFromFile(e,(a=this,function(e){var o;o=null,null!=e&&(o=a.parse(e,n,r)),t(o)})):null!=(o=s.getStringFromFile(e))?this.parse(o,n,r):null},e.dump=function(e,t,n,o,s){var a;return null==t&&(t=2),null==n&&(n=4),null==o&&(o=!1),null==s&&(s=null),(a=new r).indentation=n,a.dump(e,t,0,o,s)},e.stringify=function(e,t,n,r,o){return this.dump(e,t,n,r,o)},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},1834:(e,t,n)=>{"use strict";n.d(t,{JO:()=>u,a:()=>a,i5:()=>l,sf:()=>i});var r=n(68407),o=n(45915);function s(e){return[...o.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(s(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(s(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)}function u(e){if(!e||e.isEmpty())return[null,null];const t=[];for(const c of e.split("&")){if(!c.includes("="))return[null,null];const[e,n]=c.split("=",2);let o,s;try{o=l(e.replace(/\+/g," ")),s=l(n.replace(/\+/g," "))}catch(u){if(u instanceof URIError)return[null,null];throw u}const i=a(o),d=a(s);if(!(0,r.eq)(i,e)&&!(0,r.eq)(i.replace(/%20/g,"+"),e)||!(0,r.eq)(d,n)&&!(0,r.eq)(d.replace(/%20/g,"+"),n))return[null,null];t.push([o,s])}const n={},o={};let s=null;for(const[r,a]of t){const e=r.toString();if(s===e)o[e].push(a);else{if(Object.prototype.hasOwnProperty.call(o,e))return[t,null];o[e]=[a],n[e]=r}s=e}const i=[];for(const[r,a]of Object.entries(o))i.push([n[r],1===a.length?a[0]:a]);return[t,i]}},65280:(e,t,n)=>{"use strict";n.d(t,{r:()=>b,d:()=>v});var r=n(68407),o=n(45915),s=n(79069);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){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[];if(e)for(const a of e)if(a.startsWith("@"))t.push(["header-file","passing a file for --header/-H is not supported: "+JSON.stringify(a.toString())]);else if(a.includes(":")){const[e,o]=a.split(":",2),i=(0,r.WL)(e);i&&t.push(["header-expression","ignoring "+i.type+" in header name\n"+(0,s.TO)(i.syntaxNode)]);const l=o&&o.trim().toBool()?o.removeFirstChar(" "):null;n.push([e,l])}else if(a.includes(";")){const[e]=a.split(";",2);n.push([e,new r.vZ])}this.lowercase=n.length>0&&n.every((e=>(0,r.eq)(e[0],e[0].toLowerCase())));const o={};for(const[r,s]of n){const e=r.toLowerCase().toString();o[e]||(o[e]=[]),o[e].push([r,s])}n=[];for(const[s,l]of Object.entries(o)){if(1===l.length){n.push(l[0]);continue}if(l.every((e=>null===e[1]))){const e=l[l.length-1];new Set(l.map((e=>e[0]))).size>1&&t.push(["repeated-header",'"'.concat(e[0],'" header unset ').concat(l.length," times")]),n.push(e);continue}const e=l.filter((e=>null!==e[1]));if(1===e.length){n.push(e[0]);continue}let o="";if(a.has(s)?o=", ":i.has(s)&&(o="; "),o){const s=(0,r.yZ)(e.map((e=>e[1])),o);t.push(["repeated-header","merged ".concat(e.length,' "').concat(e[e.length-1][0],'" headers together with "').concat(o.trim(),'"')]),n.push([e[0][0],s])}else t.push(["repeated-header","found ".concat(e.length,' "').concat(e[e.length-1][0],'" headers, only the last one will be sent')]),n=n.concat(e)}this.headers=n}get length(){return this.headers.length}*[Symbol.iterator](){for(const e of this.headers)yield e}get(e){const t=e.toLowerCase();for(const[n,r]of this.headers)if(n.toLowerCase().toString()===t)return r}getContentType(){const e=this.get("content-type");return e?e.split(";")[0].trim().toString():e}has(e){const t=e.toLowerCase();for(const n of this.headers)if((0,r.eq)(n[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,o="string"===typeof t?new r.vZ(t):t;return this.headers.push([n,o]),!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,o="string"===typeof t?new r.vZ(t):t;return this.headers.unshift([n,o]),!0}set(e,t){this.lowercase&&(e=e.toLowerCase());const n="string"===typeof e?new r.vZ(e):e,o="string"===typeof t?new r.vZ(t):t,s=n.toLowerCase().toString();for(let a=0;a<this.headers.length;a++)if((0,r.eq)(this.headers[a][0].toLowerCase(),s))return void(this.headers[a][1]=o);this.headers.push([n,o])}delete(e){const t=e.toLowerCase();for(let n=this.headers.length-1;n>=0;n--)this.headers[n][0].toLowerCase().toString()===t&&this.headers.splice(n,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 r of this.headers||[])r[0].toLowerCase().toString()===n&&(t+=1);return t}toBool(){return this.headers.length>0&&this.headers.some((e=>null!==e[1]))}}var u=n(75767);const c=128;function d(e){return!(e.length>c)&&!e.includes("-")}function p(e,t,n){var o;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 o=t[r];if("["===o&&"\\"!==n){let o=r+1;for(;o<t.length&&"]"!==t[o];)o++;if(!(o<t.length&&"]"===t[o]))return void(0,s.p4)(e,["unbalanced-glob","bracket doesn't have a closing bracket:\n"+"".concat(t,"\n")+"".concat(" ".repeat(r),"^")]);{const a=t.slice(r,o+1);d(a)||(0,s.p4)(e,["glob-in-url","globs in the URL are not supported:\n"+"".concat(t,"\n")+" ".repeat(r)+"^".repeat(a.length)]),n=""}}else if("{"===o&&"\\"!==n){let o=r+1;for(;o<t.length&&"}"!==t[o];)o++;if(!(o<t.length&&"}"===t[o]))return void(0,s.p4)(e,["unbalanced-glob","bracket doesn't have a closing bracket:\n"+"".concat(t,"\n")+"".concat(" ".repeat(r),"^")]);{const a=t.slice(r,o+1);(0,s.p4)(e,["glob-in-url","globs in the URL are not supported:\n"+"".concat(t,"\n")+" ".repeat(r)+"^".repeat(a.length)]),n=""}}n=o}}(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!==(o=t["proto-default"])&&void 0!==o?o:new r.vZ("http");(0,r.eq)(a.scheme,"http")||(0,r.eq)(a.scheme,"https")||(0,s.p4)(e,["bad-scheme",'Protocol "'.concat(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,s.p4)(e,["login-denied","Found auth in URL but --disallow-username-in-url was passed: ".concat(n.toString())]):(a.auth=n,n.includes(":")?[a.user,a.password]=n.split(":",2):(a.user=n,a.password=new r.vZ))}return a}var _=n(1834);function h(e){return"string"===typeof e&&(" "===e||"\t"===e||e>="\n"&&e<="\r")}function m(e,t,n){let o=t;if('"'===e.charAt(o)){o+=1;const t=[];for(;o<e.length;){let s=e.charAt(o);if("\\"===s){if(o+1<e.length){const t=e.charAt(o+1);'"'!==t&&"\\"!==t||(o+=1,s=e.charAt(o))}}else if('"'===s){o+=1;let s=!1;for(;o<e.length&&";"!==e.charAt(o);)h(e.charAt(o))||(s=!0),o+=1;return s&&n.push(["trailing-form-data","Trailing data after quoted form parameter"]),[new r.vZ(t),o]}t.push(s),o+=1}}let s=e.indexOf(";",t);return-1===s&&(s=e.length),[e.slice(t,s),s]}function f(e,t,n,r,o){for(;n<t.length&&h(t.charAt(n));)n+=1;const[s,a]=m(t,n,o);return e.content=s,function(e,t,n,r,o){for(;n<t.length&&";"===t.charAt(n);){for(n+=1;n<t.length&&h(t.charAt(n));)n+=1;if(n>=t.length)return e;const s=t.slice(n);if(s.startsWith("type="))[e.contentType,n]=m(t,n+5,o);else if(s.startsWith("filename=")){const[s,a]=m(t,n+9,o);n=a,r.filename?e.filename=s:o.push(["unsupported-form-detail","Field file name not allowed here: "+s.toString()])}else if(s.startsWith("encoder=")){const[s,a]=m(t,n+8,o);n=a,r.encoder?e.encoder=s:o.push(["unsupported-form-detail","Field encoder not allowed here: "+s.toString()])}else if(s.startsWith("headers=")){const[s,a]=m(t,n+8,o);n=a,r.headers?e.headers=s:o.push(["unsupported-form-detail","Field headers not allowed here: "+s.toString()])}else n=m(t,n,o)[1],o.push(["unknown-form-detail","skip unknown form field: "+s.toString()])}}(e,t,a,r,o),e}function y(e,t,n,a,i,l,u){const c=n,d=p(e,t,n);a&&(d.path.isEmpty()?d.path=a.prepend("/"):d.path.endsWith("/")&&(d.path=d.path.add(a)),t.get&&(0,s.p4)(e,["data-ignored","curl doesn't let you pass --get and --upload-file together"]));const h=(0,r.__)(d.scheme,"://",d.host,d.path,d.query,d.fragment);let m=null,f=null,y=null;if(d.query.toBool()||t["url-query"]&&t["url-query"].length){let e=null,n=[];d.query.toBool()&&(n.push(["raw",d.query.slice(1)]),[f,e,y]=g(n,l,u),m=f),t["url-query"]&&(n=n.concat(t["url-query"]),[f,e,y]=g(n,l,u)),d.query=new r.vZ,e&&e.toBool()&&(d.query=e.prepend("?"))}const w=(0,r.__)(d.scheme,"://",d.host,d.path,d.fragment);let b=n=(0,r.__)(d.scheme,"://",d.host,d.path,d.query,d.fragment),[v,S]=(0,_.JO)(d.query.toBool()?d.query.slice(1):new r.vZ);v&&v.length?b=(0,r.__)(d.scheme,"://",d.host,d.path,d.fragment):(v=null,S=null);let E=new r.vZ("GET");t.request&&!(0,r.eq)(t.request,"null")?E=t.request:t.head?E=new r.vZ("HEAD"):a&&a.toBool()?E=new r.vZ("PUT"):t.get||!(0,o.zy)(t,"data")&&!(0,o.zy)(t,"form")||(E=new r.vZ("POST"));const x={originalUrl:c,urlWithoutQueryList:b,url:n,urlObj:d,urlWithOriginalQuery:h,urlWithoutQueryArray:w,method:E};y&&(x.queryReadsFile=y),v&&(x.queryList=v,S&&(x.queryDict=S)),f&&(x.queryArray=f),m&&(x.urlQueryArray=m),a&&((0,r.eq)(a,"-")||(0,r.eq)(a,".")?u?x.uploadFile=u:l?((0,s.p4)(e,["upload-file-with-stdin-content","--upload-file with stdin content is not supported"]),x.uploadFile=a):x.uploadFile=a:x.uploadFile=a),i&&(x.output=i);const A=t.user||d.auth;if(A){const[e,t]=A.split(":",2);x.auth=[e,t||new r.vZ]}return x}function g(e,t,n){const o=[];let s=new r.vZ;for(const[l,u]of e.entries()){const e=u[0];let a=u[1],i=null;if(l>0&&"json"!==e&&(s=s.append("&")),"urlencode"===e){const e=a.includes("=")||!a.includes("@")?"=":"@";if((a.includes("@")||a.includes("="))&&([i,a]=a.split(e,2)),"="===e){i&&i.toBool()&&(s=s.add(i).append("=")),s=s.add((0,_.sf)(a));continue}i=i&&i.toBool()?i:null,a=a.prepend("@")}let c=null;if("raw"!==e&&a.startsWith("@")&&(c=a.slice(1),(0,r.eq)(c,"-")))if(void 0!==t){switch(e){case"binary":case"json":a=t;break;case"urlencode":a=(0,r.__)(i&&i.length?i.append("="):new r.vZ,(0,_.sf)(t));break;default:a=t.replace(/[\n\r]/g,"")}c=null}else void 0!==n&&(c=n);if(null!==c){s.toBool()&&(o.push(s),s=new r.vZ);const t={filetype:e,filename:c};i&&(t.name=i),o.push(t)}else s=s.add(a)}s.toBool()&&o.push(s);let a=null;const i=(0,r.__)(...o.map((e=>e instanceof r.vZ?e:(a||(a=e.filename.toString()),e.name?(0,r.__)(e.name,"=@",e.filename):e.filename.prepend("@")))));return[o,i,a]}function w(e,t,n,a){var i,c;if(!t.url||!t.url.length)throw new o.fA("no URL specified!");const d=new l(t.header);let p;const _=[],h=d.get("cookie");if(h){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}(h);e&&(p=e)}else if(void 0===h&&t.cookie){const e=[];for(const n of t.cookie)n.includes("=")?e.push(n):_.push(n);if(e.length){const e=(0,r.yZ)(t.cookie,"; ");d.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&&(p=n)}}if(t["user-agent"]&&d.setIfMissing("User-Agent",t["user-agent"]),t.referer){const e=t.referer.replace(/;auto$/,"");e.length&&d.setIfMissing("Referer",e)}if(t.range){let e=t.range.prepend("bytes=");e.includes("-")||(e=e.append("-")),d.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"}d.setIfMissing(n,e)}let m,w,b,v;t.data&&t.data.length&&(t.get?(t["url-query"]=t.data,delete t.data):[m,w,b]=g(t.data,n,a)),t["url-query"]&&([v]=g(t["url-query"],n,a));const S=[],E=t["upload-file"]||[],x=t.output||[];for(const[r,o]of t.url.entries())S.push(y(e,t,o,E[r],x[r],n,a));t.get&&t.data&&delete t.data,(t["upload-file"]||[]).length>t.url.length&&(0,s.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,s.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 A={urls:S,authType:(0,u.wk)(t.authtype),headers:d};if(n&&(A.stdin=n),a&&(A.stdinFile=a),void 0!==t.globoff&&(A.globoff=t.globoff),p&&(A.cookies=p),_.length&&(A.cookieFiles=_),t["cookie-jar"]&&(A.cookieJar=t["cookie-jar"]),void 0!==t.compressed&&(A.compressed=t.compressed),t.json?(d.setIfMissing("Content-Type","application/json"),d.setIfMissing("Accept","application/json")):t.data?d.setIfMissing("Content-Type","application/x-www-form-urlencoded"):t.form&&(A.multipartUploads=function(e,t){const n=[];let s=0;for(const a of e){const e="string"===a.type;if(!a.value.includes("="))throw new o.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(s-=1,s<0)throw new o.fA("no multipart to terminate: "+JSON.stringify(a.value.toString()))}else e||"@"!==l.charAt(0)?e||"<"!==l.charAt(0)?e?u.content=l:f(u,l,0,{filename:!0,encoder:!0,headers:!0},t):(f(u,l,1,{encoder:!0,headers:!0},t),u.contentFile=u.content,delete u.content,null===u.contentType||u.contentType):(f(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 s+=1,t.push(["nested-form",'Nested form data with "=(" is not supported, it will be flattened']),f(u,l,1,{headers:!0},t);n.push(u)}return n}(t.form,e.warnings)),t["aws-sigv4"]&&(A.authType="aws-sigv4",A.awsSigV4=t["aws-sigv4"]),"bearer"===A.authType&&t["oauth2-bearer"]){const e=t["oauth2-bearer"].prepend("Bearer ");d.setIfMissing("Authorization",e)}if(t.delegation&&(A.delegation=t.delegation),d.clearNulls(),t.data&&t.data.length&&(A.data=w,b&&(A.dataReadsFile=b),A.dataArray=m,A.isDataRaw=!1,A.isDataBinary=(m||[]).some((e=>!(e instanceof r.vZ)&&"binary"===e.filetype))),v&&(A.queryArray=v),void 0!==t.ipv4&&(A.ipv4=t.ipv4),void 0!==t.ipv6&&(A.ipv6=t.ipv6),t.ciphers&&(A.ciphers=t.ciphers),t.insecure&&(A.insecure=!0),t.cert)if(t.cert.startsWith("pkcs11:")||!t.cert.match(/[:\\]/))A.cert=[t.cert,null];else{let e=-1;try{e=t.cert.search(/(?<!\\)(?:\\\\)*:/)}catch(N){e=t.cert.search(/:/)}if(-1===e)A.cert=[t.cert,null];else{const n=t.cert.slice(0,e),r=t.cert.slice(e+1);r.toBool()?A.cert=[n,r]:A.cert=[n,null]}}t["cert-type"]&&(A.certType=t["cert-type"]),t.key&&(A.key=t.key),t["key-type"]&&(A.keyType=t["key-type"]),t.cacert&&(A.cacert=t.cacert),t.capath&&(A.capath=t.capath),t.crlfile&&(A.crlfile=t.crlfile),t.pinnedpubkey&&(A.pinnedpubkey=t.pinnedpubkey),t["random-file"]&&(A.randomFile=t["random-file"]),t["egd-file"]&&(A.egdFile=t["egd-file"]),t.hsts&&(A.hsts=t.hsts),t.proxy&&(A.proxy=t.proxy,t["proxy-user"]&&(A.proxyAuth=t["proxy-user"])),t.noproxy&&(A.noproxy=t.noproxy),t["max-time"]&&(A.timeout=t["max-time"],t["max-time"].isString()&&isNaN(parseFloat(t["max-time"].toString()))&&(0,s.p4)(e,["max-time-not-number","option --max-time: expected a proper numerical parameter: "+JSON.stringify(t["max-time"].toString())])),t["connect-timeout"]&&(A.connectTimeout=t["connect-timeout"],t["connect-timeout"].isString()&&isNaN(parseFloat(t["connect-timeout"].toString()))&&(0,s.p4)(e,["connect-timeout-not-number","option --connect-timeout: expected a proper numerical parameter: "+JSON.stringify(t["connect-timeout"].toString())])),t["limit-rate"]&&(A.limitRate=t["limit-rate"]),Object.prototype.hasOwnProperty.call(t,"keepalive")&&(A.keepAlive=t.keepalive),Object.prototype.hasOwnProperty.call(t,"location")&&(A.followRedirects=t.location),t["location-trusted"]&&(A.followRedirectsTrusted=t["location-trusted"]),t["max-redirs"]&&(A.maxRedirects=t["max-redirs"].trim(),t["max-redirs"].isString()&&!(0,o.E6)(t["max-redirs"].toString())&&(0,s.p4)(e,["max-redirs-not-int","option --max-redirs: expected a proper numerical parameter: "+JSON.stringify(t["max-redirs"].toString())])),t.retry&&(A.retry=t.retry);const T=t.http2||t["http2-prior-knowledge"];return T&&(A.http2=T),(t.http3||t["http3-only"])&&(A.http3=!0),t["unix-socket"]&&(A.unixSocket=t["unix-socket"]),t["netrc-optional"]||t["netrc-file"]?A.netrc="optional":t.netrc?A.netrc="required":!1===t.netrc&&(A.netrc="ignored"),t["continue-at"]&&(A.continueAt=t["continue-at"]),Object.prototype.hasOwnProperty.call(t,"clobber")&&(A.clobber=t.clobber),Object.prototype.hasOwnProperty.call(t,"remote-time")&&(A.remoteTime=t["remote-time"]),Object.prototype.hasOwnProperty.call(e,"verbose")&&(A.verbose=e.verbose),Object.prototype.hasOwnProperty.call(e,"silent")&&(A.silent=e.silent),A}function b(e,t,n){return e.configs.length||(0,s.p4)(e,["no-configs","got empty config object"]),e.configs.map((r=>w(e,r,t,n)))}function v(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,s.cY)(r,t,n),r}},79069:(e,t,n)=>{"use strict";function r(e,t){e.warnings.push(t)}function o(e,t){const n=e.tree.rootNode;let r=e.startIndex,o=e.endIndex;t||(t=n.text,r-=n.startIndex,o-=n.startIndex),r===o&&o++;let s=r;r>0&&(s=t.lastIndexOf("\n",r-1)+1);let a=o-r,i=t.indexOf("\n",r);-1===i?i=t.length:i<o&&(a=i-r+1);return t.slice(s,i)+"\n"+(" ".repeat(r-s)+"^".repeat(a))}function s(e,t,n){e.urls.length>1&&!(null===n||void 0===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?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?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?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:()=>o,cY:()=>s,p4:()=>r})},75767:(e,t,n)=>{"use strict";n.d(t,{AM:()=>s,H4:()=>l,J_:()=>i,L0:()=>u,MN:()=>c,bo:()=>a,ct:()=>r,iB:()=>o,wk:()=>d});const r=1,o=2,s=4,a=8,i=32,l=64,u=128,c=-17;function d(e){if(e===c)return"basic";const t=[[s,"negotiate"],[l,"bearer"],[o,"digest"],[a,"ntlm"],[i,"ntlm-wb"],[r,"basic"],[u,"aws-sigv4"]];for(const[n,r]of t)if(e&n)return r;return"none"}},29599:(e,t,n)=>{"use strict";n.d(t,{Lk:()=>i,N4:()=>l,U$:()=>d,Zy:()=>g,xv:()=>u});var r=n(45915),o=n(68407),s=n(79069),a=n(75767);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},"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},"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"},"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[w,b]of Object.entries(i)){const e=!("expand"in b)||b.expand,t="removed"in b&&b.removed;if(e&&!t)for(let n=1;n<w.length;n++){const e=w.slice(0,n);Object.prototype.hasOwnProperty.call(l,e)?l[e]=null:Object.prototype.hasOwnProperty.call(i,e)||(l[e]=b)}}const u=["url","proto-default","request","get","head","no-head","header","user-agent","referer","range","time-cond","cookie","oauth2-bearer","user","basic","no-basic","data","data-raw","data-ascii","data-binary","data-urlencode","json","url-query","globoff","disallow-username-in-url"];function c(e){return!!e.startsWith("no-disable-")||!e.startsWith("disable-")&&!e.startsWith("no-")}const d={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"},p={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(["authArgs","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,s.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":m(t,"authArgs",[n,!0]),t.authtype|=a.L0;break;case"oauth2-bearer":m(t,"authArgs",[n,!0]),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":m(t,"authArgs",[n,r]),r?t.authtype|=a.iB:t.authtype&=~a.iB;break;case"negotiate":m(t,"authArgs",[n,r]),r?t.authtype|=a.AM:t.authtype&=~a.AM;break;case"ntlm":m(t,"authArgs",[n,r]),r?t.authtype|=a.bo:t.authtype&=~a.bo;break;case"ntlm-wb":m(t,"authArgs",[n,r]),r?t.authtype|=a.J_:t.authtype&=~a.J_;break;case"basic":m(t,"authArgs",[n,r]),r?t.authtype|=a.ct:t.authtype&=~a.ct;break;case"anyauth":m(t,"authArgs",[n,r]),r&&(t.authtype=a.MN);break;case"location":t.location=r;break;case"location-trusted":t.location=r,t["location-trusted"]=r;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},e.configs.push(t));break;default:t[n]=r}return t}function g(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:d,m=arguments.length>4?arguments[4]:void 0,g=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],w={authtype:a.ct};const b={configs:[w],warnings:g};for(let a=1,i=!0;a<e.length;a++){const l=e[a];if(i&&l.startsWith("-"))if((0,o.eq)(l,"--"))i=!1;else if(l.startsWith("--")){const i=(0,o.WL)(l);if(i)throw new r.fA("this "+i.type+" could "+("command"===i.type?"return":"be")+" anything\n"+(0,s.TO)(i.syntaxNode));const u=l.toString(),d=u.slice(2);let p=n[d];if("undefined"===typeof p&&(p=t[d]),null===p)throw new r.fA("option "+u+": is ambiguous");if("undefined"===typeof p)throw new r.fA("option "+u+": is unknown");if("string"===p.type){if(a++,a>=e.length)throw new r.fA("option "+u+": requires parameter");f(b,w,p.name,e[a])}else w=y(b,w,p.name,c(u.slice(2)));h(b,u,p,m)}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(b,w,n.name,c(e))}}for(let n=1;n<l.length;n++){const o=l.get(n);if("string"!==typeof o)throw new r.fA("this "+o.type+" could "+("command"===o.type?"return":"be")+" anything\n"+(0,s.TO)(o.syntaxNode));if(!(0,r.zy)(u,o)){if((0,r.zy)(p,o))throw new r.fA("option "+l+": "+p[o]);throw new r.fA("option "+l+": is unknown")}const i=o,d=u[i],_=t[d];if(null===_)throw new r.fA("ambiguous short option -"+o);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(b,w,_.name,t)}else w=y(b,w,_.name,c(d));i&&h(b,"-"+i,_,m)}}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,s.TO)(l.tokens[0].syntaxNode)])}f(b,w,"url",l)}}for(const r of b.configs)for(const[e,t]of Object.entries(r))Array.isArray(t)&&!_.has(e)&&(r[e]=t[t.length-1]);return b}},1545:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{m_:()=>h});var o=n(68407),s=n(75929),a=n(1834),i=n(26508),l=e([s]);s=(l.then?(await l)():l)[0];const c=new Set([...s.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 d(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(s){}else if("application/x-www-form-urlencoded"===r){if(e.dataArray&&1===e.dataArray.length&&!(e.dataArray[0]instanceof o.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){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=(0,s.dH)(e,t,{dataReadsFile:!0});n.dataReadsFile&&n.dataArray&&(n.dataArray.length>1||!(n.dataArray[0]instanceof o.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.data){const e=d(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 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,o.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 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,o]=n.cert;r.client_cert=e.toString(),o&&t.push(["cert-password","Ansible does not support client certificate passwords: "+JSON.stringify(o.toString())])}if(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(),o=parseInt(e);isNaN(o)?(r.timeout=e,t.push(["ansible-timeout-not-int","couldn't parse timeout as an integer: "+JSON.stringify(e)])):r.timeout=o,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 _(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return[p((0,s.qg)(e,c,t),t),t]}function h(e){return _(e)[0]}r()}catch(u){r(u)}}))},7473:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{sL:()=>_});var o=n(68407),s=n(75929),a=n(50226),i=e([s,a]);[s,a]=i.then?(await i)():i;const u=new Set([...s.xv,"form","form-string","max-time","proxy","proxy-user"]);function c(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 d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=(0,s.dH)(e,t);let r="";if(r+="httpService = new http();\n",r+="httpService.setUrl("+c(n.urls[0].url)+");\n",r+="httpService.setMethod("+c(n.urls[0].method)+");\n",n.cookies){for(const[e,t]of n.cookies)r+='httpService.addParam(type="cookie", name='+c(e)+", value="+c(t)+");\n";n.headers.delete("Cookie")}if(n.headers.length)for(const[s,a]of n.headers)r+='httpService.addParam(type="header", name='+c(s)+", value="+c(a||new o.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("+c(e)+");\n",r+="httpService.setPassword("+c(t||"")+");\n"}if(n.proxy){const e=n.proxy.toString();let t=e,o="1080";const s=e.match(/:([0-9]+)/);if(s&&(t=e.slice(0,s.index),o=s[1]),r+="httpService.setProxyServer("+c(t)+");\n",r+="httpService.setProxyPort("+o.trim()+");\n",n.proxyAuth){const[e,t]=n.proxyAuth.split(":",2);r+="httpService.setProxyUser("+c(e)+");\n",r+="httpService.setProxyPassword("+c(t||"")+");\n"}}if(n.data||n.multipartUploads)if(n.multipartUploads)for(const o of n.multipartUploads)r+="contentFile"in o?'httpService.addParam(type="file", name='+c(o.name)+', file="#expandPath('+c(o.contentFile)+')#");\n':'httpService.addParam(type="formfield", name='+c(o.name)+", value="+c(o.content)+");\n";else!n.isDataRaw&&n.data&&"@"===n.data.charAt(0)?r+='httpService.addParam(type="body", value="#'+(n.isDataBinary?"fileReadBinary":"fileRead")+"(expandPath("+c(n.data.toString().substring(1))+'))#");\n':r+='httpService.addParam(type="body", value='+c(n.data)+");\n";return r+="\nresult = httpService.send().getPrefix();\n",r+="writeDump(result);\n",r}function p(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return[d((0,s.qg)(e,u,t),t),t]}function _(e){return p(e)[0]}r()}catch(l){r(l)}}))},15277:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{n(45915),n(68407);var r=n(75929),o=(n(1834),n(66228)),s=e([r,o]);[r,o]=s.then?(await s)():s;new Set([...r.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"]);t()}catch(a){t(a)}}))},55770:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{D0:()=>m});var o=n(45915),s=n(68407),a=n(75929),i=e([a]);a=(i.then?(await i)():i)[0];const u=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"]),c=/"|\\|\p{C}|[^ \P{Z}]/gu;function d(e){return'"'+e.replace(c,(e=>{switch(e){case"\0":return"\\0";case"\x07":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(d(r)):"variable"===r.type?(n.push("Environment.GetEnvironmentVariable("+d(r.value)+")"),t.add("System")):(n.push("System.Diagnostics.Process.Start("+d(r.value)+")"),t.add("System.Diagnostics"));return n.join(" + ")}function _(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];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,o.zy)(l,u)&&(c="HttpMethod."+l[u]);const d=(0,o.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";const 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,s.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.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";else if(n.multipartUploads){_+="\n",_+="MultipartFormDataContent content = new MultipartFormDataContent();\n";for(const e of n.multipartUploads){const t=p(e.name,r),o="filename"in e&&e.filename;_+="content.Add(new ","contentFile"in e?(0,s.eq)(e.contentFile,"-")?n.stdinFile?(_+="ByteArrayContent(File.ReadAllBytes("+p(n.stdinFile,r)+")), "+t,o&&(_+=", Path.GetFileName("+p(o,r)+")"),_+=");\n"):n.stdin?(_+="StringContent("+p(n.stdin,r)+"), "+t,o&&(_+=", Path.GetFileName("+p(o,r)+")"),_+=");\n"):(_+="StringContent(Console.ReadLine()), "+t,o&&(_+=", Path.GetFileName("+p(o,r)+")"),_+=");\n"):(_+="ByteArrayContent(File.ReadAllBytes("+p(e.contentFile,r)+")), "+t,o&&(_+=", Path.GetFileName("+p(o,r)+")"),_+=");\n"):_+="StringContent("+p(e.content,r)+"), "+t+");\n"}_+="request.Content = content;\n"}else n.headers.has("content-type")&&(_+='request.Content = new StringContent("");\n');if(f.length)for(const[s,a]of f){if(null===a)continue;const e=s.toLowerCase().toString();"content-type"===e?(r.add("System.Net.Http.Headers"),a.includes(";")?_+="request.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("+p(a,r)+");\n":_+="request.Content.Headers.ContentType = new MediaTypeHeaderValue("+p(a,r)+");\n"):"content-length"===e?(a.isString()&&!(0,o.E6)(a.toString())&&t.push(["content-length-not-int","Content-Length header value is not a number: "+p(a,r)]),_+="// request.Content.Headers.ContentLength = "+a.split("\n")[0].toString()+";\n"):(0,o.zy)(h,e)&&(_+="request.Content.Headers."+h[e]+" = "+p(a,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 h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return[_((0,a.qg)(e,u,t),t),t]}function m(e){return h(e)[0]}r()}catch(l){r(l)}}))},69260:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{F4:()=>y});var o=n(68407),s=n(75929),a=n(1834),i=n(50226),l=e([s,i]);[s,i]=l.then?(await l)():l;const c=new Set([...s.xv,"compressed","form","form-string","no-compressed"]);function d(e,t){return(0,i.UQ)(e,t).replace(/\$/g,"\\$")}function p(e){const t=e.includes("'")&&!e.includes('"')?'"':"'";return t+d(e,t)+t}function _(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 h(e,t){if(e instanceof o.vZ)return _(e,t);const n=[];for(const r of e)n.push(_(r,t));return"["+n.join(", ")+"]"}function m(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=(0,s.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 = "+_(e,r)+";\n  final pword = "+_(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.compressed||n.isDataBinary||"put"===n.urls[0].method.toLowerCase().toString();if(u&&!l){i+="  final headers = {\n";for(const[e,t]of n.headers)i+="    "+_(e,r)+": "+_(null!==t&&void 0!==t?t:new o.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+="    "+_(e,r)+": "+h(t,r)+",\n";i+="  };\n",i+="\n"}const c=n.data;if(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+="    "+_(e,r)+": "+_(n,r)+",\n"}i+="  };\n",i+="\n"}else i+="  final data = ".concat(_(n.data,r),";\n\n")}if(n.urls[0].queryDict){i+="  final url = Uri.parse("+_(n.urls[0].urlWithoutQueryList,r)+")\n      .replace(queryParameters: params);\n"}else i+="  final url = Uri.parse("+_(n.urls[0].url,r)+");\n";if(i+="\n",l){let e="http.";n.multipartUploads?e+="MultipartRequest":e+="Request",e+="("+_(n.urls[0].method,r)+", url)";for(const t of n.multipartUploads||[]){const s=_(t.name,r),a="filename"in t&&t.filename;"contentFile"in t?(e+="\n    ..files.add(await http.MultipartFile.",(0,o.eq)(t.contentFile,"-")?n.stdinFile?(e+="fromPath(\n",e+="      "+s+", "+_(n.stdinFile,r),a&&n.stdinFile!==a&&(e+=",\n",e+="      filename: "+_(a,r)),e+="))"):n.stdin?(e+="fromString(\n",e+="      "+s+", "+_(n.stdin,r),a&&(e+=",\n",e+="      filename: "+_(a,r)),e+="))"):(e+="fromString(\n",e+="      "+s+", stdin.readLineSync(encoding: utf8)",a&&(e+=",\n",e+="      filename: "+_(a,r)),e+="))",r.add("dart:io"),r.add("dart:convert")):(e+="fromPath(\n",e+="      "+s+", "+_(t.contentFile,r),a&&t.contentFile!==a&&(e+=",\n",e+="      filename: "+_(a,r)),e+="))")):e+="\n    ..fields["+s+"] = "+_(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["+_(e,r)+"] = "+_(t||new o.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 d="";for(const o of Array.from(r).sort())d+="import '"+o+"';\n";return d+="import 'package:http/http.dart' as http;\n",d+"\n"+i+"\n"}function f(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return[m((0,s.qg)(e,c,t),t),t]}function y(e){return f(e)[0]}r()}catch(u){r(u)}}))},59754:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{js:()=>T});var o=n(79069),s=n(68407),a=n(75929),i=n(1834),l=e([a]);a=(l.then?(await l)():l)[0];const c=new Set([...a.xv,"form","form-string","insecure","no-insecure","next"]),d=/"|\\|\p{C}|[^ \P{Z}]|#\{/gu;function p(e){return'"'+e.replace(d,(e=>{switch(e[0]){case"\0":return"\\0";case"\x07":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"\x1b":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 _(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 h(e){return e.split("\n").map((e=>e?"  "+e:e)).join("\n")}function m(e){if(!e.cookies||!e.cookies.length)return"";const t=(0,s.yZ)(e.cookies.map((e=>(0,s.yZ)(e,"="))),"; ");return"cookie: [".concat(_(t),"]")}function f(e,t){const n=[],r=y(e);r&&n.push(r),e.insecure&&n.push(":insecure");const o=m(e);o&&n.push(o);let s="";n.length>1?s="hackney: [\n    ".concat(n.join(",\n    "),"\n  ]"):n.length&&(s="hackney: [".concat(n[0],"]"));const a="[".concat(s,"]");let i=a;return"[]"!==t&&(i="",i+="[\n",i+="    params: "+h(t).trim(),s&&(i+=",\n",i+="    "+h(s).trim()),i+="\n",i+="  ]"),[i,a]}function y(e){if(!e.urls[0].auth)return"";const[t,n]=e.urls[0].auth;return"basic_auth: {".concat(_(t),", ").concat(_(n),"}")}function g(e){if(!e.urls[0].queryList||!e.urls[0].queryList.length)return"[]";let t="[\n";const n=[];for(const[r,o]of e.urls[0].queryList)n.push("    {".concat(_(r),", ").concat(_(o),"}"));return t+=n.join(",\n"),t+="\n  ]",t}function w(e){if(!e.headers.length)return"[]";let t="[\n";const n=[];for(const[r,o]of e.headers)n.push("    {".concat(_(r),", ").concat(_(null!==o&&void 0!==o?o:new s.vZ),"}"));return t+=n.join(",\n"),t+="\n  ]",t}function b(e){const t=v(e);return t||'""'}function v(e){var t;if(e.data)return S(e);if(!e.multipartUploads)return"";if(!e.multipartUploads.length)return"{:multipart, []}";const n=[];for(const o of e.multipartUploads)"contentFile"in o?n.push("    {:file, ".concat(_(o.contentFile),', {"form-data", [{:name, ').concat(_(o.name),"}, {:filename, Path.basename(").concat(_(null!==(t=o.filename)&&void 0!==t?t:o.contentFile),")}]}, []}")):n.push("    {".concat(_(o.name),", ").concat(_(o.content),"}"));const r=n.join(",\n");return r?"{:multipart, [\n".concat(r,"\n  ]}"):""}function S(e){if(!e.data)return"";if(!e.isDataRaw&&e.data.startsWith("@")){const t=e.data.slice(1);return e.isDataBinary?"File.read!(".concat(_(t),")"):"{:file, ".concat(_(t),"}")}const[t]=(0,i.JO)(e.data);if(t&&t.length){const e=t.map((e=>{const[t,n]=e;return"    {".concat(_(t),", ").concat(_(n),"}")}));return"{:form, [\n".concat(e.join(",\n"),"\n  ]}")}return e.data.isString()&&!e.data.includes("|")&&e.data.split("\n",4).length>3&&!e.data.match(/[^\S\r\n]\n/)?"~s|"+e.data.toString()+"|":_(e.data)}function E(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];(0,o.cY)(e,t),e.cookies&&e.headers.delete("cookie");const n=["DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT"],r=e.urls[0].method,s=r.toString();n.includes(s)||t.push(["bad-method","Unsupported method "+JSON.stringify(s)]);const a=["PATCH","POST","PUT"].includes(s),i=b(e),l=w(e),u=g(e),[c,d]=f(e,u);if(a||'""'===i&&n.includes(s)){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(_(e.urls[0].urlWithoutQueryList)),t=t.reverse();let r="response = HTTPoison."+s.toLowerCase()+"!(";return 1===t.length?r+=t[0]:(r+="\n",r+="  "+t.join(",\n  "),r+="\n"),r+")\n"}return"request = %HTTPoison.Request{\n  method: :".concat(r.toLowerCase().toString(),",\n  url: ").concat(_(e.urls[0].urlWithoutQueryList),",\n  body: ").concat(i,",\n  headers: ").concat(l,",\n  options: ").concat(d,",\n  params: ").concat(u,"\n}\n\nresponse = HTTPoison.request(request)\n")}function x(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.map((e=>E(e,t))).join("\n")}function A(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return[x((0,a.qg)(e,c,t),t),t]}function T(e){return A(e)[0]}r()}catch(u){r(u)}}))},93391:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{EK:()=>w});var o=n(45915),s=n(68407),a=n(75929),i=n(75296),l=e([a,i]);[a,i]=l.then?(await l)():l;const c=new Set([...a.xv,"insecure","no-insecure","compressed","no-compressed","max-time","form","form-string"]),d="\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n";function p(e,t,n){return e.isString()&&e.includes('"')?_(e,t,n):m(e,t,n)}function _(e,t,n){return!e.isString()||e.includes("`")||e.includes("\r")?m(e,t,n):"`"+e.toString()+"`"}function h(e){return(0,i.rx)(e,'"')}function m(e,t,n){const r=[];for(const s of e.tokens)if("string"===typeof s)r.push(h(s));else if("variable"===s.type)r.push("os.Getenv("+h(s.value)+")"),n.add("os");else{const e="exec.Command("+h(s.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 o.fA("lol");t[i]=e,r.push(i),n.add("os/exec")}return r.join(" + ")}function f(e,t,n){if(e.isString()){const t=e.toString();if(/^\d+\.?\d*$/.test(t))return t}return t.timeout="strconv.Atoi("+m(e,t,n)+")",n.add("strconv"),"timeout"}function y(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];var n;const r=(0,a.dH)(e,t),o=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",o.add("bytes"),o.add("mime/multipart");let e=!0,t=!0;for(const s of r.multipartUploads){if("contentFile"in s){const t=e?":=":"=";e=!1,l+="\tfw, err ".concat(t," writer.CreateFormFile(").concat(m(s.name,i,o),", filepath.Base(").concat(m(null!==(n=s.filename)&&void 0!==n?n:s.contentFile,i,o),"))\n"),l+=d,o.add("path/filepath"),l+="\tfd, err ".concat(t," os.Open(").concat(m(s.contentFile,i,o),")\n"),l+=d,o.add("os"),l+="\tdefer fd.Close()\n",l+="\t_, err = io.Copy(fw, fd)\n",l+=d}else{const e=t?":=":"=";t=!1,l+="\tformField, err ".concat(e," writer.CreateFormField(").concat(m(s.name,i,o),")\n"),l+=d,l+="\t_, err = formField.Write([]byte(".concat(p(s.content,i,o),"))\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",o.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: "+f(r.timeout,i,o)+" * time.Second,\n",l+="\t",o.add("time")):(r.insecure||!1===r.compressed)&&(l+="Transport: tr"),l+="}\n",r.data&&(l+="\tvar data = strings.NewReader("+_(r.data,i,o)+")\n",o.add("strings")),l+="\treq, err := http.NewRequest("+m(r.urls[0].method,i,o)+", "+m(r.urls[0].url,i,o),l+=", "+(r.data?"data":r.multipartUploads?"form":"nil")+")\n",l+=d,r.headers.length)for(const[a,c]of r.headers){let e="\t";"accept-encoding"===a.toLowerCase().toString()&&!1!==r.compressed&&(e+="// "),l+=e+"req.Header.Set("+m(a,i,o)+", "+p(c||new s.vZ,i,o)+")\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("+m(e,i,o)+", "+m(t,i,o)+")\n"}l+="\tresp, err := client.Do(req)\n",l+=d,l+="\tdefer resp.Body.Close()\n",l+="\tbodyText, err := io.ReadAll(resp.Body)\n",l+=d,l+='\tfmt.Printf("%s\\n", bodyText)\n',l+="}";let u="package main\n\n";u+="import (\n";for(const s of Array.from(o).sort())u+='\t"'+s+'"\n';u+=")\n\n",u+="func main() {\n";for(const[s,a]of Array.from(Object.entries(i)).sort())u+="\t"+s+", err := "+a+"\n",u+=d;return Object.values(i).length&&(u+="\n"),u+l+"\n"}function g(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return[y((0,a.qg)(e,c,t),t),t]}function w(e){return g(e)[0]}r()}catch(u){r(u)}}))},68566:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{n(45915);var r=n(75929),o=(n(1834),e([r]));r=(o.then?(await o)():o)[0];new Set([...r.xv,"anyauth","no-anyauth","http1.1","http2","http2-prior-knowledge","http3","http3-only"]);t()}catch(s){t(s)}}))},75981:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{n(45915);var r=n(75929),o=e([r]);r=(o.then?(await o)():o)[0];new Set([...r.xv,"form","form-string","http0.9","http1.1","http2","http2-prior-knowledge","http3","http3-only","no-http0.9","compressed","no-compressed","upload-file"]);t()}catch(s){t(s)}}))},2707:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{n(45915),n(68407);var r=n(75929),o=(n(1834),n(50834)),s=e([r,o]);[r,o]=s.then?(await s)():s;new Set([...r.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"]);t()}catch(a){t(a)}}))},68095:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{n(68407);var r=n(75929),o=n(66228),s=e([r,o]);[r,o]=s.then?(await s)():s;new Set([...r.xv]);t()}catch(a){t(a)}}))},66228:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{eO:()=>m});var o=n(68407),s=n(75929),a=e([s]);s=(a.then?(await a)():a)[0];const l=new Set([...s.xv,"max-time","connect-timeout","location","upload-file","http2"]),u=/"|\\|\p{C}|[^ \P{Z}]/gu,c=/[0-9]/;function d(e){return'"'+e.replace(u,((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||c.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(d(r)):"variable"===r.type?(n.push("System.getenv("+d(r.value)+")"),t.add("java.lang.System")):(n.push("exec("+d(r.value)+")"),t.add("java.lang.Runtime"),t.add("java.util.Scanner"));return n.join(" + ")}function _(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=(0,s.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,o.eq)(r.uploadFile,"-")||(0,o.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 o.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,o]=r.auth;i+="String credentials = "+p(e,a)+' + ":" + '+p(o,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",'"'.concat(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[o,s]of n.headers)null!==s&&(i+="    .setHeader("+p(o,a)+", "+p(s,a)+")\n");if(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> response = client.send(request, HttpResponse.BodyHandlers.ofString());\n";let h="";for(const o of Array.from(a).sort())h+="import "+o+";\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 h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return[_((0,s.qg)(e,l,t),t),t]}function m(e){return h(e)[0]}r()}catch(i){r(i)}}))},27475:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{n(68407);var r=n(75929),o=n(66228),s=e([r,o]);[r,o]=s.then?(await s)():s;new Set([...r.xv,"form","form-string","max-time"]);t()}catch(a){t(a)}}))},84818:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{n(68407);var r=n(75929),o=(n(1834),n(66228)),s=e([r,o]);[r,o]=s.then?(await s)():s;new Set([...r.xv,"max-time","connect-timeout","location","location-trusted","upload-file","form","form-string"]);t()}catch(a){t(a)}}))},25391:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{qP:()=>y});var o=n(45915),s=n(68407),a=n(75929),i=n(1834),l=n(50226),u=e([a,l]);[a,l]=u.then?(await u)():u;const d=new Set([...a.xv,"max-time","form","form-string","proxy","proxy-user"]);function p(e,t){if(!e.data)return[null,null];const n=(0,l.Sj)(e.data,t),r=e.headers.getContentType(),o=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,s.eq)(o,"application/json")&&(0,s.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,s.eq)(o,"application/x-www-form-urlencoded")&&e.headers.delete("content-type"),[(0,l.bU)([r,a],t),null]):[n,null]}return[null,null]}function _(e,t){if(!e.data)return[null,null];let n=null,r=null;try{[n,r]=p(e,t)}catch(o){}return n||(n=(0,l.Sj)(e.data,t)),[n,r]}function h(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[d,p]=_(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&&void 0!==n?n:new s.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.data?(p&&(c+="  // data: "+p+",\n"),c+="  data: "+d+",\n"):e.multipartUploads&&(c+="  data: form,\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 s.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,o.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 m(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=(0,a.dH)(e,t);let r="import axios from 'axios';\n";const o=[];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,o)+", "+(0,l.Sj)(t,o)+");\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,o)+", ","contentFile"in e?((0,l.Xx)(o,"* as fs","fs"),(0,s.eq)(e.contentFile,"-")?i+="fs.readFileSync(0).toString()":i+="fs.readFileSync("+(0,l.Sj)(e.contentFile,o)+")","filename"in e&&e.filename&&(i+=", "+(0,l.Sj)(e.filename,o))):i+=(0,l.Sj)(e.content,o),i+=");\n";i+="\n"}const c=n.urls[0].method.toLowerCase(),d=c.toString(),p=["get","delete","head","options","post","put","patch"];i+="const response = await axios",p.includes(d)&&(i+="."+d),i+="(";const m=n.urls[0].queryDict||u?n.urls[0].urlWithoutQueryList:n.urls[0].url,f=["post","put","patch"];let y=!!(!p.includes(d)||n.urls[0].queryList||n.urls[0].queryDict||n.headers.length||n.urls[0].auth||n.multipartUploads||n.data&&!f.includes(d)||n.timeout||n.proxy);const g=f.includes(d)&&(n.data||n.multipartUploads||y);let w,b;if(g)if(i+="\n",i+="  "+(0,l.Sj)(m,o)+",\n",n.data){try{[w,b]=_(n,o),w||(w=(0,l.Sj)(n.data,o))}catch(v){w=(0,l.Sj)(n.data,o)}b&&(i+="  // "+b+",\n"),i+="  "+w}else n.multipartUploads?i+="  form":y&&(i+="  ''");else i+=(0,l.Sj)(m,o);if(y=!!(!p.includes(d)||n.urls[0].queryList||n.urls[0].queryDict||n.headers.length||n.urls[0].auth||n.multipartUploads||n.data&&!f.includes(d)||n.timeout||n.proxy),y){const e=h(n,c,d,p,f,!!u,o);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)(o),r+"\n"+i}function f(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return[m((0,a.qg)(e,d,t),t),t]}function y(e){return f(e)[0]}r()}catch(c){r(c)}}))},75123:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{n(68407);var r=n(75929),o=(n(1834),n(50226)),s=e([r,o]);[r,o]=s.then?(await s)():s;new Set([...r.xv,"max-time","connect-timeout","location","no-location","location-trusted","no-location-trusted","max-redirs","compressed","insecure","http2","http2-prior-knowledge","form","form-string"]);t()}catch(a){t(a)}}))},65837:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{n(68407);var r=n(75929),o=(n(1834),n(50226)),s=n(24179),a=e([r,o,s]);[r,o,s]=a.then?(await a)():a;new Set([...r.xv,"form","form-string","max-time"]);t()}catch(i){t(i)}}))},50226:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{BD:()=>w,RD:()=>m,Sj:()=>N,UQ:()=>S,Xx:()=>x,Z6:()=>I,bU:()=>R,cX:()=>A,j6:()=>D,rx:()=>E,xH:()=>T,ye:()=>B});var o=n(79069),s=n(68407),a=n(75929),i=n(1834),l=n(81361),u=e([a]);a=(u.then?(await u)():u)[0];const d=new Set([...a.xv,"upload-file","form","form-string","digest","no-digest","next","compressed"]),p=new Set([...d,"proxy"]),_=["CONNECT","TRACE","TRACK"],h=["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 m(e,t){const n=l(e,{quotes:"single",minimal:!1,compact:!1,indent:"  ",indentLevel:t||0});return"string"===typeof e?"'"+n+"'":n}function f(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"  ",r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4?arguments[4]:void 0;if(0===e.length)return r?"[]":"{}";let s=r?"[\n":"{\n";for(const[a,[i,l]]of e.entries())s+=n.repeat(t+1),s+=r?"["+N(i,o)+", "+N(l,o)+"]":N(i,o)+": "+N(l,o),s+=a<e.length-1?",\n":"\n";return s+=n.repeat(t)+(r?"]":"}"),s}function y(e){return f(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,arguments.length>3&&void 0!==arguments[3]?arguments[3]:"  ",!1,arguments.length>2?arguments[2]:void 0)}function g(e){return f(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,arguments.length>3&&void 0!==arguments[3]?arguments[3]:"  ",!0,arguments.length>2?arguments[2]:void 0)}function w(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"  ",o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if(0===e.length)return o?"[]":"{}";let s="{\n";for(const[a,[i,l]]of e.entries()){let o;o=Array.isArray(l)?"["+l.map((e=>N(e,n))).join(", ")+"]":N(l,n),s+=r.repeat(t+1),s+=N(i,n)+": "+o,s+=a<e.length-1?",\n":"\n"}return s+=r.repeat(t)+"}",s}const b=/'|"|\\|\p{C}|[^ \P{Z}]/gu,v=/[0-9]/;function S(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"'";return e.replace(b,((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(!v.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 o=e.charCodeAt(0).toString(16);return o.length>2?"\\u"+o.padStart(4,"0"):"\\x"+o.padStart(2,"0")}))}function E(e,t){return void 0===t&&(t="'",e.includes("'")&&!e.includes('"')&&(t='"')),t+S(e,t)+t}function x(e,t,n){for(const[r,o]of e)if(r===t&&o===n)return;e.push([t,n])}function A(e){let t="";for(const[n,r]of e.sort(M))n.startsWith("* as")?t+="import ".concat(n," from ").concat(E(r),";\n"):t+="import { ".concat(n," } from ").concat(E(r),";\n");return t}function T(e){const t=[];if(0===e.length)return"";for(const[n,r]of e.sort(M))n.startsWith("* as ")?t.push("const ".concat(n.slice(5)," = require(").concat(E(r),");")):n.includes(".")?t.push("const ".concat(n," = require(").concat(E(r),").").concat(n,";")):t.push("const ".concat(n," = require(").concat(E(r),");"));return t.join("\n")+"\n"}function N(e,t){const n=[];for(const r of e.tokens)"string"===typeof r?n.push(E(r)):"variable"===r.type?n.push("process.env["+E(r.value)+"]"):(n.push("execSync("+E(r.value)+").stdout"),x(t,"execSync","node:child_process"));return n.join(" + ")}function C(e,t,n){return t?N(e,n):E(e.toString())}function I(e,t){if(e.isString()){const t=e.toString(),n=1e3*parseFloat(t);if(!isNaN(n))return n.toString()}return"parseFloat("+N(e,t)+") * 1000"}function M(e,t){return e[1].localeCompare(t[1])}function R(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const[r,o]=e;return"new URLSearchParams("+(o&&o.every((e=>!Array.isArray(e[1])))?y(o,n,t):g(r,n,t))+")"}function k(e,t,n,r){let o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a="new FormData();\n";for(const i of e)a+="form.append("+C(i.name,o,t)+", ","contentFile"in i?o?(0,s.eq)(i.contentFile,"-")?(x(t,"* as fs","fs"),a+="fs.readFileSync(0).toString()",i.filename&&(a+=", "+C(i.filename,o,t))):(n.add("fileFromSync"),a+="fileFromSync("+C(i.contentFile,o,t)+")"):(a+="File(['<data goes here>'], "+C(i.contentFile,o,t)+")",r.push(["--form","you can't read a file for --form/-F in the browser"])):a+=C(i.content,o,t),a+=");\n";return a}function F(e,t,n,r){const o=C(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[o,null];const r=JSON.stringify(n)===e,s=m(n,1);return["JSON.stringify("+s+")",r?null:o]}catch(l){return[o,null]}if("application/x-www-form-urlencoded"===a)try{const[n,a]=(0,i.JO)(t);return n?((0,s.eq)(e.headers.get("content-type"),"application/x-www-form-urlencoded")&&e.headers.delete("content-type"),[R([n,a],r),null]):[o,null]}catch(u){return[o,null]}return[o,null]}function O(e,t,n){if(!e.dataArray)return["",null];if(1===e.dataArray.length&&e.dataArray[0]instanceof s.vZ&&e.dataArray[0].isString())try{return F(e,e.dataArray[0],t,n)}catch(u){}const r=[],o=e.dataArray.some((e=>!(e instanceof s.vZ)&&"binary"===e.filetype))?"":", 'utf-8'";for(const c of e.dataArray)if(c instanceof s.vZ)r.push(N(c,n));else{const{filetype:e,name:a,filename:i}=c;"urlencode"===e&&a&&r.push(C(a,t,n)),(0,s.eq)(i,"-")?t?(x(n,"* as fs","fs"),r.push("fs.readFileSync(0"+o+")")):r.push("new File([/* contents */], '<stdin>')"):t?(x(n,"* as fs","fs"),r.push("fs.readFileSync("+C(i,t,n)+o+")")):r.push("new File([/* contents */], "+C(i,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 P(e,t,n,r,a){(0,o.cY)(e,t,{multipleUrls:!0,dataReadsFile:!0,queryReadsFile:!0});let i="";e.multipartUploads&&(a&&n.add("FormData"),i+="const form = "+k(e.multipartUploads,r,n,t,a),i+="\n");const[l,u]=O(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("+C(t,a,r)+", "+C(n,a,r)+");\n",c="client.fetch"}for(const o of e.urls){i+=c+"("+C(o.url,a,r),o.queryReadsFile&&t.push(["unsafe-query","the URL query string is not correct, "+JSON.stringify("@"+o.queryReadsFile)+" means it should read the file "+JSON.stringify(o.queryReadsFile)]);const d=o.method.toLowerCase(),p=o.method.toString();d.isString()&&_.includes(p)&&t.push(["forbidden-method","the method "+JSON.stringify(p)+" is not allowed in fetch()"]);let m="";if((0,s.eq)(d,"get")||(m+="  method: "+C(o.method,a,r)+",\n"),e.headers.length||o.auth&&"basic"===e.authType){m+="  headers: {\n";for(const[n,o]of e.headers)m+="    "+C(n,a,r)+": "+C(o||new s.vZ,a,r)+",\n",!a&&n.isString()&&h.includes(n.toString().toLowerCase())&&t.push(["forbidden-header",JSON.stringify(n.toString())+" header is forbidden in fetch()"]);o.auth&&"basic"===e.authType&&(m+="    'Authorization': 'Basic ' + btoa("+C((0,s.yZ)(o.auth,":"),a,r)+"),\n"),m.endsWith(",\n")&&(m=m.slice(0,-2),m+="\n"),m+="  },\n"}if(o.uploadFile?a?(n.add("fileFromSync"),m+="  body: fileFromSync("+C(o.uploadFile,a,r)+"),\n"):(m+="  body: File(['<data goes here>'], "+C(o.uploadFile,a,r)+"),\n",t.push(["--form","you can't read a file for --upload-file/-F in the browser"])):e.data?(u&&(m+="  // body: "+u+",\n"),m+="  body: "+l+",\n"):e.multipartUploads&&(m+="  body: form,\n"),a&&e.proxy){const n=e.proxy.includes("://")?e.proxy:e.proxy.prepend("http://");let[o]=n.split("://",2);o=o.toLowerCase(),o.toBool()||(o=new s.vZ("http")),(0,s.eq)(o,"socks")&&(o=new s.vZ("socks4"),n.replace(/^socks/,"socks4")),(0,s.eq)(o,"socks4")||(0,s.eq)(o,"socks5")||(0,s.eq)(o,"socks5h")||(0,s.eq)(o,"socks4a")?(x(r,"{ SocksProxyAgent }","socks-proxy-agent"),m+="  agent: new SocksProxyAgent("+C(n,a,r)+"),\n"):(0,s.eq)(o,"http")||(0,s.eq)(o,"https")?(x(r,"HttpsProxyAgent","https-proxy-agent"),m+="  agent: new HttpsProxyAgent("+C(n,a,r)+"),\n"):t.push(["--proxy","failed to parse --proxy/-x or unknown protocol: "+o])}m&&(m.endsWith(",\n")&&(m=m.slice(0,-2)),i+=", {\n",i+=m,i+="\n}"),i+=");\n"}return i}function L(e,t,n){const r=new Set,o=[],s=e.map((e=>P(e,t,r,o,n))).join("\n");let a="";if(n&&(a+="import fetch",r.size&&(a+=", { "+Array.from(r).sort().join(", ")+" }"),a+=" from 'node-fetch';\n"),o.length)for(const[i,l]of Array.from(o).sort(M))a+="import "+i+" from "+E(l)+";\n";return a?a+"\n"+s:s}function q(e){return L(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],!1)}function j(e){return L(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],!0)}function U(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return[q((0,a.qg)(e,d,t),t),t]}function D(e){const[t]=U(e);return t}function H(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return[j((0,a.qg)(e,p,t),t),t]}function B(e){return H(e)[0]}r()}catch(c){r(c)}}))},24179:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{n(68407);var r=n(75929),o=(n(1834),n(50226)),s=e([r,o]);[r,o]=s.then?(await s)():s;new Set([...r.xv,"form","form-string","max-time"]);t()}catch(a){t(a)}}))},79281:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{n(68407);var r=n(75929),o=(n(1834),n(50226)),s=n(24179),a=e([r,o,s]);[r,o,s]=a.then?(await a)():a;new Set([...r.xv,"upload-file","form","form-string","next","compressed","upload-file","retry","max-time"]);t()}catch(i){t(i)}}))},54612:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{nX:()=>f});var o=n(79069),s=n(68407),a=n(75929),i=n(50226),l=e([a,i]);[a,i]=l.then?(await l)():l;const c=new Set([...a.xv,"next"]),d=/[^\u0021-\u00ff]/;function p(e,t,n,r){let a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];(0,o.cY)(e,a);let l="";if(e.headers.length){l+=_(n,"headers","{\n");let t=0;for(const[n,o]of e.headers)l+="    "+(0,i.Sj)(n,r)+": "+(0,i.Sj)(o||new s.vZ,r),l+=t<e.headers.length-1?",\n":"\n",t++;l+="};\n\n"}e.data&&(l+=_(n,"dataString",(0,i.Sj)(e.data,r)+";\n\n")),l+=_(n,"options","{\n");const u=(0,s.__)(e.urls[0].urlObj.path,e.urls[0].urlObj.query);if(u.toBool()&&d.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,s.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+="};\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 _(e,t,n){return e.has(t)||(e.add(t),t="var "+t),"".concat(t," = ").concat(n)}function h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=new Set(["request"]),r=[],o=e.map(((e,o)=>p(e,o,n,r,t)));return"var request = require('request');\n"+(0,i.xH)(r)+"\n"+o.join("\n\n")}function m(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=(0,a.qg)(e,c,t);t.unshift(["node-request","the request package is deprecated"]);return[h(n,t),t]}function f(e){return m(e)[0]}r()}catch(u){r(u)}}))},65197:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{n(68407);var r=n(75929),o=(n(1834),n(50226)),s=n(24179),a=e([r,o,s]);[r,o,s]=a.then?(await a)():a;new Set([...r.xv,"form","form-string","max-time","connect-timeout","location","max-redirs","retry","insecure","cert","key","cacert","http2"]);t()}catch(i){t(i)}}))},29639:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{n(68407);var r=n(75929),o=(n(1834),n(50226)),s=n(24179),a=e([r,o,s]);[r,o,s]=a.then?(await a)():a;new Set([...r.xv,"form","form-string","max-time"]);t()}catch(i){t(i)}}))},73923:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{J7:()=>_});var o=n(75929),s=n(1834),a=e([o]);o=(a.then?(await a)():a)[0];const l=new Set([...o.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 u(e){if(!e.data)return{};const t=e.headers.getContentType();if("application/json"===t)try{return JSON.parse(e.data.toString())}catch(n){}if("application/x-www-form-urlencoded"===t){const[t,n]=(0,s.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 c(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 d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=(0,o.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=u(n):n.multipartUploads&&Object.assign(r,c(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)}return 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){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return[d((0,o.qg)(e,l,t),t),t]}function _(e){return p(e)[0]}r()}catch(i){r(i)}}))},69960:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{n(45915),n(68407);var r=n(75929),o=(n(1834),n(8589),e([r]));r=(o.then?(await o)():o)[0];new Set([...r.xv,"max-time","no-compressed","insecure","no-insecure","upload-file","connect-timeout","timeout","retry","location","max-redirs","form","form-string"]);t()}catch(s){t(s)}}))},89080:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{n(68407);var r=n(75929),o=(n(1834),e([r]));r=(o.then?(await o)():o)[0];new Set([...r.xv,"max-time","connect-timeout","location","location-trusted","upload-file","form","form-string"]);t()}catch(s){t(s)}}))},73155:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{n(68407);var r=n(75929),o=n(75296),s=e([r,o]);[r,o]=s.then?(await s)():s;new Set([...r.xv]);t()}catch(a){t(a)}}))},35338:(e,t,n)=>{"use strict";n.d(t,{FB:()=>m,Sj:()=>l,Tx:()=>c,bf:()=>d,c4:()=>y,ch:()=>u,eu:()=>_,kM:()=>f,rx:()=>i,tO:()=>h,uN:()=>p});var r=n(45915);const o=/(\p{C}|[^ \P{Z}])/gu;function s(e){if(!e)return["''"];return e.replace(/'/g,"''").split(o).filter((e=>e)).flatMap((e=>{if(e.match(o)){if(1!==e.length)return["char(".concat(e.charCodeAt(0),")"),"char(".concat(e.charCodeAt(1),")")];switch(e){case"\x07":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(".concat(e.charCodeAt(0),")")}}return"'"+e+"'"}))}function a(e){return e.length>1?"["+e.join(" ")+"]":0===e.length?"''":e[0]}function i(e){return a(s(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(s(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+="undefined"===typeof n||null===n?";":n,r}function c(e,t,n,r){let o=t+"(";if(Array.isArray(n)){const s=n.map((e=>Array.isArray(e)?e.join(", "):e)).join(", "),a="...\n"+" ".repeat(4*1);let i=a;i+=n.map((e=>Array.isArray(e)?e.join(", "):e)).join(","+a),i+="...\n";o+=[e,t,s].map((e=>e?e.length:0)).reduce(((e,t)=>e+t))+(e?3:0)+2+(r?r.length:1)<120?s:i}else o+=n;return o+=")",u(e,o,r)}function d(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3?arguments[3]:void 0;if(0===e.length)return"";const o=" ".repeat(4),s=o.repeat(n),a=o.repeat(n-1),u=r?", ":" ";let c="";r||(c+="{"),r&&e.length>1&&(c+="...");for(const[d,[p,_]]of e.entries()){const n="string"===typeof p?i(p):l(p);let o;o=t&&t.includes(p.toLowerCase().toString())?_.toString():"string"===typeof _?i(_):l(_),e.length>1&&(c+="\n"+s),c+=n+u+o,r&&e.length>1&&(d!==e.length-1&&(c+=","),c+="...")}return e.length>1&&(c+="\n"+a),r||(c+="}"),c}function p(e,t){let n="";t=t?++t:1;const o=" ".repeat(4*t),s=" ".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 o=p(e[n],t);r.push("".concat(o))}if(a){const e=r.join(" ");n+="[".concat(e,"]")}else{r.unshift("{{");const e=r.join("\n".concat(o));n+="".concat(e,"\n").concat(s,"}}")}}else if(e instanceof Object){n+="struct(...";let a=!0;for(const s in e)if(Object.prototype.hasOwnProperty.call(e,s)){if(!s[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".concat(o),n+="'".concat(s,"', "),n+=p(e[s],t)}n+="...",n+="\n".concat(s,")")}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",d(e.urls[0].queryList)):null}function m(e){return e.cookies?u("cookies",d(e.cookies)):null}const f="char(join(join(cookies, '='), '; '))",y="char(join(join(params, '='), '&'))"},46312:(e,t,n)=>{"use strict";n.d(t,{b:()=>d});var r=n(35338);function o(e){if(!e.headers.length)return null;const t=[];for(const[o,s]of e.headers){if(null===s)continue;const n=o.toLowerCase().toString();if("cookie"===n&&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"===n){const e=s.split(",");if(1===e.length)t.push("field.AcceptField(MediaType(".concat((0,r.Sj)(s),"))"));else{let n="field.AcceptField([";for(const t of e)n+="\n        MediaType(".concat((0,r.Sj)(t.trim()),")");n+="\n    ])",t.push(n)}}else t.push("HeaderField(".concat((0,r.Sj)(o),", ").concat((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 s(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[o,s]=e.urls[0].auth,a="'Username', ".concat((0,r.Sj)(o)),i="'Password', ".concat((0,r.Sj)(s)),l=(o.length?"".concat(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,o=l(e?n.contentFile.prepend("@"):n.content,null,"",1,!0,!e);t.push([(0,r.Sj)(n.name),o])}return(0,r.Tx)("body","MultipartFormProvider",t)}function l(e,t,n,o){let s=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];var a;if(!(arguments.length>5&&void 0!==arguments[5]&&arguments[5])&&"@"===e.charAt(0)){const o=e.slice(1);if(!s)return[(0,r.Tx)(t,"fileread",(0,r.Sj)(o)),(0,r.ch)("".concat(t,"(").concat(t,"==13 | ").concat(t,"==10)"),"[]")];const i=(null!==(a=o.split(".")[1])&&void 0!==a?a:"").toLowerCase().toString(),l=["jpeg","jpg","png","tif","gif"].includes(i)?"ImageProvider":"FileProvider";return(0,r.Tx)(t,l,(0,r.Sj)(o),n)}if(!e.length)return(0,r.Tx)(t,"FileProvider","",n);if(e.isString()&&function(e){try{JSON.parse(e)}catch(t){return!1}return!0}(e.toString())){const s=JSON.parse(e.toString());try{const e=(0,r.uN)(s,o);return(0,r.Tx)(t,"JSONProvider",e,n)}catch(l){return(0,r.Tx)(t,"StringProvider",(0,r.Sj)(e),n)}}const i=e.split("&").map((e=>e.split("=").map((e=>(0,r.Sj)(e)))));return(0,r.Tx)(t,"FormProvider",i,n)}function u(e){if(!e.data)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(n){}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 o=["uri.EncodedURI"];(e.urls[0].auth||e.insecure)&&o.push("options");return[(0,r.Tx)("response","RequestMessage",n,(0,r.Tx)(null,".send",o))].join("\n")}function d(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),o(e),s(e),a(e),i(e),u(e),c(e),""],t]}},95194:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{h0:()=>p});var o=n(75929),s=n(65581),a=n(46312),i=e([o]);o=(i.then?(await i)():i)[0];const u=new Set([...o.xv,"insecure","no-insecure","form","form-string"]);function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=(0,o.dH)(e,t),[r]=(0,s.m)(n,t),[i]=(0,a.b)(n,t);return r.concat("",i).flat().filter((e=>null!==e)).join("\n")}function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return[c((0,o.qg)(e,u,t),t),t]}function p(e){return d(e)[0]}r()}catch(l){r(l)}}))},65581:(e,t,n)=>{"use strict";n.d(t,{m:()=>c});var r=n(68407),o=n(35338);function s(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,o.bf)(Object.entries(t),["headerfields"],1,!0);return n.push((0,o.Tx)("options","weboptions",r)),n}function i(e){const t=[];return e.urls[0].queryList?(t.push((0,o.ch)("baseURI",(0,o.Sj)(e.urls[0].urlWithoutQueryList))),t.push((0,o.ch)("uri","[baseURI '?' ".concat(o.c4,"]")))):t.push((0,o.ch)("uri",(0,o.Sj)(e.urls[0].url))),t}function l(e){var t;if(e.data&&0===e.data.length)return(0,o.ch)("body",(0,o.Sj)(new r.vZ));if(!e.data)return[];let n=[];if("@"===e.data.charAt(0))n.push((0,o.Tx)("body","fileread",(0,o.Sj)(e.data.slice(1)))),e.isDataBinary||n.push((0,o.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,o.uN)(r);e.startsWith("struct")||(e=(0,o.rx)(e)),n=(0,o.ch)("body",e)}else n=(0,o.ch)("body",(0,o.Sj)(e.data))}catch(s){n=(0,o.ch)("body",(0,o.Sj)(e.data))}return n}function u(e,t){const n=[],r=(0,o.eu)(e)?"webwrite":"webread",s=["uri"];return(0,o.eu)(e)&&s.push("body"),Object.keys(t).length>0&&s.push("options"),n.push((0,o.Tx)("response",r,s)),n}function 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(".concat((0,o.Sj)((0,r.yZ)(e.urls[0].auth,":")),")]");s(a,new r.vZ("Authorization"),new r.vZ(t),e.headers.lowercase),i.push("authorization")}}if(e.headers.length)for(const[l,u]of e.headers)if(null!==u)switch(l.toLowerCase().toString()){case"user-agent":t.UserAgent=u;break;case"content-type":t.MediaType=u;break;case"cookie":e.cookies?(s(a,new r.vZ("Cookie"),new r.vZ(o.kM),e.headers.lowercase),i.push("cookie")):s(a,l,u,e.headers.lowercase);break;case"accept":switch(u.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:u.startsWith("image/")?t.ContentType="image":u.startsWith("audio/")?t.ContentType="audio":s(a,l,u,e.headers.lowercase)}break;default:s(a,l,u,e.headers.lowercase)}if(a.length>0){const e=1+(0===Object.keys(t).length?0:1);t.HeaderFields=(0,o.bf)(a,i,e)}return t}(e);return n=n.concat([(0,o.tO)(e),(0,o.FB)(e),i(e),l(e),a(0,c),u(e,c)]),[n,t]}},86845:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{n(68407);var r=n(75929),o=e([r]);r=(o.then?(await o)():o)[0];new Set([...r.xv,"max-time"]);["Content-Length","Authorization","Connection","Host","Proxy-Authenticate","Proxy-Authorization","WWW-Authenticate"].map((e=>e.toLowerCase()));t()}catch(s){t(s)}}))},913:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{var r=n(75929),o=e([r]);r=(o.then?(await o)():o)[0];new Set([...r.xv]);t()}catch(s){t(s)}}))},548:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{n(68407);var r=n(75929),o=e([r]);r=(o.then?(await o)():o)[0];new Set([...r.xv,"max-time","insecure","no-insecure","upload-file","max-redirs","max-time","form","form-string"]);t()}catch(s){t(s)}}))},41559:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{var r=n(75929),o=(n(68407),n(1834),n(58898)),s=e([r,o]);[r,o]=s.then?(await s)():s;new Set([...r.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"]);t()}catch(a){t(a)}}))},58898:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{Sj:()=>p,yg:()=>m});var o=n(68407),s=n(75929),a=e([s]);s=(a.then?(await a)():a)[0];const l=new Set([...s.xv,"max-time","insecure","no-insecure","compressed","no-compressed","digest","no-digest","location","no-location","form","form-string","proxy","proxy-user","unix-socket"]),u=/'|\\/gu,c=/"|\$|\\|\p{C}|[^ \P{Z}]/gu;function d(e){let[t,n]=["'",u];return(e.includes("'")&&!e.includes('"')||/[^\x20-\x7E]/.test(e))&&([t,n]=['"',c]),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"\x1b":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(d(n)):"variable"===n.type?t.push("getenv("+d(n.value)+") ?? "+d("")):"command"===n.type&&t.push("shell_exec("+d(n.value)+")");return t.join(" . ")}function _(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=(0,s.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,o.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")+");\n",a+="curl_setopt($ch, CURLOPT_USERPWD, "+p((0,o.yZ)(n.urls[0].auth,":"))+");\n"}if(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,o.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 h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return[_((0,s.qg)(e,l,t),t),t]}function m(e){return h(e)[0]}r()}catch(i){r(i)}}))},97574:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{gS:()=>p});var o=n(75929),s=n(1834),a=n(58898),i=e([o,a]);[o,a]=i.then?(await i)():i;const u=new Set([...o.xv]);function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=(0,o.dH)(e,t);let r,i,l;if(n.headers.length){r="$headers = array(\n";let e=0;for(const[t,o]of n.headers)null!==o&&(r+="    "+(0,a.Sj)(t)+" => "+(0,a.Sj)(o),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,s.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 d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return[c((0,o.qg)(e,u,t),t),t]}function p(e){return d(e)[0]}r()}catch(l){r(l)}}))},74756:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{var r=n(75929),o=(n(68407),n(1834),e([r]));r=(o.then?(await o)():o)[0];new Set([...r.xv,"form","form-string","upload-file","output","location","location-trusted","max-redirs","proxy","insecure","max-time","keepalive","http2","http3"]);t()}catch(s){t(s)}}))},76786:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{n(68407);var r=n(75929),o=n(75296),s=e([r,o]);[r,o]=s.then?(await s)():s;new Set([...r.xv,"max-time","insecure","no-insecure","upload-file"]);t()}catch(a){t(a)}}))},75296:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{Uw:()=>Z,rx:()=>h});var o=n(45915),s=n(68407),a=n(75929),i=n(1834),l=n(8589),u=e([a]);a=(u.then?(await u)():u)[0];const d=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,_=/"|\\|\p{C}|[^ \P{Z}]/gu;function h(e,t){void 0===t&&(t="'",e.includes("'")&&!e.includes('"')&&(t='"'));const n="'"===t?p:_;return t+e.replace(n,(e=>{switch(e){case"\x07":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 m(e){const t=h(e);return/^[\x00-\x7f]*$/.test(e)?"b"+t:t+".encode()"}function f(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const a=r?m: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);(!s||e.tokens.length>1)&&(t+=", "+a("")),t+=")",i.push(t),n.add("os")}else if("command"===l.type){let e="subprocess.run("+h(l.value)+", shell=True, capture_output=True";r||(e+=", text=True"),e+=").stdout";let s=1,a="command"+s;for(;a in t&&t[a]!==e;)if(s++,a="command"+s,s>Number.MAX_SAFE_INTEGER)throw new o.fA("lol");t[a]=e,i.push(a),n.add("subprocess")}return i.join(" + ")}function y(e,t,n){return f(e,t,n,!0)}function g(e,t,n){return e.isString()?e.toString():"float("+f(e,t,n,!1,!0)+")"}function w(e,t,n){return e.isString()?e.toString():"int("+f(e,t,n,!1,!0)+")"}const b=/"|\\|[^\x20-\x7E]/g;function v(e){return'"'+e.replace(b,(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 S(e){const[t,n]=e.split("e"),r=n[0],o=n.slice(1);return 1===o.length?t+"e"+r+"0"+o:e}function E(e){let t=e.toString();if(t.includes("e"))t=S(t);else{(0,l.Fq)(t)&&(t+=".0");const n=t.replace(/^-/,"").replace(".","").replace(/^0+/,""),r=S(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 o.fA("float unrepresentable in Python: "+t);return E(e.valueOf())}switch(typeof e){case"string":return v(e);case"number":if(!isFinite(e))throw new o.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=>v(e[0])+": "+x(e[1]))).join(", ")+"}";default:throw new o.fA("unexpected object type that shouldn't appear in JSON: "+typeof e)}}function A(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if((0,l.s_)(e)){const t=(0,l.As)(e);if(!(0,l.Fq)(t)&&!(0,l.Lz)(t))throw new o.fA("float unrepresentable in Python: "+t);return t}switch(typeof e){case"string":return h(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)+A(r,t+4)+",\n";return n+=" ".repeat(t)+"]",n}if(0===Object.keys(e).length)return"{}";{let n="{\n";for(const[r,o]of Object.entries(e))n+=" ".repeat(t+4)+h(r)+": "+A(o,t+4)+",\n";return n+=" ".repeat(t)+"}",n}default:throw new o.fA("unexpected object type that shouldn't appear in JSON: "+typeof e)}}function T(e,t,n,r){let s="headers = {\n";for(const[a,i]of e){if(null===i)continue;let e;const l=a.toLowerCase().toString();(0,o.zy)(t,l)?(t[l]&&(s+="    # "+t[l]+"\n"),e="    # "):e="    ",s+=e+f(a,n,r)+": "+f(i,n,r)+",\n"}return s+="}\n",s}function N(e){let t;try{t=(0,i.i5)(e.replace(/\+/g," "))}catch(r){if(r instanceof URIError)return null;throw r}const n=(0,i.a)(t);return(0,s.eq)(n,e)||(0,s.eq)(n.replace(/%20/g,"+"),e)?t:null}function C(e){const t={};let n=null;for(const[r,o]of e){if(n===r)t[r].push(o);else{if(Object.prototype.hasOwnProperty.call(t,r))return null;t[r]=[o]}n=r}return t}function I(e){if(0===e.length)return"''";const t=C(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 r of e){const[e,t]=r;n+="    ("+e+", "+t+"),\n"}return n+="]",n}function M(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"data";for(const i of e)if(!(i instanceof s.vZ)&&"urlencode"!==i.filetype)return null;const o=[];let a=new s.vZ;for(const[l,u]of e.entries()){if(u instanceof s.vZ){let r=u.split("&");const s=l>0?o[o.length-1]:null;if(null!==s){const[e,...o]=r;if(e.includes("=")&&null===s[1]){const[r,o]=e.split("=",2),i=N(r);if(null===i)return null;const l=N(o);if(null===l)return null;r.toBool()&&(s[0]+=" + "+f(i,t,n)),s[1]=f(l,t,n),a.toBool()||(r.includes("%20")&&(a=r),o.includes("%20")&&(a=o))}else{if(e.includes("=")||null===s[1])return null;if(e.toBool()){const r=N(e);if(null===r)return null;s[1]+=" + "+f(r,t,n),!a.toBool()&&e.includes("%20")&&(a=e)}}r=o}for(const[i,u]of r.entries()){if(u.isEmpty()&&i===r.length-1&&l!==e.length-1)continue;if(!u.includes("="))return null;const[s,c]=u.split("=",2),d=N(s);if(null===d)return null;const p=N(c);if(null===p)return null;o.push([f(d,t,n),f(p,t,n)]),a.toBool()||(s.includes("%20")&&(a=s),c.includes("%20")&&(a=c))}continue}const r=(0,s.eq)(u.filename,"-")?"sys.stdin.read()":"open("+f(u.filename,t,n,!1,!0)+").read()";if(u.name){if(!(0,s.eq)(u.name,(0,i.a)(u.name)))return null;o.push([f(u.name,t,n),r])}else o.push([r,null])}return o.some((e=>null===e[1]))?null:[r+" = "+I(o)+"\n",a.toString()]}function R(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"data";const o=e.some((e=>!(e instanceof s.vZ)&&"binary"===e.filetype)),a=o?y:f,i=o?"b":"",l=o?", 'rb'":"";let u=!1,c=!1;const d=[];let p,_,h=new s.vZ;for([p,_]of e.entries()){let m=r+" "+(0===p?"=":"+=")+" ";if(p<e.length-1&&_ instanceof s.vZ&&_.endsWith("&")&&(h=new s.vZ("&"),_=_.slice(0,-1)),_ instanceof s.vZ){_.length&&(m+=a(_,n,t),d.push(m),u||(u=_.test(/[^\x00-\x7F]/)));continue}const{filetype:y,name:g,filename:w}=_;"urlencode"===y&&g?(m+=a(h.add(g).append("="),n,t)+" + ",c=!0):h.toBool()&&(m+=a(h,n,t)+" + ",c=!0),h.toBool()&&(c=!0);let b="";(0,s.eq)(w,"-")?(b+=o?"sys.stdin.buffer":"sys.stdin",t.add("sys")):(m="with open("+f(w,n,t,!1,!0)+l+") as f:\n    "+m,b+="f"),b+=".read()",["binary","json","urlencode"].includes(y)||(b+=".replace(".concat(i,"'\\n', ").concat(i,"'').replace(").concat(i,"'\\r', ").concat(i,"'')")),"urlencode"===y?(b="quote_plus("+b+")",o&&(b+=".encode()"),t.add("urllib.parse.quote_plus")):u=!0,m+=b,d.push(m),h=new s.vZ}return o?u=!1:u&&1===d.length&&!c&&(d[d.length-1]+=".encode()",u=!1),[d.join("\n")+"\n",u]}function k(e,t,n){if(e instanceof s.vZ){if(!e.isString())return[null,!1];let t;try{t=(0,l.qg)(e.toString())}catch(r){try{t=JSON.parse(e.toString())}catch(o){return[null,!1]}}try{const n="json_data = "+A(t)+"\n";let r=!1;try{r=x(t)===e.tokens[0]}catch(a){}return[n,r]}catch(i){}}else if("json"===e.filetype){let r="";return r+="with open("+f(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 F(e,t,n){const r=new Set;if(!e.data||!e.dataArray)return[null,!1,null,r];const o=e.headers.get("content-type");let a=null,i=!1;if(1===e.dataArray.length&&o&&"application/json"===o.split(";")[0].toString().trim()&&([a,i]=k(e.dataArray[0],r,t)),i)return[null,!1,a,r];const l=M(e.dataArray,t,r);if(null!==l){const[t,o]=l;return(0,s.eq)(e.headers.get("content-type"),"application/x-www-form-urlencoded")&&1===e.headers.length&&e.headers.delete("content-type"),o&&n.push(["percent-encoded-spaces-in-data",'data contains spaces encoded by curl as "%20" which will be sent as "+" instead: '+JSON.stringify(o)]),[t,!1,a,r]}const[u,c]=R(e.dataArray,r,t);return[u,c,a,r]}function O(e,t,n){let r=!1;if(!e.multipartUploads)return["",r];const o=e.multipartUploads.map((e=>{const o=e.name?f(e.name,t,n):"None";if(!("contentType"in e)&&!("headers"in e)&&!("encoder"in e)){if("contentFile"in e&&(0,s.eq)(e.contentFile,e.filename)&&!(0,s.eq)(e.contentFile,"-"))return[o,"open("+f(e.contentFile,t,n,!1,!0)+", 'rb')"];if("content"in e&&"filename"in e&&(0,s.eq)(e.name,e.filename))return[o,f(e.content,t,n)]}const a=["filename"in e&&e.filename?f(e.filename,t,n):"None"];return"contentFile"in e?(0,s.eq)(e.contentFile,"-")?(r=!0,a.push("sys.stdin.buffer.read())")):a.push("open("+f(e.contentFile,t,n,!1,!0)+", 'rb')"):a.push(f(e.content,t,n)),"contentType"in e&&e.contentType&&a.push(f(e.contentType,t,n)),"headers"in e&&e.headers,[o,"("+a.join(", ")+")"]})),a=Object.fromEntries(o);let i="files = ";if(Object.keys(a).length===o.length){i+="{\n";for(const[e,t]of o)i+="    "+e+": "+t+",\n";i+="}\n"}else{i+="[\n";for(const[e,t]of o)i+="    ("+e+", "+t+"),\n";i+="]\n"}return[i,r]}function P(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 L(e){return e.split("\n").map((e=>e.trim()?"#"+e:e)).join("\n")}function q(e,t,n){e.has(n[0])||(e.add(n[0]),t.push(n))}function j(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 U(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;const o={},a={"accept-encoding":"","content-length":""};let i;(0,s.eq)(e.headers.get("te"),"trailers")&&(a.te="Requests doesn't support trailers");let l,u,c,d,p=null;if(e.cookies){i="cookies = {\n";for(const[t,r]of e.cookies)i+="    "+f(t,o,n)+": "+f(r,o,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?(p=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(p.toString())]),i="cookies = MozillaCookieJar("+f(p,o,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,s.eq)(r,"socks")&&(t=t.replace("socks","socks4")),l="proxies = {\n",l+="    'http': "+f(t,o,n)+",\n",l+="    'https': "+f(t,o,n)+",\n",l+="}\n"}if(e.cert||e.key){u="cert = ";let r="None";if(e.cert){const[s,a]=e.cert;r=f(s,o,n),a&&t.push(["cert-password","passing a password to --cert is not supported: "+JSON.stringify(a.toString())])}e.key?u+="("+r+", "+f(e.key,o,n)+")":u+=r,u+="\n"}function _(e){return e.some((e=>!(e instanceof s.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=M(h,o,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,d]=R(h,n,o,"params"))}const m=e.headers.get("content-type");let y,b,v,S,E;if(e.urls[0].uploadFile&&1===e.urls.length)(0,s.eq)(e.urls[0].uploadFile,"-")||(0,s.eq)(e.urls[0].uploadFile,".")?(y="data = sys.stdin.buffer.read()\n",n.add("sys")):(y="with open("+f(e.urls[0].uploadFile,o,n,!1,!0)+", 'rb') as f:\n",y+="    data = f.read()\n");else if(e.data&&!e.data.isEmpty()){let r;[y,S,b,r]=F(e,o,t),r.forEach(n.add,n),b&&!y&&m&&(0,s.eq)(m.trim(),"application/json")&&(a["content-type"]="Already added when you pass json=")}else if(e.multipartUploads){let t=!1;[v,t]=O(e,o,n),t&&n.add("sys"),v&&m&&(0,s.eq)(m.trim(),"multipart/form-data")&&!m.includes("boundary=")&&(a["content-type"]="requests won't add a boundary if this header is set when you pass files=")}e.headers.length&&(E=T(e.headers,a,o,n));let x="";l&&(x+=l+"\n"),i&&(x+=i+"\n"),E&&(x+=E+"\n"),c&&(x+=c+"\n"),u&&(x+=u+"\n"),b?x+=b+"\n":y?x+=y+"\n":v&&(x+=v+"\n");let A,N=e.followRedirects;void 0!==e.maxRedirects&&(A=w(e.maxRedirects,o,n)),void 0===N&&(N=!0);const C=N&&A&&"0"!==A&&"30"!==A,I=new Set,k=[];let U=!1;for(const[w,T]of e.urls.entries()){const a=["GET","HEAD","POST","PATCH","PUT","DELETE","OPTIONS"];let p;const h=[],m=T.method.toString();let x;T.method.isString()&&a.includes(m)?p=m.toLowerCase():(p="request",h.push(f(T.method,o,n)),T.method.isString()&&m!==m.toUpperCase()&&t.push(["method","Requests will uppercase the HTTP method: "+JSON.stringify(m)]));let F=T.url;if(1===e.urls.length)F=c?T.urlWithoutQueryArray:T.url;else if(c)F=T.urlWithOriginalQuery;else if(T.queryArray&&T.queryArray.length>0){const e=M(T.queryArray,o,n,"params");if(null!==e){let n;[x,n]=e,F=T.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 _(T.queryArray)&&([x,d]=R(T.queryArray,n,o,"params"),F=T.urlWithoutQueryArray)}h.push(f(F,o,n)),(c||x)&&h.push("params=params"+(d?".encode()":"")),i&&!e.cookieJar&&h.push("cookies=cookies"),E&&h.push("headers=headers"),T.uploadFile?e.urls.length>1?h.push("data=file_contents"):h.push("data=data"):e.data&&!e.data.isEmpty()?b?h.push("json=json_data"):h.push("data=data"+(S?".encode()":"")):v&&h.push("files=files"),l&&h.push("proxies=proxies"),u&&h.push("cert=cert");const O=e.cacert||e.capath;if(e.insecure?h.push("verify=False"):O&&h.push("verify="+f(O,o,n)),T.auth&&!e.headers.has("Authorization")){const[a,i]=T.auth;let l="("+f(a,o,n)+", "+f(i,o,n)+")";switch(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,q(I,t,["ntlm","requests-ntlm is unmaintained"]);break;case"negotiate":r.add("requests_gssapi.HTTPSPNEGOAuth"),l="HTTPSPNEGOAuth(",e.delegation&&((0,s.eq)(e.delegation,"always")?l+="delegate=True":(0,s.eq)(e.delegation,"none")?l+="delegate=False":q(I,t,["delegation","--delegation value not supported: "+JSON.stringify(e.delegation.toString())])),l+=")",q(I,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="+f(a,o,n)+", aws_secret_access_key="+f(i,o,n)+", aws_host="+f(e.awsSigV4||new s.vZ,o,n)+", aws_region="+f(e.awsSigV4||new s.vZ,o,n)+", aws_service="+f(e.awsSigV4||new s.vZ,o,n)+")",q(I,t,["--aws-sigv4","--aws-sigv4 value isn't parsed: "+JSON.stringify(e.awsSigV4?e.awsSigV4.toString():"")])}h.push("auth="+l)}if(e.timeout||e.connectTimeout){let r=null;e.connectTimeout&&(r=g(e.connectTimeout,o,n));let s=null;e.timeout&&(s=e.timeout.isString()?e.timeout.toString():"float("+f(e.timeout,o,n,!1,!0)+")"),s&&r&&s!==r?h.push("timeout=("+r+", "+s+")"):s?h.push("timeout="+s):r&&h.push("timeout=("+r+", None)"),s&&q(I,t,["--max-time","unlike --max-time, Requests doesn't have a timeout for the whole request, only for the connect and the read"])}N&&"0"!==A?A&&"-1"===A&&(n.add("math"),A="math.inf"):h.push("allow_redirects=False"),N&&e.followRedirectsTrusted&&q(I,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===w&&(D+="with requests.Session() as session:\n",C&&(D+="    session.max_redirects = ".concat(A,"\n")),e.cookieJar&&(D+="    session.cookies = cookies\n")),e.urls.length>1&&(x&&(D+=P(x,B)),T.uploadFile)){let e="";(0,s.eq)(T.uploadFile,"-")||(0,s.eq)(T.uploadFile,".")?(e+="file_contents = sys.stdin.buffer.read()\n",n.add("sys")):(e+="with open("+f(T.uploadFile,o,n,!1,!0)+", 'rb') as f:\n",e+="    file_contents = f.read()\n"),D+=P(e,B)}const Z="response = "+(H?"session":"requests")+"."+p;if(D+=P(Z+j(h)+"\n",B),b&&y&&!T.uploadFile){D+=H||e.urls.length>1?"":"\n",h[h.indexOf("json=json_data")]=S?"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+=L(y),t+=L(Z+j(h)+"\n"),D+=P(t,B)}if(T.output&&!(0,s.eq)(T.output,"/dev/null")){let t="";(0,s.eq)(e.urls[0].output,"-")?t+="print(response.text)\n":(t+=H||e.urls.length>1?"":"\n",t+="with open("+f(T.output,o,n,!1,!0)+", 'wb') as f:\n",t+="    f.write(response.content)\n"),D+=P(t,B)}!H&&(x||y&&b||T.uploadFile||T.output&&!(0,s.eq)(T.output,"/dev/null"))&&(U=!0),k.push(D)}if(x+=k.join(U?"\n":""),e.cookieJar){let t="cookies.save(";(0,s.eq)(e.cookieJar,p)||(t+=f(e.cookieJar,o,n)+", "),t+="ignore_discard=True, ignore_expires=True)\n",x+=P(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(o).length){for(const[e,t]of Object.entries(o))D+="".concat(e," = ").concat(t,"\n");D+="\n"}return D+x}function D(e){let t="";for(const n of Array.from(e).sort())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 H(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=[];let r=!1;const o=new Set,s=new Set;for(const i of e){const e=U(i,t,o,s);n.push(e),r||(r=e.split("\n").length>i.urls.length+1)}let a="";return a+=D(o),o.size>1&&(a+="\n"),a+="import requests\n",a+=D(s),a+="\n",a+n.join(r?"\n\n":"\n")}function B(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return[H((0,a.qg)(e,d,t),t),t]}function Z(e){return B(e)[0]}r()}catch(c){r(c)}}))},43607:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{Kl:()=>b});var o=n(68407),s=n(75929),a=n(1834),i=n(75296),l=e([s,i]);[s,i]=l.then?(await l)():l;const c=new Set([...s.xv,"form","form-string","insecure","no-insecure"]),d=/`|\\|\p{C}|[^ \P{Z}]/gu;function p(e){return e.isString(),"`"+e.toString().replace(d,(e=>{switch(e){case"\x07":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 _(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]:"paste("+t.join(", ")+', sep = "")'}function m(e){if(!e.cookies)return null;let t="cookies = c(\n";const n=[];for(const[o,s]of e.cookies)try{const e=(0,a.i5)(s.replace(/\+/g," "));n.push("  "+p(o)+" = "+h(e))}catch(r){return null}return t+=n.join(",\n"),t+="\n)\n",e.headers.delete("Cookie"),t}function f(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"  "+p(t)+" = "+h(n)})).join(",\n"),t+="\n)\n",t}function y(e){if(!e.multipartUploads)return;let t="files = list(\n";return t+=e.multipartUploads.map((e=>{let t;return t="contentFile"in e?"  "+p(e.name)+" = upload_file("+h(e.contentFile)+")":"  "+p(e.name)+" = "+h(e.content),t})).join(",\n"),t+="\n)\n",t}function g(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=(0,s.dH)(e,t),r=m(n);let i;if(n.headers.length){const e=[];i="headers = c(\n";for(const[t,r]of n.headers)null!==r&&e.push("  "+p(t)+" = "+h(r));i+=e.join(",\n"),i+="\n)\n"}const l=f(n);let u,c,d;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"  "+p(t)+" = "+h(n)})).join(",\n"),u+="\n)\n"):u="data = "+h(n.data)+"\n"}else n.multipartUploads&&(d=y(n));const _=n.urls[0].queryList?n.urls[0].urlWithoutQueryList:n.urls[0].url;let g="res <- httr::";["GET","HEAD","PATCH","PUT","DELETE","POST"].includes(n.urls[0].method.toString())?g+=n.urls[0].method.toString()+"(":(g+="VERB("+h(n.urls[0].method)+", ",(0,o.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())])),g+="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.data?(w+=", body = data",c&&(w+=', encode = "form"')):n.multipartUploads&&(w+=', body = files, encode = "multipart"'),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+=")",g+=w;let b="";return b+="require(httr)\n\n",r&&(b+=r+"\n"),i&&(b+=i+"\n"),void 0!==l&&(b+=l+"\n"),u?b+=u+"\n":d&&(b+=d+"\n"),b+=g,b+"\n"}function w(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return[g((0,s.qg)(e,c,t),t),t]}function b(e){return w(e)[0]}r()}catch(u){r(u)}}))},62197:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{um:()=>A});var o=n(45915),s=n(79069),a=n(68407),i=n(75929),l=n(1834),u=e([i]);i=(u.then?(await u)():u)[0];const d=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,_=/"|\\|\p{C}|[^ \P{Z}]|#[{@$]/gu,h=/\}|\\|\p{C}|[^ \P{Z}]|#[{@$]/gu,m=/[0-9]/;function f(e,t){void 0===t&&(t="'",(e.match(/\p{C}|[^ \P{Z}]/gu)||e.includes("'")&&!e.includes('"'))&&(t='"'));const n="'"===t?p:'"'===t?_:h,r=t[0],o="{}"===t?t[1]:t[0];return r+e.replace(n,((e,t,n)=>{switch(e[0]){case"\x07":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"\x1b":return"\\e";case"\\":return"\\\\";case"'":return"\\'";case'"':return'\\"';case"#":return"\\"+e;case"}":return"\\}";case"\0":if(!m.test(n.charAt(t+1)))return"\\0"}const r=e.codePointAt(0),o=r.toString(16);return o.length<=2&&r<127?"\\x"+o.padStart(2,"0"):o.length<=4?"\\u"+o.padStart(4,"0"):"\\u{"+o+"}"}))+o}function y(e){const t=[];for(const n of e.tokens)"string"===typeof n?t.push(f(n)):"variable"===n.type?t.push("ENV["+f(n.value)+"]"):t.push("%x"+f(n.value,"{}"));return t.join(" + ")}function g(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(e instanceof a.vZ)return y(e);switch(typeof e){case"string":return f(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,o]of e.entries())n+=" ".repeat(t+2)+g(o,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,[o,s]]of r.entries())n+=" ".repeat(t+2)+f(o)+" => "+g(s,t+2),n+=e===r.length-1?"\n":",\n";return n+=" ".repeat(t)+"}",n}default:throw new o.fA("unexpected object type that shouldn't appear in JSON: "+typeof e)}}function w(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0===e.length)return"{}";let n="{\n";for(const[r,[o,s]]of e.entries())n+=" ".repeat(t+2)+y(o)+" => "+g(s,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("+y(n)+').delete("\\n")\n',!1];case"data":case"json":case"urlencode":return["req.body = File.read("+y(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 o="";return r||(o+="# The object won't be serialized exactly like this\n",o+="# req.body = "+y(e.data)+"\n"),o+="req.body = "+g(n)+".to_json\n",[o,!0]}}catch(o){}const[n,r]=(0,l.JO)(e.data);return!e.isDataBinary&&r?["req.set_form_data("+w(r)+")\n",!1]:["req.body = "+y(e.data)+"\n",!1]}function v(e){if(!e.multipartUploads)return"";const t=e.multipartUploads.map((t=>{const n=y(t.name),r="filename"in t&&t.filename&&y(t.filename);return"contentFile"in t?(0,a.eq)(t.contentFile,"-")?e.stdinFile?[n,"File.open("+y(e.stdinFile)+")",r]:e.stdin?[n,y(e.stdin),r]:[n,"STDIN",r]:t.contentFile===t.filename?[n,"File.open("+y(t.contentFile)+")"]:[n,"File.open("+y(t.contentFile)+")",r]:[n,y(t.content),r]}));let n="req.set_form(\n";if(0===t.length)n+="  [],\n";else{n+="  [\n";for(const[e,[r,o,s]]of t.entries())n+="    [\n",n+="      "+r+",\n",n+="      "+o,"string"===typeof s?(n+=",\n",n+="      {filename: "+s+"}\n"):n+="\n",e===t.length-1?n+="    ]\n":n+="    ],\n";n+="  ],\n"}return n+="  'multipart/form-data'\n",n+=")\n",n}function S(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 a.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="";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=>{return(t=e[0]).isString()&&/^[a-zA-Z_][a-zA-Z0-9_]*$/.test(t.toString());var t}))){r+="uri = URI("+y(e.urls[0].urlWithoutQueryList)+")\n",r+="params = {\n";for(const[t,n]of e.urls[0].queryDict)r+="  :"+t.toString()+" => "+g(n,2)+",\n";r+="}\n",r+="uri.query = URI.encode_www_form(params)\n\n"}else r+="uri = URI("+y(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,o.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("+y(e.urls[0].method)+", true, true, uri)\n";let c;if(e.urls[0].auth&&"basic"===e.authType&&(r+="req.basic_auth "+y(e.urls[0].auth[0])+", "+y(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("+y(e.urls[0].uploadFile)+")\n";else if(e.data){let t=!1;[c,t]=b(e),t&&n.add("json")}else e.multipartUploads&&(c=v(e),e.headers.delete("content-type"));const d=e.headers.get("content-type");if(null!==d&&void 0!==d&&(r+="req.content_type = "+y(d)+"\n",e.headers.delete("content-type")),e.headers.length)for(const[o,s]of e.headers)["accept-encoding","content-length"].includes(o.toLowerCase().toString())&&(r+="# "),r+="req["+y(o)+"] = "+y(null!==s&&void 0!==s?s:new a.vZ("nil"))+"\n";if(c&&(r+="\n"+c),r+="\n",e.proxy){r+="proxy = URI("+y(e.proxy.includes("://")?e.proxy:e.proxy.prepend("http://"))+")\n"}if(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, "+y(t)+", "+y(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("+y(e.urls[0].output)+", res.body)"),r+"\n"}function E(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=new Set,r=e.map((e=>S(e,t,n))).join("\n\n");let o="require 'net/http'\n";for(const s of Array.from(n).sort())o+="require '"+s+"'\n";return o+"\n"+r}function x(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return[E((0,i.qg)(e,d,t),t),t]}function A(e){return x(e)[0]}r()}catch(c){r(c)}}))},39007:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{WX:()=>f});var o=n(68407),s=n(75929),a=e([s]);s=(a.then?(await a)():a)[0];const l=new Set([...s.xv,"form","form-string","max-redirs","location","no-location"]),u=" ".repeat(4);function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return u.repeat(t)+e}const d=/"|\\|\p{C}|[^ \P{Z}]/gu;function p(e){return'"'+e.replace(d,(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 _(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 h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=(0,s.dH)(e,t),r=new Set,a=[];if(a.push("","fn main() -> Result<(), Box<dyn std::error::Error>> {"),n.headers.length){a.push(c("let mut headers = header::HeaderMap::new();"));const e={cookie:"header::COOKIE"};for(const[t,o]of n.headers){const n=e[t.toLowerCase().toString()]||'"'.concat(t,'"');null!==o&&a.push(c("headers.insert(".concat(n,", ").concat(_(o,r),".parse().unwrap());")))}a.push("")}if(n.multipartUploads){a.push(c("let form = multipart::Form::new()"));const e=n.multipartUploads.map((e=>c("contentFile"in e?".file(".concat(_(e.name,r),", ").concat(_(e.contentFile,r),")?"):".text(".concat(_(e.name,r),", ").concat(_(e.content,r),")"),2)));e[e.length-1]+=";",a.push(...e,"")}n.followRedirects?"undefined"===typeof n.maxRedirects?a.push(c("let client = reqwest::blocking::Client::new();")):(a.push(c("let client = reqwest::blocking::Client::builder()")),(0,o.eq)(n.maxRedirects,"-1")?a.push(c(".redirect(reqwest::redirect::Policy::custom(|attempt| { attempt.follow() }))",2)):a.push(c(".redirect(reqwest::redirect::Policy::limited("+n.maxRedirects.trim().toString()+"))",2)),a.push(c(".build()",2)),a.push(c(".unwrap();",2))):(a.push(c("let client = reqwest::blocking::Client::builder()")),a.push(c(".redirect(reqwest::redirect::Policy::none())",2)),a.push(c(".build()",2)),a.push(c(".unwrap();",2)));if(["GET","POST","PUT","PATCH","DELETE","HEAD"].includes(n.urls[0].method.toString())?a.push(c("let res = client.".concat(n.urls[0].method.toLowerCase(),"(").concat(_(n.urls[0].url,r),")"))):a.push(c("let res = client.request(".concat(_(n.urls[0].method,r),", ").concat(_(n.urls[0].url,r),")"))),n.urls[0].auth){const[e,t]=n.urls[0].auth;a.push(c(".basic_auth(".concat(_(e,r),", Some(").concat(_(t,r),"))"),2))}n.headers.length&&a.push(c(".headers(headers)",2)),n.multipartUploads&&a.push(c(".multipart(form)",2)),n.data&&(n.data&&-1!==n.data.indexOf("\n")?a.push(c('.body(r#"',2),n.data.toString(),'"#',c(")",2)):a.push(c(".body(".concat(_(n.data,r),")"),2))),a.push(c(".send()?",2),c(".text()?;",2),c('println!("{}", res);'),"",c("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::{".concat(e.join(", "),"};")):e.length&&i.push("use reqwest::".concat(e[0],";"))}for(const o of Array.from(r).sort())i.push("use "+o+";");return[...i,...a].join("\n")+"\n"}function m(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return[h((0,s.qg)(e,l,t),t),t]}function f(e){return m(e)[0]}r()}catch(i){r(i)}}))},76062:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{XQ:()=>f});var o=n(68407),s=n(75929),a=e([s]);s=(a.then?(await a)():a)[0];const l=new Set([...s.xv,"max-time"]),u=/"|\\|\p{C}|[^ \P{Z}]/gu;function c(e){return'"'+e.replace(u,(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 d(e){const t=[];for(const n of e.tokens)"string"===typeof n?t.push(c(n)):"variable"===n.type?t.push("(ProcessInfo.processInfo.environment["+c(n.value)+'] ?? "")'):t.push("exec("+c(n.value)+")");return t.join(" + ")}function p(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if("string"===typeof e)return c(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,o]of n)r+="    ".repeat(t+1)+c(e)+": "+p(o,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 _(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: "+d(e)+".data(using: .utf8)!)\n";for(const t of n)r+="data.append("+d((0,o.__)("&",t))+".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 = "+d(t)+".data(using: .utf8)\n"),[e,"request.httpBody = data as Data\n"]}}catch(r){}}return["","request.httpBody = "+d(t)+".data(using: .utf8)\n"]}function h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=(0,s.dH)(e,t);let r,a,i="import Foundation\n\n";if(n.data&&([r,a]=_(n,n.data),r&&(i+=r+"\n")),i+="let url = URL(string: "+d(n.urls[0].url)+")!\n",n.urls[0].auth){const[e,t]=n.urls[0].auth;i+="\n",i+="let username = "+d(e)+"\n",i+="let password = "+d(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+="    "+d(e)+": "+d(t)+",\n");if(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,o.eq)(n.timeout,"60.0")&&(i+=", timeoutInterval: "+n.timeout.toString()),i+=")\n",(0,o.eq)(n.urls[0].method,"GET")||(i+="request.httpMethod = "+d(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 m(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return[h((0,s.qg)(e,l,t),t),t]}function f(e){return m(e)[0]}r()}catch(i){r(i)}}))},50834:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{x$:()=>w});var o=n(79069),s=n(68407),a=n(75929),i=e([a]);a=(i.then?(await i)():i)[0];const u=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"]),c=/\$|`|"|\\|!/gu,d=/\p{C}|[^ \P{Z}]/gu,p=/\p{C}|[^ \P{Z}]|\\|'/gu,_=/[\002-\011\013-\032\\#?`(){}[\]^*<=>~|; "!$&'\202-\377]/;function h(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return d.test(e)?"$'"+e.replace(p,(e=>{switch(e){case"\x07":return"\\a";case"\b":return"\\b";case"\x1b":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+"'":_.test(e)||t?'"'+e.replace(c,(e=>{switch(e[0]){case"$":return"\\$";case"`":return"\\`";case'"':return'\\"';case"\\":return"\\\\";case"!":return"\"'!'\""}return e}))+'"':e}function m(e){const t=[];for(const[n,r]of e.tokens.entries())"string"===typeof r?t.push(h(r,!!n)):(r.type,t.push(r.text));return t.join("")}function f(e,t){(0,o.cY)(e,t,{dataReadsFile:!0,cookieFiles:!0,multipleUrls:!0}),e.dataReadsFile&&e.dataArray&&e.dataArray.length&&(e.dataArray.length>1||!(e.dataArray[0]instanceof s.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 s.vZ)&&!e.dataArray[0].name||e.data?(0,s.eq)(e.urls[0].method,"POST")||n.push("--method="+m(e.urls[0].method)):(0,s.eq)(e.urls[0].method,"GET")||n.push("--method="+m(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(", ")])}if(e.cookieFiles&&e.cookieFiles.length){for(const t of e.cookieFiles)n.push("--load-cookies="+m(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="+m(e.cookieJar)),e.headers.length)for(const[o,a]of e.headers)n.push("--header="+m((0,s.__)(o,": ",null!==a&&void 0!==a?a:"")));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="+m(e.maxRedirects)),e.ipv4&&n.push("--inet4-only"),e.ipv6&&n.push("--inet6-only"),e.urls[0].auth){const[r,o]=e.urls[0].auth;n.push("--user="+m(r)),o.toBool()&&n.push("--password="+m(o)),"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,s.eq)(e.urls[0].uploadFile,"-")||(0,s.eq)(e.urls[0].uploadFile,"."))&&t.push(["wget-stdin","Wget does not support uploading from stdin"]),(0,s.eq)(e.urls[0].method,"POST")?n.push("--post-file="+m(e.urls[0].uploadFile)):n.push("--body-file="+m(e.urls[0].uploadFile))):!e.dataArray||1!==e.dataArray.length||e.dataArray[0]instanceof s.vZ||e.dataArray[0].name?e.data?(0,s.eq)(e.urls[0].method,"POST")?n.push("--post-data="+m(e.data)):n.push("--body-data="+m(e.data)):e.multipartUploads&&t.push(["multipart","Wget does not support sending multipart/form-data"]):(0,s.eq)(e.urls[0].method,"POST")?n.push("--post-file="+m(e.dataArray[0].filename)):n.push("--body-file="+m(e.dataArray[0].filename)),e.ciphers&&n.push("--ciphers="+m(e.ciphers)),e.insecure&&n.push("--no-check-certificate"),e.cert){const[r,o]=e.cert;n.push("--certificate="+m(r)),o&&t.push(["wget-cert-password","Wget does not support certificate passwords"])}if(e.certType&&n.push("--certificate-type="+m(e.certType)),e.key&&n.push("--private-key="+m(e.key)),e.keyType&&n.push("--private-key-type="+m(e.keyType)),e.cacert&&n.push("--ca-certificate="+m(e.cacert)),e.capath&&n.push("--ca-directory="+m(e.capath)),e.crlfile&&n.push("--crl-file="+m(e.crlfile)),e.pinnedpubkey&&n.push("--pinnedpubkey="+m(e.pinnedpubkey)),e.randomFile&&n.push("--random-file="+m(e.randomFile)),e.egdFile&&n.push("--egd-file="+m(e.egdFile)),e.hsts)for(const o of e.hsts)n.push("--hsts-file="+m(o));if("ignored"===e.netrc&&n.push("--no-netrc"),e.noproxy&&((0,s.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="+m(t)),r&&r.toBool()&&n.push("--proxy-password="+m(r))}e.timeout&&n.push("--timeout="+m(e.timeout)),e.connectTimeout&&n.push("--connect-timeout="+m(e.connectTimeout)),e.limitRate&&n.push("--limit-rate="+m(e.limitRate)),e.urls[0].output?n.push("--output-document="+m(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,s.eq)(e.continueAt,"-")?n.push("--continue"):n.push("--start-pos="+m(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 o of e.urls)n.push(m(o.url));const r=n.length>3||n.reduce(((e,t)=>e+t.length),0)>75?" \\\n  ":" ";return"wget "+n.join(r)+"\n"}function y(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.map((e=>f(e,t))).join("\n\n")}function g(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return[y((0,a.qg)(e,u,t),t),t]}function w(e){return g(e)[0]}r()}catch(l){r(l)}}))},42602:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{D0:()=>i.D0,EK:()=>c.EK,F4:()=>l.F4,IR:()=>g.j6,J7:()=>v.J7,Kl:()=>H.Kl,Uw:()=>U.Uw,WX:()=>Z.WX,XQ:()=>W.XQ,eO:()=>h.eO,gS:()=>q.gS,h0:()=>A.h0,j6:()=>g.j6,js:()=>u.js,mQ:()=>g.ye,m_:()=>o.m_,nX:()=>R.nX,qP:()=>T.qP,sL:()=>s.sL,um:()=>B.um,x$:()=>G.x$,ye:()=>g.ye,yg:()=>P.yg});var o=n(1545),s=n(7473),a=n(15277),i=n(55770),l=n(69260),u=n(59754),c=n(93391),d=n(68566),p=n(75981),_=n(2707),h=n(66228),m=n(68095),f=n(27475),y=n(84818),g=n(50226),w=n(24179),b=n(29639),v=n(73923),S=n(69960),E=n(89080),x=n(73155),A=n(95194),T=n(25391),N=n(75123),C=n(65837),I=n(79281),M=n(65197),R=n(54612),k=n(86845),F=n(913),O=n(548),P=n(58898),L=n(41559),q=n(97574),j=n(74756),U=n(75296),D=n(76786),H=n(43607),B=n(62197),Z=n(39007),W=n(76062),G=n(50834),V=(n(45915),e([o,s,a,i,l,u,c,d,p,_,h,m,f,y,g,w,b,v,S,E,x,A,T,N,C,I,M,R,k,F,O,P,L,q,j,U,D,H,B,Z,W,G]));[o,s,a,i,l,u,c,d,p,_,h,m,f,y,g,w,b,v,S,E,x,A,T,N,C,I,M,R,k,F,O,P,L,q,j,U,D,H,B,Z,W,G]=V.then?(await V)():V,r()}catch(J){r(J)}}))},75929:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{$Q:()=>d,dH:()=>l.d,qg:()=>_,xv:()=>i.xv});var o=n(45915),s=n(68407),a=n(4766),i=n(29599),l=n(65280),u=e([a]);function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]: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 o.fA("no arguments provided");if("curl"!==e[0].trim())throw new o.fA('command should begin with "curl" but instead begins with '+JSON.stringify(d(e[0])));return[[e.map((e=>new s.vZ(e))),void 0,void 0]]}function _(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=[];const o=p(e,n);for(const[s,a,u]of o){const e=i.Zy(s,i.Lk,i.N4,i.U$,t,n);r=r.concat((0,l.r)(e,a,u))}return r}a=(u.then?(await u)():u)[0],r()}catch(c){r(c)}}))},68407:(e,t,n)=>{"use strict";n.d(t,{WL:()=>a,__:()=>i,eq:()=>s,vZ:()=>o,yZ:()=>l});var r=n(45915);class o{constructor(e){this.valueOf=o.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(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;try{return this.get(e)}catch(t){}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 o=r.indexOf(e,t-n);if(-1!==o)return n+o}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 o:this.charAt(0)===e?this.slice(1):this.copy()}copy(){return new o(this.tokens)}slice(e,t){if(void 0===e&&(e=this.length),void 0===t&&(t=this.length),e>=this.length)return new o;if(e<0&&(e=Math.max(e+this.length,0)),t<0&&(t=Math.max(t+this.length,0)),t<=e)return new o;const n=[];let r=0;for(const o of this.tokens)"string"===typeof o?(r+o.length>e&&r<t&&n.push(o.slice(Math.max(e-r,0),t-r)),r+=o.length):(r>=e&&r<t&&n.push(o),r+=1);return new o(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 o([...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 o(n)}split(e,t){const n=[];let r=0,o=0;for(;r<this.length;){let s=!0;for(let t=0;t<e.length;t++)if(this.get(r+t)!==e.charAt(t)){s=!1;break}if(s){if(n.push(this.slice(o,r)),r+=e.length,o=r,void 0!==t&&n.length===t-1)break}else r+=1}return o<=this.length&&n.push(this.slice(o)),n}toLowerCase(){return new o(this.tokens.map((e=>"string"===typeof e?e.toLowerCase():e)))}toUpperCase(){return new o(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 o:new o(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 o:new o(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 o:new o(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 s(e,t){return void 0===e||null===e||void 0===t||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(){const e=[];for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(const s of n)s instanceof o?e.push(...s.tokens):e.push(s);return new o(e)}function l(e,t){const n=[];for(const r of e)n.length&&n.push(t),n.push(...r.tokens);return new o(n)}},4766:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{q:()=>N});var o=n(68407),s=n(45915),a=n(75929),i=n(80330),l=n(79069),u=e([a,i]);[a,i]=u.then?(await u)():u;const d=/\\./gs;function p(e){return"\n"===e.charAt(1)?"":e.charAt(1)}const _=/\\[\\$`"\n]/gs;function h(e){return e.replace(_,p)}const m=/\\(\\|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 f(e){return e.replace(m,(function(e){switch(e.charAt(1)){case"\\":return"\\";case"a":return"\x07";case"b":return"\b";case"e":case"E":return"\x1b";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 s.fA('non-ASCII control character in ANSI-C quoted string: "\\u{'+e.codePointAt(2).toString(16)+'}"');return"?"===e[2]?"\x7f":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 s.fA("unhandled character in ANSI-C escape code: "+JSON.stringify(e))}}))}function y(e,t,n){let r=[];switch(e.type){case"word":return[(o=e.text,o.replace(d,p))];case"raw_string":return[e.text.slice(1,-1)];case"ansi_c_string":return[f(e.text.slice(2,-1))];case"string":case"translated_string":{let o="string"===e.type?1:2,s="";for(const a of e.namedChildren){s+=h(e.text.slice(o,a.startIndex-e.startIndex));const i=y(a,t,n);"string"===typeof i?s+=i:(s&&(r.push(s),s=""),r=r.concat(i)),o=a.endIndex-e.startIndex}return s+=h(e.text.slice(o,-1)),(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 o=0,s="";for(const a of e.children){s+=e.text.slice(o,a.startIndex-e.startIndex),o=a.endIndex-e.startIndex;const i=y(a,t,n);"string"===typeof i?s+=i:(s&&(r.push(s),s=""),r=r.concat(i))}return s+=e.text.slice(o),(s||0===r.length)&&r.push(s),r}default:throw new s.fA("unexpected argument type "+JSON.stringify(e.type)+'. Must be one of "word", "string", "raw_string", "ansi_c_string", "expansion", "simple_expansion", "translated_string" or "concatenation"\n'+(0,l.TO)(e,t))}var o}function g(e,t,n){return new o.vZ(y(e,t,n))}function w(e,t,n){const r=e.walk();for(r.gotoFirstChild();r.gotoNextSibling();)if("ERROR"===r.nodeType){let e=r.currentNode;try{e=r.currentNode()}catch(o){}n.push(["bash","Bash parsing error on line ".concat(r.startPosition.row+1,":\n")+(0,l.TO)(e,t)]);break}}function b(e,t,n){const r=t[e.endPosition.row],o=r.match(/\\\s+$/);o&&t.length>e.endPosition.row+1&&void 0!==o.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(o.index)+"^".repeat(o[0].length)])}function v(e,t,n){if(!e.childCount)throw new s.fA('got empty "redirected_statement" AST node');let r,a;const[i,...u]=e.namedChildren;if("command"!==i.type)throw new s.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 s.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)a=g(c.namedChildren[0],t,n);else if("heredoc_redirect"===c.type){if(c.namedChildCount<1)throw new s.fA('got "redirected_statement" AST node with heredoc but no heredoc start');const t=c.namedChildren[0].text,n=e.nextNamedSibling;if(!n)throw new s.fA('got "redirected_statement" AST node with no heredoc body');if("heredoc_body"!==n.type)throw new s.fA('got "redirected_statement" AST node with heredoc but no heredoc body, got '+n.type+" instead");r=t.length?new o.vZ(n.text.slice(0,-t.length)):new o.vZ(n.text)}else{if("herestring_redirect"!==c.type)throw new s.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 s.fA('got "redirected_statement" AST node with empty herestring');r=new o.vZ(c.firstNamedChild.text)}return[i,r,a]}function S(e,t,n){let r,o,a;for(const i of e.namedChildren)if("command"===i.type){const e=i.namedChildren[0];if("command_name"!==e.type)throw new s.fA('got "command" AST node whose first child is not a "command_name", got '+e.type+" instead\n"+(0,l.TO)(e,t));const o=e.namedChildren[0];if("word"!==o.type)throw new s.fA('got "command_name" AST node whose first child is not a "word", got '+o.type+" instead\n"+(0,l.TO)(o,t));"curl"===o.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,s,u]=v(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,o,a]=[e,s,u])}else if("pipeline"===i.type){const[e,s,u]=S(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,o,a]=[e,s,u])}return[r,o,a]}function E(e,t,n){const[r,o,a]=S(e,t,n);if(!r)throw new s.fA("could not find curl command in pipeline\n"+(0,l.TO)(e,t));return[r,o,a]}function x(e,t,n){if("program"!==e.rootNode.type)throw new s.fA('expected a "program" top-level AST node, got '+e.rootNode.type+" instead");if(e.rootNode.namedChildCount<1||!e.rootNode.namedChildren)throw new s.fA('empty "program" node');const r=t.split("\n");let o=!1;const a=[];for(const i of e.rootNode.namedChildren)switch(i.type){case"comment":o=!0;continue;case"command":a.push([i,void 0,void 0]),b(i,r,n);break;case"redirected_statement":a.push(v(i,t,n)),b(i,r,n);break;case"pipeline":a.push(E(i,t,n)),b(i,r,n);break;case"heredoc_body":continue;case"ERROR":throw new s.fA("Bash parsing error on line ".concat(i.startPosition.row+1,":\n")+(0,l.TO)(i,t));default:throw new s.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 s.fA('expected a "command" or "redirected_statement" AST node'+(o?', only found "comment" nodes':""));return a}function A(e,t,n){if(e.childCount<1)throw new s.fA('empty "command" node\n'+(0,l.TO)(e,t));let r=0;for(const i of e.namedChildren){if("variable_assignment"!==i.type&&"file_redirect"!==i.type){if("command_name"!==i.type)throw new s.fA('expected "command_name", "variable_assignment" or "file_redirect" AST node, found '+i.type+" instead\n"+(0,l.TO)(i,t));break}n.push(["command-preamble","skipping "+JSON.stringify(i.type)+" expression\n"+(0,l.TO)(i,t)]),r+=1}const[o,...a]=e.namedChildren.slice(r);if(void 0===o)throw new s.fA('found "command" AST node with no "command_name" child\n'+(0,l.TO)(e,t));return[o,a]}function T(e,t,n){if(e.childCount<1||!e.firstChild)throw new s.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=g(r,t,n),u=i.toString(),c=(0,o.WL)(i);if(c){if("$curl"!==u)throw new s.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 s.fA("found command without a command_name\n"+(0,l.TO)(r,t));throw new s.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 N(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=i.A.parse(e);w(n,e,t);const r=x(n,e,t),o=[];for(const[s,a,i]of r){const[n,r]=A(s,e,t);o.push([[T(n,e,t),...r.map((n=>g(n,e,t)))],a,i])}return o}r()}catch(c){r(c)}}))},80330:(e,t,n)=>{"use strict";n.a(e,(async(e,r)=>{try{n.d(t,{A:()=>a});var o=n(43290);await o.init();const e=await o.Language.load("/tree-sitter-bash.wasm"),s=new o;s.setLanguage(e);const a=s;r()}catch(s){r(s)}}),1)},45915:(e,t,n)=>{"use strict";n.d(t,{E6:()=>a,eb:()=>o,fA:()=>r,zy:()=>s});class r extends Error{}const o=new TextEncoder;function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function a(e){return/^\s*[+-]?\d+$/.test(e)}},8589:(e,t,n)=>{"use strict";function r(e){return o.test(e)}n.d(t,{Fq:()=>r,s_:()=>w,Lz:()=>i,qg:()=>T,As:()=>re});var o=/^-?[0-9]+$/;function s(e){return a.test(e)}var a=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;function i(e,t){var n=parseFloat(e),o=String(n),s=c(e),a=c(o);if(s===a)return!0;if(!0===(null===t||void 0===t?void 0:t.approx)){if(!r(e)&&a.length>=14&&s.startsWith(a.substring(0,14)))return!0}return!1}var l=function(e){return e.underflow="underflow",e.overflow="overflow",e.truncate_integer="truncate_integer",e.truncate_float="truncate_float",e}({});function u(e){if(!i(e,{approx:!1})){if(r(e))return l.truncate_integer;var t=parseFloat(e);return isFinite(t)?0===t?l.underflow:l.truncate_float:l.overflow}}function c(e){return e.replace(d,"").replace(_,"").replace(h,"").replace(p,"")}var d=/[eE][+-]?\d+$/,p=/^-?(0*)?/,_=/\./,h=/0+$/;function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,y(r.key),r)}}function y(e){var t=function(e,t){if("object"!==m(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==m(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===m(t)?t:String(t)}var g=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,n){(t=y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"isLosslessNumber",!0),!s(t))throw new Error('Invalid number (value: "'+t+'")');this.value=t}var t,n,o;return t=e,(n=[{key:"valueOf",value:function(){var e=u(this.value);if(void 0===e||e===l.truncate_float)return parseFloat(this.value);if(r(this.value))return BigInt(this.value);throw new Error("Cannot safely convert to number: "+"the value '".concat(this.value,"' would ").concat(e," and become ").concat(parseFloat(this.value)))}},{key:"toString",value:function(){return this.value}}])&&f(t.prototype,n),o&&f(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function w(e){return e&&"object"===m(e)&&!0===e.isLosslessNumber||!1}function b(e){return new g(e)}function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function S(e,t,n,r){return Array.isArray(n)?r.call(e,t,function(e,t){for(var n=0;n<e.length;n++)e[n]=S(e,n+"",e[n],t);return e}(n,r)):n&&"object"===v(n)&&!w(n)?r.call(e,t,function(e,t){return Object.keys(e).forEach((function(n){var r=S(e,n,e[n],t);void 0!==r?e[n]=r:delete e[n]})),e}(n,r)):r.call(e,t,n)}function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}function x(e){return function(e){if(Array.isArray(e))return A(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return A(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return A(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function T(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:b,r=0,o=i();return function(e){if(void 0===e)throw new SyntaxError("JSON value expected ".concat(x()))}(o),function(){if(r<e.length)throw new SyntaxError("Expected end of input ".concat(x()))}(),t?function(e,t){return S({"":e},"",e,t)}(o,t):o;function s(){if(e.charCodeAt(r)===F){r++,u();for(var t={},n=!0;r<e.length&&e.charCodeAt(r)!==O;){n?n=!1:(d(),u());var o=r,s=c();void 0===s&&m(),u(),p();var a=i();void 0===a&&w(),Object.prototype.hasOwnProperty.call(t,s)&&!I(a,t[s])&&f(s,o+1),t[s]=a}return e.charCodeAt(r)!==O&&function(){throw new SyntaxError("Quoted object key or end of object '}' expected ".concat(x()))}(),r++,t}}function a(){if(e.charCodeAt(r)===P){r++,u();for(var t=[],n=!0;r<e.length&&e.charCodeAt(r)!==L;){n?n=!1:d();var o=i();_(o),t.push(o)}return e.charCodeAt(r)!==L&&function(){throw new SyntaxError("Array item or end of array ']' expected ".concat(x()))}(),r++,t}}function i(){var t,o,i,d,p,_;u();var m=null!==(t=null!==(o=null!==(i=null!==(d=null!==(p=null!==(_=c())&&void 0!==_?_:function(){var t=r;e.charCodeAt(r)===Z&&(r++,h(t));if(e.charCodeAt(r)===W)r++;else if(o=e.charCodeAt(r),o>=G&&o<=V)for(r++;C(e.charCodeAt(r));)r++;var o;if(e.charCodeAt(r)===z)for(r++,h(t);C(e.charCodeAt(r));)r++;if(e.charCodeAt(r)===K||e.charCodeAt(r)===Y)for(r++,e.charCodeAt(r)!==Z&&e.charCodeAt(r)!==B||r++,h(t);C(e.charCodeAt(r));)r++;if(r>t)return n(e.slice(t,r))}())&&void 0!==p?p:s())&&void 0!==d?d:a())&&void 0!==i?i:l("true",!0))&&void 0!==o?o:l("false",!1))&&void 0!==t?t:l("null",null);return u(),m}function l(t,n){if(e.slice(r,r+t.length)===t)return r+=t.length,n}function u(){for(;(t=e.charCodeAt(r))===q||t===j||t===U||t===D;)r++;var t}function c(){if(e.charCodeAt(r)===H){r++;for(var t="";r<e.length&&e.charCodeAt(r)!==H;){if(e.charCodeAt(r)===k){var n=e[r+1],o=R[n];void 0!==o?(t+=o,r++):"u"===n?N(e.charCodeAt(r+2))&&N(e.charCodeAt(r+3))&&N(e.charCodeAt(r+4))&&N(e.charCodeAt(r+5))?(t+=String.fromCharCode(parseInt(e.slice(r+2,r+6),16)),r+=5):v(r):g(r)}else(s=e.charCodeAt(r))>=32&&s<=1114111?t+=e[r]:y(e[r]);r++}return function(){if(e.charCodeAt(r)!==H)throw new SyntaxError("End of string '\"' expected ".concat(x()))}(),r++,t}var s}function d(){if(e.charCodeAt(r)!==J)throw new SyntaxError("Comma ',' expected after value ".concat(x()));r++}function p(){if(e.charCodeAt(r)!==$)throw new SyntaxError("Colon ':' expected after property name ".concat(x()));r++}function _(e){if(void 0===e)throw new SyntaxError("Array item expected ".concat(x()))}function h(t){if(!C(e.charCodeAt(r))){var n=e.slice(t,r);throw new SyntaxError("Invalid number '".concat(n,"', expecting a digit ").concat(x()))}}function m(){throw new SyntaxError("Quoted object key expected ".concat(x()))}function f(e,t){throw new SyntaxError("Duplicate key '".concat(e,"' encountered at position ").concat(t))}function y(e){throw new SyntaxError("Invalid character '".concat(e,"' ").concat(E()))}function g(t){var n=e.slice(t,t+2);throw new SyntaxError("Invalid escape character '".concat(n,"' ").concat(E()))}function w(){throw new SyntaxError("Object value expected after ':' ".concat(E()))}function v(t){for(var n=t+2;/\w/.test(e[n]);)n++;var r=e.slice(t,n);throw new SyntaxError("Invalid unicode character '".concat(r,"' ").concat(E()))}function E(){return"at position ".concat(r)}function x(){return(r<e.length?"but got '".concat(e[r],"'"):"but reached end of input")+" "+E()}}function N(e){return e>=W&&e<=V||e>=X&&e<=ee||e>=Q&&e<=te}function C(e){return e>=W&&e<=V}function I(e,t){return e===t||(Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((function(e,n){return I(e,t[n])})):!(!M(e)||!M(t))&&x(new Set([].concat(x(Object.keys(e)),x(Object.keys(t))))).every((function(n){return I(e[n],t[n])})))}function M(e){return"object"===E(e)&&null!==e}var R={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},k=92,F=123,O=125,P=91,L=93,q=32,j=10,U=9,D=13,H=34,B=43,Z=45,W=48,G=49,V=57,J=44,z=46,$=58,X=65,Q=97,Y=69,K=101,ee=70,te=102;function ne(e){return ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ne(e)}function re(e,t,n,r){var o=function(e){if("number"===typeof e)return" ".repeat(e);if("string"===typeof e&&""!==e)return e;return}(n);return a("function"===typeof t?t.call({"":e},"",e):e,"");function a(e,i){if(Array.isArray(r)){var l=r.find((function(t){return t.test(e)}));if(l){var u=l.stringify(e);if("string"!==typeof u||!s(u))throw new Error("Invalid JSON number: output of a number stringifier must be a string containing a JSON number "+"(output: ".concat(u,")"));return u}}return"boolean"===typeof e||"number"===typeof e||"string"===typeof e||null===e||e instanceof Date||e instanceof Boolean||e instanceof Number||e instanceof String?JSON.stringify(e):e&&e.isLosslessNumber||"bigint"===typeof e?e.toString():Array.isArray(e)?function(e,n){if(0===e.length)return"[]";for(var r=o?n+o:void 0,s=o?"[\n":"[",i=0;i<e.length;i++){var l="function"===typeof t?t.call(e,String(i),e[i]):e[i];o&&(s+=r),s+="undefined"!==typeof l&&"function"!==typeof l?a(l,r):"null",i<e.length-1&&(s+=o?",\n":",")}return s+=o?"\n"+n+"]":"]",s}(e,i):e&&"object"===ne(e)?function(e,r){if("function"===typeof e.toJSON)return re(e.toJSON(),t,n,void 0);var s=Array.isArray(t)?t.map(String):Object.keys(e);if(0===s.length)return"{}";var i=o?r+o:void 0,l=!0,u=o?"{\n":"{";return s.forEach((function(n){var r="function"===typeof t?t.call(e,n,e[n]):e[n];if(function(e,t){return"undefined"!==typeof t&&"function"!==typeof t&&"symbol"!==ne(t)}(0,r)){l?l=!1:u+=o?",\n":",";var s=JSON.stringify(n);u+=o?i+s+": ":s+":",u+=a(r,i)}})),u+=o?"\n"+r+"}":"}",u}(e,i):void 0}}}}]);