/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/@astral-sh/ruff-wasm-web@0.15.10/ruff_wasm.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
let wasm,cachedUint8ArrayMemory0=null;function getUint8ArrayMemory0(){return null!==cachedUint8ArrayMemory0&&0!==cachedUint8ArrayMemory0.byteLength||(cachedUint8ArrayMemory0=new Uint8Array(wasm.memory.buffer)),cachedUint8ArrayMemory0}let cachedTextDecoder=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});cachedTextDecoder.decode();const MAX_SAFARI_DECODE_BYTES=2146435072;let numBytesDecoded=0;function decodeText(e,n){return numBytesDecoded+=n,numBytesDecoded>=2146435072&&(cachedTextDecoder=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),cachedTextDecoder.decode(),numBytesDecoded=n),cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(e,e+n))}function getStringFromWasm0(e,n){return decodeText(e>>>=0,n)}let WASM_VECTOR_LEN=0;const cachedTextEncoder=new TextEncoder;function passStringToWasm0(e,n,t){if(void 0===t){const t=cachedTextEncoder.encode(e),r=n(t.length,1)>>>0;return getUint8ArrayMemory0().subarray(r,r+t.length).set(t),WASM_VECTOR_LEN=t.length,r}let r=e.length,_=n(r,1)>>>0;const a=getUint8ArrayMemory0();let o=0;for(;o<r;o++){const n=e.charCodeAt(o);if(n>127)break;a[_+o]=n}if(o!==r){0!==o&&(e=e.slice(o)),_=t(_,r,r=o+3*e.length,1)>>>0;const n=getUint8ArrayMemory0().subarray(_+o,_+r);o+=cachedTextEncoder.encodeInto(e,n).written,_=t(_,r,o,1)>>>0}return WASM_VECTOR_LEN=o,_}"encodeInto"in cachedTextEncoder||(cachedTextEncoder.encodeInto=function(e,n){const t=cachedTextEncoder.encode(e);return n.set(t),{read:e.length,written:t.length}});let cachedDataViewMemory0=null;function getDataViewMemory0(){return(null===cachedDataViewMemory0||!0===cachedDataViewMemory0.buffer.detached||void 0===cachedDataViewMemory0.buffer.detached&&cachedDataViewMemory0.buffer!==wasm.memory.buffer)&&(cachedDataViewMemory0=new DataView(wasm.memory.buffer)),cachedDataViewMemory0}function isLikeNone(e){return null==e}function debugString(e){const n=typeof e;if("number"==n||"boolean"==n||null==e)return`${e}`;if("string"==n)return`"${e}"`;if("symbol"==n){const n=e.description;return null==n?"Symbol":`Symbol(${n})`}if("function"==n){const n=e.name;return"string"==typeof n&&n.length>0?`Function(${n})`:"Function"}if(Array.isArray(e)){const n=e.length;let t="[";n>0&&(t+=debugString(e[0]));for(let r=1;r<n;r++)t+=", "+debugString(e[r]);return t+="]",t}const t=/\[object ([^\]]+)\]/.exec(toString.call(e));let r;if(!(t&&t.length>1))return toString.call(e);if(r=t[1],"Object"==r)try{return"Object("+JSON.stringify(e)+")"}catch(e){return"Object"}return e instanceof Error?`${e.name}: ${e.message}\n${e.stack}`:r}function addToExternrefTable0(e){const n=wasm.__externref_table_alloc();return wasm.__wbindgen_externrefs.set(n,e),n}function handleError(e,n){try{return e.apply(this,n)}catch(e){const n=addToExternrefTable0(e);wasm.__wbindgen_exn_store(n)}}function getArrayU8FromWasm0(e,n){return e>>>=0,getUint8ArrayMemory0().subarray(e/1,e/1+n)}export function run(){wasm.run()}export function initLogging(e){wasm.initLogging(e)}function takeFromExternrefTable0(e){const n=wasm.__wbindgen_externrefs.get(e);return wasm.__externref_table_dealloc(e),n}export const LogLevel=Object.freeze({Trace:0,0:"Trace",Debug:1,1:"Debug",Info:2,2:"Info",Warn:3,3:"Warn",Error:4,4:"Error"});export const PositionEncoding=Object.freeze({Utf8:0,0:"Utf8",Utf16:1,1:"Utf16",Utf32:2,2:"Utf32"});const WorkspaceFinalization="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>wasm.__wbg_workspace_free(e>>>0,1)));export class Workspace{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,WorkspaceFinalization.unregister(this),e}free(){const e=this.__destroy_into_raw();wasm.__wbg_workspace_free(e,0)}static defaultSettings(){const e=wasm.workspace_defaultSettings();if(e[2])throw takeFromExternrefTable0(e[1]);return takeFromExternrefTable0(e[0])}constructor(e,n){const t=wasm.workspace_new(e,n);if(t[2])throw takeFromExternrefTable0(t[1]);return this.__wbg_ptr=t[0]>>>0,WorkspaceFinalization.register(this,this.__wbg_ptr,this),this}check(e){const n=passStringToWasm0(e,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),t=WASM_VECTOR_LEN,r=wasm.workspace_check(this.__wbg_ptr,n,t);if(r[2])throw takeFromExternrefTable0(r[1]);return takeFromExternrefTable0(r[0])}parse(e){let n,t;try{const a=passStringToWasm0(e,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),o=WASM_VECTOR_LEN,i=wasm.workspace_parse(this.__wbg_ptr,a,o);var r=i[0],_=i[1];if(i[3])throw r=0,_=0,takeFromExternrefTable0(i[2]);return n=r,t=_,getStringFromWasm0(r,_)}finally{wasm.__wbindgen_free(n,t,1)}}format(e){let n,t;try{const a=passStringToWasm0(e,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),o=WASM_VECTOR_LEN,i=wasm.workspace_format(this.__wbg_ptr,a,o);var r=i[0],_=i[1];if(i[3])throw r=0,_=0,takeFromExternrefTable0(i[2]);return n=r,t=_,getStringFromWasm0(r,_)}finally{wasm.__wbindgen_free(n,t,1)}}tokens(e){let n,t;try{const a=passStringToWasm0(e,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),o=WASM_VECTOR_LEN,i=wasm.workspace_tokens(this.__wbg_ptr,a,o);var r=i[0],_=i[1];if(i[3])throw r=0,_=0,takeFromExternrefTable0(i[2]);return n=r,t=_,getStringFromWasm0(r,_)}finally{wasm.__wbindgen_free(n,t,1)}}static version(){let e,n;try{const t=wasm.workspace_version();return e=t[0],n=t[1],getStringFromWasm0(t[0],t[1])}finally{wasm.__wbindgen_free(e,n,1)}}comments(e){let n,t;try{const a=passStringToWasm0(e,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),o=WASM_VECTOR_LEN,i=wasm.workspace_comments(this.__wbg_ptr,a,o);var r=i[0],_=i[1];if(i[3])throw r=0,_=0,takeFromExternrefTable0(i[2]);return n=r,t=_,getStringFromWasm0(r,_)}finally{wasm.__wbindgen_free(n,t,1)}}format_ir(e){let n,t;try{const a=passStringToWasm0(e,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),o=WASM_VECTOR_LEN,i=wasm.workspace_format_ir(this.__wbg_ptr,a,o);var r=i[0],_=i[1];if(i[3])throw r=0,_=0,takeFromExternrefTable0(i[2]);return n=r,t=_,getStringFromWasm0(r,_)}finally{wasm.__wbindgen_free(n,t,1)}}}Symbol.dispose&&(Workspace.prototype[Symbol.dispose]=Workspace.prototype.free);const EXPECTED_RESPONSE_TYPES=new Set(["basic","cors","default"]);async function __wbg_load(e,n){if("function"==typeof Response&&e instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(e,n)}catch(n){if(!(e.ok&&EXPECTED_RESPONSE_TYPES.has(e.type))||"application/wasm"===e.headers.get("Content-Type"))throw n;console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",n)}const t=await e.arrayBuffer();return await WebAssembly.instantiate(t,n)}{const t=await WebAssembly.instantiate(e,n);return t instanceof WebAssembly.Instance?{instance:t,module:e}:t}}function __wbg_get_imports(){const e={wbg:{}};return e.wbg.__wbg_Error_e83987f665cf5504=function(e,n){return Error(getStringFromWasm0(e,n))},e.wbg.__wbg_Number_bb48ca12f395cd08=function(e){return Number(e)},e.wbg.__wbg_String_8f0eb39a4a4c2f66=function(e,n){const t=passStringToWasm0(String(n),wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),r=WASM_VECTOR_LEN;getDataViewMemory0().setInt32(e+4,r,!0),getDataViewMemory0().setInt32(e+0,t,!0)},e.wbg.__wbg___wbindgen_bigint_get_as_i64_f3ebc5a755000afd=function(e,n){const t="bigint"==typeof n?n:void 0;getDataViewMemory0().setBigInt64(e+8,isLikeNone(t)?BigInt(0):t,!0),getDataViewMemory0().setInt32(e+0,!isLikeNone(t),!0)},e.wbg.__wbg___wbindgen_boolean_get_6d5a1ee65bab5f68=function(e){const n="boolean"==typeof e?e:void 0;return isLikeNone(n)?16777215:n?1:0},e.wbg.__wbg___wbindgen_debug_string_df47ffb5e35e6763=function(e,n){const t=passStringToWasm0(debugString(n),wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),r=WASM_VECTOR_LEN;getDataViewMemory0().setInt32(e+4,r,!0),getDataViewMemory0().setInt32(e+0,t,!0)},e.wbg.__wbg___wbindgen_in_bb933bd9e1b3bc0f=function(e,n){return e in n},e.wbg.__wbg___wbindgen_is_bigint_cb320707dcd35f0b=function(e){return"bigint"==typeof e},e.wbg.__wbg___wbindgen_is_function_ee8a6c5833c90377=function(e){return"function"==typeof e},e.wbg.__wbg___wbindgen_is_object_c818261d21f283a4=function(e){return"object"==typeof e&&null!==e},e.wbg.__wbg___wbindgen_is_string_fbb76cb2940daafd=function(e){return"string"==typeof e},e.wbg.__wbg___wbindgen_is_undefined_2d472862bd29a478=function(e){return void 0===e},e.wbg.__wbg___wbindgen_jsval_eq_6b13ab83478b1c50=function(e,n){return e===n},e.wbg.__wbg___wbindgen_jsval_loose_eq_b664b38a2f582147=function(e,n){return e==n},e.wbg.__wbg___wbindgen_number_get_a20bf9b85341449d=function(e,n){const t="number"==typeof n?n:void 0;getDataViewMemory0().setFloat64(e+8,isLikeNone(t)?0:t,!0),getDataViewMemory0().setInt32(e+0,!isLikeNone(t),!0)},e.wbg.__wbg___wbindgen_string_get_e4f06c90489ad01b=function(e,n){const t="string"==typeof n?n:void 0;var r=isLikeNone(t)?0:passStringToWasm0(t,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),_=WASM_VECTOR_LEN;getDataViewMemory0().setInt32(e+4,_,!0),getDataViewMemory0().setInt32(e+0,r,!0)},e.wbg.__wbg___wbindgen_throw_b855445ff6a94295=function(e,n){throw new Error(getStringFromWasm0(e,n))},e.wbg.__wbg_call_e762c39fa8ea36bf=function(){return handleError((function(e,n){return e.call(n)}),arguments)},e.wbg.__wbg_codePointAt_01a186303396f7ad=function(e,n){return e.codePointAt(n>>>0)},e.wbg.__wbg_debug_f4b0c59db649db48=function(e){console.debug(e)},e.wbg.__wbg_done_2042aa2670fb1db1=function(e){return e.done},e.wbg.__wbg_entries_e171b586f8f6bdbf=function(e){return Object.entries(e)},e.wbg.__wbg_error_7534b8e9a36f1ab4=function(e,n){let t,r;try{t=e,r=n,console.error(getStringFromWasm0(e,n))}finally{wasm.__wbindgen_free(t,r,1)}},e.wbg.__wbg_error_a7f8fbb0523dae15=function(e){console.error(e)},e.wbg.__wbg_fromCodePoint_a1c5bb992dc05846=function(){return handleError((function(e){return String.fromCodePoint(e>>>0)}),arguments)},e.wbg.__wbg_get_7bed016f185add81=function(e,n){return e[n>>>0]},e.wbg.__wbg_get_efcb449f58ec27c2=function(){return handleError((function(e,n){return Reflect.get(e,n)}),arguments)},e.wbg.__wbg_get_with_ref_key_1dc361bd10053bfe=function(e,n){return e[n]},e.wbg.__wbg_info_e674a11f4f50cc0c=function(e){console.info(e)},e.wbg.__wbg_instanceof_ArrayBuffer_70beb1189ca63b38=function(e){let n;try{n=e instanceof ArrayBuffer}catch(e){n=!1}return n},e.wbg.__wbg_instanceof_Map_8579b5e2ab5437c7=function(e){let n;try{n=e instanceof Map}catch(e){n=!1}return n},e.wbg.__wbg_instanceof_Uint8Array_20c8e73002f7af98=function(e){let n;try{n=e instanceof Uint8Array}catch(e){n=!1}return n},e.wbg.__wbg_isArray_96e0af9891d0945d=function(e){return Array.isArray(e)},e.wbg.__wbg_isSafeInteger_d216eda7911dde36=function(e){return Number.isSafeInteger(e)},e.wbg.__wbg_iterator_e5822695327a3c39=function(){return Symbol.iterator},e.wbg.__wbg_length_69bca3cb64fc8748=function(e){return e.length},e.wbg.__wbg_length_a95b69f903b746c4=function(e){return e.length},e.wbg.__wbg_length_cdd215e10d9dd507=function(e){return e.length},e.wbg.__wbg_log_8cec76766b8c0e33=function(e){console.log(e)},e.wbg.__wbg_new_1acc0b6eea89d040=function(){return new Object},e.wbg.__wbg_new_5a79be3ab53b8aa5=function(e){return new Uint8Array(e)},e.wbg.__wbg_new_68651c719dcda04e=function(){return new Map},e.wbg.__wbg_new_8a6f238a6ece86ea=function(){return new Error},e.wbg.__wbg_new_a7442b4b19c1a356=function(e,n){return new Error(getStringFromWasm0(e,n))},e.wbg.__wbg_new_e17d9f43105b08be=function(){return new Array},e.wbg.__wbg_next_020810e0ae8ebcb0=function(){return handleError((function(e){return e.next()}),arguments)},e.wbg.__wbg_next_2c826fe5dfec6b6a=function(e){return e.next},e.wbg.__wbg_now_793306c526e2e3b6=function(){return Date.now()},e.wbg.__wbg_prototypesetcall_2a6620b6922694b2=function(e,n,t){Uint8Array.prototype.set.call(getArrayU8FromWasm0(e,n),t)},e.wbg.__wbg_set_3f1d0b984ed272ed=function(e,n,t){e[n]=t},e.wbg.__wbg_set_907fb406c34a251d=function(e,n,t){return e.set(n,t)},e.wbg.__wbg_set_c213c871859d6500=function(e,n,t){e[n>>>0]=t},e.wbg.__wbg_stack_0ed75d68575b0f3c=function(e,n){const t=passStringToWasm0(n.stack,wasm.__wbindgen_malloc,wasm.__wbindgen_realloc),r=WASM_VECTOR_LEN;getDataViewMemory0().setInt32(e+4,r,!0),getDataViewMemory0().setInt32(e+0,t,!0)},e.wbg.__wbg_value_692627309814bb8c=function(e){return e.value},e.wbg.__wbg_warn_1d74dddbe2fd1dbb=function(e){console.warn(e)},e.wbg.__wbindgen_cast_2241b6af4c4b2941=function(e,n){return getStringFromWasm0(e,n)},e.wbg.__wbindgen_cast_4625c577ab2ec9ee=function(e){return BigInt.asUintN(64,e)},e.wbg.__wbindgen_cast_9ae0607507abb057=function(e){return e},e.wbg.__wbindgen_cast_d6cd19b81560fd6e=function(e){return e},e.wbg.__wbindgen_init_externref_table=function(){const e=wasm.__wbindgen_externrefs,n=e.grow(4);e.set(0,void 0),e.set(n+0,void 0),e.set(n+1,null),e.set(n+2,!0),e.set(n+3,!1)},e}function __wbg_finalize_init(e,n){return wasm=e.exports,__wbg_init.__wbindgen_wasm_module=n,cachedDataViewMemory0=null,cachedUint8ArrayMemory0=null,wasm.__wbindgen_start(),wasm}function initSync(e){if(void 0!==wasm)return wasm;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?({module:e}=e):console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));const n=__wbg_get_imports();e instanceof WebAssembly.Module||(e=new WebAssembly.Module(e));return __wbg_finalize_init(new WebAssembly.Instance(e,n),e)}async function __wbg_init(e){if(void 0!==wasm)return wasm;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?({module_or_path:e}=e):console.warn("using deprecated parameters for the initialization function; pass a single object instead")),void 0===e&&(e=new URL("ruff_wasm_bg.wasm",import.meta.url));const n=__wbg_get_imports();("string"==typeof e||"function"==typeof Request&&e instanceof Request||"function"==typeof URL&&e instanceof URL)&&(e=fetch(e));const{instance:t,module:r}=await __wbg_load(await e,n);return __wbg_finalize_init(t,r)}export{initSync};export default __wbg_init;
//# sourceMappingURL=/sm/21ff5ea93477ddda703b2594d193ff11b837c779b360f2a8bd804986a7a64cf3.map