{"version":3,"file":"browserify-index.js","names":["initRustCrypto","_http","_userId","_deviceId","Error"],"sources":["../../src/rust-crypto/browserify-index.ts"],"sourcesContent":["/*\nCopyright 2023 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\n/* This file replaces rust-crypto/index.ts when the js-sdk is being built for browserify.\n *\n * It is a stub, so that we do not import the whole of the base64'ed wasm artifact into the browserify bundle.\n * It deliberately does nothing except raise an exception.\n */\n\nimport { IHttpOpts, MatrixHttpApi } from \"../http-api\";\n\nexport async function initRustCrypto(\n _http: MatrixHttpApi,\n _userId: string,\n _deviceId: string,\n): Promise {\n throw new Error(\"Rust crypto is not supported under browserify.\");\n}\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAIO,eAAeA,cAAcA,CAChCC,KAAoD,EACpDC,OAAe,EACfC,SAAiB,EACF;EACf,MAAM,IAAIC,KAAK,CAAC,gDAAgD,CAAC;AACrE"}